From patchwork Mon Aug 31 15:39:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sekhar Nori X-Patchwork-Id: 7100331 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 25662BEEC1 for ; Mon, 31 Aug 2015 15:42:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 42F96206BD for ; Mon, 31 Aug 2015 15:42:42 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5797F206B8 for ; Mon, 31 Aug 2015 15:42:40 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZWRBv-0004r9-MQ; Mon, 31 Aug 2015 15:40:15 +0000 Received: from bear.ext.ti.com ([192.94.94.41]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZWRBh-0003Ve-9b for linux-arm-kernel@lists.infradead.org; Mon, 31 Aug 2015 15:40:02 +0000 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id t7VFdMIl009692; Mon, 31 Aug 2015 10:39:22 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id t7VFdMSi008188; Mon, 31 Aug 2015 10:39:22 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.224.2; Mon, 31 Aug 2015 10:39:21 -0500 Received: from psplinux063.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id t7VFdAsJ008245; Mon, 31 Aug 2015 10:39:18 -0500 From: Sekhar Nori To: Tony Lindgren , Felipe Balbi Subject: [PATCH 2/2] ARM: dts: am437x-gp-evm: Add pinctrl states for usb Date: Mon, 31 Aug 2015 21:09:09 +0530 Message-ID: <4a8a072030c2a82867c6548627739146681b35a5.1441029572.git.nsekhar@ti.com> X-Mailer: git-send-email 2.4.4.408.g16da57c In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150831_084001_561270_33B6D6EB X-CRM114-Status: UNSURE ( 9.94 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -6.9 (------) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Device Tree Mailing List , Pawel Moll , Ian Campbell , Greg Kroah-Hartman , linux-usb@vger.kernel.org, Rob Herring , Kumar Gala , Linux OMAP Mailing List , Linux ARM Mailing List Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_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 From: Dave Gerlach Add pinctrl default and sleep states for each usb device. The only pin that can be controlled is USB_DRVVBUS, this must be set to MUX_MODE7 (gpio) during sleep to conserve power. Signed-off-by: Dave Gerlach [nsekhar@ti.com: move pins to core dwc3] Signed-off-by: Sekhar Nori --- arch/arm/boot/dts/am437x-gp-evm.dts | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/am437x-gp-evm.dts b/arch/arm/boot/dts/am437x-gp-evm.dts index 84aa30c3235a..2e990a5f9e95 100644 --- a/arch/arm/boot/dts/am437x-gp-evm.dts +++ b/arch/arm/boot/dts/am437x-gp-evm.dts @@ -409,6 +409,30 @@ 0x234 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart3_rtsn.uart3_rtsn */ >; }; + + usb1_pins_default: usb1_pins_default { + pinctrl-single,pins = < + 0x2c0 (DS0_PULL_UP_DOWN_EN | PIN_INPUT_PULLDOWN | MUX_MODE0) + >; + }; + + usb1_pins_sleep: usb1_pins_sleep { + pinctrl-single,pins = < + 0x2c0 (DS0_PULL_UP_DOWN_EN | PIN_INPUT_PULLDOWN | MUX_MODE7) + >; + }; + + usb2_pins_default: usb2_pins_default { + pinctrl-single,pins = < + 0x2c4 (DS0_PULL_UP_DOWN_EN | PIN_INPUT_PULLDOWN | MUX_MODE0) + >; + }; + + usb2_pins_sleep: usb2_pins_sleep { + pinctrl-single,pins = < + 0x2c4 (DS0_PULL_UP_DOWN_EN | PIN_INPUT_PULLDOWN | MUX_MODE7) + >; + }; }; &i2c0 { @@ -615,6 +639,9 @@ &usb1 { dr_mode = "peripheral"; status = "okay"; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&usb1_pins_default>; + pinctrl-1 = <&usb1_pins_sleep>; }; &usb2_phy2 { @@ -624,6 +651,9 @@ &usb2 { dr_mode = "host"; status = "okay"; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&usb2_pins_default>; + pinctrl-1 = <&usb2_pins_sleep>; }; &mac {