kernel: bump 5.10 to 5.10.159
[openwrt/staging/stintel.git] / target / linux / rockchip / patches-5.10 / 104-rockchip-use-USB-host-by-default-on-rk3399-rock-pi-4.patch
1 From e12f67fe83446432ef16704c22ec23bd1dbcd094 Mon Sep 17 00:00:00 2001
2 From: Vicente Bergas <vicencb@gmail.com>
3 Date: Tue, 1 Dec 2020 16:41:32 +0100
4 Subject: arm64: dts: rockchip: use USB host by default on rk3399-rock-pi-4
5
6 Based on the board schematics at
7 https://dl.radxa.com/rockpi4/docs/hw/rockpi4/rockpi_4c_v12_sch_20200620.pdf
8 on page 19 there is an USB Type-A receptacle being used as an USB-OTG port.
9
10 But the Type-A connector is not valid for OTG operation, for this reason
11 there is a switch to select host or device role.
12 This is non-compliant and error prone because switching is manual.
13 So, use host mode as it corresponds for a Type-A receptacle.
14
15 Signed-off-by: Vicente Bergas <vicencb@gmail.com>
16 Link: https://lore.kernel.org/r/20201201154132.1286-4-vicencb@gmail.com
17 Signed-off-by: Heiko Stuebner <heiko@sntech.de>
18 ---
19 arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dts | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22 --- a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi
23 +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi
24 @@ -679,7 +679,7 @@
25
26 &usbdrd_dwc3_0 {
27 status = "okay";
28 - dr_mode = "otg";
29 + dr_mode = "host";
30 };
31
32 &usbdrd3_1 {