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>
12 compatible = "vamrs,rk3288-vmarc-som", "rockchip,rk3288";
14 vccio_flash: vccio-flash-regulator {
15 compatible = "regulator-fixed";
16 regulator-name = "vccio_flash";
17 regulator-min-microvolt = <1800000>;
18 regulator-max-microvolt = <1800000>;
19 vin-supply = <&vcc_io>;
28 pinctrl-names = "default";
29 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>;
30 vmmc-supply = <&vcc_io>;
31 vqmmc-supply = <&vccio_flash>;
36 assigned-clocks = <&cru SCLK_MAC>;
37 phy-supply = <&vcc_io>;
38 snps,reset-gpio = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
42 ddc-i2c-bus = <&i2c5>;
43 pinctrl-names = "default";
44 pinctrl-0 = <&hdmi_cec_c0>;
48 clock-frequency = <400000>;
52 compatible = "rockchip,rk808";
54 interrupt-parent = <&gpio0>;
55 interrupts = <RK_PA4 IRQ_TYPE_LEVEL_LOW>;
56 pinctrl-names = "default";
57 pinctrl-0 = <&pmic_int &global_pwroff>;
58 rockchip,system-power-controller;
61 clock-output-names = "rk808-clkout1", "rk808-clkout2";
63 vcc1-supply = <&vcc5v0_sys>;
64 vcc2-supply = <&vcc5v0_sys>;
65 vcc3-supply = <&vcc5v0_sys>;
66 vcc4-supply = <&vcc5v0_sys>;
67 vcc6-supply = <&vcc5v0_sys>;
68 vcc7-supply = <&vcc5v0_sys>;
69 vcc8-supply = <&vcc_io>;
70 vcc9-supply = <&vcc_io>;
71 vcc10-supply = <&vcc5v0_sys>;
72 vcc11-supply = <&vcc5v0_sys>;
73 vcc12-supply = <&vcc_io>;
74 vddio-supply = <&vcc_io>;
78 regulator-name = "vdd_arm";
81 regulator-min-microvolt = <750000>;
82 regulator-max-microvolt = <1400000>;
84 regulator-off-in-suspend;
89 regulator-name = "vdd_gpu";
92 regulator-min-microvolt = <850000>;
93 regulator-max-microvolt = <1250000>;
94 regulator-ramp-delay = <6000>;
96 regulator-off-in-suspend;
101 regulator-name = "vcc_ddr";
104 regulator-state-mem {
105 regulator-on-in-suspend;
110 regulator-name = "vcc_io";
113 regulator-min-microvolt = <3300000>;
114 regulator-max-microvolt = <3300000>;
115 regulator-state-mem {
116 regulator-on-in-suspend;
117 regulator-suspend-microvolt = <3300000>;
122 regulator-name = "vcc_tp";
125 regulator-min-microvolt = <3300000>;
126 regulator-max-microvolt = <3300000>;
127 regulator-state-mem {
128 regulator-off-in-suspend;
132 vcca_codec: LDO_REG2 {
133 regulator-name = "vcca_codec";
136 regulator-min-microvolt = <3300000>;
137 regulator-max-microvolt = <3300000>;
138 regulator-state-mem {
139 regulator-on-in-suspend;
140 regulator-suspend-microvolt = <3300000>;
145 regulator-name = "vdd_10";
148 regulator-min-microvolt = <1000000>;
149 regulator-max-microvolt = <1000000>;
150 regulator-state-mem {
151 regulator-on-in-suspend;
152 regulator-suspend-microvolt = <1000000>;
157 regulator-name = "vcc_wl";
160 regulator-min-microvolt = <1800000>;
161 regulator-max-microvolt = <1800000>;
162 regulator-state-mem {
163 regulator-on-in-suspend;
168 regulator-name = "vccio_sd";
171 regulator-min-microvolt = <1800000>;
172 regulator-max-microvolt = <3300000>;
173 regulator-state-mem {
174 regulator-on-in-suspend;
175 regulator-suspend-microvolt = <3300000>;
179 vdd10_lcd: LDO_REG6 {
180 regulator-name = "vdd10_lcd";
183 regulator-min-microvolt = <1000000>;
184 regulator-max-microvolt = <1000000>;
185 regulator-state-mem {
186 regulator-off-in-suspend;
191 regulator-name = "vcc_18";
194 regulator-min-microvolt = <1800000>;
195 regulator-max-microvolt = <1800000>;
196 regulator-state-mem {
197 regulator-on-in-suspend;
198 regulator-suspend-microvolt = <1800000>;
202 vcc18_lcd: LDO_REG8 {
203 regulator-name = "vcc18_lcd";
206 regulator-min-microvolt = <1800000>;
207 regulator-max-microvolt = <1800000>;
208 regulator-state-mem {
209 regulator-off-in-suspend;
213 vcc_sd: SWITCH_REG1 {
214 regulator-name = "vcc_sd";
217 regulator-state-mem {
218 regulator-off-in-suspend;
222 vcc_lcd: SWITCH_REG2 {
223 regulator-name = "vcc_lcd";
226 regulator-state-mem {
227 regulator-off-in-suspend;
239 pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
240 drive-strength = <8>;
243 pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
245 drive-strength = <8>;
250 rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
255 sdmmc_bus4: sdmmc-bus4 {
257 <6 RK_PC0 1 &pcfg_pull_up_drv_8ma>,
258 <6 RK_PC1 1 &pcfg_pull_up_drv_8ma>,
259 <6 RK_PC2 1 &pcfg_pull_up_drv_8ma>,
260 <6 RK_PC3 1 &pcfg_pull_up_drv_8ma>;
263 sdmmc_clk: sdmmc-clk {
264 rockchip,pins = <6 RK_PC4 1 &pcfg_pull_none_drv_8ma>;
267 sdmmc_cmd: sdmmc-cmd {
268 rockchip,pins = <6 RK_PC5 1 &pcfg_pull_up_drv_8ma>;
273 usb1_en_oc: usb1-en-oc {
274 rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_up>;
279 usb0_en_oc: usb0-en-oc {
280 rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>;
307 gpio = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>; /* USB1_EN_OC# */
312 gpio = <&gpio0 RK_PB5 GPIO_ACTIVE_HIGH>; /* USB0_EN_OC# */