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";
19 stdout-path = "serial2:1500000n8";
22 gmac_clkin: external-gmac-clock {
23 compatible = "fixed-clock";
24 clock-frequency = <125000000>;
25 clock-output-names = "gmac_clkin";
30 compatible = "regulator-fixed";
31 regulator-name = "dc_12v";
34 regulator-min-microvolt = <12000000>;
35 regulator-max-microvolt = <12000000>;
38 vcc_sd: sdmmc-regulator {
39 compatible = "regulator-fixed";
40 gpio = <&gpio0 RK_PD6 GPIO_ACTIVE_LOW>;
41 pinctrl-names = "default";
42 pinctrl-0 = <&sdmmc0m1_pin>;
44 regulator-name = "vcc_sd";
45 regulator-min-microvolt = <3300000>;
46 regulator-max-microvolt = <3300000>;
47 vin-supply = <&vcc_io>;
50 vcc_sdio: sdmmcio-regulator {
51 compatible = "regulator-gpio";
52 gpios = <&grf_gpio 0 GPIO_ACTIVE_HIGH>;
53 states = <1800000 0x1>,
55 regulator-name = "vcc_sdio";
56 regulator-type = "voltage";
57 regulator-min-microvolt = <1800000>;
58 regulator-max-microvolt = <3300000>;
60 vin-supply = <&vcc_sys>;
63 vcc_host1_5v: vcc_otg_5v: vcc-host1-5v-regulator {
64 compatible = "regulator-fixed";
66 gpio = <&gpio1 RK_PD2 GPIO_ACTIVE_HIGH>;
67 pinctrl-names = "default";
68 pinctrl-0 = <&usb20_host_drv>;
69 regulator-name = "vcc_host1_5v";
71 vin-supply = <&vcc_sys>;
75 compatible = "regulator-fixed";
76 regulator-name = "vcc_sys";
79 regulator-min-microvolt = <5000000>;
80 regulator-max-microvolt = <5000000>;
81 vin-supply = <&dc_12v>;
84 vcc_phy: vcc-phy-regulator {
85 compatible = "regulator-fixed";
86 regulator-name = "vcc_phy";
92 compatible = "gpio-leds";
95 label = "firefly:blue:power";
96 linux,default-trigger = "heartbeat";
97 gpios = <&rk805 1 GPIO_ACTIVE_LOW>;
103 label = "firefly:yellow:user";
104 linux,default-trigger = "mmc1";
105 gpios = <&rk805 0 GPIO_ACTIVE_LOW>;
106 default-state = "off";
121 cpu-supply = <&vdd_arm>;
125 cpu-supply = <&vdd_arm>;
129 cpu-supply = <&vdd_arm>;
133 cpu-supply = <&vdd_arm>;
139 max-frequency = <150000000>;
143 pinctrl-names = "default";
144 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
145 vmmc-supply = <&vcc_io>;
146 vqmmc-supply = <&vcc18_emmc>;
151 assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>;
152 assigned-clock-parents = <&gmac_clkin>, <&gmac_clkin>;
153 clock_in_out = "input";
154 phy-supply = <&vcc_phy>;
156 pinctrl-names = "default";
157 pinctrl-0 = <&rgmiim1_pins>;
159 snps,reset-gpio = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
160 snps,reset-active-low;
161 snps,reset-delays-us = <0 10000 50000>;
185 compatible = "rockchip,rk805";
187 interrupt-parent = <&gpio1>;
188 interrupts = <24 IRQ_TYPE_LEVEL_LOW>;
190 clock-output-names = "xin32k", "rk805-clkout2";
193 pinctrl-names = "default";
194 pinctrl-0 = <&pmic_int_l>;
195 rockchip,system-power-controller;
198 vcc1-supply = <&vcc_sys>;
199 vcc2-supply = <&vcc_sys>;
200 vcc3-supply = <&vcc_sys>;
201 vcc4-supply = <&vcc_sys>;
202 vcc5-supply = <&vcc_io>;
203 vcc6-supply = <&vcc_io>;
206 vdd_logic: DCDC_REG1 {
207 regulator-name = "vdd_logic";
208 regulator-min-microvolt = <712500>;
209 regulator-max-microvolt = <1450000>;
212 regulator-state-mem {
213 regulator-on-in-suspend;
214 regulator-suspend-microvolt = <1000000>;
219 regulator-name = "vdd_arm";
220 regulator-min-microvolt = <712500>;
221 regulator-max-microvolt = <1450000>;
224 regulator-state-mem {
225 regulator-on-in-suspend;
226 regulator-suspend-microvolt = <950000>;
231 regulator-name = "vcc_ddr";
234 regulator-state-mem {
235 regulator-on-in-suspend;
240 regulator-name = "vcc_io";
241 regulator-min-microvolt = <3300000>;
242 regulator-max-microvolt = <3300000>;
245 regulator-state-mem {
246 regulator-on-in-suspend;
247 regulator-suspend-microvolt = <3300000>;
252 regulator-name = "vcc_18";
253 regulator-min-microvolt = <1800000>;
254 regulator-max-microvolt = <1800000>;
257 regulator-state-mem {
258 regulator-on-in-suspend;
259 regulator-suspend-microvolt = <1800000>;
263 vcc18_emmc: LDO_REG2 {
264 regulator-name = "vcc18_emmc";
265 regulator-min-microvolt = <1800000>;
266 regulator-max-microvolt = <1800000>;
269 regulator-state-mem {
270 regulator-on-in-suspend;
271 regulator-suspend-microvolt = <1800000>;
276 regulator-name = "vdd_10";
277 regulator-min-microvolt = <1000000>;
278 regulator-max-microvolt = <1000000>;
281 regulator-state-mem {
282 regulator-on-in-suspend;
283 regulator-suspend-microvolt = <1000000>;
301 vccio1-supply = <&vcc_io>;
302 vccio2-supply = <&vcc18_emmc>;
303 vccio3-supply = <&vcc_sdio>;
304 vccio4-supply = <&vcc_18>;
305 vccio5-supply = <&vcc_io>;
306 vccio6-supply = <&vcc_io>;
307 pmuio-supply = <&vcc_io>;
312 pmic_int_l: pmic-int-l {
313 rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_up>;
318 usb20_host_drv: usb20-host-drv {
319 rockchip,pins = <1 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
329 max-frequency = <150000000>;
330 pinctrl-names = "default";
331 pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_dectn &sdmmc0_bus4>;
336 vmmc-supply = <&vcc_sd>;
337 vqmmc-supply = <&vcc_sdio>;