Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1437396AbdDZJh4 (ORCPT ); Wed, 26 Apr 2017 05:37:56 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:46119 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2997133AbdDZJ1k (ORCPT ); Wed, 26 Apr 2017 05:27:40 -0400 From: To: , , , , , , , CC: , , , Sean Wang Subject: [PATCH v2 27/30] arm: dts: mt7623: enable the usb device on the mt7623n rfb Date: Wed, 26 Apr 2017 17:26:11 +0800 Message-ID: <1493198774-4478-28-git-send-email-sean.wang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1493198774-4478-1-git-send-email-sean.wang@mediatek.com> References: <1493198774-4478-1-git-send-email-sean.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1115 Lines: 47 From: John Crispin 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 Signed-off-by: Sean Wang --- 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"; +}; -- 1.9.1