diff options
author | Wenyou Yang <wenyou.yang@atmel.com> | 2015-06-25 18:13:49 +0800 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2016-03-02 16:55:37 +0100 |
commit | ed0f4b3ffcdbd2b47a0b24035bb6f22464c9fef1 (patch) | |
tree | 37a61fe8adcd15933dcc29370e3878233e0d3a5b /arch/arm/boot | |
parent | c7e48d44b77f8140867742c4d14513a42fba561a (diff) | |
download | linux-ed0f4b3ffcdbd2b47a0b24035bb6f22464c9fef1.tar.bz2 |
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>
Diffstat (limited to 'arch/arm/boot')
-rw-r--r-- | arch/arm/boot/dts/at91-sama5d2_xplained.dts | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/at91-sama5d2_xplained.dts b/arch/arm/boot/dts/at91-sama5d2_xplained.dts index d20d4033d64c..2636b9e2d124 100644 --- a/arch/arm/boot/dts/at91-sama5d2_xplained.dts +++ b/arch/arm/boot/dts/at91-sama5d2_xplained.dts @@ -307,6 +307,13 @@ bias-pull-up; }; + pinctrl_led_gpio_default: led_gpio_default { + pinmux = <PIN_PB0__GPIO>, + <PIN_PB5__GPIO>, + <PIN_PB6__GPIO>; + bias-pull-up; + }; + pinctrl_macb0_default: macb0_default { pinmux = <PIN_PB14__GTXCK>, <PIN_PB15__GTXEN>, @@ -418,4 +425,27 @@ linux,code = <0x104>; }; }; + + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_led_gpio_default>; + status = "okay"; + + red { + label = "red"; + gpios = <&pioA 38 GPIO_ACTIVE_LOW>; + }; + + green { + label = "green"; + gpios = <&pioA 37 GPIO_ACTIVE_LOW>; + }; + + blue { + label = "blue"; + gpios = <&pioA 32 GPIO_ACTIVE_LOW>; + linux,default-trigger = "heartbeat"; + }; + }; }; |