Skip to content

Commit

Permalink
Fix orangepizero wifi and usb otg (#7614)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArendJan authored Dec 24, 2024
1 parent 4c61f61 commit 1ab7357
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
6 changes: 5 additions & 1 deletion config/kernel/linux-sunxi-edge.config
Original file line number Diff line number Diff line change
Expand Up @@ -3536,7 +3536,11 @@ CONFIG_GPIO_DLN2=m
# CONFIG_GPIO_MADERA is not set
CONFIG_GPIO_MAX77650=m
# end of MFD GPIO expanders

CONFIG_XRADIO=m
CONFIG_XRADIO_NON_POWER_OF_TWO_BLOCKSIZES=y
# CONFIG_XRADIO_5GHZ_SUPPORT is not set
# CONFIG_XRADIO_WAPI_SUPPORT is not set
CONFIG_XRADIO_USE_EXTENSIONS
#
# SPI GPIO expanders
#
Expand Down
4 changes: 2 additions & 2 deletions lib/functions/compilation/patch/drivers_network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,10 @@ driver_xradio_xr819() {

# Wireless drivers for Xradio XR819 chipsets

if linux-version compare "${version}" ge 4.19 && linux-version compare "${version}" lt 6.11 && [[ "$LINUXFAMILY" == sunxi* ]]; then
if linux-version compare "${version}" ge 4.19 && [[ "$LINUXFAMILY" == sunxi* ]]; then

# Attach to specific commit (is branch:master)
local xradio_xr819_ver="commit:3a1f77fb2db248b7d18d93b67b16e0d6c91db184" # Commit date: Dec 25, 2023 (please update when updating commit ref)
local xradio_xr819_ver="commit:180aafb14191c78c1529d5a28ca58c7c9dcf2c55" # Commit date: Dec 6, 2024 (please update when updating commit ref)

display_alert "Adding" "Wireless drivers for Xradio XR819 chipsets" "info"

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
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 1b001f2ad..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
@@ -194,7 +203,7 @@ &uart2 {
};

&usb_otg {
- dr_mode = "peripheral";
+ dr_mode = "otg";
status = "okay";
};

0 comments on commit 1ab7357

Please sign in to comment.