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_pin>;
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";
116 cpu-supply = <&vdd_arm>;
120 cpu-supply = <&vdd_arm>;
124 cpu-supply = <&vdd_arm>;
128 cpu-supply = <&vdd_arm>;
134 max-frequency = <150000000>;
138 pinctrl-names = "default";
139 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
140 vmmc-supply = <&vcc_io>;
141 vqmmc-supply = <&vcc18_emmc>;
146 assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>;
147 assigned-clock-parents = <&gmac_clkin>, <&gmac_clkin>;
148 clock_in_out = "input";
149 phy-supply = <&vcc_phy>;
151 pinctrl-names = "default";
152 pinctrl-0 = <&rgmiim1_pins>;
154 snps,reset-gpio = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
155 snps,reset-active-low;
156 snps,reset-delays-us = <0 10000 50000>;
180 compatible = "rockchip,rk805";
182 interrupt-parent = <&gpio1>;
183 interrupts = <24 IRQ_TYPE_LEVEL_LOW>;
185 clock-output-names = "xin32k", "rk805-clkout2";
188 pinctrl-names = "default";
189 pinctrl-0 = <&pmic_int_l>;
190 rockchip,system-power-controller;
193 vcc1-supply = <&vcc_sys>;
194 vcc2-supply = <&vcc_sys>;
195 vcc3-supply = <&vcc_sys>;
196 vcc4-supply = <&vcc_sys>;
197 vcc5-supply = <&vcc_io>;
198 vcc6-supply = <&vcc_io>;
201 vdd_logic: DCDC_REG1 {
202 regulator-name = "vdd_logic";
203 regulator-min-microvolt = <712500>;
204 regulator-max-microvolt = <1450000>;
207 regulator-state-mem {
208 regulator-on-in-suspend;
209 regulator-suspend-microvolt = <1000000>;
214 regulator-name = "vdd_arm";
215 regulator-min-microvolt = <712500>;
216 regulator-max-microvolt = <1450000>;
219 regulator-state-mem {
220 regulator-on-in-suspend;
221 regulator-suspend-microvolt = <950000>;
226 regulator-name = "vcc_ddr";
229 regulator-state-mem {
230 regulator-on-in-suspend;
235 regulator-name = "vcc_io";
236 regulator-min-microvolt = <3300000>;
237 regulator-max-microvolt = <3300000>;
240 regulator-state-mem {
241 regulator-on-in-suspend;
242 regulator-suspend-microvolt = <3300000>;
247 regulator-name = "vcc_18";
248 regulator-min-microvolt = <1800000>;
249 regulator-max-microvolt = <1800000>;
252 regulator-state-mem {
253 regulator-on-in-suspend;
254 regulator-suspend-microvolt = <1800000>;
258 vcc18_emmc: LDO_REG2 {
259 regulator-name = "vcc18_emmc";
260 regulator-min-microvolt = <1800000>;
261 regulator-max-microvolt = <1800000>;
264 regulator-state-mem {
265 regulator-on-in-suspend;
266 regulator-suspend-microvolt = <1800000>;
271 regulator-name = "vdd_10";
272 regulator-min-microvolt = <1000000>;
273 regulator-max-microvolt = <1000000>;
276 regulator-state-mem {
277 regulator-on-in-suspend;
278 regulator-suspend-microvolt = <1000000>;
296 vccio1-supply = <&vcc_io>;
297 vccio2-supply = <&vcc18_emmc>;
298 vccio3-supply = <&vcc_sdio>;
299 vccio4-supply = <&vcc_18>;
300 vccio5-supply = <&vcc_io>;
301 vccio6-supply = <&vcc_io>;
302 pmuio-supply = <&vcc_io>;
307 pmic_int_l: pmic-int-l {
308 rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_up>;
313 usb20_host_drv: usb20-host-drv {
314 rockchip,pins = <1 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
324 max-frequency = <150000000>;
325 pinctrl-names = "default";
326 pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_dectn &sdmmc0_bus4>;
331 vmmc-supply = <&vcc_sd>;
332 vqmmc-supply = <&vcc_sdio>;