From patchwork Fri Aug 23 05:56:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Chen X-Patchwork-Id: 2848595 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C09789F239 for ; Fri, 23 Aug 2013 07:55:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9F2D220163 for ; Fri, 23 Aug 2013 07:55:48 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0EEFF2012C for ; Fri, 23 Aug 2013 07:55:44 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VCmDb-0004N4-JT; Fri, 23 Aug 2013 07:55:39 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VCmDZ-0003Yd-D7; Fri, 23 Aug 2013 07:55:37 +0000 Received: from mail-db9lp0251.outbound.messaging.microsoft.com ([213.199.154.251] helo=db9outboundpool.messaging.microsoft.com) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VCmDT-0003Xt-JM for linux-arm-kernel@lists.infradead.org; Fri, 23 Aug 2013 07:55:35 +0000 Received: from mail201-db9-R.bigfish.com (10.174.16.237) by DB9EHSOBE025.bigfish.com (10.174.14.88) with Microsoft SMTP Server id 14.1.225.22; Fri, 23 Aug 2013 07:55:07 +0000 Received: from mail201-db9 (localhost [127.0.0.1]) by mail201-db9-R.bigfish.com (Postfix) with ESMTP id 542A0E0097; Fri, 23 Aug 2013 07:55:07 +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: 1 X-BigFish: VS1(z551bizzz1f42h208ch1ee6h1de0h1fdah2073h1202h1e76h1d1ah1d2ah1fc6hzz1de098h8275bh1de097hz2dh2a8h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1ad9h1b0ah1b2fh1fb3h1d0ch1d2eh1d3fh1dc1h1dfeh1dffh1e23h1fe8h1ff5h1155h) Received: from mail201-db9 (localhost.localdomain [127.0.0.1]) by mail201-db9 (MessageSwitch) id 1377244505385007_29975; Fri, 23 Aug 2013 07:55:05 +0000 (UTC) Received: from DB9EHSMHS001.bigfish.com (unknown [10.174.16.241]) by mail201-db9.bigfish.com (Postfix) with ESMTP id 5B1A6140253; Fri, 23 Aug 2013 07:55:05 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by DB9EHSMHS001.bigfish.com (10.174.14.11) with Microsoft SMTP Server (TLS) id 14.16.227.3; Fri, 23 Aug 2013 07:55:04 +0000 Received: from tx30smr01.am.freescale.net (10.81.153.31) by 039-SN1MMR1-004.039d.mgd.msft.net (10.84.1.14) with Microsoft SMTP Server (TLS) id 14.3.146.2; Fri, 23 Aug 2013 07:54:54 +0000 Received: from shlinux1.ap.freescale.net (shlinux1.ap.freescale.net [10.192.225.216]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id r7N7soN6022161; Fri, 23 Aug 2013 00:54:52 -0700 From: Peter Chen To: Subject: [PATCH 1/1] ARM: dts: imx28-evk: Add pinctrl for USB OTG ID pin Date: Fri, 23 Aug 2013 13:56:30 +0800 Message-ID: <1377237390-15983-1-git-send-email-peter.chen@freescale.com> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn% X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130823_035531_935786_AF5D3C38 X-CRM114-Status: GOOD ( 10.20 ) X-Spam-Score: -1.9 (-) Cc: marex@denx.de, festevam@gmail.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP After that, the dual-role switch can be used at imx28-evk. Due to hardware limitations, it needs to switch VDD 5V SOURCE SELECT to "USB 5V" if the user wants to use OTG dual-role switch function. it needs to switch VDD 5V SOURCE SELECT to "WALL 5V" if the user wants to Host 1. Signed-off-by: Peter Chen Acked-by: Marek Vasut --- arch/arm/boot/dts/imx28-evk.dts | 2 ++ arch/arm/boot/dts/imx28.dtsi | 11 +++++++++++ 2 files changed, 13 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/imx28-evk.dts b/arch/arm/boot/dts/imx28-evk.dts index 15715d9..fa48bd5 100644 --- a/arch/arm/boot/dts/imx28-evk.dts +++ b/arch/arm/boot/dts/imx28-evk.dts @@ -243,6 +243,8 @@ ahb@80080000 { usb0: usb@80080000 { vbus-supply = <®_usb0_vbus>; + pinctrl-names = "default"; + pinctrl-0 = <&usb0_pins_a>; status = "okay"; }; diff --git a/arch/arm/boot/dts/imx28.dtsi b/arch/arm/boot/dts/imx28.dtsi index 7363fde..54bd17c 100644 --- a/arch/arm/boot/dts/imx28.dtsi +++ b/arch/arm/boot/dts/imx28.dtsi @@ -731,6 +731,17 @@ fsl,pull-up = <0>; }; + usb0_pins_a: usb0@0 { + reg = <0>; + fsl,pinmux-ids = < + 0x3071 /* MX28_PAD_AUART1_RTS__USB0_ID */ + >; + fsl,drive-strength = <2>; + fsl,voltage = <1>; + fsl,pull-up = <1>; + }; + + usbphy1_pins_a: usbphy1@0 { reg = <0>; fsl,pinmux-ids = <