ARM: STi: STiH416: Add Pinctrl settings for PWM
authorLee Jones <lee.jones@linaro.org>
Tue, 12 May 2015 12:51:00 +0000 (14:51 +0200)
committerMaxime Coquelin <maxime.coquelin@st.com>
Wed, 13 May 2015 08:41:40 +0000 (10:41 +0200)
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>
Signed-off-by: Maxime Coquelin <maxime.coquelin@st.com>
arch/arm/boot/dts/stih416-pinctrl.dtsi

index 9cccf2d6aa26f5c17e0bd83684e17bb4335acabf..051fc16f37063fe18a5957943f0e97b9e830336a 100644 (file)
                                        };
                                };
                        };
+
+                       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 {
                                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 {
                                        };
                                };
                        };
+
+                       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 {