From patchwork Mon Feb 18 02:06:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 2154991 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 34AD6DF283 for ; Mon, 18 Feb 2013 02:10:55 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1U7G8C-0003ws-Fd; Mon, 18 Feb 2013 02:07:00 +0000 Received: from co9ehsobe003.messaging.microsoft.com ([207.46.163.26] helo=co9outboundpool.messaging.microsoft.com) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1U7G89-0003wZ-8V for linux-arm-kernel@lists.infradead.org; Mon, 18 Feb 2013 02:06:58 +0000 Received: from mail141-co9-R.bigfish.com (10.236.132.240) by CO9EHSOBE040.bigfish.com (10.236.130.103) with Microsoft SMTP Server id 14.1.225.23; Mon, 18 Feb 2013 02:06:54 +0000 Received: from mail141-co9 (localhost [127.0.0.1]) by mail141-co9-R.bigfish.com (Postfix) with ESMTP id E5D312C01B4; Mon, 18 Feb 2013 02:06:54 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: 3 X-BigFish: VS3(zcb8kzzz1f42h1ee6h1de0h1202h1e76h1d1ah1d2ahzz8275bhz2dh2a8h668h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h1354h137ah139eh13b6h1441h1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1155h) Received: from mail141-co9 (localhost.localdomain [127.0.0.1]) by mail141-co9 (MessageSwitch) id 1361153213624654_21673; Mon, 18 Feb 2013 02:06:53 +0000 (UTC) Received: from CO9EHSMHS001.bigfish.com (unknown [10.236.132.250]) by mail141-co9.bigfish.com (Postfix) with ESMTP id 963DF1E0045; Mon, 18 Feb 2013 02:06:53 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CO9EHSMHS001.bigfish.com (10.236.130.11) with Microsoft SMTP Server (TLS) id 14.1.225.23; Mon, 18 Feb 2013 02:06:53 +0000 Received: from az84smr01.freescale.net (10.64.34.197) by 039-SN1MMR1-001.039d.mgd.msft.net (10.84.1.13) with Microsoft SMTP Server (TLS) id 14.2.328.11; Mon, 18 Feb 2013 02:06:51 +0000 Received: from localhost.localdomain (nchen-desktop.ap.freescale.net [10.192.242.40]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id r1I26jJM012351; Sun, 17 Feb 2013 19:06:48 -0700 From: Peter Chen To: Subject: [PATCH v2 1/1] ARM: dts: imx6q-sabresd: Add USB support Date: Mon, 18 Feb 2013 10:06:44 +0800 Message-ID: <1361153204-6426-1-git-send-email-peter.chen@freescale.com> X-Mailer: git-send-email 1.7.0.4 MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130217_210657_441991_675FDF47 X-CRM114-Status: GOOD ( 10.13 ) X-Spam-Score: -4.2 (----) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-4.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [207.46.163.26 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Add USB support for imx6q sabresd board Signed-off-by: Peter Chen --- Changes for v2: - Changes the dt file style based on 3.9-rc1 - Add one blank line between node arch/arm/boot/dts/imx6q-sabresd.dts | 25 +++++++++++++++++++++++++ arch/arm/boot/dts/imx6q.dtsi | 6 ++++++ 2 files changed, 31 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/imx6q-sabresd.dts b/arch/arm/boot/dts/imx6q-sabresd.dts index 2dea304..bafaccd 100644 --- a/arch/arm/boot/dts/imx6q-sabresd.dts +++ b/arch/arm/boot/dts/imx6q-sabresd.dts @@ -21,6 +21,19 @@ reg = <0x10000000 0x40000000>; }; + regulators { + compatible = "simple-bus"; + + reg_usb_otg_vbus: usb_otg_vbus { + compatible = "regulator-fixed"; + regulator-name = "usb_otg_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio3 22 0>; + enable-active-high; + }; + }; + gpio-keys { compatible = "gpio-keys"; @@ -62,6 +75,18 @@ }; }; +&usbotg { + vbus-supply = <®_usb_otg_vbus>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbotg_2>; + disable-over-current; + status = "okay"; +}; + +&usbh1 { + status = "okay"; +}; + &fec { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_enet_1>; diff --git a/arch/arm/boot/dts/imx6q.dtsi b/arch/arm/boot/dts/imx6q.dtsi index cba021e..0125250 100644 --- a/arch/arm/boot/dts/imx6q.dtsi +++ b/arch/arm/boot/dts/imx6q.dtsi @@ -207,6 +207,12 @@ 1592 0x17059 /* MX6Q_PAD_GPIO_1__ANATOP_USBOTG_ID */ >; }; + + pinctrl_usbotg_2: usbotggrp-2 { + fsl,pins = < + 1591 0x17059 /* MX6Q_PAD_ENET_RX_ER__ANATOP_USBOTG_ID */ + >; + }; }; usdhc2 {