Debian Codegraph @

Documentation/devicetree/bindings/soc/samsung/exynos-pmu.yaml

raw
1 # SPDX-License-Identifier: GPL-2.0
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/soc/samsung/exynos-pmu.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Samsung Exynos SoC series Power Management Unit (PMU)
8
9 maintainers:
10 - Krzysztof Kozlowski <[email protected]>
11
12 properties:
13 compatible:
14 oneOf:
15 - enum:
16 - google,gs101-pmu
17 - items:
18 - enum:
19 - samsung,exynos3250-pmu
20 - samsung,exynos4210-pmu
21 - samsung,exynos4212-pmu
22 - samsung,exynos4412-pmu
23 - samsung,exynos5250-pmu
24 - samsung,exynos5260-pmu
25 - samsung,exynos5410-pmu
26 - samsung,exynos5420-pmu
27 - samsung,exynos5433-pmu
28 - samsung,exynos7-pmu
29 - samsung,exynos850-pmu
30 - samsung-s5pv210-pmu
31 - const: syscon
32 - items:
33 - enum:
34 - axis,artpec9-pmu
35 - samsung,exynos2200-pmu
36 - samsung,exynos7870-pmu
37 - samsung,exynos7885-pmu
38 - samsung,exynos8890-pmu
39 - samsung,exynos8895-pmu
40 - samsung,exynos9810-pmu
41 - samsung,exynos990-pmu
42 - samsung,exynosautov9-pmu
43 - samsung,exynosautov920-pmu
44 - tesla,fsd-pmu
45 - const: samsung,exynos7-pmu
46 - const: syscon
47 - items:
48 - enum:
49 - samsung,exynos3250-pmu
50 - samsung,exynos4210-pmu
51 - samsung,exynos4212-pmu
52 - samsung,exynos4412-pmu
53 - samsung,exynos5250-pmu
54 - samsung,exynos5420-pmu
55 - samsung,exynos5433-pmu
56 - const: simple-mfd
57 - const: syscon
58
59 reg:
60 maxItems: 1
61
62 '#clock-cells':
63 const: 1
64
65 clock-names:
66 description:
67 List of clock names for particular CLKOUT mux inputs
68 minItems: 1
69 maxItems: 32
70 items:
71 pattern: '^clkout([0-9]|[12][0-9]|3[0-1])$'
72
73 clocks:
74 minItems: 1
75 maxItems: 32
76
77 dp-phy:
78 $ref: /schemas/phy/samsung,dp-video-phy.yaml
79 unevaluatedProperties: false
80
81 interrupt-controller:
82 description:
83 Some PMUs are capable of behaving as an interrupt controller (mostly
84 to wake up a suspended PMU).
85
86 '#interrupt-cells':
87 description:
88 Must be identical to the that of the parent interrupt controller.
89 const: 3
90
91 mipi-phy:
92 $ref: /schemas/phy/samsung,mipi-video-phy.yaml
93 unevaluatedProperties: false
94
95 reboot-mode:
96 $ref: /schemas/power/reset/syscon-reboot-mode.yaml
97 type: object
98 description:
99 Reboot mode to alter bootloader behavior for the next boot
100
101 syscon-poweroff:
102 $ref: /schemas/power/reset/syscon-poweroff.yaml#
103 type: object
104 description:
105 Node for power off method
106
107 syscon-reboot:
108 $ref: /schemas/power/reset/syscon-reboot.yaml#
109 type: object
110 description:
111 Node for reboot method
112
113 google,pmu-intr-gen-syscon:
114 $ref: /schemas/types.yaml#/definitions/phandle
115 description:
116 Phandle to PMU interrupt generation interface.
117
118 required:
119 - compatible
120 - reg
121
122 additionalProperties: false
123
124 allOf:
125 - if:
126 properties:
127 compatible:
128 contains:
129 enum:
130 - samsung,exynos3250-pmu
131 - samsung,exynos4210-pmu
132 - samsung,exynos4212-pmu
133 - samsung,exynos4412-pmu
134 - samsung,exynos5250-pmu
135 - samsung,exynos5410-pmu
136 - samsung,exynos5420-pmu
137 - samsung,exynos5433-pmu
138 then:
139 required:
140 - '#clock-cells'
141 - clock-names
142 - clocks
143
144 - if:
145 properties:
146 compatible:
147 contains:
148 enum:
149 - samsung,exynos3250-pmu
150 - samsung,exynos4210-pmu
151 - samsung,exynos4212-pmu
152 - samsung,exynos4412-pmu
153 - samsung,exynos5250-pmu
154 - samsung,exynos5420-pmu
155 - samsung,exynos5433-pmu
156 - samsung,exynos7870-pmu
157 then:
158 properties:
159 mipi-phy: true
160 else:
161 properties:
162 mipi-phy: false
163
164 - if:
165 properties:
166 compatible:
167 contains:
168 enum:
169 - samsung,exynos5250-pmu
170 - samsung,exynos5420-pmu
171 - samsung,exynos5433-pmu
172 then:
173 properties:
174 dp-phy: true
175 else:
176 properties:
177 dp-phy: false
178
179 - if:
180 properties:
181 compatible:
182 contains:
183 enum:
184 - google,gs101-pmu
185 then:
186 required:
187 - google,pmu-intr-gen-syscon
188 else:
189 properties:
190 google,pmu-intr-gen-syscon: false
191
192 examples:
193 - |
194 #include <dt-bindings/clock/exynos5250.h>
195
196 pmu_system_controller: system-controller@10040000 {
197 compatible = "samsung,exynos5250-pmu", "syscon";
198 reg = <0x10040000 0x5000>;
199 interrupt-controller;
200 #interrupt-cells = <3>;
201 interrupt-parent = <&gic>;
202 #clock-cells = <1>;
203 clock-names = "clkout16";
204 clocks = <&clock CLK_FIN_PLL>;
205
206 dp-phy {
207 compatible = "samsung,exynos5250-dp-video-phy";
208 #phy-cells = <0>;
209 };
210
211 mipi-phy {
212 compatible = "samsung,s5pv210-mipi-video-phy";
213 #phy-cells = <1>;
214 };
215 };