]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM64: dts: meson-gxbb-p20x: Enable USB Nodes
authorJerome Brunet <jbrunet@baylibre.com>
Sun, 11 Sep 2016 13:41:10 +0000 (15:41 +0200)
committerKevin Hilman <khilman@baylibre.com>
Thu, 15 Sep 2016 22:02:25 +0000 (15:02 -0700)
Enable both gxbb USB controller and add a 5V regulator for the OTG port
VBUS

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
[khilman: rename vbus node to match P200 schematics]
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi

index 0eaca7277cfd074d4f7873660e0a43db680bd578..06a34dc6002f5a78aec95e7e75f1727c0fdbf4be 100644 (file)
                device_type = "memory";
                reg = <0x0 0x0 0x0 0x40000000>;
        };
+
+       usb_pwr: regulator-usb-pwrs {
+               compatible = "regulator-fixed";
+
+               regulator-name = "USB_PWR";
+
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+
+               /* signal name in schematic: USB_PWR_EN */
+               gpio = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
 };
 
 /* This UART is brought out to the DB9 connector */
        pinctrl-0 = <&remote_input_ao_pins>;
        pinctrl-names = "default";
 };
+
+&usb0_phy {
+       status = "okay";
+       phy-supply = <&usb_pwr>;
+};
+
+&usb1_phy {
+       status = "okay";
+};
+
+&usb0 {
+       status = "okay";
+};
+
+&usb1 {
+       status = "okay";
+};