Skip to content

Commit 13f6e06

Browse files
committed
ARM: dts: at91-sama5d2_xplained: add pinmuxing for pwm0
Add pin muxing for pwm0 and set it as disabled since it is in conflict with the pins for leds. Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
1 parent d797346 commit 13f6e06

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

arch/arm/boot/dts/at91-sama5d2_xplained_common.dtsi

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,9 @@
308308
};
309309

310310
pwm0: pwm@f802c000 {
311-
status = "okay";
311+
pinctrl-names = "default";
312+
pinctrl-0 = <&pinctrl_pwm_ch2_default>;
313+
status = "disabled"; /* conflict with leds */
312314
};
313315

314316
flx0: flexcom@f8034000 {
@@ -655,6 +657,11 @@
655657
bias-disable;
656658
};
657659

660+
pinctrl_pwm_ch2_default: pwm_ch2_default {
661+
pinmux = <PIN_PB5__PWMH2>,
662+
<PIN_PB6__PWML2>;
663+
bias-pull-up;
664+
};
658665
};
659666

660667
classd: classd@fc048000 {
@@ -690,7 +697,7 @@
690697
compatible = "gpio-leds";
691698
pinctrl-names = "default";
692699
pinctrl-0 = <&pinctrl_led_gpio_default>;
693-
status = "okay";
700+
status = "okay"; /* conflict with pwm0 */
694701

695702
red {
696703
label = "red";

0 commit comments

Comments
 (0)