Commit ed0f4b3f authored by Wenyou Yang's avatar Wenyou Yang Committed by Nicolas Ferre

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: default avatarWenyou Yang <wenyou.yang@atmel.com>
Acked-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
[nicolas.ferre@atmel.com: add commit message and adapt to newer kernel]
Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
parent c7e48d44
...@@ -307,6 +307,13 @@ pinctrl_key_gpio_default: key_gpio_default { ...@@ -307,6 +307,13 @@ pinctrl_key_gpio_default: key_gpio_default {
bias-pull-up; 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 { pinctrl_macb0_default: macb0_default {
pinmux = <PIN_PB14__GTXCK>, pinmux = <PIN_PB14__GTXCK>,
<PIN_PB15__GTXEN>, <PIN_PB15__GTXEN>,
...@@ -418,4 +425,27 @@ bp1 { ...@@ -418,4 +425,27 @@ bp1 {
linux,code = <0x104>; 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";
};
};
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment