devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: <sean.wang@mediatek.com>
To: robh+dt@kernel.org, matthias.bgg@gmail.com, mark.rutland@arm.com,
	devicetree@vger.kernel.org, john@phrozen.org,
	linux-mediatek@lists.infradead.org
Cc: Sean Wang <sean.wang@mediatek.com>,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 7/9] arm: dts: mt7623: enable the usb device on the mt7623n rfb
Date: Fri, 12 May 2017 15:56:44 +0800	[thread overview]
Message-ID: <98cb8c175852364c58425d7b59fe7b182e2b8d02.1494574682.git.sean.wang@mediatek.com> (raw)
In-Reply-To: <cover.1494574682.git.sean.wang@mediatek.com>

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

  parent reply	other threads:[~2017-05-12  7:56 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-12  7:56 [PATCH v3 0/9] arm: dts: extend mt7623 support sean.wang-NuS5LvNUpcJWk0Htik3J/w
2017-05-12  7:56 ` [PATCH v3 1/9] arm: dts: mt7623: add mt7623-mt6323.dtsi file sean.wang
     [not found]   ` <e8d8ba305d0e245753ffc78479b4ca4cfd4c4d5f.1494574682.git.sean.wang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2017-05-12 10:46     ` kbuild test robot
2017-05-12 15:46       ` Matthias Brugger
     [not found]         ` <7f1d5fb3-5295-bb61-f21b-9d08bfaf070c-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-05-13  0:44           ` Fengguang Wu
2017-05-12  7:56 ` [PATCH v3 3/9] dt-bindings: arm: mediatek: update for MT7623n SoC and relevant boards sean.wang
     [not found]   ` <e8f5dc8578c3980ac9c6411ad7fae1c8d747f567.1494574682.git.sean.wang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2017-05-15  7:53     ` Matthias Brugger
2017-05-15  9:19       ` Sean Wang
2017-05-12  7:56 ` [PATCH v3 4/9] dt-bindings: arm: mediatek: add bindings for mediatek MT7623a SoC Platform sean.wang
     [not found]   ` <1e21077e4676a8b2596ec5f04251905760147920.1494574682.git.sean.wang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2017-05-15 20:51     ` Rob Herring
     [not found] ` <cover.1494574682.git.sean.wang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2017-05-12  7:56   ` [PATCH v3 2/9] arm: dts: mt7623: rename mt7623-evb.dts to arch/arm/boot/dts/mt7623n-rfb.dtsi sean.wang-NuS5LvNUpcJWk0Htik3J/w
2017-05-12  7:56   ` [PATCH v3 5/9] ARM: mediatek: add MT7623a smp bringup code sean.wang-NuS5LvNUpcJWk0Htik3J/w
2017-05-12  7:56 ` [PATCH v3 6/9] arm: dts: mt7623: cleanup the mt7623n rfb uart nodes sean.wang
2017-05-12  7:56 ` sean.wang [this message]
     [not found]   ` <98cb8c175852364c58425d7b59fe7b182e2b8d02.1494574682.git.sean.wang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2017-05-12 11:11     ` [PATCH v3 7/9] arm: dts: mt7623: enable the usb device on the mt7623n rfb kbuild test robot
2017-05-12  7:56 ` [PATCH v3 8/9] arm: dts: mt7623: enable the nand device on the mt7623n nand rfb sean.wang
2017-05-12  7:56 ` [PATCH v3 9/9] arm: dts: mt7623: add dts file for Bananapi R2 (BPI-R2) board sean.wang
     [not found]   ` <0beebd0e209b4caeb349a062be7ef245d0689fb6.1494574682.git.sean.wang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
2017-05-12 11:39     ` kbuild test robot
2017-05-15 20:56     ` Rob Herring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=98cb8c175852364c58425d7b59fe7b182e2b8d02.1494574682.git.sean.wang@mediatek.com \
    --to=sean.wang@mediatek.com \
    --cc=devicetree@vger.kernel.org \
    --cc=john@phrozen.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=mark.rutland@arm.com \
    --cc=matthias.bgg@gmail.com \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).