Add gpio-leds for Sinovoip BananaPi BPI-M3.

The green LED on the board is wired to AXP813 GPIO0 and the blue
LED is wired to AXP813 GPIO1.
This commit is contained in:
Jared McNeill 2016-05-15 15:56:48 +00:00
parent fafd846c91
commit 4e760f013d

View File

@ -104,5 +104,23 @@
reg = <0x3a3>;
interrupt-parent = <&nmi_intc>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
gpio-controller;
#gpio-cells = <1>;
};
};
/ {
leds {
compatible = "gpio-leds";
green_led {
gpios = <&axp81x 0>; /* AXP PMIC GPIO0 */
label = "green_led";
};
blue_led {
gpios = <&axp81x 1>; /* AXP PMIC GPIO1 */
label = "blue_led";
};
};
};