From patchwork Thu Mar 28 16:21:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Baltieri X-Patchwork-Id: 15755 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 19DEA23E3E for ; Thu, 28 Mar 2013 16:22:02 +0000 (UTC) Received: from mail-vc0-f174.google.com (mail-vc0-f174.google.com [209.85.220.174]) by fiordland.canonical.com (Postfix) with ESMTP id 4AF6FA18885 for ; Thu, 28 Mar 2013 16:22:01 +0000 (UTC) Received: by mail-vc0-f174.google.com with SMTP id hx10so7860527vcb.33 for ; Thu, 28 Mar 2013 09:22:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=j13aJgTI1q8rvyWkCsm3XbQHWz8JvdCP50Rd1/jnMxQ=; b=akW6AAO+w2nIIPKYhR87NFLWJzu7oT/eSYL09vTDqB38Byr2bxSZf+DZ/JBxDd6+51 QgTgNiqxvHAephqG7VQ8/X1PvVufMkkLeluQ4ap25UgGNiCBJMyHI2Bf+9UNaEwXh3Vg 0puQHAsVXiGhEaVTxq02BNjyejL3TRReLKVwq2kEiHReTClfElfDip2KCkpX3gLFnphH ZLGivUe8fvEDFNdg4fqKZsd7PjpcdI5Nfd84HjZsclOOh9fjY30hOt0v6o1yA7LxNUyI AqDsMLKPxgpO5t/LQMh7mHBhMTyEtnzc887XpLf4OANbqvDKHW8cA0BOUZRUWBPCwnaE ac0g== X-Received: by 10.59.3.9 with SMTP id bs9mr27830232ved.38.1364487720831; Thu, 28 Mar 2013 09:22:00 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.59.4.204 with SMTP id cg12csp22803ved; Thu, 28 Mar 2013 09:21:59 -0700 (PDT) X-Received: by 10.180.77.66 with SMTP id q2mr17394041wiw.13.1364487719039; Thu, 28 Mar 2013 09:21:59 -0700 (PDT) Received: from mail-ee0-f41.google.com (mail-ee0-f41.google.com [74.125.83.41]) by mx.google.com with ESMTPS id b4si39175523eep.230.2013.03.28.09.21.58 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 28 Mar 2013 09:21:59 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.83.41 is neither permitted nor denied by best guess record for domain of fabio.baltieri@linaro.org) client-ip=74.125.83.41; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.83.41 is neither permitted nor denied by best guess record for domain of fabio.baltieri@linaro.org) smtp.mail=fabio.baltieri@linaro.org Received: by mail-ee0-f41.google.com with SMTP id c1so2531644eek.14 for ; Thu, 28 Mar 2013 09:21:58 -0700 (PDT) X-Received: by 10.14.223.69 with SMTP id u45mr68206319eep.23.1364487718413; Thu, 28 Mar 2013 09:21:58 -0700 (PDT) Received: from localhost ([2a01:2003:1:1e91:8e70:5aff:feac:ad8]) by mx.google.com with ESMTPS id m46sm38676124eeo.16.2013.03.28.09.21.47 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 28 Mar 2013 09:21:57 -0700 (PDT) From: Fabio Baltieri To: Linus Walleij Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Srinidhi Kasagar , Patrice Chotard , Fabio Baltieri Subject: [PATCH 2/2] ARM: ux500: 8500: add ab8500-musb pinctrl support Date: Thu, 28 Mar 2013 17:21:09 +0100 Message-Id: <1364487669-24368-3-git-send-email-fabio.baltieri@linaro.org> X-Mailer: git-send-email 1.8.1.3 In-Reply-To: <1364487669-24368-1-git-send-email-fabio.baltieri@linaro.org> References: <1364487669-24368-1-git-send-email-fabio.baltieri@linaro.org> X-Gm-Message-State: ALoCoQkvH6N8HN1Vq9xlJeTvzA5/dfr5TGmdYfjF5N6UX/TtLFHtD6/KgDFBV4fZncjCPLUENeg8 From: Patrice Chotard Add necessary definitions to support ab8500-musb pinctrl default and sleep states. Signed-off-by: Patrice Chotard Signed-off-by: Fabio Baltieri --- arch/arm/mach-ux500/board-mop500-pins.c | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-ux500/board-mop500-pins.c b/arch/arm/mach-ux500/board-mop500-pins.c index 625880f..ca0649e 100644 --- a/arch/arm/mach-ux500/board-mop500-pins.c +++ b/arch/arm/mach-ux500/board-mop500-pins.c @@ -48,8 +48,12 @@ BIAS(slpm_in_nopull_wkup, PIN_SLEEPMODE_ENABLED| PIN_SLPM_DIR_INPUT|PIN_SLPM_PULL_NONE|PIN_SLPM_WAKEUP_ENABLE); BIAS(slpm_in_wkup_pdis, PIN_SLEEPMODE_ENABLED| PIN_SLPM_DIR_INPUT|PIN_SLPM_WAKEUP_ENABLE|PIN_SLPM_PDIS_DISABLED); +BIAS(slpm_in_wkup_pdis_en, PIN_SLEEPMODE_ENABLED| + PIN_SLPM_DIR_INPUT|PIN_SLPM_WAKEUP_ENABLE|PIN_SLPM_PDIS_ENABLED); BIAS(slpm_wkup_pdis, PIN_SLEEPMODE_ENABLED| PIN_SLPM_WAKEUP_ENABLE|PIN_SLPM_PDIS_DISABLED); +BIAS(slpm_wkup_pdis_en, PIN_SLEEPMODE_ENABLED| + PIN_SLPM_WAKEUP_ENABLE|PIN_SLPM_PDIS_ENABLED); BIAS(slpm_out_lo_pdis, PIN_SLEEPMODE_ENABLED| PIN_SLPM_OUTPUT_LOW|PIN_SLPM_WAKEUP_DISABLE|PIN_SLPM_PDIS_DISABLED); BIAS(slpm_out_lo_wkup, PIN_SLEEPMODE_ENABLED| @@ -306,8 +310,23 @@ static struct pinctrl_map __initdata mop500_family_pinmap[] = { DB8500_PIN_SLEEP("GPIO207_AJ23", slpm_in_wkup_pdis, "sdi4"), /* DAT4 */ /* Mux in USB pins, drive STP high */ - DB8500_MUX("usb_a_1", "usb", "musb-ux500.0"), - DB8500_PIN("GPIO257_AE29", out_hi, "musb-ux500.0"), /* STP */ + /* USB default state */ + DB8500_MUX("usb_a_1", "usb", "ab8500-usb.0"), + DB8500_PIN("GPIO257_AE29", out_hi, "musbux500.0"), /* STP */ + /* USB sleep state */ + DB8500_PIN_SLEEP("GPIO256_AF28", slpm_wkup_pdis_en, "ab8500-usb.0"), /* NXT */ + DB8500_PIN_SLEEP("GPIO257_AE29", slpm_out_hi_wkup_pdis, "ab8500-usb.0"), /* STP */ + DB8500_PIN_SLEEP("GPIO258_AD29", slpm_wkup_pdis_en, "ab8500-usb.0"), /* XCLK */ + DB8500_PIN_SLEEP("GPIO259_AC29", slpm_wkup_pdis_en, "ab8500-usb.0"), /* DIR */ + DB8500_PIN_SLEEP("GPIO260_AD28", slpm_in_wkup_pdis_en, "ab8500-usb.0"), /* DAT7 */ + DB8500_PIN_SLEEP("GPIO261_AD26", slpm_in_wkup_pdis_en, "ab8500-usb.0"), /* DAT6 */ + DB8500_PIN_SLEEP("GPIO262_AE26", slpm_in_wkup_pdis_en, "ab8500-usb.0"), /* DAT5 */ + DB8500_PIN_SLEEP("GPIO263_AG29", slpm_in_wkup_pdis_en, "ab8500-usb.0"), /* DAT4 */ + DB8500_PIN_SLEEP("GPIO264_AE27", slpm_in_wkup_pdis_en, "ab8500-usb.0"), /* DAT3 */ + DB8500_PIN_SLEEP("GPIO265_AD27", slpm_in_wkup_pdis_en, "ab8500-usb.0"), /* DAT2 */ + DB8500_PIN_SLEEP("GPIO266_AC28", slpm_in_wkup_pdis_en, "ab8500-usb.0"), /* DAT1 */ + DB8500_PIN_SLEEP("GPIO267_AC27", slpm_in_wkup_pdis_en, "ab8500-usb.0"), /* DAT0 */ + /* Mux in SPI2 pins on the "other C1" altfunction */ DB8500_MUX("spi2_oc1_2", "spi2", "spi2"), DB8500_PIN("GPIO216_AG12", gpio_out_hi, "spi2"), /* FRM */