| 1 |
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/soc/spacemit/spacemit,k1-syscon.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: SpacemiT K1/K3 SoC System Controller |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Haylen Chu <[email protected]> |
| 11 |
|
| 12 |
description: |
| 13 |
System controllers found on SpacemiT K1/K3 SoC, which are capable of |
| 14 |
clock, reset and power-management functions. |
| 15 |
|
| 16 |
properties: |
| 17 |
compatible: |
| 18 |
enum: |
| 19 |
- spacemit,k1-syscon-apbc |
| 20 |
- spacemit,k1-syscon-apmu |
| 21 |
- spacemit,k1-syscon-mpmu |
| 22 |
- spacemit,k1-syscon-rcpu |
| 23 |
- spacemit,k1-syscon-rcpu2 |
| 24 |
- spacemit,k1-syscon-apbc2 |
| 25 |
- spacemit,k3-syscon-apbc |
| 26 |
- spacemit,k3-syscon-apmu |
| 27 |
- spacemit,k3-syscon-dciu |
| 28 |
- spacemit,k3-syscon-mpmu |
| 29 |
|
| 30 |
reg: |
| 31 |
maxItems: 1 |
| 32 |
|
| 33 |
clocks: |
| 34 |
maxItems: 4 |
| 35 |
|
| 36 |
clock-names: |
| 37 |
items: |
| 38 |
- const: osc |
| 39 |
- const: vctcxo_1m |
| 40 |
- const: vctcxo_3m |
| 41 |
- const: vctcxo_24m |
| 42 |
|
| 43 |
"#clock-cells": |
| 44 |
const: 1 |
| 45 |
description: |
| 46 |
For K1 SoC, check <dt-bindings/clock/spacemit,k1-syscon.h> for valid indices. |
| 47 |
For K3 SoC, check <dt-bindings/clock/spacemit,k3-clocks.h> for valid indices. |
| 48 |
|
| 49 |
"#power-domain-cells": |
| 50 |
const: 1 |
| 51 |
|
| 52 |
"#reset-cells": |
| 53 |
const: 1 |
| 54 |
description: | |
| 55 |
ID of the reset controller line. Valid IDs are defined in corresponding |
| 56 |
files: |
| 57 |
|
| 58 |
For SpacemiT K1, see include/dt-bindings/clock/spacemit,k1-syscon.h |
| 59 |
For SpacemiT K3, see include/dt-bindings/reset/spacemit,k3-resets.h |
| 60 |
|
| 61 |
required: |
| 62 |
- compatible |
| 63 |
- reg |
| 64 |
- "#reset-cells" |
| 65 |
|
| 66 |
allOf: |
| 67 |
- if: |
| 68 |
properties: |
| 69 |
compatible: |
| 70 |
contains: |
| 71 |
enum: |
| 72 |
- spacemit,k1-syscon-apmu |
| 73 |
- spacemit,k1-syscon-mpmu |
| 74 |
- spacemit,k3-syscon-apmu |
| 75 |
- spacemit,k3-syscon-mpmu |
| 76 |
then: |
| 77 |
required: |
| 78 |
- "#power-domain-cells" |
| 79 |
else: |
| 80 |
properties: |
| 81 |
"#power-domain-cells": false |
| 82 |
- if: |
| 83 |
properties: |
| 84 |
compatible: |
| 85 |
contains: |
| 86 |
enum: |
| 87 |
- spacemit,k1-syscon-apbc |
| 88 |
- spacemit,k1-syscon-apmu |
| 89 |
- spacemit,k1-syscon-mpmu |
| 90 |
- spacemit,k3-syscon-apbc |
| 91 |
- spacemit,k3-syscon-apmu |
| 92 |
- spacemit,k3-syscon-mpmu |
| 93 |
then: |
| 94 |
required: |
| 95 |
- clocks |
| 96 |
- clock-names |
| 97 |
- "#clock-cells" |
| 98 |
|
| 99 |
additionalProperties: false |
| 100 |
|
| 101 |
examples: |
| 102 |
- | |
| 103 |
system-controller@d4050000 { |
| 104 |
compatible = "spacemit,k1-syscon-mpmu"; |
| 105 |
reg = <0xd4050000 0x209c>; |
| 106 |
clocks = <&osc>, <&vctcxo_1m>, <&vctcxo_3m>, <&vctcxo_24m>; |
| 107 |
clock-names = "osc", "vctcxo_1m", "vctcxo_3m", "vctcxo_24m"; |
| 108 |
#clock-cells = <1>; |
| 109 |
#power-domain-cells = <1>; |
| 110 |
#reset-cells = <1>; |
| 111 |
}; |