summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2017-07-31 09:36:40 +0200
committerMatthias Brugger <matthias.bgg@gmail.com>2017-07-31 13:31:30 +0200
commit59c03de0e10ae225e6ea506d9b4b4e33556dfe5b (patch)
tree0907f99e01c2c592194fb10c4611de945c02ae85 /arch/arm/boot
parentarm: dts: mt7623: cleanup the mt7623n rfb uart nodes (diff)
downloadlinux-59c03de0e10ae225e6ea506d9b4b4e33556dfe5b.tar.xz
linux-59c03de0e10ae225e6ea506d9b4b4e33556dfe5b.zip
arm: dts: mt7623: enable the usb device on the mt7623n rfb
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>
Diffstat (limited to 'arch/arm/boot')
-rw-r--r--arch/arm/boot/dts/mt7623n-rfb.dtsi18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/mt7623n-rfb.dtsi b/arch/arm/boot/dts/mt7623n-rfb.dtsi
index 5e0dd794f206..1e9579090629 100644
--- a/arch/arm/boot/dts/mt7623n-rfb.dtsi
+++ b/arch/arm/boot/dts/mt7623n-rfb.dtsi
@@ -49,6 +49,15 @@
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 {
@@ -72,3 +81,12 @@
vmmc-supply = <&mt6323_vmch_reg>;
vqmmc-supply = <&mt6323_vmc_reg>;
};
+
+&usb1 {
+ vbus-supply = <&usb_p1_vbus>;
+ status = "okay";
+};
+
+&u3phy1 {
+ status = "okay";
+};