1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2017 T-Chip Intelligent Technology Co., Ltd
10 model = "Firefly roc-rk3328-cc";
11 compatible = "firefly,roc-rk3328-cc", "rockchip,rk3328";
14 stdout-path = "serial2:1500000n8";
17 gmac_clkin: external-gmac-clock {
18 compatible = "fixed-clock";
19 clock-frequency = <125000000>;
20 clock-output-names = "gmac_clkin";
25 compatible = "regulator-fixed";
26 regulator-name = "dc_12v";
29 regulator-min-microvolt = <12000000>;
30 regulator-max-microvolt = <12000000>;
33 vcc_sd: sdmmc-regulator {
34 compatible = "regulator-fixed";
35 gpio = <&gpio0 RK_PD6 GPIO_ACTIVE_LOW>;
36 pinctrl-names = "default";
37 pinctrl-0 = <&sdmmc0m1_gpio>;
39 regulator-name = "vcc_sd";
40 regulator-min-microvolt = <3300000>;
41 regulator-max-microvolt = <3300000>;
42 vin-supply = <&vcc_io>;
45 vcc_sdio: sdmmcio-regulator {
46 compatible = "regulator-gpio";
47 gpios = <&grf_gpio 0 GPIO_ACTIVE_HIGH>;
50 regulator-name = "vcc_sdio";
51 regulator-type = "voltage";
52 regulator-min-microvolt = <1800000>;
53 regulator-max-microvolt = <3300000>;
55 vin-supply = <&vcc_sys>;
58 vcc_host1_5v: vcc_otg_5v: vcc-host1-5v-regulator {
59 compatible = "regulator-fixed";
61 gpio = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>;
62 pinctrl-names = "default";
63 pinctrl-0 = <&usb20_host_drv>;
64 regulator-name = "vcc_host1_5v";
66 vin-supply = <&vcc_sys>;
70 compatible = "regulator-fixed";
71 regulator-name = "vcc_sys";
74 regulator-min-microvolt = <5000000>;
75 regulator-max-microvolt = <5000000>;
76 vin-supply = <&dc_12v>;
79 vcc_phy: vcc-phy-regulator {
80 compatible = "regulator-fixed";
81 regulator-name = "vcc_phy";
87 compatible = "gpio-leds";
90 label = "firefly:blue:power";
91 linux,default-trigger = "heartbeat";
92 gpios = <&rk805 1 GPIO_ACTIVE_LOW>;
98 label = "firefly:yellow:user";
99 linux,default-trigger = "mmc1";
100 gpios = <&rk805 0 GPIO_ACTIVE_LOW>;
101 default-state = "off";
108 cpu-supply = <&vdd_arm>;
112 cpu-supply = <&vdd_arm>;
116 cpu-supply = <&vdd_arm>;
120 cpu-supply = <&vdd_arm>;
126 max-frequency = <150000000>;
130 pinctrl-names = "default";
131 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
132 vmmc-supply = <&vcc_io>;
133 vqmmc-supply = <&vcc18_emmc>;
138 assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>;
139 assigned-clock-parents = <&gmac_clkin>, <&gmac_clkin>;
140 clock_in_out = "input";
141 phy-supply = <&vcc_phy>;
143 pinctrl-names = "default";
144 pinctrl-0 = <&rgmiim1_pins>;
146 snps,reset-gpio = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
147 snps,reset-active-low;
148 snps,reset-delays-us = <0 10000 50000>;
168 compatible = "rockchip,rk805";
170 interrupt-parent = <&gpio1>;
171 interrupts = <24 IRQ_TYPE_LEVEL_LOW>;
173 clock-output-names = "xin32k", "rk805-clkout2";
176 pinctrl-names = "default";
177 pinctrl-0 = <&pmic_int_l>;
178 rockchip,system-power-controller;
181 vcc1-supply = <&vcc_sys>;
182 vcc2-supply = <&vcc_sys>;
183 vcc3-supply = <&vcc_sys>;
184 vcc4-supply = <&vcc_sys>;
185 vcc5-supply = <&vcc_io>;
186 vcc6-supply = <&vcc_io>;
189 vdd_logic: DCDC_REG1 {
190 regulator-name = "vdd_logic";
191 regulator-min-microvolt = <712500>;
192 regulator-max-microvolt = <1450000>;
195 regulator-state-mem {
196 regulator-on-in-suspend;
197 regulator-suspend-microvolt = <1000000>;
202 regulator-name = "vdd_arm";
203 regulator-min-microvolt = <712500>;
204 regulator-max-microvolt = <1450000>;
207 regulator-state-mem {
208 regulator-on-in-suspend;
209 regulator-suspend-microvolt = <950000>;
214 regulator-name = "vcc_ddr";
217 regulator-state-mem {
218 regulator-on-in-suspend;
223 regulator-name = "vcc_io";
224 regulator-min-microvolt = <3300000>;
225 regulator-max-microvolt = <3300000>;
228 regulator-state-mem {
229 regulator-on-in-suspend;
230 regulator-suspend-microvolt = <3300000>;
235 regulator-name = "vcc_18";
236 regulator-min-microvolt = <1800000>;
237 regulator-max-microvolt = <1800000>;
240 regulator-state-mem {
241 regulator-on-in-suspend;
242 regulator-suspend-microvolt = <1800000>;
246 vcc18_emmc: LDO_REG2 {
247 regulator-name = "vcc18_emmc";
248 regulator-min-microvolt = <1800000>;
249 regulator-max-microvolt = <1800000>;
252 regulator-state-mem {
253 regulator-on-in-suspend;
254 regulator-suspend-microvolt = <1800000>;
259 regulator-name = "vdd_10";
260 regulator-min-microvolt = <1000000>;
261 regulator-max-microvolt = <1000000>;
264 regulator-state-mem {
265 regulator-on-in-suspend;
266 regulator-suspend-microvolt = <1000000>;
276 vccio1-supply = <&vcc_io>;
277 vccio2-supply = <&vcc18_emmc>;
278 vccio3-supply = <&vcc_sdio>;
279 vccio4-supply = <&vcc_18>;
280 vccio5-supply = <&vcc_io>;
281 vccio6-supply = <&vcc_io>;
282 pmuio-supply = <&vcc_io>;
287 pmic_int_l: pmic-int-l {
288 rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_up>;
293 usb20_host_drv: usb20-host-drv {
294 rockchip,pins = <1 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
304 max-frequency = <150000000>;
305 pinctrl-names = "default";
306 pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_dectn &sdmmc0_bus4>;
311 vmmc-supply = <&vcc_sd>;
312 vqmmc-supply = <&vcc_sdio>;