Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1640283

[PATCH v3 7/9] arm: dts: mt7623: enable the usb device on the mt7623n rfb

From <sean.wang@mediatek.com>
Newsgroups linux.kernel
Subject [PATCH v3 7/9] arm: dts: mt7623: enable the usb device on the mt7623n rfb
Date 2017-05-12 10:00 +0200
Message-ID <tGdEv-1eG-31@gated-at.bofh.it> (permalink)
References <tGdEu-1eG-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: John Crispin <john@phrozen.org>

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>
---
 arch/arm/boot/dts/mt7623n-rfb.dtsi | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/arch/arm/boot/dts/mt7623n-rfb.dtsi b/arch/arm/boot/dts/mt7623n-rfb.dtsi
index 4963e6a..2964b4c 100644
--- a/arch/arm/boot/dts/mt7623n-rfb.dtsi
+++ b/arch/arm/boot/dts/mt7623n-rfb.dtsi
@@ -28,6 +28,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 {
@@ -41,3 +50,12 @@
 &uart2 {
 	status = "okay";
 };
+
+&usb1 {
+	vbus-supply = <&usb_p1_vbus>;
+	status = "okay";
+};
+
+&u3phy1 {
+	status = "okay";
+};
-- 
2.7.4

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v3 0/9] arm: dts: extend mt7623 support <sean.wang@mediatek.com> - 2017-05-12 10:00 +0200
  [PATCH v3 9/9] arm: dts: mt7623: add dts file for Bananapi R2 (BPI-R2) board <sean.wang@mediatek.com> - 2017-05-12 10:00 +0200
    Re: [PATCH v3 9/9] arm: dts: mt7623: add dts file for Bananapi R2  (BPI-R2) board kbuild test robot <lkp@intel.com> - 2017-05-12 13:50 +0200
    Re: [PATCH v3 9/9] arm: dts: mt7623: add dts file for Bananapi R2  (BPI-R2) board Rob Herring <robh@kernel.org> - 2017-05-15 23:00 +0200
  [PATCH v3 3/9] dt-bindings: arm: mediatek: update for MT7623n SoC and relevant boards <sean.wang@mediatek.com> - 2017-05-12 10:00 +0200
    Re: [PATCH v3 3/9] dt-bindings: arm: mediatek: update for MT7623n SoC  and relevant boards Matthias Brugger <matthias.bgg@gmail.com> - 2017-05-15 10:00 +0200
      Re: [PATCH v3 3/9] dt-bindings: arm: mediatek: update for MT7623n  SoC and relevant boards Sean Wang <sean.wang@mediatek.com> - 2017-05-15 11:20 +0200
  [PATCH v3 2/9] arm: dts: mt7623: rename mt7623-evb.dts to arch/arm/boot/dts/mt7623n-rfb.dtsi <sean.wang@mediatek.com> - 2017-05-12 10:00 +0200
  [PATCH v3 5/9] ARM: mediatek: add MT7623a smp bringup code <sean.wang@mediatek.com> - 2017-05-12 10:00 +0200
  [PATCH v3 4/9] dt-bindings: arm: mediatek: add bindings for mediatek MT7623a SoC Platform <sean.wang@mediatek.com> - 2017-05-12 10:00 +0200
    Re: [PATCH v3 4/9] dt-bindings: arm: mediatek: add bindings for  mediatek MT7623a SoC Platform Rob Herring <robh@kernel.org> - 2017-05-15 23:00 +0200
  [PATCH v3 6/9] arm: dts: mt7623: cleanup the mt7623n rfb uart nodes <sean.wang@mediatek.com> - 2017-05-12 10:00 +0200
  [PATCH v3 7/9] arm: dts: mt7623: enable the usb device on the mt7623n rfb <sean.wang@mediatek.com> - 2017-05-12 10:00 +0200
    Re: [PATCH v3 7/9] arm: dts: mt7623: enable the usb device on the  mt7623n rfb kbuild test robot <lkp@intel.com> - 2017-05-12 13:20 +0200
  [PATCH v3 1/9] arm: dts: mt7623: add mt7623-mt6323.dtsi file <sean.wang@mediatek.com> - 2017-05-12 10:00 +0200
    Re: [PATCH v3 1/9] arm: dts: mt7623: add mt7623-mt6323.dtsi file kbuild test robot <lkp@intel.com> - 2017-05-12 12:50 +0200
      Re: [PATCH v3 1/9] arm: dts: mt7623: add mt7623-mt6323.dtsi file Matthias Brugger <matthias.bgg@gmail.com> - 2017-05-12 17:50 +0200
        Re: [PATCH v3 1/9] arm: dts: mt7623: add mt7623-mt6323.dtsi file Fengguang Wu <lkp@intel.com> - 2017-05-13 02:50 +0200

csiph-web