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
65 unevaluatedProperties: false
68 - $ref: "#/$defs/px30"
69 - $ref: "#/$defs/px30-pmu"
70 - $ref: "#/$defs/rk3188"
71 - $ref: "#/$defs/rk3228"
72 - $ref: "#/$defs/rk3288"
73 - $ref: "#/$defs/rk3328"
74 - $ref: "#/$defs/rk3368"
75 - $ref: "#/$defs/rk3368-pmu"
76 - $ref: "#/$defs/rk3399"
77 - $ref: "#/$defs/rk3399-pmu"
78 - $ref: "#/$defs/rk3568-pmu"
79 - $ref: "#/$defs/rv1108"
80 - $ref: "#/$defs/rv1108-pmu"
88 const: rockchip,px30-io-voltage-domain
93 description: The supply connected to VCCIO1.
95 description: The supply connected to VCCIO2.
97 description: The supply connected to VCCIO3.
99 description: The supply connected to VCCIO4.
101 description: The supply connected to VCCIO5.
103 description: The supply connected to VCCIO6.
105 description: The supply connected to VCCIO_OSCGPI.
112 const: rockchip,px30-pmu-io-voltage-domain
117 description: The supply connected to PMUIO1.
119 description: The supply connected to PMUIO2.
126 const: rockchip,rk3188-io-voltage-domain
131 description: The supply connected to AP0_VCC.
133 description: The supply connected to AP1_VCC.
135 description: The supply connected to CIF_VCC.
137 description: The supply connected to FLASH_VCC.
139 description: The supply connected to LCD0_VCC.
141 description: The supply connected to LCD1_VCC.
143 description: The supply connected to VCCIO0.
145 description: The supply connected to VCCIO1. Also labeled as VCCIO2.
152 const: rockchip,rk3228-io-voltage-domain
157 description: The supply connected to VCCIO1.
159 description: The supply connected to VCCIO2.
161 description: The supply connected to VCCIO3.
163 description: The supply connected to VCCIO4.
170 const: rockchip,rk3288-io-voltage-domain
175 description: The supply connected to APIO4_VDD.
177 description: The supply connected to APIO5_VDD.
179 description: The supply connected to DVPIO_VDD.
181 description: The supply connected to FLASH0_VDD. Typically for eMMC.
183 description: The supply connected to FLASH1_VDD. Also known as SDIO1.
185 description: The supply connected to APIO1_VDD.
187 description: The supply connected to APIO2_VDD.
189 description: The supply connected to LCDC_VDD.
191 description: The supply connected to SDMMC0_VDD.
193 description: The supply connected to APIO3_VDD. Also known as SDIO0.
200 const: rockchip,rk3328-io-voltage-domain
205 description: The supply connected to VCCIO1.
207 description: The supply connected to VCCIO2.
209 description: The supply connected to VCCIO3.
211 description: The supply connected to VCCIO4.
213 description: The supply connected to VCCIO5.
215 description: The supply connected to VCCIO6.
217 description: The supply connected to VCCIO_PMU.
224 const: rockchip,rk3368-io-voltage-domain
229 description: The supply connected to APIO3_VDD.
231 description: The supply connected to DVPIO_VDD.
233 description: The supply connected to FLASH0_VDD. Typically for eMMC.
235 description: The supply connected to APIO1_VDD.
237 description: The supply connected to APIO4_VDD.
239 description: The supply connected to SDMMC0_VDD.
241 description: The supply connected to APIO2_VDD. Also known as SDIO0.
248 const: rockchip,rk3368-pmu-io-voltage-domain
253 description: The supply connected to PMUIO_VDD.
255 description: The supply connected to LCDC_VDD.
262 const: rockchip,rk3399-io-voltage-domain
267 description: The supply connected to APIO5_VDD.
269 description: The supply connected to APIO2_VDD.
271 description: The supply connected to APIO4_VDD.
273 description: The supply connected to SDMMC0_VDD.
280 const: rockchip,rk3399-pmu-io-voltage-domain
285 description: The supply connected to PMUIO2_VDD.
292 const: rockchip,rk3568-pmu-io-voltage-domain
297 description: The supply connected to PMUIO1.
299 description: The supply connected to PMUIO2.
301 description: The supply connected to VCCIO1.
303 description: The supply connected to VCCIO2.
305 description: The supply connected to VCCIO3.
307 description: The supply connected to VCCIO4.
309 description: The supply connected to VCCIO5.
311 description: The supply connected to VCCIO6.
313 description: The supply connected to VCCIO7.
320 const: rockchip,rv1108-io-voltage-domain
325 description: The supply connected to APIO1_VDD.
327 description: The supply connected to APIO2_VDD.
329 description: The supply connected to APIO3_VDD.
331 description: The supply connected to APIO5_VDD.
333 description: The supply connected to APIO6_VDD.
340 const: rockchip,rv1108-pmu-io-voltage-domain
345 description: The supply connected to PMUIO_VDD.
350 compatible = "rockchip,rk3288-io-voltage-domain";
351 audio-supply = <&vcc18_codec>;
352 bb-supply = <&vcc33_io>;
353 dvp-supply = <&vcc_18>;
354 flash0-supply = <&vcc18_flashio>;
355 gpio1830-supply = <&vcc33_io>;
356 gpio30-supply = <&vcc33_pmuio>;
357 lcdc-supply = <&vcc33_lcd>;
358 sdcard-supply = <&vccio_sd>;
359 wifi-supply = <&vcc18_wl>;