build/patch/kernel/archive/rockchip64-6.0/overlays-12-add-rockpi4cplus-usb-host.patch

51 lines
1.8 KiB
Diff
Raw Normal View History

diff --git a/arch/arm64/boot/dts/rockchip/overlay/Makefile b/arch/arm64/boot/dts/rockchip/overlay/Makefile
index 340f88be0..e33e98e0d 100644
--- a/arch/arm64/boot/dts/rockchip/overlay/Makefile
+++ b/arch/arm64/boot/dts/rockchip/overlay/Makefile
@@ -6,6 +6,7 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
rockchip-rk3328-opp-1.4ghz.dtbo \
rockchip-rk3328-opp-1.5ghz.dtbo \
rockchip-rk3399-opp-2ghz.dtbo \
+ rockchip-rockpi4cplus-usb-host.dtbo \
rockchip-spi-jedec-nor.dtbo \
rockchip-spi-spidev.dtbo \
rockchip-uart4.dtbo \
diff --git a/arch/arm64/boot/dts/rockchip/overlay/README.rockchip-overlays b/arch/arm64/boot/dts/rockchip/overlay/README.rockchip-overlays
index d09351b11..2ed50f0f0 100644
--- a/arch/arm64/boot/dts/rockchip/overlay/README.rockchip-overlays
+++ b/arch/arm64/boot/dts/rockchip/overlay/README.rockchip-overlays
@@ -44,6 +44,11 @@ WARNING! Not officially supported by Rockchip!!!
Adds the 2GHz big and 1.5 GHz LITTLE opps for overclocking
WARNING! Not officially supported by Rockchip!!!
+### rockpi4cplus-usb-host
+
+Switches the top USB 3.0 port to host mode.
+WARNING! Not officially supported by Rockchip!!!
+
### spi-jedec-nor
Activates MTD support for JEDEC compatible SPI NOR flash chips on SPI bus
diff --git a/arch/arm64/boot/dts/rockchip/overlay/rockchip-rockpi4cplus-usb-host.dts b/arch/arm64/boot/dts/rockchip/overlay/rockchip-rockpi4cplus-usb-host.dts
new file mode 100644
index 000000000..654ae888f
--- /dev/null
+++ b/arch/arm64/boot/dts/rockchip/overlay/rockchip-rockpi4cplus-usb-host.dts
@@ -0,0 +1,16 @@
+//For RockPI 4C+: Change the top USB3.0 port to host mode
+
+/dts-v1/;
+/plugin/;
+
+/ {
+ compatible = "radxa,rockpi4c-plus", "radxa,rockpi4", "rockchip,rk3399";
+
+ fragment@0 {
+ target = <&usbdrd_dwc3_0>;
+ __overlay__ {
+ dr_mode = "host";
+ };
+ };
+};
+