1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (C) 2017 Jagan Teki <jagan@amarulasolutions.com>
10 model = "Amarula Vyasa-RK3288";
11 compatible = "amarula,vyasa-rk3288", "rockchip,rk3288";
18 reg = <0x0 0x0 0x0 0x80000000>;
19 device_type = "memory";
22 dc12_vbat: dc12-vbat {
23 compatible = "regulator-fixed";
24 regulator-name = "dc12_vbat";
25 regulator-min-microvolt = <12000000>;
26 regulator-max-microvolt = <12000000>;
31 vboot_3v3: vboot-3v3 {
32 compatible = "regulator-fixed";
33 regulator-name = "vboot_3v3";
34 regulator-min-microvolt = <3300000>;
35 regulator-max-microvolt = <3300000>;
38 vin-supply = <&dc12_vbat>;
41 vcc_sys: vsys-regulator {
42 compatible = "regulator-fixed";
43 regulator-name = "vcc_sys";
44 regulator-min-microvolt = <3700000>;
45 regulator-max-microvolt = <3700000>;
48 vin-supply = <&dc12_vbat>;
52 compatible = "regulator-fixed";
53 regulator-name = "vboot_sv";
54 regulator-min-microvolt = <5000000>;
55 regulator-max-microvolt = <5000000>;
58 vin-supply = <&dc12_vbat>;
62 compatible = "regulator-fixed";
63 regulator-name = "v3g_3v3";
64 regulator-min-microvolt = <3300000>;
65 regulator-max-microvolt = <3300000>;
68 vin-supply = <&dc12_vbat>;
72 compatible = "regulator-fixed";
73 regulator-name = "vsus_5v";
74 regulator-min-microvolt = <5000000>;
75 regulator-max-microvolt = <5000000>;
78 vin-supply = <&vcc_io>;
81 vcc50_hdmi: vcc50-hdmi {
82 compatible = "regulator-fixed";
83 regulator-name = "vcc50_hdmi";
85 gpio = <&gpio7 RK_PB4 GPIO_ACTIVE_HIGH>; /* HDMI_EN */
86 pinctrl-names = "default";
87 pinctrl-0 = <&vcc50_hdmi_en>;
90 vin-supply = <&vsus_5v>;
94 compatible = "regulator-fixed";
95 regulator-name = "vusb1_5v";
97 gpio = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>; /* OTG_VBUS_DRV */
98 pinctrl-names = "default";
99 pinctrl-0 = <&otg_vbus_drv>;
100 regulator-min-microvolt = <5000000>;
101 regulator-max-microvolt = <5000000>;
102 vin-supply = <&vsus_5v>;
106 compatible = "regulator-fixed";
107 regulator-name = "vusb2_5v";
109 gpio = <&gpio8 RK_PB1 GPIO_ACTIVE_HIGH>; /* USB2_PWR_EN */
110 pinctrl-names = "default";
111 pinctrl-0 = <&usb2_pwr_en>;
112 regulator-min-microvolt = <5000000>;
113 regulator-max-microvolt = <5000000>;
116 vin-supply = <&vsus_5v>;
119 ext_gmac: external-gmac-clock {
120 compatible = "fixed-clock";
122 clock-frequency = <125000000>;
123 clock-output-names = "ext_gmac";
128 cpu-supply = <&vdd_cpu>;
132 cpu-supply = <&vdd_cpu>;
136 cpu-supply = <&vdd_cpu>;
140 cpu-supply = <&vdd_cpu>;
147 pinctrl-names = "default";
148 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
149 vmmc-supply = <&vcc_io>;
154 assigned-clocks = <&cru SCLK_MAC>;
155 assigned-clock-parents = <&ext_gmac>;
156 clock_in_out = "input";
157 pinctrl-names = "default";
158 pinctrl-0 = <&rgmii_pins>, <&phy_rst>, <&phy_pmeb>, <&phy_int>;
159 phy-supply = <&vcc_lan>;
161 snps,reset-active-low;
162 snps,reset-delays-us = <0 10000 1000000>;
163 snps,reset-gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_LOW>;
170 mali-supply = <&vdd_gpu>;
175 ddc-i2c-bus = <&i2c5>;
180 clock-frequency = <400000>;
184 compatible = "rockchip,rk808";
186 interrupt-parent = <&gpio0>;
187 interrupts = <RK_PA4 IRQ_TYPE_LEVEL_LOW>;
189 clock-output-names = "xin32k", "rk808-clkout2";
190 pinctrl-names = "default";
191 pinctrl-0 = <&pmic_int &global_pwroff>;
192 rockchip,system-power-controller;
195 vcc1-supply = <&vcc_sys>;
196 vcc2-supply = <&vcc_sys>;
197 vcc3-supply = <&vcc_sys>;
198 vcc4-supply = <&vcc_sys>;
199 vcc6-supply = <&vcc_sys>;
200 vcc7-supply = <&vcc_sys>;
201 vcc8-supply = <&vcc_io>;
202 vcc9-supply = <&vcc_sys>;
203 vcc10-supply = <&vcc_sys>;
204 vcc11-supply = <&vcc_sys>;
205 vcc12-supply = <&vcc_io>;
209 regulator-name = "vdd_arm";
210 regulator-min-microvolt = <750000>;
211 regulator-max-microvolt = <1350000>;
214 regulator-state-mem {
215 regulator-off-in-suspend;
220 regulator-name = "vdd_gpu";
221 regulator-min-microvolt = <850000>;
222 regulator-max-microvolt = <1250000>;
225 regulator-state-mem {
226 regulator-on-in-suspend;
227 regulator-suspend-microvolt = <1000000>;
232 regulator-name = "vcc_ddr";
235 regulator-state-mem {
236 regulator-on-in-suspend;
241 regulator-name = "vcc_io";
242 regulator-min-microvolt = <3300000>;
243 regulator-max-microvolt = <3300000>;
246 regulator-state-mem {
247 regulator-on-in-suspend;
248 regulator-suspend-microvolt = <3300000>;
253 regulator-name = "vcc_tp";
254 regulator-min-microvolt = <3300000>;
255 regulator-max-microvolt = <3300000>;
258 regulator-state-mem {
259 regulator-on-in-suspend;
260 regulator-suspend-microvolt = <3300000>;
264 vcc_codec: LDO_REG2 {
265 regulator-name = "vcc_codec";
266 regulator-min-microvolt = <3300000>;
267 regulator-max-microvolt = <3300000>;
270 regulator-state-mem {
271 regulator-off-in-suspend;
276 regulator-name = "vdd_10";
277 regulator-min-microvolt = <1000000>;
278 regulator-max-microvolt = <1000000>;
281 regulator-state-mem {
282 regulator-on-in-suspend;
283 regulator-suspend-microvolt = <1000000>;
288 regulator-name = "vcc_gps";
289 regulator-min-microvolt = <1800000>;
290 regulator-max-microvolt = <1800000>;
293 regulator-state-mem {
294 regulator-on-in-suspend;
295 regulator-suspend-microvolt = <1800000>;
300 regulator-name = "vccio_sd";
301 regulator-min-microvolt = <1800000>;
302 regulator-max-microvolt = <3300000>;
305 regulator-state-mem {
306 regulator-on-in-suspend;
307 regulator-suspend-microvolt = <3300000>;
311 vdd10_lcd: LDO_REG6 {
312 regulator-name = "vdd10_lcd";
313 regulator-min-microvolt = <1000000>;
314 regulator-max-microvolt = <1000000>;
317 regulator-state-mem {
318 regulator-on-in-suspend;
319 regulator-suspend-microvolt = <1000000>;
324 regulator-name = "vcc_18";
325 regulator-min-microvolt = <1800000>;
326 regulator-max-microvolt = <1800000>;
329 regulator-state-mem {
330 regulator-on-in-suspend;
331 regulator-suspend-microvolt = <1800000>;
335 vcc18_lcd: LDO_REG8 {
336 regulator-name = "vcc18_lcd";
337 regulator-min-microvolt = <1800000>;
338 regulator-max-microvolt = <1800000>;
341 regulator-state-mem {
342 regulator-on-in-suspend;
343 regulator-suspend-microvolt = <1800000>;
347 vcc_sd: SWITCH_REG1 {
348 regulator-name = "vcc_sd";
349 regulator-min-microvolt = <3300000>;
350 regulator-max-microvolt = <3300000>;
353 regulator-state-mem {
354 regulator-on-in-suspend;
358 vcc_lan: SWITCH_REG2 {
359 regulator-name = "vcc_lan";
360 regulator-min-microvolt = <3300000>;
361 regulator-max-microvolt = <3300000>;
364 regulator-state-mem {
365 regulator-on-in-suspend;
379 audio-supply = <&vcc_18>;
380 bb-supply = <&vcc_io>;
381 dvp-supply = <&vcc_io>;
382 flash0-suuply = <&vcc_18>;
383 flash1-supply = <&vcc_lan>;
384 gpio30-supply = <&vcc_io>;
385 gpio1830 = <&vcc_io>;
386 lcdc-supply = <&vcc_io>;
387 sdcard-supply = <&vccio_sd>;
388 wifi-supply = <&vcc_18>;
395 card-detect-delay = <200>;
397 pinctrl-names = "default";
398 pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>;
399 vmmc-supply = <&vcc_sd>;
400 vqmmc-supply = <&vccio_sd>;
405 rockchip,hw-tshut-mode = <1>; /* tshut mode 0:CRU 1:GPIO */
406 rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */
423 pinctrl-names = "default";
424 pinctrl-0 = <&phy_pwr_en>;
429 vbus-supply = <&vusb1_5v>;
454 pcfg_output_high: pcfg-output-high {
460 rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>;
464 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
468 rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_output_high>;
473 vcc50_hdmi_en: vcc50-hdmi-en {
474 rockchip,pins = <7 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
480 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
485 phy_pwr_en: phy-pwr-en {
486 rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_output_high>;
489 usb2_pwr_en: usb2-pwr-en {
490 rockchip,pins = <8 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
495 otg_vbus_drv: otg-vbus-drv {
496 rockchip,pins = <0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;