sunxi: a13-olinuxino: Add user LED to the device tree
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 8 Jan 2013 21:35:17 +0000 (22:35 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 11 Feb 2013 15:18:58 +0000 (16:18 +0100)
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun5i-a13-olinuxino.dts

index 498a091a4ea20c9eba86cf61287d7be24f68612b..ff5d0cd81b95f8c24c02891074ff118ab54d6349 100644 (file)
        };
 
        soc {
+               pinctrl@01c20800 {
+                       led_pins_olinuxino: led_pins@0 {
+                               allwinner,pins = "PG9";
+                               allwinner,function = "gpio_out";
+                               allwinner,drive = <1>;
+                               allwinner,pull = <0>;
+                       };
+               };
+
                uart1: uart@01c28400 {
                        status = "okay";
                };
        };
+
+       leds {
+               compatible = "gpio-leds";
+               pinctrl-names = "default";
+               pinctrl-0 = <&led_pins_olinuxino>;
+
+               power {
+                       gpios = <&pio 6 9 0>;
+                       default-state = "on";
+               };
+       };
 };