Commit 7e362103 authored by Emilio López's avatar Emilio López Committed by Maxime Ripard

sunxi: a10-cubieboard: Add user LEDs to the device tree

Cubieboard has two LEDs available for use, a blue one (labeled LED1)
and a green one (labeled LED2).
Signed-off-by: default avatarEmilio López <emilio@elopez.com.ar>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent bfef081d
...@@ -27,6 +27,15 @@ chosen { ...@@ -27,6 +27,15 @@ chosen {
}; };
soc { soc {
pinctrl@01c20800 {
led_pins_cubieboard: led_pins@0 {
allwinner,pins = "PH20", "PH21";
allwinner,function = "gpio_out";
allwinner,drive = <1>;
allwinner,pull = <0>;
};
};
uart0: uart@01c28000 { uart0: uart@01c28000 {
status = "okay"; status = "okay";
}; };
...@@ -35,4 +44,21 @@ uart1: uart@01c28400 { ...@@ -35,4 +44,21 @@ uart1: uart@01c28400 {
status = "okay"; status = "okay";
}; };
}; };
leds {
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&led_pins_cubieboard>;
blue {
label = "cubieboard::blue";
gpios = <&pio 7 21 0>; /* LED1 */
};
green {
label = "cubieboard::green";
gpios = <&pio 7 20 0>; /* LED2 */
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