Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: at91: sama5d2 Xplained: add leds node

Add the three leds on the sama5d2 Xplained board with their pinctrl node.
The blue led is positioned with the "heartbeat" trigger.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
[nicolas.ferre@atmel.com: add commit message and adapt to newer kernel]
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>

authored by

Wenyou Yang and committed by
Nicolas Ferre
ed0f4b3f c7e48d44

+30
+30
arch/arm/boot/dts/at91-sama5d2_xplained.dts
··· 307 307 bias-pull-up; 308 308 }; 309 309 310 + pinctrl_led_gpio_default: led_gpio_default { 311 + pinmux = <PIN_PB0__GPIO>, 312 + <PIN_PB5__GPIO>, 313 + <PIN_PB6__GPIO>; 314 + bias-pull-up; 315 + }; 316 + 310 317 pinctrl_macb0_default: macb0_default { 311 318 pinmux = <PIN_PB14__GTXCK>, 312 319 <PIN_PB15__GTXEN>, ··· 423 416 label = "PB_USER"; 424 417 gpios = <&pioA 41 GPIO_ACTIVE_LOW>; 425 418 linux,code = <0x104>; 419 + }; 420 + }; 421 + 422 + leds { 423 + compatible = "gpio-leds"; 424 + pinctrl-names = "default"; 425 + pinctrl-0 = <&pinctrl_led_gpio_default>; 426 + status = "okay"; 427 + 428 + red { 429 + label = "red"; 430 + gpios = <&pioA 38 GPIO_ACTIVE_LOW>; 431 + }; 432 + 433 + green { 434 + label = "green"; 435 + gpios = <&pioA 37 GPIO_ACTIVE_LOW>; 436 + }; 437 + 438 + blue { 439 + label = "blue"; 440 + gpios = <&pioA 32 GPIO_ACTIVE_LOW>; 441 + linux,default-trigger = "heartbeat"; 426 442 }; 427 443 }; 428 444 };