From patchwork Thu Jan 30 14:55:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrice CHOTARD X-Patchwork-Id: 3557641 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B05E79F382 for ; Thu, 30 Jan 2014 15:00:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 13792201B9 for ; Thu, 30 Jan 2014 15:00:09 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3DE9A20181 for ; Thu, 30 Jan 2014 15:00:04 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W8t4o-0002Rr-Um; Thu, 30 Jan 2014 14:58:47 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W8t4V-0001FB-EN; Thu, 30 Jan 2014 14:58:27 +0000 Received: from eu1sys200aog124.obsmtp.com ([207.126.144.157]) by merlin.infradead.org with smtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W8t3s-0001A8-US for linux-arm-kernel@lists.infradead.org; Thu, 30 Jan 2014 14:57:52 +0000 Received: from beta.dmz-eu.st.com ([164.129.1.35]) (using TLSv1) by eu1sys200aob124.postini.com ([207.126.147.11]) with SMTP ID DSNKUupoSXmXrDhq6EpUdov0hjiElMR2f8Y2@postini.com; Thu, 30 Jan 2014 14:57:48 UTC Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 9C846128; Thu, 30 Jan 2014 14:56:02 +0000 (GMT) Received: from mail7.sgp.st.com (unknown [164.129.223.81]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 83BFB16971; Thu, 30 Jan 2014 14:56:50 +0000 (GMT) Received: from lmenx316.lme.st.com (lmenx316.lme.st.com [10.201.23.18]) by mail7.sgp.st.com (MOS 4.3.3-GA) with ESMTP id BXA12869 (AUTH patrice.chotard@st.com); Thu, 30 Jan 2014 15:56:50 +0100 From: Patrice CHOTARD To: Srinivas Kandagatla , Stuart Menefy , Russell King , linux-arm-kernel@lists.infradead.org, kernel@stlinux.com, linux-kernel@vger.kernel.org, Linus Walleij , Grant Likely , Rob Herring , devicetree@vger.kernel.org Subject: [PATCH 2/4] pinctrl: st: add stid127 support Date: Thu, 30 Jan 2014 15:55:42 +0100 Message-Id: <1391093744-19905-3-git-send-email-patrice.chotard@st.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1391093744-19905-1-git-send-email-patrice.chotard@st.com> References: <1391093744-19905-1-git-send-email-patrice.chotard@st.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140130_095749_376820_551FD604 X-CRM114-Status: GOOD ( 14.17 ) X-Spam-Score: -4.2 (----) Cc: Giuseppe Cavallaro , patrice.chotard@st.com, alexandre.torgue@st.com, maxime.coquelin@st.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 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.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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: Alexandre TORGUE Add STid127 PIOs (psouth, pwest, peast) in pinctrl. Signed-off-by: alexandre torgue Acked-by: Srinivas Kandagatla --- drivers/pinctrl/pinctrl-st.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/drivers/pinctrl/pinctrl-st.c b/drivers/pinctrl/pinctrl-st.c index 9cadc68..01227de 100644 --- a/drivers/pinctrl/pinctrl-st.c +++ b/drivers/pinctrl/pinctrl-st.c @@ -336,6 +336,27 @@ static const struct st_pctl_data stih416_data = { .alt = 0, .oe = 40, .pu = 50, .od = 60, .rt = 100, }; +/* STid127 data */ +static const struct st_pctl_data stid127_data = { + .rt_style = st_retime_style_dedicated, + /* reuse stih416 delays as they are identical */ + .input_delays = stih416_delays, + .ninput_delays = 14, + /* reuse stih416 delays as they are identical */ + .output_delays = stih416_delays, + .noutput_delays = 14, + .alt = 0, .oe = 8, .pu = 10, .od = 12, .rt = 14, +}; + +static const struct st_pctl_data stid127_psouth_data = { + .rt_style = st_retime_style_dedicated, + .input_delays = stid127_delays, + .ninput_delays = 14, + .output_delays = stid127_delays, + .noutput_delays = 14, + .alt = 0, .oe = 7, .pu = 9, .od = 11, .rt = 13, +}; + /* Low level functions.. */ static inline int st_gpio_bank(int gpio) { @@ -1264,6 +1285,10 @@ static struct of_device_id st_pctl_of_match[] = { { .compatible = "st,stih416-rear-pinctrl", .data = &stih416_data}, { .compatible = "st,stih416-fvdp-fe-pinctrl", .data = &stih416_data}, { .compatible = "st,stih416-fvdp-lite-pinctrl", .data = &stih416_data}, + { .compatible = "st,stid127-pwest-pinctrl", .data = &stid127_data }, + { .compatible = "st,stid127-psouth-pinctrl", + .data = &stid127_psouth_data }, + { .compatible = "st,stid127-peast-pinctrl", .data = &stid127_data }, { /* sentinel */ } };