Skip to content

Commit c9d0633

Browse files
author
Dharma Balasubiramani
committed
ARM: dts: at91-sam9x75_curiosity: add phandles to LEDs
In sam9x75 curiosity board, the PIOC 21 also has the PWM functionality, so the green-led has to be disabled while using PWM. Hence add phandles to the child nodes of the LEDs to simplify node references in the DT without impacting the heartbeat and red leds. Signed-off-by: Dharma Balasubiramani <dharma.b@microchip.com> Reviewed-by: Durai Manickam KR <durai.manickamkr@microchip.com> Tested-by: Charan Pedumuru <charan.pedumuru@microchip.com>
1 parent 4b7d717 commit c9d0633

1 file changed

Lines changed: 17 additions & 9 deletions

File tree

arch/arm/boot/dts/microchip/at91-sam9x75_curiosity.dts

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,26 @@
3838
leds {
3939
compatible = "gpio-leds";
4040
pinctrl-names = "default";
41-
pinctrl-0 = <&pinctrl_led_gpio_default>;
42-
43-
led-red {
41+
led_red: led-red {
42+
pinctrl-0 = <&pinctrl_red_led_gpio_default>;
4443
label = "red";
4544
gpios = <&pioC 14 GPIO_ACTIVE_HIGH>;
45+
status = "okay";
4646
};
4747

48-
led-green {
48+
led_green: led-green {
49+
pinctrl-0 = <&pinctrl_green_led_gpio_default>;
4950
label = "green";
5051
gpios = <&pioC 21 GPIO_ACTIVE_HIGH>;
52+
status = "okay";
5153
};
5254

53-
led-blue {
55+
led_blue: led-blue {
56+
pinctrl-0 = <&pinctrl_blue_led_gpio_default>;
5457
label = "blue";
5558
gpios = <&pioC 20 GPIO_ACTIVE_HIGH>;
5659
linux,default-trigger = "heartbeat";
60+
status = "okay";
5761
};
5862
};
5963

@@ -341,10 +345,14 @@
341345
};
342346

343347
leds {
344-
pinctrl_led_gpio_default: led-gpio-default {
345-
atmel,pins = <AT91_PIOC 14 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
346-
AT91_PIOC 21 AT91_PERIPH_GPIO AT91_PINCTRL_NONE
347-
AT91_PIOC 20 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
348+
pinctrl_red_led_gpio_default: red-led-gpio-default {
349+
atmel,pins = <AT91_PIOC 14 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
350+
};
351+
pinctrl_green_led_gpio_default: green-led-gpio-default {
352+
atmel,pins = <AT91_PIOC 21 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
353+
};
354+
pinctrl_blue_led_gpio_default: blue-led-gpio-default {
355+
atmel,pins = <AT91_PIOC 20 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
348356
};
349357
};
350358

0 commit comments

Comments
 (0)