From eabb6281555192cc02d2131d1be76548135d32af Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 6 Jan 2025 15:25:47 +0100 Subject: [PATCH] Fix usb otg after 6.12 update --- .../patches.armbian/orangepizero-fix-usb-otg.patch | 12 ++++++++++++ patch/kernel/archive/sunxi-6.12/series.armbian | 1 + patch/kernel/archive/sunxi-6.12/series.conf | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 patch/kernel/archive/sunxi-6.12/patches.armbian/orangepizero-fix-usb-otg.patch diff --git a/patch/kernel/archive/sunxi-6.12/patches.armbian/orangepizero-fix-usb-otg.patch b/patch/kernel/archive/sunxi-6.12/patches.armbian/orangepizero-fix-usb-otg.patch new file mode 100644 index 0000000000..f57fa404cc --- /dev/null +++ b/patch/kernel/archive/sunxi-6.12/patches.armbian/orangepizero-fix-usb-otg.patch @@ -0,0 +1,12 @@ +diff --git a/arch/arm/boot/dts/allwinner/sun8i-h2-plus-orangepi-zero.dts b/arch/arm/boot/dts/allwinner/sun8i-h2-plus-orangepi-zero.dts +index 1bb54edb0..f5c0e103b 100644 +--- a/arch/arm/boot/dts/allwinner/sun8i-h2-plus-orangepi-zero.dts ++++ b/arch/arm/boot/dts/allwinner/sun8i-h2-plus-orangepi-zero.dts +@@ -203,7 +203,7 @@ &uart2 { + }; + + &usb_otg { +- dr_mode = "peripheral"; ++ dr_mode = "otg"; + status = "okay"; + }; diff --git a/patch/kernel/archive/sunxi-6.12/series.armbian b/patch/kernel/archive/sunxi-6.12/series.armbian index 511eb98050..b32dc61e03 100644 --- a/patch/kernel/archive/sunxi-6.12/series.armbian +++ b/patch/kernel/archive/sunxi-6.12/series.armbian @@ -176,3 +176,4 @@ patches.armbian/Add-BananaPi-BPI-M4-Zero-pinctrl.patch patches.armbian/Add-BananaPi-BPI-M4-Zero-overlays.patch patches.armbian/Fix-ghost-touches-on-tsc2007-tft-screen.patch + patches.armbian/orangepizero-fix-usb-otg.patch \ No newline at end of file diff --git a/patch/kernel/archive/sunxi-6.12/series.conf b/patch/kernel/archive/sunxi-6.12/series.conf index eac5868470..76aa7b9bdd 100644 --- a/patch/kernel/archive/sunxi-6.12/series.conf +++ b/patch/kernel/archive/sunxi-6.12/series.conf @@ -432,7 +432,7 @@ patches.armbian/Add-BananaPi-BPI-M4-Zero-pinctrl.patch patches.armbian/Add-BananaPi-BPI-M4-Zero-overlays.patch patches.armbian/Fix-ghost-touches-on-tsc2007-tft-screen.patch - + patches.armbian/orangepizero-fix-usb-otg.patch # The patches.addon folder where new patches are added before they get into # one of the two main series. #