aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/sun4i-a10-cubieboard.dts
diff options
context:
space:
mode:
authorEmilio López <emilio@elopez.com.ar>2013-01-28 06:27:44 -0500
committerMaxime Ripard <maxime.ripard@free-electrons.com>2013-03-05 15:02:04 -0500
commit7e362103e21f5bf44701c6b5c8973989715e9cec (patch)
treef76253be16e22dcbad8540674c0c1d1073708a9c /arch/arm/boot/dts/sun4i-a10-cubieboard.dts
parentbfef081dd6752f596ef968efe70dcca615463546 (diff)
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: Emilio López <emilio@elopez.com.ar> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'arch/arm/boot/dts/sun4i-a10-cubieboard.dts')
-rw-r--r--arch/arm/boot/dts/sun4i-a10-cubieboard.dts26
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts
index 5cab82540437..88e2dc13fd4d 100644
--- a/arch/arm/boot/dts/sun4i-a10-cubieboard.dts
+++ b/arch/arm/boot/dts/sun4i-a10-cubieboard.dts
@@ -27,6 +27,15 @@
27 }; 27 };
28 28
29 soc { 29 soc {
30 pinctrl@01c20800 {
31 led_pins_cubieboard: led_pins@0 {
32 allwinner,pins = "PH20", "PH21";
33 allwinner,function = "gpio_out";
34 allwinner,drive = <1>;
35 allwinner,pull = <0>;
36 };
37 };
38
30 uart0: uart@01c28000 { 39 uart0: uart@01c28000 {
31 status = "okay"; 40 status = "okay";
32 }; 41 };
@@ -35,4 +44,21 @@
35 status = "okay"; 44 status = "okay";
36 }; 45 };
37 }; 46 };
47
48 leds {
49 compatible = "gpio-leds";
50 pinctrl-names = "default";
51 pinctrl-0 = <&led_pins_cubieboard>;
52
53 blue {
54 label = "cubieboard::blue";
55 gpios = <&pio 7 21 0>; /* LED1 */
56 };
57
58 green {
59 label = "cubieboard::green";
60 gpios = <&pio 7 20 0>; /* LED2 */
61 linux,default-trigger = "heartbeat";
62 };
63 };
38}; 64};