Skip to content

Commit 01b3590

Browse files
claudiubezneacristibirsan
authored andcommitted
ARM: at91: dts: at91-sama5d3_xplained: add pinctrl phandles for d2 and d3 leds
Add pinctrl phandles for d2 and d3 leds that configures proper pins in GPIO mode. In this way d3 led starts to work. Fixes: b7c2b61 ("ARM: at91: add Atmel's SAMA5D3 Xplained board") Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
1 parent d0a8689 commit 01b3590

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

arch/arm/boot/dts/at91-sama5d3_xplained.dts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,14 @@
247247
<AT91_PIOE 3 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
248248
AT91_PIOE 4 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
249249
};
250+
251+
pinctrl_d2_led: d2_led_default {
252+
atmel,pins = <AT91_PIOE 23 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
253+
};
254+
255+
pinctrl_d3_led: d3_led_default {
256+
atmel,pins = <AT91_PIOE 24 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
257+
};
250258
};
251259
};
252260
};
@@ -361,6 +369,9 @@
361369

362370
leds {
363371
compatible = "gpio-leds";
372+
pinctrl-names = "default";
373+
pinctrl-0 = <&pinctrl_d2_led &pinctrl_d3_led>;
374+
status = "okay";
364375

365376
d2 {
366377
label = "d2";
@@ -369,7 +380,7 @@
369380
};
370381

371382
d3 {
372-
label = "d3";
383+
label = "d3"; /* Conflict with EBI CS0, USART2 CTS. */
373384
gpios = <&pioE 24 GPIO_ACTIVE_HIGH>;
374385
};
375386
};

0 commit comments

Comments
 (0)