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";
20 vcc3v3_pcie: vcc-pcie-regulator {
21 compatible = "regulator-fixed";
23 gpio = <&gpio4 RK_PD4 GPIO_ACTIVE_HIGH>;
24 pinctrl-names = "default";
25 pinctrl-0 = <&pcie_pwr>;
26 regulator-name = "vcc3v3_pcie";
29 vin-supply = <&vcc5v0_sys>;
34 cpu-supply = <&vdd_cpu_l>;
38 cpu-supply = <&vdd_cpu_l>;
42 cpu-supply = <&vdd_cpu_l>;
46 cpu-supply = <&vdd_cpu_l>;
54 assigned-clocks = <&cru SCLK_RMII_SRC>;
55 phy-supply = <&vcc_lan>;
56 snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
60 ddc-i2c-bus = <&i2c3>;
61 pinctrl-names = "default";
62 pinctrl-0 = <&hdmi_cec>;
66 clock-frequency = <400000>;
67 i2c-scl-falling-time-ns = <30>;
68 i2c-scl-rising-time-ns = <180>;
72 compatible = "rockchip,rk809";
74 interrupt-parent = <&gpio1>;
75 interrupts = <RK_PC2 IRQ_TYPE_LEVEL_LOW>;
77 clock-output-names = "rk808-clkout1", "rk808-clkout2";
78 pinctrl-names = "default";
79 pinctrl-0 = <&pmic_int_l>;
80 rockchip,system-power-controller;
83 vcc1-supply = <&vcc5v0_sys>;
84 vcc2-supply = <&vcc5v0_sys>;
85 vcc3-supply = <&vcc5v0_sys>;
86 vcc4-supply = <&vcc5v0_sys>;
87 vcc5-supply = <&vcc_buck5>;
88 vcc6-supply = <&vcc_buck5>;
89 vcc7-supply = <&vcc5v0_sys>;
90 vcc8-supply = <&vcc3v3_sys>;
91 vcc9-supply = <&vcc5v0_sys>;
95 regulator-name = "vdd_log";
98 regulator-min-microvolt = <750000>;
99 regulator-max-microvolt = <1350000>;
100 regulator-initial-mode = <0x2>;
101 regulator-state-mem {
102 regulator-off-in-suspend;
103 regulator-suspend-microvolt = <900000>;
107 vdd_cpu_l: DCDC_REG2 {
108 regulator-name = "vdd_cpu_l";
111 regulator-min-microvolt = <750000>;
112 regulator-max-microvolt = <1350000>;
113 regulator-ramp-delay = <6001>;
114 regulator-initial-mode = <0x2>;
115 regulator-state-mem {
116 regulator-off-in-suspend;
121 regulator-name = "vcc_ddr";
124 regulator-initial-mode = <0x2>;
125 regulator-state-mem {
126 regulator-on-in-suspend;
130 vcc3v3_sys: DCDC_REG4 {
131 regulator-name = "vcc3v3_sys";
134 regulator-min-microvolt = <3300000>;
135 regulator-max-microvolt = <3300000>;
136 regulator-initial-mode = <0x2>;
137 regulator-state-mem {
138 regulator-on-in-suspend;
139 regulator-suspend-microvolt = <3300000>;
143 vcc_buck5: DCDC_REG5 {
144 regulator-name = "vcc_buck5";
147 regulator-min-microvolt = <2200000>;
148 regulator-max-microvolt = <2200000>;
149 regulator-state-mem {
150 regulator-on-in-suspend;
151 regulator-suspend-microvolt = <2200000>;
156 regulator-name = "vcca_0v9";
159 regulator-min-microvolt = <900000>;
160 regulator-max-microvolt = <900000>;
161 regulator-state-mem {
162 regulator-on-in-suspend;
163 regulator-suspend-microvolt = <900000>;
168 regulator-name = "vcc_1v8";
171 regulator-min-microvolt = <1800000>;
172 regulator-max-microvolt = <1800000>;
173 regulator-state-mem {
174 regulator-on-in-suspend;
175 regulator-suspend-microvolt = <1800000>;
180 regulator-name = "vcc_0v9";
183 regulator-min-microvolt = <900000>;
184 regulator-max-microvolt = <900000>;
185 regulator-state-mem {
186 regulator-on-in-suspend;
187 regulator-suspend-microvolt = <900000>;
192 regulator-name = "vcca_1v8";
195 regulator-min-microvolt = <1850000>;
196 regulator-max-microvolt = <1850000>;
197 regulator-state-mem {
198 regulator-on-in-suspend;
199 regulator-suspend-microvolt = <1850000>;
204 * As per BSP, but schematic not showing any regulator
207 vdd1v5_dvp: LDO_REG5 {
208 regulator-name = "vdd1v5_dvp";
211 regulator-min-microvolt = <1500000>;
212 regulator-max-microvolt = <1500000>;
213 regulator-state-mem {
214 regulator-off-in-suspend;
219 regulator-name = "vcc_1v5";
222 regulator-min-microvolt = <1500000>;
223 regulator-max-microvolt = <1500000>;
224 regulator-state-mem {
225 regulator-off-in-suspend;
229 vccio_3v0: LDO_REG7 {
230 regulator-name = "vccio_3v0";
233 regulator-min-microvolt = <3000000>;
234 regulator-max-microvolt = <3000000>;
235 regulator-state-mem {
236 regulator-off-in-suspend;
241 regulator-name = "vccio_sd";
244 regulator-min-microvolt = <1800000>;
245 regulator-max-microvolt = <3300000>;
246 regulator-state-mem {
247 regulator-off-in-suspend;
252 * As per BSP, but schematic not showing any regulator
256 regulator-name = "vcc_sd";
259 regulator-min-microvolt = <3300000>;
260 regulator-max-microvolt = <3300000>;
261 regulator-state-mem {
262 regulator-off-in-suspend;
266 vcc5v0_usb2: SWITCH_REG1 {
267 regulator-name = "vcc5v0_usb2";
268 regulator-min-microvolt = <5000000>;
269 regulator-max-microvolt = <5000000>;
270 regulator-state-mem {
271 regulator-on-in-suspend;
272 regulator-suspend-microvolt = <5000000>;
276 vccio_3v3: vcc_lan: SWITCH_REG2 {
277 regulator-name = "vccio_3v3";
280 regulator-min-microvolt = <3300000>;
281 regulator-max-microvolt = <3300000>;
282 regulator-state-mem {
283 regulator-off-in-suspend;
291 i2c-scl-falling-time-ns = <30>;
292 i2c-scl-rising-time-ns = <140>;
297 clock-frequency = <400000>;
301 compatible = "haoyu,hym8563";
304 clock-output-names = "hym8563";
305 pinctrl-names = "default";
306 pinctrl-0 = <&hym8563_int>;
307 interrupt-parent = <&gpio4>;
308 interrupts = <RK_PD6 IRQ_TYPE_LEVEL_LOW>;
313 i2c-scl-rising-time-ns = <450>;
314 i2c-scl-falling-time-ns = <15>;
320 bt656-supply = <&vcca_1v8>;
321 gpio1830-supply = <&vccio_3v0>;
322 sdmmc-supply = <&vccio_sd>;
330 ep-gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
332 pinctrl-0 = <&pcie_clkreqnb_cpm>;
333 pinctrl-names = "default";
334 vpcie0v9-supply = <&vcca_0v9>; /* VCC_0V9_S0 */
335 vpcie1v8-supply = <&vcca_1v8>; /* VCC_1V8_S0 */
336 vpcie3v3-supply = <&vcc3v3_pcie>;
342 hym8563_int: hym8563-int {
343 rockchip,pins = <4 RK_PD6 0 &pcfg_pull_up>;
349 rockchip,pins = <4 RK_PD4 RK_FUNC_GPIO &pcfg_pull_up>;
354 pmic_int_l: pmic-int-l {
355 rockchip,pins = <1 RK_PC2 0 &pcfg_pull_up>;
360 wifi_enable_h: wifi-enable-h {
361 rockchip,pins = <2 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
366 usb1_en_oc: usb1-en-oc {
367 rockchip,pins = <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_up>;
372 usb0_en_oc: usb0-en-oc {
373 rockchip,pins = <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up>;
380 pmu1830-supply = <&vcc_1v8>;
385 * On the module itself this is one of these (depending
386 * on the actual card populated):
387 * - SDIO_RESET_L_WL_REG_ON
388 * - PDN (power down when low)
390 reset-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>;
396 mmc-hs400-enhanced-strobe;
402 cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
403 max-frequency = <150000000>;
411 rockchip,hw-tshut-mode = <1>;
412 rockchip,hw-tshut-polarity = <1>;
419 u2phy0_otg: otg-port {
420 phy-supply = <&vbus_typec>;
424 u2phy0_host: host-port {
425 phy-supply = <&vbus_host>;
434 u2phy1_host: host-port {
435 phy-supply = <&vbus_host>;
466 gpio = <&gpio4 RK_PD1 GPIO_ACTIVE_HIGH>; /* USB1_EN_OC# */
467 pinctrl-names = "default";
468 pinctrl-0 = <&usb1_en_oc>;
473 gpio = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>; /* USB0_EN_OC# */
474 pinctrl-names = "default";
475 pinctrl-0 = <&usb0_en_oc>;