From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933195AbaHYR0n (ORCPT ); Mon, 25 Aug 2014 13:26:43 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:59026 "EHLO mho-02-ewr.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932212AbaHYR0l (ORCPT ); Mon, 25 Aug 2014 13:26:41 -0400 X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 99.127.230.128 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/lms9glozYxYRsALtXL5+P Date: Mon, 25 Aug 2014 10:26:32 -0700 From: Tony Lindgren To: Nishanth Menon Cc: Linus Walleij , Tero Kristo , Paul Walmsley , Kevin Hilman , linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, Keerthy , =?utf-8?Q?Beno=C3=AEt?= Cousson , Santosh Shilimkar , devicetree@vger.kernel.org, Dave Gerlach Subject: Re: [PATCH 3/3] pinctrl: single: AM437x: Add pinctrl compatibility Message-ID: <20140825172632.GO17254@atomide.com> References: <1408716062-26055-1-git-send-email-nm@ti.com> <1408716062-26055-4-git-send-email-nm@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1408716062-26055-4-git-send-email-nm@ti.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Nishanth Menon [140822 07:03]: > From: Keerthy > > AM437x 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: Keerthy > [nm@ti.com: minor updates] > 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 d45386d..af225fe 100644 > --- a/Documentation/devicetree/bindings/pinctrl/ti,omap-pinctrl.txt > +++ b/Documentation/devicetree/bindings/pinctrl/ti,omap-pinctrl.txt > @@ -6,5 +6,6 @@ Required properties: > "ti,omap4-padconf" - OMAP4 compatible pinctrl > "ti,omap5-padconf" - OMAP5 compatible pinctrl > "ti,dra7-padconf" - DRA7 compatible pinctrl > + "ti,am437-padconf" - AM437x 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 598d600..784de13 100644 > --- a/drivers/pinctrl/pinctrl-single.c > +++ b/drivers/pinctrl/pinctrl-single.c > @@ -1987,6 +1987,12 @@ static const struct pcs_soc_data pinctrl_single_dra7 = { > .irq_status_mask = (1 << 25), /* WAKEUPEVENT */ > }; > > +static const struct pcs_soc_data pinctrl_single_am437x = { > + .flags = PCS_QUIRK_SHARED_IRQ, > + .irq_enable_mask = (1 << 29), /* OMAP_WAKEUP_EN */ > + .irq_status_mask = (1 << 30), /* OMAP_WAKEUP_EVENT */ > +}; > + > static const struct pcs_soc_data pinctrl_single = { > }; > > @@ -1999,6 +2005,7 @@ static struct of_device_id pcs_of_match[] = { > { .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 = "ti,am437-padconf", .data = &pinctrl_single_am437x }, > { .compatible = "pinctrl-single", .data = &pinctrl_single }, > { .compatible = "pinconf-single", .data = &pinconf_single }, > { }, > -- > 1.7.9.5 >