ARM64: dts: meson-gxbb-odroidc2: Enable USB Nodes
authorBrian Kim <brian.kim@hardkernel.com>
Tue, 4 Oct 2016 07:06:43 +0000 (16:06 +0900)
committerKevin Hilman <khilman@baylibre.com>
Tue, 18 Oct 2016 16:36:01 +0000 (09:36 -0700)
Enable both gxbb USB controller and add a 5V regulator for the OTG port
VBUS

Signed-off-by: Brian Kim <brian.kim@hardkernel.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts

index 325b9c5..a45d101 100644 (file)
                reg = <0x0 0x0 0x0 0x80000000>;
        };
 
+       usb_otg_pwr: regulator-usb-pwrs {
+               compatible = "regulator-fixed";
+
+               regulator-name = "USB_OTG_PWR";
+
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+
+               gpio = <&gpio_ao GPIOAO_5 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
+
        leds {
                compatible = "gpio-leds";
                blue {
        pinctrl-0 = <&i2c_a_pins>;
        pinctrl-names = "default";
 };
+
+&usb0_phy {
+       status = "okay";
+       phy-supply = <&usb_otg_pwr>;
+};
+
+&usb1_phy {
+       status = "okay";
+};
+
+&usb0 {
+       status = "okay";
+};
+
+&usb1 {
+       status = "okay";
+};