arm: dts: mt7623: enable the usb device on the mt7623n rfb
authorJohn Crispin <john@phrozen.org>
Mon, 31 Jul 2017 07:36:40 +0000 (15:36 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Mon, 31 Jul 2017 11:31:30 +0000 (13:31 +0200)
All versions of the mt7623n RFB have an USB port so enable the device.
There is a gpio that gets used to power up the port supply. Add support
for this gpio using the fixed-regulator driver.

Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm/boot/dts/mt7623n-rfb.dtsi

index 5e0dd79..1e95790 100644 (file)
                serial1 = &uart1;
                serial2 = &uart2;
        };
+
+       usb_p1_vbus: regulator@0 {
+               compatible = "regulator-fixed";
+               regulator-name = "usb_vbus";
+               regulator-min-microvolt = <5000000>;
+               regulator-max-microvolt = <5000000>;
+               gpio = <&pio 135 GPIO_ACTIVE_HIGH>;
+               enable-active-high;
+       };
 };
 
 &uart0 {
        vmmc-supply = <&mt6323_vmch_reg>;
        vqmmc-supply = <&mt6323_vmc_reg>;
 };
+
+&usb1 {
+       vbus-supply = <&usb_p1_vbus>;
+       status = "okay";
+};
+
+&u3phy1 {
+       status = "okay";
+};