From 4a90f7e490ad31c7083155e7242efb36adf5c2c8 Mon Sep 17 00:00:00 2001 From: Martin Ayotte Date: Mon, 25 Mar 2019 17:46:07 -0400 Subject: [PATCH] fix bad usb0-iddet gpio in OPi3 --- .../sunxi-dev/board-orangepi3-fix-usb0-iddet.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 patch/kernel/sunxi-dev/board-orangepi3-fix-usb0-iddet.patch diff --git a/patch/kernel/sunxi-dev/board-orangepi3-fix-usb0-iddet.patch b/patch/kernel/sunxi-dev/board-orangepi3-fix-usb0-iddet.patch new file mode 100644 index 0000000000..e314c64755 --- /dev/null +++ b/patch/kernel/sunxi-dev/board-orangepi3-fix-usb0-iddet.patch @@ -0,0 +1,13 @@ +diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts +index c0150b7..cdfdcb3 100644 +--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts ++++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts +@@ -287,7 +353,7 @@ + }; + + &usb2phy { +- usb0_id_det-gpios = <&pio 2 6 GPIO_ACTIVE_HIGH>; /* PC6 */ ++ usb0_id_det-gpios = <&pio 2 15 GPIO_ACTIVE_HIGH>; /* PC15 */ + usb0_vbus-supply = <®_vcc5v>; + usb3_vbus-supply = <®_vcc5v>; + status = "okay";