1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * (C) Copyright 2020 Chen-Yu Tsai <wens@csie.org>
5 * Based on ./rk3328-rock64.dts, which is
7 * Copyright (c) 2017 PINE64
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/input/input.h>
14 #include <dt-bindings/leds/common.h>
15 #include <dt-bindings/pinctrl/rockchip.h>
17 #include "rk3328.dtsi"
20 model = "Radxa ROCK Pi E";
21 compatible = "radxa,rockpi-e", "rockchip,rk3328";
29 stdout-path = "serial2:1500000n8";
33 compatible = "adc-keys";
34 io-channels = <&saradc 0>;
35 io-channel-names = "buttons";
36 keyup-threshold-microvolt = <1750000>;
38 /* This button is unpopulated out of the factory. */
41 linux,code = <KEY_VENDOR>;
42 press-threshold-microvolt = <10000>;
46 gmac_clkin: external-gmac-clock {
47 compatible = "fixed-clock";
48 clock-frequency = <125000000>;
49 clock-output-names = "gmac_clkin";
54 compatible = "gpio-leds";
55 pinctrl-0 = <&led_pin>;
56 pinctrl-names = "default";
59 color = <LED_COLOR_ID_BLUE>;
60 gpios = <&gpio3 RK_PA5 GPIO_ACTIVE_LOW>;
61 linux,default-trigger = "heartbeat";
65 vcc_sd: sdmmc-regulator {
66 compatible = "regulator-fixed";
67 gpio = <&gpio0 RK_PD6 GPIO_ACTIVE_LOW>;
68 pinctrl-names = "default";
69 pinctrl-0 = <&sdmmc0m1_pin>;
70 regulator-name = "vcc_sd";
72 vin-supply = <&vcc_io>;
75 vcc_host_5v: vcc-host-5v-regulator {
76 compatible = "regulator-fixed";
77 gpio = <&gpio3 RK_PA7 GPIO_ACTIVE_HIGH>;
78 pinctrl-names = "default";
79 pinctrl-0 = <&usb30_host_drv>;
81 regulator-name = "vcc_host_5v";
84 vin-supply = <&vcc_sys>;
88 compatible = "regulator-fixed";
89 regulator-name = "vcc_sys";
92 regulator-min-microvolt = <5000000>;
93 regulator-max-microvolt = <5000000>;
96 vcc_wifi: vcc-wifi-regulator {
97 compatible = "regulator-fixed";
98 gpio = <&gpio0 RK_PA0 GPIO_ACTIVE_LOW>;
99 pinctrl-names = "default";
100 pinctrl-0 = <&wifi_en>;
101 regulator-name = "vcc_wifi";
104 vin-supply = <&vcc_io>;
117 cpu-supply = <&vdd_arm>;
121 cpu-supply = <&vdd_arm>;
125 cpu-supply = <&vdd_arm>;
129 cpu-supply = <&vdd_arm>;
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-handle = <&rtl8211e>;
151 phy-supply = <&vcc_io>;
152 pinctrl-names = "default";
153 pinctrl-0 = <&rgmiim1_pins>;
162 compatible = "snps,dwmac-mdio";
163 #address-cells = <1>;
166 rtl8211e: ethernet-phy@1 {
168 pinctrl-0 = <ð_phy_int_pin>, <ð_phy_reset_pin>;
169 pinctrl-names = "default";
170 interrupt-parent = <&gpio1>;
171 interrupts = <24 IRQ_TYPE_LEVEL_LOW>;
172 reset-assert-us = <10000>;
173 reset-deassert-us = <50000>;
174 reset-gpios = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
180 pinctrl-names = "default";
181 pinctrl-0 = <&fephyled_linkm1>, <&fephyled_rxm1>;
189 compatible = "rockchip,rk805";
191 interrupt-parent = <&gpio2>;
192 interrupts = <6 IRQ_TYPE_LEVEL_LOW>;
194 clock-output-names = "xin32k", "rk805-clkout2";
197 pinctrl-names = "default";
198 pinctrl-0 = <&pmic_int_l>;
199 rockchip,system-power-controller;
202 vcc1-supply = <&vcc_sys>;
203 vcc2-supply = <&vcc_sys>;
204 vcc3-supply = <&vcc_sys>;
205 vcc4-supply = <&vcc_sys>;
206 vcc5-supply = <&vcc_io>;
207 vcc6-supply = <&vcc_sys>;
211 regulator-name = "vdd_log";
214 regulator-min-microvolt = <712500>;
215 regulator-max-microvolt = <1450000>;
216 regulator-ramp-delay = <12500>;
218 regulator-state-mem {
219 regulator-on-in-suspend;
220 regulator-suspend-microvolt = <1000000>;
225 regulator-name = "vdd_arm";
228 regulator-min-microvolt = <712500>;
229 regulator-max-microvolt = <1450000>;
230 regulator-ramp-delay = <12500>;
232 regulator-state-mem {
233 regulator-on-in-suspend;
234 regulator-suspend-microvolt = <950000>;
239 regulator-name = "vcc_ddr";
243 regulator-state-mem {
244 regulator-on-in-suspend;
249 regulator-name = "vcc_io";
252 regulator-min-microvolt = <3300000>;
253 regulator-max-microvolt = <3300000>;
255 regulator-state-mem {
256 regulator-on-in-suspend;
257 regulator-suspend-microvolt = <3300000>;
262 regulator-name = "vcc_18";
265 regulator-min-microvolt = <1800000>;
266 regulator-max-microvolt = <1800000>;
268 regulator-state-mem {
269 regulator-on-in-suspend;
270 regulator-suspend-microvolt = <1800000>;
274 vcc18_emmc: LDO_REG2 {
275 regulator-name = "vcc18_emmc";
278 regulator-min-microvolt = <1800000>;
279 regulator-max-microvolt = <1800000>;
281 regulator-state-mem {
282 regulator-on-in-suspend;
283 regulator-suspend-microvolt = <1800000>;
288 regulator-name = "vdd_10";
291 regulator-min-microvolt = <1000000>;
292 regulator-max-microvolt = <1000000>;
294 regulator-state-mem {
295 regulator-on-in-suspend;
296 regulator-suspend-microvolt = <1000000>;
308 pmuio-supply = <&vcc_io>;
309 vccio1-supply = <&vcc_io>;
310 vccio2-supply = <&vcc18_emmc>;
311 vccio3-supply = <&vcc_io>;
312 vccio4-supply = <&vcc_io>;
313 vccio5-supply = <&vcc_io>;
314 vccio6-supply = <&vcc_io>;
320 eth_phy_int_pin: eth-phy-int-pin {
321 rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_down>;
324 eth_phy_reset_pin: eth-phy-reset-pin {
325 rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>;
331 rockchip,pins = <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
336 pmic_int_l: pmic-int-l {
337 rockchip,pins = <2 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
342 usb30_host_drv: usb30-host-drv {
343 rockchip,pins = <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_none>;
349 rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
358 pinctrl-names = "default";
359 pinctrl-0 = <&sdmmc0_clk>, <&sdmmc0_cmd>, <&sdmmc0_dectn>, <&sdmmc0_bus4>;
360 vmmc-supply = <&vcc_sd>;
365 vref-supply = <&vcc_18>;