ARM: dts: meson: enabling the USB Host controller on Odroid-C1/C1+ board
authorEmiliano Ingrassia <ingrassia@epigenesys.com>
Wed, 20 Sep 2017 14:40:09 +0000 (16:40 +0200)
committerKevin Hilman <khilman@baylibre.com>
Fri, 6 Oct 2017 22:20:13 +0000 (15:20 -0700)
This patch enables the USB Host controller (USB1) and the relative USB2 PHY
on Odroid-C1/C1+ board.

Signed-off-by: Emiliano Ingrassia <ingrassia@epigenesys.com>
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Tested-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm/boot/dts/meson8b-odroidc1.dts

index e50f1a1..9ff6ca4 100644 (file)
        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";
+};