mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-14 01:34:43 +08:00
ARM: sun8i: a83t: cubietruck-plus: Add LED device nodes
The Cubietruck Plus has 4 LEDs in different colors. Add device nodes for them. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
This commit is contained in:
parent
9ecf12302c
commit
54f3b7f051
@ -45,6 +45,8 @@
|
|||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
#include "sun8i-a83t.dtsi"
|
#include "sun8i-a83t.dtsi"
|
||||||
|
|
||||||
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Cubietech Cubietruck Plus";
|
model = "Cubietech Cubietruck Plus";
|
||||||
compatible = "cubietech,cubietruck-plus", "allwinner,sun8i-a83t";
|
compatible = "cubietech,cubietruck-plus", "allwinner,sun8i-a83t";
|
||||||
@ -56,6 +58,30 @@
|
|||||||
chosen {
|
chosen {
|
||||||
stdout-path = "serial0:115200n8";
|
stdout-path = "serial0:115200n8";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
leds {
|
||||||
|
compatible = "gpio-leds";
|
||||||
|
|
||||||
|
blue {
|
||||||
|
label = "cubietruck-plus:blue:usr";
|
||||||
|
gpios = <&pio 3 25 GPIO_ACTIVE_HIGH>; /* PD25 */
|
||||||
|
};
|
||||||
|
|
||||||
|
orange {
|
||||||
|
label = "cubietruck-plus:orange:usr";
|
||||||
|
gpios = <&pio 3 26 GPIO_ACTIVE_HIGH>; /* PD26 */
|
||||||
|
};
|
||||||
|
|
||||||
|
white {
|
||||||
|
label = "cubietruck-plus:white:usr";
|
||||||
|
gpios = <&pio 3 27 GPIO_ACTIVE_HIGH>; /* PD27 */
|
||||||
|
};
|
||||||
|
|
||||||
|
green {
|
||||||
|
label = "cubietruck-plus:green:usr";
|
||||||
|
gpios = <&pio 4 4 GPIO_ACTIVE_HIGH>; /* PE4 */
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&uart0 {
|
&uart0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user