linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: lee.jones@linaro.org (Lee Jones)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 02/13] ARM: STi: STiH416: Add Pinctrl settings for PWM
Date: Tue, 12 May 2015 13:51:39 +0100	[thread overview]
Message-ID: <1431435110-22595-3-git-send-email-lee.jones@linaro.org> (raw)
In-Reply-To: <1431435110-22595-1-git-send-email-lee.jones@linaro.org>

Supply the Pinctrl configuration to enable PWM{0,1} lines on STiH416
based development boards.

Signed-off-by: Ajit Pal Singh <ajitpal.singh@st.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
---
 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 9cccf2d..051fc16 100644
--- a/arch/arm/boot/dts/stih416-pinctrl.dtsi
+++ b/arch/arm/boot/dts/stih416-pinctrl.dtsi
@@ -216,6 +216,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 {
@@ -310,6 +333,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 {
@@ -540,6 +571,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 {
-- 
1.9.1

  parent reply	other threads:[~2015-05-12 12:51 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-12 12:51 [PATCH 00/13] ARM: STi: Clear-up dangling patches Lee Jones
2015-05-12 12:51 ` [PATCH 01/13] ARM: STi: STiH407: Add DT nodes for for PWM Lee Jones
2015-05-12 12:51 ` Lee Jones [this message]
2015-05-12 12:51 ` [PATCH 03/13] ARM: STi: STiH416: Add DT nodes " Lee Jones
2015-05-12 12:51 ` [PATCH 04/13] ARM: STi: STiH416-b2020e: Enable PWM on the B2020 Rev-E Lee Jones
2015-05-12 12:51 ` [PATCH 05/13] ARM: multi_v7_defconfig: Enable ST's PWM driver Lee Jones
2015-05-12 12:51 ` [PATCH 06/13] ARM: STi: STiH407: Add Restart support for Cannes Lee Jones
2015-05-12 12:51 ` [PATCH 07/13] ARM: STi: STiH416: Add Restart support for Orly2 Lee Jones
2015-05-12 12:51 ` [PATCH 08/13] ARM: multi_v7_defconfig: Enable ST's Power Reset driver Lee Jones
2015-05-12 12:51 ` [PATCH 09/13] ARM: STi: STiH416: Enable Cortex-A9 PMU support Lee Jones
2015-05-12 12:51 ` [PATCH 10/13] ARM: STi: STiH416: Enable PMU IRQs Lee Jones
2015-05-12 12:51 ` [PATCH 11/13] ARM: STi: STiH407: Enable Cortex-A9 PMU support Lee Jones
2015-05-12 12:51 ` [PATCH 12/13] ARM: STi: STiH407: Enable PMU IRQs Lee Jones
2015-05-12 12:51 ` [PATCH 13/13] ARM: STi: Ensure requested STi's SysCfg Controlled IRQs are enabled at boot Lee Jones
2015-05-13  9:27 ` [STLinux Kernel] [PATCH 00/13] ARM: STi: Clear-up dangling patches Maxime Coquelin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1431435110-22595-3-git-send-email-lee.jones@linaro.org \
    --to=lee.jones@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).