aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2013-07-24 18:12:45 -0400
committerMaxime Ripard <maxime.ripard@free-electrons.com>2013-08-21 18:19:19 -0400
commit6e487da76833c4a8cccec673663118307d0d671b (patch)
treedbb7b915ec4ebed88d0deaa39f3e0a3ba05cb519 /arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
parent2fff6ac079c80201d5e9091e9773b99aef559112 (diff)
ARM: sun7i: a20-olinuxino: Enable the user LED
The A20-olinuxino Micro has a LED connected to the PH2 pin. Use the gpio-led driver to enable the control over this LED. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts')
-rw-r--r--arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts21
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
index 4d988df1a49c..34a6c02a7c72 100644
--- a/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
+++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dts
@@ -19,6 +19,15 @@
19 compatible = "olimex,a20-olinuxino-micro", "allwinner,sun7i-a20"; 19 compatible = "olimex,a20-olinuxino-micro", "allwinner,sun7i-a20";
20 20
21 soc@01c00000 { 21 soc@01c00000 {
22 pinctrl@01c20800 {
23 led_pins_olinuxino: led_pins@0 {
24 allwinner,pins = "PH2";
25 allwinner,function = "gpio_out";
26 allwinner,drive = <1>;
27 allwinner,pull = <0>;
28 };
29 };
30
22 uart0: serial@01c28000 { 31 uart0: serial@01c28000 {
23 pinctrl-names = "default"; 32 pinctrl-names = "default";
24 pinctrl-0 = <&uart0_pins_a>; 33 pinctrl-0 = <&uart0_pins_a>;
@@ -37,4 +46,16 @@
37 status = "okay"; 46 status = "okay";
38 }; 47 };
39 }; 48 };
49
50 leds {
51 compatible = "gpio-leds";
52 pinctrl-names = "default";
53 pinctrl-0 = <&led_pins_olinuxino>;
54
55 green {
56 label = "a20-olinuxino-micro:green:usr";
57 gpios = <&pio 7 2 0>;
58 default-state = "on";
59 };
60 };
40}; 61};