From patchwork Fri Aug 22 14:01:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 35836 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f197.google.com (mail-pd0-f197.google.com [209.85.192.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3885B20540 for ; Fri, 22 Aug 2014 14:01:44 +0000 (UTC) Received: by mail-pd0-f197.google.com with SMTP id y10sf79243711pdj.0 for ; Fri, 22 Aug 2014 07:01:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=aGsHEWJGYw/wGqtkgiNlZAa7Bnffx6MdLtcTmFBYsrM=; b=bPgExjZ03fOq4G0Zf7GLFp0VCi272nGdzvGywOvREY6iWztikwV0DzQ0c7fE0ikt34 Eqb//QPvrkSO9NzNnrLUoXYig9jbpd0KlKAbbMzITxFy2oV3qEcpsmZEiH1C0SHfQRHi bFfB8vQLytQStdnIo6gSoLVRnVrCDRp8Ci1S+HpZrLoP3+Jj9qa1qvHUA+EkkkQe/N8L zImv3x5CMHyliqFkbWa0l7vEKLZvcoVCME2VdZBWG5fDo+WahLVUoPx9upur+KxwdXL7 a+8pFb+LG3O5z1Y9tAQORpLRjEV/ZYRNQ8O4aftMl23VC0h9UAmzICYZP3+HUoMUjgnX VAgQ== X-Gm-Message-State: ALoCoQl/F9a11b9XQZ/w/3NEnjatSJLrP+rSJBDJ/4MhOZWFtSSVS5ZRJRDkl90UfG8FK6B0zJhd X-Received: by 10.66.227.37 with SMTP id rx5mr3137626pac.25.1408716103468; Fri, 22 Aug 2014 07:01:43 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.109.117 with SMTP id k108ls1121256qgf.3.gmail; Fri, 22 Aug 2014 07:01:43 -0700 (PDT) X-Received: by 10.53.6.132 with SMTP id cu4mr144632vdd.62.1408716103345; Fri, 22 Aug 2014 07:01:43 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id ai1si13629374vdd.1.2014.08.22.07.01.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 22 Aug 2014 07:01:43 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id hy4so12173429vcb.41 for ; Fri, 22 Aug 2014 07:01:43 -0700 (PDT) X-Received: by 10.220.44.80 with SMTP id z16mr4091566vce.7.1408716103259; Fri, 22 Aug 2014 07:01:43 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp19312vcb; Fri, 22 Aug 2014 07:01:42 -0700 (PDT) X-Received: by 10.69.26.33 with SMTP id iv1mr6808095pbd.62.1408716102241; Fri, 22 Aug 2014 07:01:42 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r9si41030447pdm.2.2014.08.22.07.01.41 for ; Fri, 22 Aug 2014 07:01:42 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932376AbaHVOBd (ORCPT + 21 others); Fri, 22 Aug 2014 10:01:33 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:33921 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932170AbaHVOB3 (ORCPT ); Fri, 22 Aug 2014 10:01:29 -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 s7ME16rW001933; Fri, 22 Aug 2014 09:01:06 -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 s7ME14jZ015773; Fri, 22 Aug 2014 09:01:05 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.3.174.1; Fri, 22 Aug 2014 09:01:04 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s7ME14DN024484; Fri, 22 Aug 2014 09:01:04 -0500 From: Nishanth Menon To: Linus Walleij , Tony Lindgren , Tero Kristo , Paul Walmsley CC: Kevin Hilman , , , , Keerthy , =?UTF-8?q?Beno=C3=AEt=20Cousson?= , Santosh Shilimkar , , Dave Gerlach , Nishanth Menon Subject: [PATCH 2/3] pinctrl: single: Add DRA7 pinctrl compatibility Date: Fri, 22 Aug 2014 09:01:01 -0500 Message-ID: <1408716062-26055-3-git-send-email-nm@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1408716062-26055-1-git-send-email-nm@ti.com> References: <1408716062-26055-1-git-send-email-nm@ti.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: nm@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.182 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , DRA7 pinctrl definitions now differ from traditional 16 bit OMAP pin ctrl definitions, in that all 32 bits are used to describe a single pin Also the location of wakeupenable and event bits have changed. Signed-off-by: Nishanth Menon Acked-by: Tony Lindgren --- .../bindings/pinctrl/ti,omap-pinctrl.txt | 1 + drivers/pinctrl/pinctrl-single.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/ti,omap-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/ti,omap-pinctrl.txt index 156d964..d45386d 100644 --- a/Documentation/devicetree/bindings/pinctrl/ti,omap-pinctrl.txt +++ b/Documentation/devicetree/bindings/pinctrl/ti,omap-pinctrl.txt @@ -5,5 +5,6 @@ Required properties: "ti,omap3-padconf" - OMAP3 compatible pinctrl "ti,omap4-padconf" - OMAP4 compatible pinctrl "ti,omap5-padconf" - OMAP5 compatible pinctrl + "ti,dra7-padconf" - DRA7 compatible pinctrl See Documentation/devicetree/bindings/pinctrl/pinctrl-single.txt for further details. diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c index 95dd9cf..598d600 100644 --- a/drivers/pinctrl/pinctrl-single.c +++ b/drivers/pinctrl/pinctrl-single.c @@ -1981,6 +1981,12 @@ static const struct pcs_soc_data pinctrl_single_omap_wkup = { .irq_status_mask = (1 << 15), /* OMAP_WAKEUP_EVENT */ }; +static const struct pcs_soc_data pinctrl_single_dra7 = { + .flags = PCS_QUIRK_SHARED_IRQ, + .irq_enable_mask = (1 << 24), /* WAKEUPENABLE */ + .irq_status_mask = (1 << 25), /* WAKEUPEVENT */ +}; + static const struct pcs_soc_data pinctrl_single = { }; @@ -1992,6 +1998,7 @@ static struct of_device_id pcs_of_match[] = { { .compatible = "ti,omap3-padconf", .data = &pinctrl_single_omap_wkup }, { .compatible = "ti,omap4-padconf", .data = &pinctrl_single_omap_wkup }, { .compatible = "ti,omap5-padconf", .data = &pinctrl_single_omap_wkup }, + { .compatible = "ti,dra7-padconf", .data = &pinctrl_single_dra7 }, { .compatible = "pinctrl-single", .data = &pinctrl_single }, { .compatible = "pinconf-single", .data = &pinconf_single }, { },