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>;
82 compatible = "regulator-fixed";
83 regulator-name = "vusb1_5v";
85 gpio = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>; /* OTG_VBUS_DRV */
86 pinctrl-names = "default";
87 pinctrl-0 = <&otg_vbus_drv>;
88 regulator-min-microvolt = <5000000>;
89 regulator-max-microvolt = <5000000>;
92 vin-supply = <&vsus_5v>;
96 compatible = "regulator-fixed";
97 regulator-name = "vusb2_5v";
99 gpio = <&gpio8 RK_PB1 GPIO_ACTIVE_HIGH>; /* USB2_PWR_EN */
100 pinctrl-names = "default";
101 pinctrl-0 = <&usb2_pwr_en>;
102 regulator-min-microvolt = <5000000>;
103 regulator-max-microvolt = <5000000>;
106 vin-supply = <&vsus_5v>;
109 ext_gmac: external-gmac-clock {
110 compatible = "fixed-clock";
112 clock-frequency = <125000000>;
113 clock-output-names = "ext_gmac";
118 cpu0-supply = <&vdd_cpu>;
126 pinctrl-names = "default";
127 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
128 vmmc-supply = <&vcc_io>;
133 assigned-clocks = <&cru SCLK_MAC>;
134 assigned-clock-parents = <&ext_gmac>;
135 clock_in_out = "input";
136 pinctrl-names = "default";
137 pinctrl-0 = <&rgmii_pins>, <&phy_rst>, <&phy_pmeb>, <&phy_int>;
138 phy-supply = <&vcc_lan>;
140 snps,reset-active-low;
141 snps,reset-delays-us = <0 10000 1000000>;
142 snps,reset-gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_LOW>;
149 mali-supply = <&vdd_gpu>;
154 ddc-i2c-bus = <&i2c2>;
159 clock-frequency = <400000>;
163 compatible = "rockchip,rk808";
165 interrupt-parent = <&gpio0>;
166 interrupts = <RK_PA4 IRQ_TYPE_LEVEL_LOW>;
168 clock-output-names = "xin32k", "rk808-clkout2";
169 pinctrl-names = "default";
170 pinctrl-0 = <&pmic_int &global_pwroff>;
171 rockchip,system-power-controller;
174 vcc1-supply = <&vcc_sys>;
175 vcc2-supply = <&vcc_sys>;
176 vcc3-supply = <&vcc_sys>;
177 vcc4-supply = <&vcc_sys>;
178 vcc6-supply = <&vcc_sys>;
179 vcc7-supply = <&vcc_sys>;
180 vcc8-supply = <&vcc_io>;
181 vcc9-supply = <&vcc_sys>;
182 vcc10-supply = <&vcc_sys>;
183 vcc11-supply = <&vcc_sys>;
184 vcc12-supply = <&vcc_io>;
188 regulator-name = "vdd_arm";
189 regulator-min-microvolt = <750000>;
190 regulator-max-microvolt = <1350000>;
193 regulator-state-mem {
194 regulator-off-in-suspend;
199 regulator-name = "vdd_gpu";
200 regulator-min-microvolt = <850000>;
201 regulator-max-microvolt = <1250000>;
204 regulator-state-mem {
205 regulator-on-in-suspend;
206 regulator-suspend-microvolt = <1000000>;
211 regulator-name = "vcc_ddr";
214 regulator-state-mem {
215 regulator-on-in-suspend;
220 regulator-name = "vcc_io";
221 regulator-min-microvolt = <3300000>;
222 regulator-max-microvolt = <3300000>;
225 regulator-state-mem {
226 regulator-on-in-suspend;
227 regulator-suspend-microvolt = <3300000>;
232 regulator-name = "vcc_tp";
233 regulator-min-microvolt = <3300000>;
234 regulator-max-microvolt = <3300000>;
237 regulator-state-mem {
238 regulator-on-in-suspend;
239 regulator-suspend-microvolt = <3300000>;
243 vcc_codec: LDO_REG2 {
244 regulator-name = "vcc_codec";
245 regulator-min-microvolt = <3300000>;
246 regulator-max-microvolt = <3300000>;
249 regulator-state-mem {
250 regulator-off-in-suspend;
255 regulator-name = "vdd_10";
256 regulator-min-microvolt = <1000000>;
257 regulator-max-microvolt = <1000000>;
260 regulator-state-mem {
261 regulator-on-in-suspend;
262 regulator-suspend-microvolt = <1000000>;
267 regulator-name = "vcc_gps";
268 regulator-min-microvolt = <1800000>;
269 regulator-max-microvolt = <1800000>;
272 regulator-state-mem {
273 regulator-on-in-suspend;
274 regulator-suspend-microvolt = <1800000>;
279 regulator-name = "vccio_sd";
280 regulator-min-microvolt = <1800000>;
281 regulator-max-microvolt = <3300000>;
284 regulator-state-mem {
285 regulator-on-in-suspend;
286 regulator-suspend-microvolt = <3300000>;
290 vcc10_lcd: LDO_REG6 {
291 regulator-name = "vcc10_lcd";
292 regulator-min-microvolt = <1000000>;
293 regulator-max-microvolt = <1000000>;
296 regulator-state-mem {
297 regulator-on-in-suspend;
298 regulator-suspend-microvolt = <1800000>;
303 regulator-name = "vcc_18";
304 regulator-min-microvolt = <1800000>;
305 regulator-max-microvolt = <1800000>;
308 regulator-state-mem {
309 regulator-on-in-suspend;
310 regulator-suspend-microvolt = <1800000>;
314 vcc18_lcd: LDO_REG8 {
315 regulator-name = "vcc18_lcd";
316 regulator-min-microvolt = <1800000>;
317 regulator-max-microvolt = <1800000>;
320 regulator-state-mem {
321 regulator-on-in-suspend;
322 regulator-suspend-microvolt = <1800000>;
326 vcc_sd: SWITCH_REG1 {
327 regulator-name = "vcc_sd";
328 regulator-min-microvolt = <3300000>;
329 regulator-max-microvolt = <3300000>;
332 regulator-state-mem {
333 regulator-on-in-suspend;
337 vcc_lan: SWITCH_REG2 {
338 regulator-name = "vcc_lan";
339 regulator-min-microvolt = <3300000>;
340 regulator-max-microvolt = <3300000>;
343 regulator-state-mem {
344 regulator-on-in-suspend;
358 audio-supply = <&vcc_18>;
359 bb-supply = <&vcc_io>;
360 dvp-supply = <&vcc_io>;
361 flash0-suuply = <&vcc_18>;
362 flash1-supply = <&vcc_lan>;
363 gpio30-supply = <&vcc_io>;
364 gpio1830 = <&vcc_io>;
365 lcdc-supply = <&vcc_io>;
366 sdcard-supply = <&vccio_sd>;
367 wifi-supply = <&vcc_18>;
374 card-detect-delay = <200>;
376 pinctrl-names = "default";
377 pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>;
378 vmmc-supply = <&vcc_sd>;
379 vqmmc-supply = <&vccio_sd>;
384 rockchip,hw-tshut-mode = <1>; /* tshut mode 0:CRU 1:GPIO */
385 rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */
402 pinctrl-names = "default";
403 pinctrl-0 = <&phy_pwr_en>;
432 pcfg_output_high: pcfg-output-high {
438 rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>;
442 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
446 rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_output_high>;
452 rockchip,pins = <RK_GPIO0 4 RK_FUNC_GPIO &pcfg_pull_up>;
457 phy_pwr_en: phy-pwr-en {
458 rockchip,pins = <RK_GPIO2 RK_PB1 RK_FUNC_GPIO &pcfg_output_high>;
461 usb2_pwr_en: usb2-pwr-en {
462 rockchip,pins = <8 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
467 otg_vbus_drv: otg-vbus-drv {
468 rockchip,pins = <RK_GPIO0 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;