From patchwork Fri Mar 7 14:40:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime COQUELIN X-Patchwork-Id: 25892 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f200.google.com (mail-ob0-f200.google.com [209.85.214.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6E087203C3 for ; Fri, 7 Mar 2014 14:43:28 +0000 (UTC) Received: by mail-ob0-f200.google.com with SMTP id gq1sf15621200obb.3 for ; Fri, 07 Mar 2014 06:43:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=veCfNJ/kaBT1sLsx2Q5v6sGn8i/Ne1WE6fSrqcgjEoY=; b=iDkORpnlcWtHnQwn+uc1toNGVLKzOOLjENCFlFF26KON6QRRXKrdGpOd+iT3zZ0h82 env3M+g+XItb6Vju6gUhMCjMswPzTPcBXsFaWIxQV3BVHnCbSJFQsHzbnudWTWqxwodY p2kNHoo1VYW01P2olO8Q2s5A2CXY60EGpMUDunofhO8RR52HlrrR3fLU28/qnsyTS3gY VHPIUQdQqz3wbUQakv0nzZJCo4fep6kkdfUbT01Q1o8+0SHEaMcM5tTPQFVsbAkGRVXN V6PZBoBzpsbA9YV4+TikS3ZCHNTsAZ9C0RoOz0DK2Inl4hBeXKTMK8NGVwd2ZArpc5Yq rJKA== X-Gm-Message-State: ALoCoQkNQ2KruPUUb2TWQwDgbRF1QY0VzweWx4Ix8OK0ZvE90CYxpDvhBWUqxAVhrX6KgxRET3gi X-Received: by 10.43.79.196 with SMTP id zr4mr7461767icb.3.1394203407963; Fri, 07 Mar 2014 06:43:27 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.101.245 with SMTP id u108ls435866qge.79.gmail; Fri, 07 Mar 2014 06:43:27 -0800 (PST) X-Received: by 10.58.69.111 with SMTP id d15mr10574912veu.3.1394203407773; Fri, 07 Mar 2014 06:43:27 -0800 (PST) Received: from mail-ve0-f169.google.com (mail-ve0-f169.google.com [209.85.128.169]) by mx.google.com with ESMTPS id kp12si2145163veb.126.2014.03.07.06.43.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Mar 2014 06:43:27 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.169; Received: by mail-ve0-f169.google.com with SMTP id pa12so4251871veb.14 for ; Fri, 07 Mar 2014 06:43:27 -0800 (PST) X-Received: by 10.52.161.130 with SMTP id xs2mr361356vdb.49.1394203407682; Fri, 07 Mar 2014 06:43:27 -0800 (PST) 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.220.78.9 with SMTP id i9csp119659vck; Fri, 7 Mar 2014 06:43:27 -0800 (PST) X-Received: by 10.68.203.135 with SMTP id kq7mr22262852pbc.85.1394203406554; Fri, 07 Mar 2014 06:43:26 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yp10si8502648pab.272.2014.03.07.06.43.25; Fri, 07 Mar 2014 06:43:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753653AbaCGOnL (ORCPT + 26 others); Fri, 7 Mar 2014 09:43:11 -0500 Received: from eu1sys200aog110.obsmtp.com ([207.126.144.129]:51571 "EHLO eu1sys200aog110.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753585AbaCGOnD (ORCPT ); Fri, 7 Mar 2014 09:43:03 -0500 Received: from beta.dmz-eu.st.com ([164.129.1.35]) (using TLSv1) by eu1sys200aob110.postini.com ([207.126.147.11]) with SMTP ID DSNKUxnazbQS4Ff5+Zucxzv1eyTXu0y+q/xf@postini.com; Fri, 07 Mar 2014 14:43:01 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 542FB11C; Fri, 7 Mar 2014 14:42:03 +0000 (GMT) Received: from mail7.sgp.st.com (unknown [164.129.223.81]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 0728C15DB9; Fri, 7 Mar 2014 14:42:03 +0000 (GMT) Received: from lmenx29l.st.com (lmenx29l.lme.st.com [10.201.23.80]) by mail7.sgp.st.com (MOS 4.3.3-GA) with ESMTP id BYR32024 (AUTH lme00137); Fri, 7 Mar 2014 15:41:31 +0100 From: Maxime COQUELIN To: Rob Landley , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , Srinivas Kandagatla , Stuart Menefy , Linus Walleij , Giuseppe Cavallaro , Maxime Coquelin , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@stlinux.com Cc: lee.jones@linaro.org Subject: [PATCH v3 3/5] pinctrl: st: add pinctrl support for the STiH407 SoC Date: Fri, 7 Mar 2014 15:40:49 +0100 Message-Id: <1394203251-25361-4-git-send-email-maxime.coquelin@st.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1394203251-25361-1-git-send-email-maxime.coquelin@st.com> References: <1394203251-25361-1-git-send-email-maxime.coquelin@st.com> 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: maxime.coquelin@st.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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: , From: Giuseppe Cavallaro This patch adds the initial support for pinctrl based on H407 SoC. Signed-off-by: Maxime Coquelin Signed-off-by: Giuseppe Cavallaro Acked-by: Srinivas Kandagatla --- drivers/pinctrl/pinctrl-st.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/drivers/pinctrl/pinctrl-st.c b/drivers/pinctrl/pinctrl-st.c index 1721611..d1886b4 100644 --- a/drivers/pinctrl/pinctrl-st.c +++ b/drivers/pinctrl/pinctrl-st.c @@ -390,6 +390,19 @@ static const struct st_pctl_data stih416_data = { .alt = 0, .oe = 40, .pu = 50, .od = 60, .rt = 100, }; +static const struct st_pctl_data stih407_flashdata = { + .rt_style = st_retime_style_none, + .input_delays = stih416_delays, + .ninput_delays = 14, + .output_delays = stih416_delays, + .noutput_delays = 14, + .alt = 0, + .oe = -1, /* Not Available */ + .pu = -1, /* Not Available */ + .od = 60, + .rt = 100, +}; + /* Low level functions.. */ static inline int st_gpio_bank(int gpio) { @@ -1596,6 +1609,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,stih407-sbc-pinctrl", .data = &stih416_data}, + { .compatible = "st,stih407-front-pinctrl", .data = &stih416_data}, + { .compatible = "st,stih407-rear-pinctrl", .data = &stih416_data}, + { .compatible = "st,stih407-flash-pinctrl", .data = &stih407_flashdata}, { /* sentinel */ } };