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,rk3399pro-vmarc-som", "rockchip,rk3399pro";
15 clkin_gmac: external-gmac-clock {
16 compatible = "fixed-clock";
17 clock-frequency = <125000000>;
18 clock-output-names = "clkin_gmac";
22 vcc12v_dcin: vcc12v-dcin-regulator {
23 compatible = "regulator-fixed";
24 regulator-name = "vcc12v_dcin";
27 regulator-min-microvolt = <12000000>;
28 regulator-max-microvolt = <12000000>;
31 vcc5v0_sys: vcc5v0-sys-regulator {
32 compatible = "regulator-fixed";
33 regulator-name = "vcc5v0_sys";
36 regulator-min-microvolt = <5000000>;
37 regulator-max-microvolt = <5000000>;
38 vin-supply = <&vcc12v_dcin>;
43 cpu-supply = <&vdd_cpu_l>;
47 cpu-supply = <&vdd_cpu_l>;
51 cpu-supply = <&vdd_cpu_l>;
55 cpu-supply = <&vdd_cpu_l>;
63 assigned-clocks = <&cru SCLK_RMII_SRC>;
64 assigned-clock-parents = <&clkin_gmac>;
65 clock_in_out = "input";
66 phy-supply = <&vcc_lan>;
68 pinctrl-names = "default";
69 pinctrl-0 = <&rgmii_pins>;
70 snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
71 snps,reset-active-low;
72 snps,reset-delays-us = <0 10000 50000>;
78 clock-frequency = <400000>;
79 i2c-scl-rising-time-ns = <180>;
80 i2c-scl-falling-time-ns = <30>;
84 compatible = "rockchip,rk809";
86 interrupt-parent = <&gpio1>;
87 interrupts = <RK_PC2 IRQ_TYPE_LEVEL_LOW>;
89 clock-output-names = "rk808-clkout1", "rk808-clkout2";
90 pinctrl-names = "default";
91 pinctrl-0 = <&pmic_int_l>;
92 rockchip,system-power-controller;
95 vcc1-supply = <&vcc5v0_sys>;
96 vcc2-supply = <&vcc5v0_sys>;
97 vcc3-supply = <&vcc5v0_sys>;
98 vcc4-supply = <&vcc5v0_sys>;
99 vcc5-supply = <&vcc_buck5>;
100 vcc6-supply = <&vcc_buck5>;
101 vcc7-supply = <&vcc5v0_sys>;
102 vcc8-supply = <&vcc3v3_sys>;
103 vcc9-supply = <&vcc5v0_sys>;
107 regulator-name = "vdd_log";
110 regulator-min-microvolt = <750000>;
111 regulator-max-microvolt = <1350000>;
112 regulator-initial-mode = <0x2>;
113 regulator-state-mem {
114 regulator-off-in-suspend;
115 regulator-suspend-microvolt = <900000>;
119 vdd_cpu_l: DCDC_REG2 {
120 regulator-name = "vdd_cpu_l";
123 regulator-min-microvolt = <750000>;
124 regulator-max-microvolt = <1350000>;
125 regulator-ramp-delay = <6001>;
126 regulator-initial-mode = <0x2>;
127 regulator-state-mem {
128 regulator-off-in-suspend;
133 regulator-name = "vcc_ddr";
136 regulator-initial-mode = <0x2>;
137 regulator-state-mem {
138 regulator-on-in-suspend;
142 vcc3v3_sys: DCDC_REG4 {
143 regulator-name = "vcc3v3_sys";
146 regulator-min-microvolt = <3300000>;
147 regulator-max-microvolt = <3300000>;
148 regulator-initial-mode = <0x2>;
149 regulator-state-mem {
150 regulator-on-in-suspend;
151 regulator-suspend-microvolt = <3300000>;
155 vcc_buck5: DCDC_REG5 {
156 regulator-name = "vcc_buck5";
159 regulator-min-microvolt = <2200000>;
160 regulator-max-microvolt = <2200000>;
161 regulator-state-mem {
162 regulator-on-in-suspend;
163 regulator-suspend-microvolt = <2200000>;
168 regulator-name = "vcca_0v9";
171 regulator-min-microvolt = <900000>;
172 regulator-max-microvolt = <900000>;
173 regulator-state-mem {
174 regulator-off-in-suspend;
179 regulator-name = "vcc_1v8";
182 regulator-min-microvolt = <1800000>;
183 regulator-max-microvolt = <1800000>;
184 regulator-state-mem {
185 regulator-on-in-suspend;
186 regulator-suspend-microvolt = <1800000>;
191 regulator-name = "vcc_0v9";
194 regulator-min-microvolt = <900000>;
195 regulator-max-microvolt = <900000>;
196 regulator-state-mem {
197 regulator-on-in-suspend;
198 regulator-suspend-microvolt = <900000>;
203 regulator-name = "vcca_1v8";
206 regulator-min-microvolt = <1850000>;
207 regulator-max-microvolt = <1850000>;
208 regulator-state-mem {
209 regulator-off-in-suspend;
214 * As per BSP, but schematic not showing any regulator
217 vdd1v5_dvp: LDO_REG5 {
218 regulator-name = "vdd1v5_dvp";
221 regulator-min-microvolt = <1500000>;
222 regulator-max-microvolt = <1500000>;
223 regulator-state-mem {
224 regulator-off-in-suspend;
229 regulator-name = "vcc_1v5";
232 regulator-min-microvolt = <1500000>;
233 regulator-max-microvolt = <1500000>;
234 regulator-state-mem {
235 regulator-off-in-suspend;
239 vccio_3v0: LDO_REG7 {
240 regulator-name = "vccio_3v0";
243 regulator-min-microvolt = <3000000>;
244 regulator-max-microvolt = <3000000>;
245 regulator-state-mem {
246 regulator-off-in-suspend;
251 regulator-name = "vccio_sd";
254 regulator-min-microvolt = <1800000>;
255 regulator-max-microvolt = <3300000>;
256 regulator-state-mem {
257 regulator-off-in-suspend;
262 * As per BSP, but schematic not showing any regulator
266 regulator-name = "vcc_sd";
269 regulator-min-microvolt = <3300000>;
270 regulator-max-microvolt = <3300000>;
271 regulator-state-mem {
272 regulator-off-in-suspend;
276 vcc5v0_usb2: SWITCH_REG1 {
277 regulator-name = "vcc5v0_usb2";
278 regulator-min-microvolt = <5000000>;
279 regulator-max-microvolt = <5000000>;
280 regulator-state-mem {
281 regulator-on-in-suspend;
282 regulator-suspend-microvolt = <5000000>;
286 vccio_3v3: vcc_lan: SWITCH_REG2 {
287 regulator-name = "vccio_3v3";
290 regulator-min-microvolt = <3300000>;
291 regulator-max-microvolt = <3300000>;
292 regulator-state-mem {
293 regulator-off-in-suspend;
302 bt656-supply = <&vcca_1v8>;
303 sdmmc-supply = <&vccio_sd>;
304 gpio1830-supply = <&vccio_3v0>;
309 pmu1830-supply = <&vcc_1v8>;
315 mmc-hs400-enhanced-strobe;
322 rockchip,hw-tshut-mode = <1>;
323 rockchip,hw-tshut-polarity = <1>;
328 pmic_int_l: pmic-int-l {
330 <1 RK_PC2 0 &pcfg_pull_up>;