From e055d9d9674666645b2cd08b8f3129c80dcf3f15 Mon Sep 17 00:00:00 2001 From: Zoltan HERPAI Date: Sat, 9 Jan 2016 16:20:39 +0000 Subject: sunxi: initial 4.4 support Signed-off-by: Zoltan HERPAI git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48161 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../134-dt-sun8i-orangepiplus-enable-usbhost.patch | 79 ++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 target/linux/sunxi/patches-4.4/134-dt-sun8i-orangepiplus-enable-usbhost.patch (limited to 'target/linux/sunxi/patches-4.4/134-dt-sun8i-orangepiplus-enable-usbhost.patch') diff --git a/target/linux/sunxi/patches-4.4/134-dt-sun8i-orangepiplus-enable-usbhost.patch b/target/linux/sunxi/patches-4.4/134-dt-sun8i-orangepiplus-enable-usbhost.patch new file mode 100644 index 0000000000..403e185459 --- /dev/null +++ b/target/linux/sunxi/patches-4.4/134-dt-sun8i-orangepiplus-enable-usbhost.patch @@ -0,0 +1,79 @@ +From 37e04fd781d3fc6d08116d38d34ec8124d916441 Mon Sep 17 00:00:00 2001 +From: Jens Kuske +Date: Tue, 17 Nov 2015 17:12:07 +0100 +Subject: [PATCH] ARM: dts: sun8i-h3-orangepi-plus: Enable USB host controllers + +Enable the 2 USB host controllers used on the Orange Pi Plus +and add the necessary regulators. + +Signed-off-by: Reinder de Haan +Signed-off-by: Hans de Goede +Signed-off-by: Jens Kuske +--- + arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts | 44 ++++++++++++++++++++++++++++ + 1 file changed, 44 insertions(+) + +diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts +index e67df59..1cb6c66 100644 +--- a/arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts ++++ b/arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts +@@ -58,6 +58,35 @@ + chosen { + stdout-path = "serial0:115200n8"; + }; ++ ++ reg_usb3_vbus: usb3-vbus { ++ compatible = "regulator-fixed"; ++ pinctrl-names = "default"; ++ pinctrl-0 = <&usb3_vbus_pin_a>; ++ regulator-name = "usb3-vbus"; ++ regulator-min-microvolt = <5000000>; ++ regulator-max-microvolt = <5000000>; ++ regulator-boot-on; ++ enable-active-high; ++ gpio = <&pio 6 11 GPIO_ACTIVE_HIGH>; ++ }; ++}; ++ ++&ehci1 { ++ status = "okay"; ++}; ++ ++&ehci3 { ++ status = "okay"; ++}; ++ ++&pio { ++ usb3_vbus_pin_a: usb3_vbus_pin@0 { ++ allwinner,pins = "PG11"; ++ allwinner,function = "gpio_out"; ++ allwinner,drive = ; ++ allwinner,pull = ; ++ }; + }; + + &mmc0 { +@@ -70,8 +99,23 @@ + status = "okay"; + }; + ++®_usb1_vbus { ++ gpio = <&pio 6 13 GPIO_ACTIVE_HIGH>; ++ status = "okay"; ++}; ++ + &uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_pins_a>; + status = "okay"; + }; ++ ++&usb1_vbus_pin_a { ++ allwinner,pins = "PG13"; ++}; ++ ++&usbphy { ++ usb1_vbus-supply = <®_usb1_vbus>; ++ usb3_vbus-supply = <®_usb3_vbus>; ++ status = "okay"; ++}; -- cgit v1.2.3