1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2020 David Bauer <mail@david-bauer.net>
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/gpio/gpio.h>
10 #include "rk3328.dtsi"
13 model = "FriendlyElec NanoPi R2S";
14 compatible = "friendlyarm,nanopi-r2s", "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-keys";
35 pinctrl-0 = <&reset_button_pin>;
36 pinctrl-names = "default";
40 gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_RESTART>;
42 debounce-interval = <50>;
47 compatible = "gpio-leds";
48 pinctrl-0 = <&lan_led_pin>, <&sys_led_pin>, <&wan_led_pin>;
49 pinctrl-names = "default";
52 gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>;
53 label = "nanopi-r2s:green:lan";
57 gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>;
58 label = "nanopi-r2s:red:sys";
63 gpios = <&gpio2 RK_PC2 GPIO_ACTIVE_HIGH>;
64 label = "nanopi-r2s:green:wan";
68 vcc_io_sdio: sdmmcio-regulator {
69 compatible = "regulator-gpio";
71 gpios = <&gpio1 RK_PD4 GPIO_ACTIVE_HIGH>;
72 pinctrl-0 = <&sdio_vcc_pin>;
73 pinctrl-names = "default";
74 regulator-name = "vcc_io_sdio";
76 regulator-min-microvolt = <1800000>;
77 regulator-max-microvolt = <3300000>;
78 regulator-settling-time-us = <5000>;
79 regulator-type = "voltage";
80 startup-delay-us = <2000>;
81 states = <1800000 0x1>,
83 vin-supply = <&vcc_io_33>;
86 vcc_sd: sdmmc-regulator {
87 compatible = "regulator-fixed";
88 gpio = <&gpio0 RK_PD6 GPIO_ACTIVE_LOW>;
89 pinctrl-0 = <&sdmmc0m1_pin>;
90 pinctrl-names = "default";
91 regulator-name = "vcc_sd";
93 regulator-min-microvolt = <3300000>;
94 regulator-max-microvolt = <3300000>;
95 vin-supply = <&vcc_io_33>;
99 compatible = "regulator-fixed";
100 regulator-name = "vdd_5v";
103 regulator-min-microvolt = <5000000>;
104 regulator-max-microvolt = <5000000>;
107 vdd_5v_lan: vdd-5v-lan {
108 compatible = "regulator-fixed";
110 gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_HIGH>;
111 pinctrl-0 = <&lan_vdd_pin>;
112 pinctrl-names = "default";
113 regulator-name = "vdd_5v_lan";
116 vin-supply = <&vdd_5v>;
121 cpu-supply = <&vdd_arm>;
125 cpu-supply = <&vdd_arm>;
129 cpu-supply = <&vdd_arm>;
133 cpu-supply = <&vdd_arm>;
141 assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>;
142 assigned-clock-parents = <&gmac_clk>, <&gmac_clk>;
143 clock_in_out = "input";
144 phy-handle = <&rtl8211e>;
146 phy-supply = <&vcc_io_33>;
147 pinctrl-0 = <&rgmiim1_pins>;
148 pinctrl-names = "default";
155 compatible = "snps,dwmac-mdio";
156 #address-cells = <1>;
159 rtl8211e: ethernet-phy@1 {
161 pinctrl-0 = <ð_phy_reset_pin>;
162 pinctrl-names = "default";
163 reset-assert-us = <10000>;
164 reset-deassert-us = <50000>;
165 reset-gpios = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
174 compatible = "rockchip,rk805";
176 interrupt-parent = <&gpio1>;
177 interrupts = <24 IRQ_TYPE_LEVEL_LOW>;
179 clock-output-names = "xin32k", "rk805-clkout2";
182 pinctrl-0 = <&pmic_int_l>;
183 pinctrl-names = "default";
184 rockchip,system-power-controller;
187 vcc1-supply = <&vdd_5v>;
188 vcc2-supply = <&vdd_5v>;
189 vcc3-supply = <&vdd_5v>;
190 vcc4-supply = <&vdd_5v>;
191 vcc5-supply = <&vcc_io_33>;
192 vcc6-supply = <&vdd_5v>;
196 regulator-name = "vdd_log";
199 regulator-min-microvolt = <712500>;
200 regulator-max-microvolt = <1450000>;
201 regulator-ramp-delay = <12500>;
203 regulator-state-mem {
204 regulator-on-in-suspend;
205 regulator-suspend-microvolt = <1000000>;
210 regulator-name = "vdd_arm";
213 regulator-min-microvolt = <712500>;
214 regulator-max-microvolt = <1450000>;
215 regulator-ramp-delay = <12500>;
217 regulator-state-mem {
218 regulator-on-in-suspend;
219 regulator-suspend-microvolt = <950000>;
224 regulator-name = "vcc_ddr";
228 regulator-state-mem {
229 regulator-on-in-suspend;
233 vcc_io_33: DCDC_REG4 {
234 regulator-name = "vcc_io_33";
237 regulator-min-microvolt = <3300000>;
238 regulator-max-microvolt = <3300000>;
240 regulator-state-mem {
241 regulator-on-in-suspend;
242 regulator-suspend-microvolt = <3300000>;
247 regulator-name = "vcc_18";
250 regulator-min-microvolt = <1800000>;
251 regulator-max-microvolt = <1800000>;
253 regulator-state-mem {
254 regulator-on-in-suspend;
255 regulator-suspend-microvolt = <1800000>;
259 vcc18_emmc: LDO_REG2 {
260 regulator-name = "vcc18_emmc";
263 regulator-min-microvolt = <1800000>;
264 regulator-max-microvolt = <1800000>;
266 regulator-state-mem {
267 regulator-on-in-suspend;
268 regulator-suspend-microvolt = <1800000>;
273 regulator-name = "vdd_10";
276 regulator-min-microvolt = <1000000>;
277 regulator-max-microvolt = <1000000>;
279 regulator-state-mem {
280 regulator-on-in-suspend;
281 regulator-suspend-microvolt = <1000000>;
289 pmuio-supply = <&vcc_io_33>;
290 vccio1-supply = <&vcc_io_33>;
291 vccio2-supply = <&vcc18_emmc>;
292 vccio3-supply = <&vcc_io_sdio>;
293 vccio4-supply = <&vcc_18>;
294 vccio5-supply = <&vcc_io_33>;
295 vccio6-supply = <&vcc_io_33>;
301 reset_button_pin: reset-button-pin {
302 rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
307 eth_phy_reset_pin: eth-phy-reset-pin {
308 rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>;
313 lan_led_pin: lan-led-pin {
314 rockchip,pins = <2 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
317 sys_led_pin: sys-led-pin {
318 rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
321 wan_led_pin: wan-led-pin {
322 rockchip,pins = <2 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
327 lan_vdd_pin: lan-vdd-pin {
328 rockchip,pins = <2 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
333 pmic_int_l: pmic-int-l {
334 rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_up>;
339 sdio_vcc_pin: sdio-vcc-pin {
340 rockchip,pins = <1 RK_PD4 RK_FUNC_GPIO &pcfg_pull_up>;
353 pinctrl-0 = <&sdmmc0_clk>, <&sdmmc0_cmd>, <&sdmmc0_dectn>, <&sdmmc0_bus4>;
354 pinctrl-names = "default";
359 vmmc-supply = <&vcc_sd>;
360 vqmmc-supply = <&vcc_io_sdio>;
365 rockchip,hw-tshut-mode = <0>;
366 rockchip,hw-tshut-polarity = <0>;
394 #address-cells = <1>;
397 /* Second port is for USB 3.0 */
399 compatible = "usbbda,8153";