summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilio López <emilio@elopez.com.ar>2013-01-28 08:27:44 -0300
committerMaxime Ripard <maxime.ripard@free-electrons.com>2013-03-05 21:02:04 +0100
commit7e362103e21f5bf44701c6b5c8973989715e9cec (patch)
treef76253be16e22dcbad8540674c0c1d1073708a9c
parentbfef081dd6752f596ef968efe70dcca615463546 (diff)
downloadblackbird-obmc-linux-7e362103e21f5bf44701c6b5c8973989715e9cec.tar.gz
blackbird-obmc-linux-7e362103e21f5bf44701c6b5c8973989715e9cec.zip
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>
-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 @@
};
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 {
status = "okay";
};
@@ -35,4 +44,21 @@
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";
+ };
+ };
};
OpenPOWER on IntegriCloud