ARM: dts: sun6i: Add support for the status led
authorHans de Goede <hdegoede@redhat.com>
Thu, 13 Nov 2014 09:31:49 +0000 (10:31 +0100)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Sun, 23 Nov 2014 15:53:42 +0000 (16:53 +0100)
The Mele M9 / A1000G quad has a blue status led, add support for this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
arch/arm/boot/dts/sun6i-a31-m9.dts

index e81eed3..66bb7c9 100644 (file)
                };
 
                pio: pinctrl@01c20800 {
+                       led_pins_m9: led_pins@0 {
+                               allwinner,pins = "PH13";
+                               allwinner,function = "gpio_out";
+                               allwinner,drive = <0>;
+                               allwinner,pull = <0>;
+                       };
+
                        mmc0_cd_pin_m9: mmc0_cd_pin@0 {
                                allwinner,pins = "PH22";
                                allwinner,function = "gpio_in";
                };
        };
 
+       leds {
+               compatible = "gpio-leds";
+               pinctrl-names = "default";
+               pinctrl-0 = <&led_pins_m9>;
+
+               blue {
+                       label = "m9:blue:usr";
+                       gpios = <&pio 7 13 0>;
+               };
+       };
+
        reg_usb1_vbus: usb1-vbus {
                pinctrl-names = "default";
                pinctrl-0 = <&usb1_vbus_pin_m9>;