Skip to contentSkip to conversation

ARM: dts: meson: enabling the USB Host controller on Odroid-C1/C1+ board

PATCH In review Emiliano Ingrassia 4 participants 4 messages Sep 20, 2017 – Oct 6, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: meson: enabling the USB Host controller on Odroid-C1/C1+ board

This patch enables the USB Host controller (USB1) and the relative USB2 PHY on Odroid-C1/C1+ board.

---
 arch/arm/boot/dts/meson8b-odroidc1.dts | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
arch/arm/boot/dts/meson8b-odroidc1.dts +23 -0
index e50f1a1fdbc7..9ff6ca4e20d0 100644
@@ -76,3 +76,26 @@
 	pinctrl-0 = <&uart_ao_a_pins>;
 	pinctrl-names = "default";
 };
+
+&gpio_ao {
+	/*
+	 * WARNING: The USB Hub on the Odroid-C1/C1+ needs a reset signal
+	 * to be turned high in order to be detected by the USB Controller.
+	 * This signal should be handled by a USB specific power sequence
+	 * in order to reset the Hub when USB bus is powered down.
+	 */
+	usb-hub {
+		gpio-hog;
+		gpios = <GPIOAO_4 GPIO_ACTIVE_HIGH>;
+		output-high;
+		line-name = "usb-hub-reset";
+	};
+};
+
+&usb1_phy {
+	status = "okay";
+};
+
+&usb1 {
+	status = "okay";
+};
Signature · 1 line
2.14.1
#1 lore raw

PATCH 1/1 ARM: dts: meson: enabling the USB Host controller on Odroid-C1/C1+ board

Quoted 4 lines · Emiliano Ingrassia

This patch enables the USB Host controller (USB1) and the relative USB2 PHY on Odroid-C1/C1+ board.

I don't have any Odroid hardware to play with, but this looks good to me:

Quoted 43 lines
---
 arch/arm/boot/dts/meson8b-odroidc1.dts | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
arch/arm/boot/dts/meson8b-odroidc1.dts +23 -1
index e50f1a1fdbc7..9ff6ca4e20d0 100644
@@ -76,3 +76,26 @@
        pinctrl-0 = <&uart_ao_a_pins>;
        pinctrl-names = "default";
 };
+
+&gpio_ao {
+       /*
+        * WARNING: The USB Hub on the Odroid-C1/C1+ needs a reset signal
+        * to be turned high in order to be detected by the USB Controller.
+        * This signal should be handled by a USB specific power sequence
+        * in order to reset the Hub when USB bus is powered down.
+        */
+       usb-hub {
+               gpio-hog;
+               gpios = <GPIOAO_4 GPIO_ACTIVE_HIGH>;
+               output-high;
+               line-name = "usb-hub-reset";
+       };
+};
+
+&usb1_phy {
+       status = "okay";
+};
+
+&usb1 {
+       status = "okay";
+};
--

2.14.1

_______________________________________________
linux-amlogic mailing list
linux-amlogic at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic