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: 7100301 Return-Path: X-Original-To: patchwork-linux-omap@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 9A651BEEC1 for ; Mon, 31 Aug 2015 15:40:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BBEEC20690 for ; Mon, 31 Aug 2015 15:40:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BBC9C20692 for ; Mon, 31 Aug 2015 15:40:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753440AbbHaPkG (ORCPT ); Mon, 31 Aug 2015 11:40:06 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:59821 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753267AbbHaPkD (ORCPT ); Mon, 31 Aug 2015 11:40:03 -0400 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 CC: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Device Tree Mailing List , Greg Kroah-Hartman , Linux OMAP Mailing List , , Linux ARM Mailing List 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 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 {