1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
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";
17 stdout-path = "serial2:1500000n8";
20 gmac_clk: gmac-clock {
21 compatible = "fixed-clock";
22 clock-frequency = <125000000>;
23 clock-output-names = "gmac_clkin";
28 compatible = "gpio-keys";
29 pinctrl-0 = <&reset_button_pin>;
30 pinctrl-names = "default";
34 gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_RESTART>;
36 debounce-interval = <50>;
41 compatible = "gpio-leds";
42 pinctrl-0 = <&lan_led_pin>, <&sys_led_pin>, <&wan_led_pin>;
43 pinctrl-names = "default";
46 gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>;
47 label = "nanopi-r2s:green:lan";
51 gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_HIGH>;
52 label = "nanopi-r2s:red:sys";
56 gpios = <&gpio2 RK_PC2 GPIO_ACTIVE_HIGH>;
57 label = "nanopi-r2s:green:wan";
61 vcc_io_sdio: sdmmcio-regulator {
62 compatible = "regulator-gpio";
64 gpios = <&gpio1 RK_PD4 GPIO_ACTIVE_HIGH>;
65 pinctrl-0 = <&sdio_vcc_pin>;
66 pinctrl-names = "default";
67 regulator-name = "vcc_io_sdio";
69 regulator-min-microvolt = <1800000>;
70 regulator-max-microvolt = <3300000>;
71 regulator-settling-time-us = <5000>;
72 regulator-type = "voltage";
73 startup-delay-us = <2000>;
76 vin-supply = <&vcc_io_33>;
79 vcc_sd: sdmmc-regulator {
80 compatible = "regulator-fixed";
81 gpio = <&gpio0 RK_PD6 GPIO_ACTIVE_LOW>;
82 pinctrl-0 = <&sdmmc0m1_gpio>;
83 pinctrl-names = "default";
84 regulator-name = "vcc_sd";
86 regulator-min-microvolt = <3300000>;
87 regulator-max-microvolt = <3300000>;
88 vin-supply = <&vcc_io_33>;
92 compatible = "regulator-fixed";
93 regulator-name = "vdd_5v";
96 regulator-min-microvolt = <5000000>;
97 regulator-max-microvolt = <5000000>;
102 cpu-supply = <&vdd_arm>;
106 cpu-supply = <&vdd_arm>;
110 cpu-supply = <&vdd_arm>;
114 cpu-supply = <&vdd_arm>;
118 assigned-clocks = <&cru SCLK_MAC2IO>, <&cru SCLK_MAC2IO_EXT>;
119 assigned-clock-parents = <&gmac_clk>, <&gmac_clk>;
120 clock_in_out = "input";
121 phy-handle = <&rtl8211e>;
123 phy-supply = <&vcc_io_33>;
124 pinctrl-0 = <&rgmiim1_pins>;
125 pinctrl-names = "default";
132 compatible = "snps,dwmac-mdio";
133 #address-cells = <1>;
136 rtl8211e: ethernet-phy@1 {
137 compatible = "ethernet-phy-id001c.c915",
138 "ethernet-phy-ieee802.3-c22";
140 pinctrl-0 = <ð_phy_reset_pin>;
141 pinctrl-names = "default";
142 reset-assert-us = <10000>;
143 reset-deassert-us = <50000>;
144 reset-gpios = <&gpio1 RK_PC2 GPIO_ACTIVE_LOW>;
153 compatible = "rockchip,rk805";
155 interrupt-parent = <&gpio1>;
156 interrupts = <24 IRQ_TYPE_LEVEL_LOW>;
158 clock-output-names = "xin32k", "rk805-clkout2";
161 pinctrl-0 = <&pmic_int_l>;
162 pinctrl-names = "default";
163 rockchip,system-power-controller;
166 vcc1-supply = <&vdd_5v>;
167 vcc2-supply = <&vdd_5v>;
168 vcc3-supply = <&vdd_5v>;
169 vcc4-supply = <&vdd_5v>;
170 vcc5-supply = <&vcc_io_33>;
171 vcc6-supply = <&vdd_5v>;
175 regulator-name = "vdd_log";
178 regulator-min-microvolt = <712500>;
179 regulator-max-microvolt = <1450000>;
180 regulator-ramp-delay = <12500>;
182 regulator-state-mem {
183 regulator-on-in-suspend;
184 regulator-suspend-microvolt = <1000000>;
189 regulator-name = "vdd_arm";
192 regulator-min-microvolt = <712500>;
193 regulator-max-microvolt = <1450000>;
194 regulator-ramp-delay = <12500>;
196 regulator-state-mem {
197 regulator-on-in-suspend;
198 regulator-suspend-microvolt = <950000>;
203 regulator-name = "vcc_ddr";
207 regulator-state-mem {
208 regulator-on-in-suspend;
212 vcc_io_33: DCDC_REG4 {
213 regulator-name = "vcc_io_33";
216 regulator-min-microvolt = <3300000>;
217 regulator-max-microvolt = <3300000>;
219 regulator-state-mem {
220 regulator-on-in-suspend;
221 regulator-suspend-microvolt = <3300000>;
226 regulator-name = "vcc_18";
229 regulator-min-microvolt = <1800000>;
230 regulator-max-microvolt = <1800000>;
232 regulator-state-mem {
233 regulator-on-in-suspend;
234 regulator-suspend-microvolt = <1800000>;
238 vcc18_emmc: LDO_REG2 {
239 regulator-name = "vcc18_emmc";
242 regulator-min-microvolt = <1800000>;
243 regulator-max-microvolt = <1800000>;
245 regulator-state-mem {
246 regulator-on-in-suspend;
247 regulator-suspend-microvolt = <1800000>;
252 regulator-name = "vdd_10";
255 regulator-min-microvolt = <1000000>;
256 regulator-max-microvolt = <1000000>;
258 regulator-state-mem {
259 regulator-on-in-suspend;
260 regulator-suspend-microvolt = <1000000>;
268 pmuio-supply = <&vcc_io_33>;
269 vccio1-supply = <&vcc_io_33>;
270 vccio2-supply = <&vcc18_emmc>;
271 vccio3-supply = <&vcc_io_sdio>;
272 vccio4-supply = <&vcc_18>;
273 vccio5-supply = <&vcc_io_33>;
274 vccio6-supply = <&vcc_io_33>;
280 reset_button_pin: reset-button-pin {
281 rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
286 eth_phy_reset_pin: eth-phy-reset-pin {
287 rockchip,pins = <1 RK_PC2 RK_FUNC_GPIO &pcfg_pull_down>;
292 lan_led_pin: lan-led-pin {
293 rockchip,pins = <2 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
296 sys_led_pin: sys-led-pin {
297 rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
300 wan_led_pin: wan-led-pin {
301 rockchip,pins = <2 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
306 pmic_int_l: pmic-int-l {
307 rockchip,pins = <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_up>;
312 sdio_vcc_pin: sdio-vcc-pin {
313 rockchip,pins = <1 RK_PD4 RK_FUNC_GPIO &pcfg_pull_up>;
326 pinctrl-0 = <&sdmmc0_clk>, <&sdmmc0_cmd>, <&sdmmc0_dectn>, <&sdmmc0_bus4>;
327 pinctrl-names = "default";
332 vmmc-supply = <&vcc_sd>;
333 vqmmc-supply = <&vcc_io_sdio>;
338 rockchip,hw-tshut-mode = <0>;
339 rockchip,hw-tshut-polarity = <0>;