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>;
102 label = "firefly:yellow:user";
103 linux,default-trigger = "mmc1";
104 gpios = <&rk805 0 GPIO_ACTIVE_LOW>;
105 default-state = "off";
119 cpu-supply = <&vdd_arm>;
123 cpu-supply = <&vdd_arm>;
127 cpu-supply = <&vdd_arm>;
131 cpu-supply = <&vdd_arm>;
137 max-frequency = <150000000>;
141 pinctrl-names = "default";
142 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
143 vmmc-supply = <&vcc_io>;
144 vqmmc-supply = <&vcc18_emmc>;
149 assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>;
150 assigned-clock-parents = <&gmac_clkin>, <&gmac_clkin>;
151 clock_in_out = "input";
152 phy-supply = <&vcc_phy>;
154 pinctrl-names = "default";
155 pinctrl-0 = <&rgmiim1_pins>;
157 snps,reset-gpio = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
158 snps,reset-active-low;
159 snps,reset-delays-us = <0 10000 50000>;
183 compatible = "rockchip,rk805";
185 interrupt-parent = <&gpio1>;
186 interrupts = <24 IRQ_TYPE_LEVEL_LOW>;
188 clock-output-names = "xin32k", "rk805-clkout2";
191 pinctrl-names = "default";
192 pinctrl-0 = <&pmic_int_l>;
193 rockchip,system-power-controller;
196 vcc1-supply = <&vcc_sys>;
197 vcc2-supply = <&vcc_sys>;
198 vcc3-supply = <&vcc_sys>;
199 vcc4-supply = <&vcc_sys>;
200 vcc5-supply = <&vcc_io>;
201 vcc6-supply = <&vcc_io>;
204 vdd_logic: DCDC_REG1 {
205 regulator-name = "vdd_logic";
206 regulator-min-microvolt = <712500>;
207 regulator-max-microvolt = <1450000>;
210 regulator-state-mem {
211 regulator-on-in-suspend;
212 regulator-suspend-microvolt = <1000000>;
217 regulator-name = "vdd_arm";
218 regulator-min-microvolt = <712500>;
219 regulator-max-microvolt = <1450000>;
222 regulator-state-mem {
223 regulator-on-in-suspend;
224 regulator-suspend-microvolt = <950000>;
229 regulator-name = "vcc_ddr";
232 regulator-state-mem {
233 regulator-on-in-suspend;
238 regulator-name = "vcc_io";
239 regulator-min-microvolt = <3300000>;
240 regulator-max-microvolt = <3300000>;
243 regulator-state-mem {
244 regulator-on-in-suspend;
245 regulator-suspend-microvolt = <3300000>;
250 regulator-name = "vcc_18";
251 regulator-min-microvolt = <1800000>;
252 regulator-max-microvolt = <1800000>;
255 regulator-state-mem {
256 regulator-on-in-suspend;
257 regulator-suspend-microvolt = <1800000>;
261 vcc18_emmc: LDO_REG2 {
262 regulator-name = "vcc18_emmc";
263 regulator-min-microvolt = <1800000>;
264 regulator-max-microvolt = <1800000>;
267 regulator-state-mem {
268 regulator-on-in-suspend;
269 regulator-suspend-microvolt = <1800000>;
274 regulator-name = "vdd_10";
275 regulator-min-microvolt = <1000000>;
276 regulator-max-microvolt = <1000000>;
279 regulator-state-mem {
280 regulator-on-in-suspend;
281 regulator-suspend-microvolt = <1000000>;
299 vccio1-supply = <&vcc_io>;
300 vccio2-supply = <&vcc18_emmc>;
301 vccio3-supply = <&vcc_sdio>;
302 vccio4-supply = <&vcc_18>;
303 vccio5-supply = <&vcc_io>;
304 vccio6-supply = <&vcc_io>;
305 pmuio-supply = <&vcc_io>;
310 pmic_int_l: pmic-int-l {
311 rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_up>;
316 usb20_host_drv: usb20-host-drv {
317 rockchip,pins = <1 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
327 max-frequency = <150000000>;
328 pinctrl-names = "default";
329 pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_dectn &sdmmc0_bus4>;
334 vmmc-supply = <&vcc_sd>;
335 vqmmc-supply = <&vcc_sdio>;