1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Based on rk3328-nanopi-r2s.dts, which is:
4 * Copyright (c) 2020 David Bauer <mail@david-bauer.net>
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/leds/common.h>
11 #include "rk3328.dtsi"
14 model = "Xunlong Orange Pi R1 Plus";
15 compatible = "xunlong,orangepi-r1-plus", "rockchip,rk3328";
23 stdout-path = "serial2:1500000n8";
26 gmac_clk: gmac-clock {
27 compatible = "fixed-clock";
28 clock-frequency = <125000000>;
29 clock-output-names = "gmac_clkin";
34 compatible = "gpio-leds";
35 pinctrl-0 = <&lan_led_pin>, <&sys_led_pin>, <&wan_led_pin>;
36 pinctrl-names = "default";
39 function = LED_FUNCTION_LAN;
40 color = <LED_COLOR_ID_GREEN>;
41 gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>;
45 function = LED_FUNCTION_STATUS;
46 color = <LED_COLOR_ID_RED>;
47 gpios = <&gpio3 RK_PC5 GPIO_ACTIVE_HIGH>;
48 linux,default-trigger = "heartbeat";
52 function = LED_FUNCTION_WAN;
53 color = <LED_COLOR_ID_GREEN>;
54 gpios = <&gpio2 RK_PC2 GPIO_ACTIVE_HIGH>;
58 vcc_sd: sdmmc-regulator {
59 compatible = "regulator-fixed";
60 gpio = <&gpio0 RK_PD6 GPIO_ACTIVE_LOW>;
61 pinctrl-0 = <&sdmmc0m1_pin>;
62 pinctrl-names = "default";
63 regulator-name = "vcc_sd";
65 vin-supply = <&vcc_io>;
68 vcc_sys: vcc-sys-regulator {
69 compatible = "regulator-fixed";
70 regulator-name = "vcc_sys";
73 regulator-min-microvolt = <5000000>;
74 regulator-max-microvolt = <5000000>;
77 vdd_5v_lan: vdd-5v-lan-regulator {
78 compatible = "regulator-fixed";
80 gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_HIGH>;
81 pinctrl-0 = <&lan_vdd_pin>;
82 pinctrl-names = "default";
83 regulator-name = "vdd_5v_lan";
86 vin-supply = <&vcc_sys>;
91 cpu-supply = <&vdd_arm>;
95 cpu-supply = <&vdd_arm>;
99 cpu-supply = <&vdd_arm>;
103 cpu-supply = <&vdd_arm>;
111 assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>;
112 assigned-clock-parents = <&gmac_clk>, <&gmac_clk>;
113 clock_in_out = "input";
114 phy-handle = <&rtl8211e>;
116 phy-supply = <&vcc_io>;
117 pinctrl-0 = <&rgmiim1_pins>;
118 pinctrl-names = "default";
125 compatible = "snps,dwmac-mdio";
126 #address-cells = <1>;
129 rtl8211e: ethernet-phy@1 {
131 pinctrl-0 = <ð_phy_reset_pin>;
132 pinctrl-names = "default";
133 reset-assert-us = <10000>;
134 reset-deassert-us = <50000>;
135 reset-gpios = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
144 compatible = "rockchip,rk805";
146 interrupt-parent = <&gpio1>;
147 interrupts = <24 IRQ_TYPE_LEVEL_LOW>;
149 clock-output-names = "xin32k", "rk805-clkout2";
152 pinctrl-0 = <&pmic_int_l>;
153 pinctrl-names = "default";
154 rockchip,system-power-controller;
157 vcc1-supply = <&vcc_sys>;
158 vcc2-supply = <&vcc_sys>;
159 vcc3-supply = <&vcc_sys>;
160 vcc4-supply = <&vcc_sys>;
161 vcc5-supply = <&vcc_io>;
162 vcc6-supply = <&vcc_sys>;
166 regulator-name = "vdd_log";
169 regulator-min-microvolt = <712500>;
170 regulator-max-microvolt = <1450000>;
171 regulator-ramp-delay = <12500>;
173 regulator-state-mem {
174 regulator-on-in-suspend;
175 regulator-suspend-microvolt = <1000000>;
180 regulator-name = "vdd_arm";
183 regulator-min-microvolt = <712500>;
184 regulator-max-microvolt = <1450000>;
185 regulator-ramp-delay = <12500>;
187 regulator-state-mem {
188 regulator-on-in-suspend;
189 regulator-suspend-microvolt = <950000>;
194 regulator-name = "vcc_ddr";
198 regulator-state-mem {
199 regulator-on-in-suspend;
204 regulator-name = "vcc_io";
207 regulator-min-microvolt = <3300000>;
208 regulator-max-microvolt = <3300000>;
210 regulator-state-mem {
211 regulator-on-in-suspend;
212 regulator-suspend-microvolt = <3300000>;
217 regulator-name = "vcc_18";
220 regulator-min-microvolt = <1800000>;
221 regulator-max-microvolt = <1800000>;
223 regulator-state-mem {
224 regulator-on-in-suspend;
225 regulator-suspend-microvolt = <1800000>;
229 vcc18_emmc: LDO_REG2 {
230 regulator-name = "vcc18_emmc";
233 regulator-min-microvolt = <1800000>;
234 regulator-max-microvolt = <1800000>;
236 regulator-state-mem {
237 regulator-on-in-suspend;
238 regulator-suspend-microvolt = <1800000>;
243 regulator-name = "vdd_10";
246 regulator-min-microvolt = <1000000>;
247 regulator-max-microvolt = <1000000>;
249 regulator-state-mem {
250 regulator-on-in-suspend;
251 regulator-suspend-microvolt = <1000000>;
259 pmuio-supply = <&vcc_io>;
260 vccio1-supply = <&vcc_io>;
261 vccio2-supply = <&vcc18_emmc>;
262 vccio3-supply = <&vcc_io>;
263 vccio4-supply = <&vcc_io>;
264 vccio5-supply = <&vcc_io>;
265 vccio6-supply = <&vcc_io>;
271 eth_phy_reset_pin: eth-phy-reset-pin {
272 rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>;
277 lan_led_pin: lan-led-pin {
278 rockchip,pins = <2 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
281 sys_led_pin: sys-led-pin {
282 rockchip,pins = <3 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
285 wan_led_pin: wan-led-pin {
286 rockchip,pins = <2 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
291 lan_vdd_pin: lan-vdd-pin {
292 rockchip,pins = <2 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
297 pmic_int_l: pmic-int-l {
298 rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_up>;
311 pinctrl-0 = <&sdmmc0_clk>, <&sdmmc0_cmd>, <&sdmmc0_dectn>, <&sdmmc0_bus4>;
312 pinctrl-names = "default";
313 vmmc-supply = <&vcc_sd>;
321 compatible = "jedec,spi-nor";
323 spi-max-frequency = <50000000>;
328 rockchip,hw-tshut-mode = <0>;
329 rockchip,hw-tshut-polarity = <0>;
357 #address-cells = <1>;
360 /* Second port is for USB 3.0 */
362 compatible = "usbbda,8153";