1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
4 * Copyright (c) 2019 Vamrs Limited
5 * Copyright (c) 2019 Amarula Solutions(India)
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/pinctrl/rockchip.h>
10 #include <dt-bindings/pwm/pwm.h>
13 compatible = "vamrs,rk3288-vmarc-som", "rockchip,rk3288";
15 ext_gmac: external-gmac-clock {
16 compatible = "fixed-clock";
17 clock-frequency = <125000000>;
18 clock-output-names = "ext_gmac";
22 vccio_flash: vccio-flash-regulator {
23 compatible = "regulator-fixed";
24 regulator-name = "vccio_flash";
25 regulator-min-microvolt = <1800000>;
26 regulator-max-microvolt = <1800000>;
27 startup-delay-us = <150>;
28 vin-supply = <&vcc_io>;
31 vcc_sys: vsys-regulator {
32 compatible = "regulator-fixed";
33 regulator-name = "vcc_sys";
34 regulator-min-microvolt = <5000000>;
35 regulator-max-microvolt = <5000000>;
46 pinctrl-names = "default";
47 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
52 assigned-clocks = <&cru SCLK_MAC>;
53 assigned-clock-parents = <&ext_gmac>;
54 clock_in_out = "input";
56 phy-supply = <&vcc_io>;
57 pinctrl-names = "default";
58 pinctrl-0 = <&rgmii_pins>;
59 snps,reset-gpio = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
60 snps,reset-active-low;
61 snps,reset-delays-us = <0 10000 50000>;
68 clock-frequency = <400000>;
72 compatible = "rockchip,rk808";
74 interrupt-parent = <&gpio0>;
75 interrupts = <RK_PA4 IRQ_TYPE_LEVEL_LOW>;
76 pinctrl-names = "default";
77 pinctrl-0 = <&pmic_int &global_pwroff>;
78 rockchip,system-power-controller;
81 clock-output-names = "rk808-clkout1", "rk808-clkout2";
83 vcc1-supply = <&vcc_sys>;
84 vcc2-supply = <&vcc_sys>;
85 vcc3-supply = <&vcc_sys>;
86 vcc4-supply = <&vcc_sys>;
87 vcc6-supply = <&vcc_sys>;
88 vcc7-supply = <&vcc_sys>;
89 vcc8-supply = <&vcc_io>;
90 vcc9-supply = <&vcc_io>;
91 vcc10-supply = <&vcc_sys>;
92 vcc11-supply = <&vcc_sys>;
93 vcc12-supply = <&vcc_io>;
94 vddio-supply = <&vcc_io>;
100 regulator-min-microvolt = <750000>;
101 regulator-max-microvolt = <1400000>;
102 regulator-name = "vdd_arm";
103 regulator-state-mem {
104 regulator-off-in-suspend;
111 regulator-min-microvolt = <850000>;
112 regulator-max-microvolt = <1250000>;
113 regulator-name = "vdd_gpu";
114 regulator-ramp-delay = <6000>;
115 regulator-state-mem {
116 regulator-off-in-suspend;
123 regulator-name = "vcc_ddr";
124 regulator-state-mem {
125 regulator-on-in-suspend;
132 regulator-min-microvolt = <3300000>;
133 regulator-max-microvolt = <3300000>;
134 regulator-name = "vcc_io";
135 regulator-state-mem {
136 regulator-on-in-suspend;
137 regulator-suspend-microvolt = <3300000>;
144 regulator-min-microvolt = <3300000>;
145 regulator-max-microvolt = <3300000>;
146 regulator-name = "vcc_tp";
147 regulator-state-mem {
148 regulator-off-in-suspend;
152 vcca_codec: LDO_REG2 {
155 regulator-min-microvolt = <3300000>;
156 regulator-max-microvolt = <3300000>;
157 regulator-name = "vcca_codec";
158 regulator-state-mem {
159 regulator-on-in-suspend;
160 regulator-suspend-microvolt = <3300000>;
167 regulator-min-microvolt = <1000000>;
168 regulator-max-microvolt = <1000000>;
169 regulator-name = "vdd_10";
170 regulator-state-mem {
171 regulator-on-in-suspend;
172 regulator-suspend-microvolt = <1000000>;
179 regulator-min-microvolt = <1800000>;
180 regulator-max-microvolt = <1800000>;
181 regulator-name = "vcc_wl";
182 regulator-state-mem {
183 regulator-on-in-suspend;
190 regulator-min-microvolt = <1800000>;
191 regulator-max-microvolt = <3300000>;
192 regulator-name = "vccio_sd";
193 regulator-state-mem {
194 regulator-on-in-suspend;
195 regulator-suspend-microvolt = <3300000>;
199 vdd10_lcd: LDO_REG6 {
202 regulator-min-microvolt = <1000000>;
203 regulator-max-microvolt = <1000000>;
204 regulator-name = "vdd10_lcd";
205 regulator-state-mem {
206 regulator-off-in-suspend;
213 regulator-min-microvolt = <1800000>;
214 regulator-max-microvolt = <1800000>;
215 regulator-name = "vcc_18";
216 regulator-state-mem {
217 regulator-on-in-suspend;
218 regulator-suspend-microvolt = <1800000>;
222 vcc18_lcd: LDO_REG8 {
225 regulator-min-microvolt = <1800000>;
226 regulator-max-microvolt = <1800000>;
227 regulator-name = "vcc18_lcd";
228 regulator-state-mem {
229 regulator-off-in-suspend;
233 vcc_sd: SWITCH_REG1 {
236 regulator-name = "vcc_sd";
237 regulator-state-mem {
238 regulator-off-in-suspend;
242 vcc_lcd: SWITCH_REG2 {
245 regulator-name = "vcc_lcd";
246 regulator-state-mem {
247 regulator-off-in-suspend;
255 bb-supply = <&vcc_io>;
256 flash0-supply = <&vccio_flash>;
257 gpio1830-supply = <&vcc_18>;
258 gpio30-supply = <&vcc_io>;
259 sdcard-supply = <&vccio_sd>;
264 pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
265 drive-strength = <8>;
268 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
270 drive-strength = <8>;
275 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
280 sdmmc_bus4: sdmmc-bus4 {
282 <6 RK_PC0 1 &pcfg_pull_up_drv_8ma>,
283 <6 RK_PC1 1 &pcfg_pull_up_drv_8ma>,
284 <6 RK_PC2 1 &pcfg_pull_up_drv_8ma>,
285 <6 RK_PC3 1 &pcfg_pull_up_drv_8ma>;
288 sdmmc_clk: sdmmc-clk {
290 <6 RK_PC4 1 &pcfg_pull_none_drv_8ma>;
293 sdmmc_cmd: sdmmc-cmd {
295 <6 RK_PC5 1 &pcfg_pull_up_drv_8ma>;