1 # SPDX-License-Identifier: GPL-2.0
4 $id: http://devicetree.org/schemas/power/rockchip-io-domain.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Rockchip SRAM for IO Voltage Domains
10 - Heiko Stuebner <heiko@sntech.de>
13 IO domain voltages on some Rockchip SoCs are variable but need to be
14 kept in sync between the regulators and the SoC using a special
17 A specific example using rk3288
18 If the regulator hooked up to a pin like SDMMC0_VDD is 3.3V then
19 bit 7 of GRF_IO_VSEL needs to be 0. If the regulator hooked up to
20 that same pin is 1.8V then bit 7 of GRF_IO_VSEL needs to be 1.
22 Said another way, this driver simply handles keeping bits in the SoCs
23 General Register File (GRF) in sync with the actual value of a voltage
24 hooked up to the pins.
26 Note that this driver specifically does not include
27 any logic for deciding what voltage we should set regulators to
28 any logic for deciding whether regulators (or internal SoC blocks)
29 should have power or not have power
31 If there were some other software that had the smarts of making
32 decisions about regulators, it would work in conjunction with this
33 driver. When that other software adjusted a regulators voltage then
34 this driver would handle telling the SoC about it. A good example is
35 vqmmc for SD. In that case the dw_mmc driver simply is told about a
36 regulator. It changes the regulator between 3.3V and 1.8V at the
37 right time. This driver notices the change and makes sure that the
38 SoC is on the same page.
40 You specify supplies using the standard regulator bindings by including
41 a phandle the relevant regulator. All specified supplies must be able
42 to report their voltage. The IO Voltage Domain for any non-specified
43 supplies will be not be touched.
48 - rockchip,px30-io-voltage-domain
49 - rockchip,px30-pmu-io-voltage-domain
50 - rockchip,rk3188-io-voltage-domain
51 - rockchip,rk3228-io-voltage-domain
52 - rockchip,rk3288-io-voltage-domain
53 - rockchip,rk3328-io-voltage-domain
54 - rockchip,rk3368-io-voltage-domain
55 - rockchip,rk3368-pmu-io-voltage-domain
56 - rockchip,rk3399-io-voltage-domain
57 - rockchip,rk3399-pmu-io-voltage-domain
58 - rockchip,rk3568-pmu-io-voltage-domain
59 - rockchip,rv1108-io-voltage-domain
60 - rockchip,rv1108-pmu-io-voltage-domain
61 - rockchip,rv1126-pmu-io-voltage-domain
66 unevaluatedProperties: false
69 - $ref: "#/$defs/px30"
70 - $ref: "#/$defs/px30-pmu"
71 - $ref: "#/$defs/rk3188"
72 - $ref: "#/$defs/rk3228"
73 - $ref: "#/$defs/rk3288"
74 - $ref: "#/$defs/rk3328"
75 - $ref: "#/$defs/rk3368"
76 - $ref: "#/$defs/rk3368-pmu"
77 - $ref: "#/$defs/rk3399"
78 - $ref: "#/$defs/rk3399-pmu"
79 - $ref: "#/$defs/rk3568-pmu"
80 - $ref: "#/$defs/rv1108"
81 - $ref: "#/$defs/rv1108-pmu"
82 - $ref: "#/$defs/rv1126-pmu"
90 const: rockchip,px30-io-voltage-domain
95 description: The supply connected to VCCIO1.
97 description: The supply connected to VCCIO2.
99 description: The supply connected to VCCIO3.
101 description: The supply connected to VCCIO4.
103 description: The supply connected to VCCIO5.
105 description: The supply connected to VCCIO6.
107 description: The supply connected to VCCIO_OSCGPI.
114 const: rockchip,px30-pmu-io-voltage-domain
119 description: The supply connected to PMUIO1.
121 description: The supply connected to PMUIO2.
128 const: rockchip,rk3188-io-voltage-domain
133 description: The supply connected to AP0_VCC.
135 description: The supply connected to AP1_VCC.
137 description: The supply connected to CIF_VCC.
139 description: The supply connected to FLASH_VCC.
141 description: The supply connected to LCD0_VCC.
143 description: The supply connected to LCD1_VCC.
145 description: The supply connected to VCCIO0.
147 description: The supply connected to VCCIO1. Also labeled as VCCIO2.
154 const: rockchip,rk3228-io-voltage-domain
159 description: The supply connected to VCCIO1.
161 description: The supply connected to VCCIO2.
163 description: The supply connected to VCCIO3.
165 description: The supply connected to VCCIO4.
172 const: rockchip,rk3288-io-voltage-domain
177 description: The supply connected to APIO4_VDD.
179 description: The supply connected to APIO5_VDD.
181 description: The supply connected to DVPIO_VDD.
183 description: The supply connected to FLASH0_VDD. Typically for eMMC.
185 description: The supply connected to FLASH1_VDD. Also known as SDIO1.
187 description: The supply connected to APIO1_VDD.
189 description: The supply connected to APIO2_VDD.
191 description: The supply connected to LCDC_VDD.
193 description: The supply connected to SDMMC0_VDD.
195 description: The supply connected to APIO3_VDD. Also known as SDIO0.
202 const: rockchip,rk3328-io-voltage-domain
207 description: The supply connected to VCCIO1.
209 description: The supply connected to VCCIO2.
211 description: The supply connected to VCCIO3.
213 description: The supply connected to VCCIO4.
215 description: The supply connected to VCCIO5.
217 description: The supply connected to VCCIO6.
219 description: The supply connected to VCCIO_PMU.
226 const: rockchip,rk3368-io-voltage-domain
231 description: The supply connected to APIO3_VDD.
233 description: The supply connected to DVPIO_VDD.
235 description: The supply connected to FLASH0_VDD. Typically for eMMC.
237 description: The supply connected to APIO1_VDD.
239 description: The supply connected to APIO4_VDD.
241 description: The supply connected to SDMMC0_VDD.
243 description: The supply connected to APIO2_VDD. Also known as SDIO0.
250 const: rockchip,rk3368-pmu-io-voltage-domain
255 description: The supply connected to PMUIO_VDD.
257 description: The supply connected to LCDC_VDD.
264 const: rockchip,rk3399-io-voltage-domain
269 description: The supply connected to APIO5_VDD.
271 description: The supply connected to APIO2_VDD.
273 description: The supply connected to APIO4_VDD.
275 description: The supply connected to SDMMC0_VDD.
282 const: rockchip,rk3399-pmu-io-voltage-domain
287 description: The supply connected to PMUIO2_VDD.
294 const: rockchip,rk3568-pmu-io-voltage-domain
299 description: The supply connected to PMUIO1.
301 description: The supply connected to PMUIO2.
303 description: The supply connected to VCCIO1.
305 description: The supply connected to VCCIO2.
307 description: The supply connected to VCCIO3.
309 description: The supply connected to VCCIO4.
311 description: The supply connected to VCCIO5.
313 description: The supply connected to VCCIO6.
315 description: The supply connected to VCCIO7.
322 const: rockchip,rv1108-io-voltage-domain
327 description: The supply connected to APIO1_VDD.
329 description: The supply connected to APIO2_VDD.
331 description: The supply connected to APIO3_VDD.
333 description: The supply connected to APIO5_VDD.
335 description: The supply connected to APIO6_VDD.
342 const: rockchip,rv1108-pmu-io-voltage-domain
347 description: The supply connected to PMUIO_VDD.
354 const: rockchip,rv1126-pmu-io-voltage-domain
359 description: The supply connected to VCCIO1.
361 description: The supply connected to VCCIO2.
363 description: The supply connected to VCCIO3.
365 description: The supply connected to VCCIO4.
367 description: The supply connected to VCCIO5.
369 description: The supply connected to VCCIO6.
371 description: The supply connected to VCCIO7.
373 description: The supply connected to PMUIO0.
375 description: The supply connected to PMUIO1.
380 compatible = "rockchip,rk3288-io-voltage-domain";
381 audio-supply = <&vcc18_codec>;
382 bb-supply = <&vcc33_io>;
383 dvp-supply = <&vcc_18>;
384 flash0-supply = <&vcc18_flashio>;
385 gpio1830-supply = <&vcc33_io>;
386 gpio30-supply = <&vcc33_pmuio>;
387 lcdc-supply = <&vcc33_lcd>;
388 sdcard-supply = <&vccio_sd>;
389 wifi-supply = <&vcc18_wl>;