From 43e1f75ea3789eb63167e9f470e52436da5c76fb Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Mon, 22 Apr 2019 08:30:51 +0200 Subject: [PATCH] [ orangepizeroplus2 ] enable missing OTG bits --- ...d-orangepizeroplus2-missing-otg-bits.patch | 24 +++++++++++++++++++ ...d-orangepizeroplus2-missing-otg-bits.patch | 24 +++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 patch/kernel/sunxi-dev/board-orangepizeroplus2-missing-otg-bits.patch create mode 100644 patch/kernel/sunxi-next/board-orangepizeroplus2-missing-otg-bits.patch diff --git a/patch/kernel/sunxi-dev/board-orangepizeroplus2-missing-otg-bits.patch b/patch/kernel/sunxi-dev/board-orangepizeroplus2-missing-otg-bits.patch new file mode 100644 index 0000000000..32f2c0a2df --- /dev/null +++ b/patch/kernel/sunxi-dev/board-orangepizeroplus2-missing-otg-bits.patch @@ -0,0 +1,24 @@ +diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts +index e1ee1cd09..522a08d6c 100644 +--- a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts ++++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts +@@ -1,5 +1,6 @@ + /* + * Copyright (C) 2017 Jagan Teki ++ * Copyright (C) 2019 Adopted by Igor + * + * This file is dual-licensed: you can use it either under the terms + * of the GPL or the X11 license, at your option. Note that this dual +@@ -180,3 +181,12 @@ + pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; + status = "okay"; + }; ++ ++&usb_otg { ++ dr_mode = "otg"; ++ status = "okay"; ++}; ++ ++&usbphy { ++ status = "okay"; ++}; diff --git a/patch/kernel/sunxi-next/board-orangepizeroplus2-missing-otg-bits.patch b/patch/kernel/sunxi-next/board-orangepizeroplus2-missing-otg-bits.patch new file mode 100644 index 0000000000..32f2c0a2df --- /dev/null +++ b/patch/kernel/sunxi-next/board-orangepizeroplus2-missing-otg-bits.patch @@ -0,0 +1,24 @@ +diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts +index e1ee1cd09..522a08d6c 100644 +--- a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts ++++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts +@@ -1,5 +1,6 @@ + /* + * Copyright (C) 2017 Jagan Teki ++ * Copyright (C) 2019 Adopted by Igor + * + * This file is dual-licensed: you can use it either under the terms + * of the GPL or the X11 license, at your option. Note that this dual +@@ -180,3 +181,12 @@ + pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; + status = "okay"; + }; ++ ++&usb_otg { ++ dr_mode = "otg"; ++ status = "okay"; ++}; ++ ++&usbphy { ++ status = "okay"; ++};