From patchwork Wed Jun 18 14:52:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 32136 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f197.google.com (mail-vc0-f197.google.com [209.85.220.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1650F206A0 for ; Wed, 18 Jun 2014 14:53:26 +0000 (UTC) Received: by mail-vc0-f197.google.com with SMTP id il7sf2760121vcb.8 for ; Wed, 18 Jun 2014 07:53:25 -0700 (PDT) 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=wNc0QRnj4dF81Ew7zZKA2aDnX3ONg/C7FUODcBpbVEk=; b=D189qUowNVoe2zW1dPxUaeNtMNKDyd33wB8edeqhn/3CyBdPrRtXQIuphRu6TH0xRR eY8KU8Cf25VuZPbxEV0vuR1NSy88jr6K3VU9KhehhIDuKoEfdSeD7tJ7gUzE5O8rS4cV U2rMZ557v0D6ShcaLlfCpqGld1D3QQs+jXfxIuvG6Hl0n23J3h5MtzAnuJG676lTSM4X Awt/gyug+kmBs96qhN4SaWaA4p8W/0QeH7r6SsNENwwBQ99IHZzIL9ubO/I2NVXOy1L1 z0nzZss9yQ7zi0emdnXaDNt9d4a2aknzzl02F/peMpPB19mFzW0Rgnv2kR+4U2CkC1vz cGUA== X-Gm-Message-State: ALoCoQnlZuy3nSB+0Sz927UCUkCBypGd1E+SBkOlQYUJMcQzaKItqczhymOG5KQ0rB7555S75EXJ X-Received: by 10.58.136.10 with SMTP id pw10mr995732veb.8.1403103205877; Wed, 18 Jun 2014 07:53:25 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.87.38 with SMTP id q35ls125660qgd.98.gmail; Wed, 18 Jun 2014 07:53:25 -0700 (PDT) X-Received: by 10.58.186.78 with SMTP id fi14mr266064vec.73.1403103205758; Wed, 18 Jun 2014 07:53:25 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id u8si984239vcn.26.2014.06.18.07.53.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Jun 2014 07:53:25 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.180 as permitted sender) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id im17so908670vcb.11 for ; Wed, 18 Jun 2014 07:53:25 -0700 (PDT) X-Received: by 10.52.236.163 with SMTP id uv3mr220517vdc.85.1403103205660; Wed, 18 Jun 2014 07:53:25 -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.54.6 with SMTP id vs6csp290950vcb; Wed, 18 Jun 2014 07:53:25 -0700 (PDT) X-Received: by 10.67.4.138 with SMTP id ce10mr3315527pad.12.1403103204892; Wed, 18 Jun 2014 07:53:24 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qi1si2467224pbb.6.2014.06.18.07.53.24; Wed, 18 Jun 2014 07:53:24 -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 S1751400AbaFROxN (ORCPT + 22 others); Wed, 18 Jun 2014 10:53:13 -0400 Received: from mail-ie0-f180.google.com ([209.85.223.180]:42428 "EHLO mail-ie0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750962AbaFROxK (ORCPT ); Wed, 18 Jun 2014 10:53:10 -0400 Received: by mail-ie0-f180.google.com with SMTP id rl12so811456iec.11 for ; Wed, 18 Jun 2014 07:53:09 -0700 (PDT) X-Received: by 10.42.137.70 with SMTP id x6mr2798845ict.79.1403103189537; Wed, 18 Jun 2014 07:53:09 -0700 (PDT) Received: from localhost.localdomain (host109-148-235-194.range109-148.btcentralplus.com. [109.148.235.194]) by mx.google.com with ESMTPSA id t16sm38979351igr.14.2014.06.18.07.53.06 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Jun 2014 07:53:09 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: lee.jones@linaro.org, kernel@stlinux.com, thierry.reding@gmail.com, linux-pwm@vger.kernel.org, maxime.coquelin@st.com, patrice.chotard@st.com, srinivas.kandagatla@gmail.com, devicetree@vger.kernel.org, ajitpal.singh@st.com Subject: [PATCH 2/7] ARM: stih416: Add Pinctrl settings for PWM Date: Wed, 18 Jun 2014 15:52:47 +0100 Message-Id: <1403103172-19856-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1403103172-19856-1-git-send-email-lee.jones@linaro.org> References: <1403103172-19856-1-git-send-email-lee.jones@linaro.org> 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: lee.jones@linaro.org 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.180 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: , Supply the Pinctrl configuration to enable PWM{0,1} lines on STiH416 based development boards. Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih416-pinctrl.dtsi | 50 ++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/arch/arm/boot/dts/stih416-pinctrl.dtsi b/arch/arm/boot/dts/stih416-pinctrl.dtsi index ee6c119..04e61d6 100644 --- a/arch/arm/boot/dts/stih416-pinctrl.dtsi +++ b/arch/arm/boot/dts/stih416-pinctrl.dtsi @@ -207,6 +207,29 @@ }; }; }; + + pwm1 { + pinctrl_pwm1_chan0_default: pwm1-0-default { + st,pins { + pwm-out = <&PIO3 0 ALT1 OUT>; + }; + }; + pinctrl_pwm1_chan1_default: pwm1-1-default { + st,pins { + pwm-out = <&PIO4 4 ALT1 OUT>; + }; + }; + pinctrl_pwm1_chan2_default: pwm1-2-default { + st,pins { + pwm-out = <&PIO4 6 ALT3 OUT>; + }; + }; + pinctrl_pwm1_chan3_default: pwm1-3-default { + st,pins { + pwm-out = <&PIO4 7 ALT3 OUT>; + }; + }; + }; }; pin-controller-front { @@ -301,6 +324,14 @@ st,bank-name = "PIO31"; }; + pwm0 { + pinctrl_pwm0_chan0_default: pwm0-0-default { + st,pins { + pwm-out = <&PIO9 7 ALT2 OUT>; + }; + }; + }; + serial2-oe { pinctrl_serial2_oe: serial2-1 { st,pins { @@ -467,6 +498,25 @@ }; }; }; + + pwm0 { + pinctrl_pwm0_chan1_default: pwm0-1-default { + st,pins { + pwm-out = <&PIO13 2 ALT2 OUT>; + }; + }; + pinctrl_pwm0_chan2_default: pwm0-2-default { + st,pins { + pwm-out = <&PIO15 2 ALT4 OUT>; + }; + }; + pinctrl_pwm0_chan3_default: pwm0-3-default { + st,pins { + pwm-out = <&PIO17 4 ALT1 OUT>; + }; + }; + }; + }; pin-controller-fvdp-fe {