]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ARM: dts: at91: sama5d2_xplained: add pinmuxing for pwm0
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Tue, 10 Oct 2017 10:09:45 +0000 (13:09 +0300)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Tue, 10 Oct 2017 13:26:19 +0000 (15:26 +0200)
Add pin muxing for pwm0 and set it as disabled since it is in conflict
with pins for leds.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
arch/arm/boot/dts/at91-sama5d2_xplained.dts

index 69ca8573231c8990b069b03af7a2a7fb23d00b5e..7d385c868ffbfb4f34871a4f162b9faf6f520cf5 100644 (file)
                        };
 
                        pwm0: pwm@f802c000 {
-                               status = "okay";
+                               pinctrl-names = "default";
+                               pinctrl-0 = <&pinctrl_pwm0_pwm2_default>;
+                               status = "disabled"; /* conflict with leds */
                        };
 
                        flx0: flexcom@f8034000 {
                                        bias-disable;
                                };
 
+                               pinctrl_pwm0_pwm2_default: pwm0_pwm2_default {
+                                       pinmux = <PIN_PB5__PWMH2>,
+                                                <PIN_PB6__PWML2>;
+                                       bias-pull-up;
+                               };
                        };
 
                        classd: classd@fc048000 {
                compatible = "gpio-leds";
                pinctrl-names = "default";
                pinctrl-0 = <&pinctrl_led_gpio_default>;
-               status = "okay";
+               status = "okay"; /* conflict with pwm0 */
 
                red {
                        label = "red";