kernel: bump 5.4 to 5.4.58
[openwrt/openwrt.git] / target / linux / rockchip / patches-5.4 / 102-rockchip-enable-LAN-port-on-NanoPi-R2S.patch
1 From 0fc3b9b7619c4878f73a6a7989863f0d1a3fd392 Mon Sep 17 00:00:00 2001
2 From: David Bauer <mail@david-bauer.net>
3 Date: Fri, 10 Jul 2020 21:12:16 +0200
4 Subject: [PATCH] rockchip: enabled LAN port on NanoPi R2S
5
6 Enable the USB3 port on the FriendlyARM NanoPi R2S.
7 This is required for the USB3 attached LAN port to work.
8
9 Signed-off-by: David Bauer <mail@david-bauer.net>
10 ---
11 .../boot/dts/rockchip/rk3328-nanopi-r2s.dts | 27 +++++++++++++++++++
12 1 file changed, 27 insertions(+)
13
14 --- a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts
15 +++ b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dts
16 @@ -68,6 +68,18 @@
17 regulator-max-microvolt = <5000000>;
18 };
19
20 + vcc_rtl8153: vcc-rtl8153-regulator {
21 + compatible = "regulator-fixed";
22 + gpio = <&gpio2 RK_PC6 GPIO_ACTIVE_HIGH>;
23 + pinctrl-names = "default";
24 + pinctrl-0 = <&rtl8153_en_drv>;
25 + regulator-always-on;
26 + regulator-name = "vcc_rtl8153";
27 + regulator-min-microvolt = <5000000>;
28 + regulator-max-microvolt = <5000000>;
29 + enable-active-high;
30 + };
31 +
32 leds {
33 compatible = "gpio-leds";
34
35 @@ -299,6 +311,12 @@
36 rockchip,pins = <1 RK_PD4 RK_FUNC_GPIO &pcfg_pull_up>;
37 };
38 };
39 +
40 + usb {
41 + rtl8153_en_drv: rtl8153-en-drv {
42 + rockchip,pins = <2 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
43 + };
44 + };
45 };
46
47 &sdmmc {
48 @@ -339,3 +357,12 @@
49 &usb_host0_ohci {
50 status = "okay";
51 };
52 +
53 +&usbdrd3 {
54 + status = "okay";
55 +};
56 +
57 +&usbdrd_dwc3 {
58 + dr_mode = "host";
59 + status = "okay";
60 +};