svn commit: r299861 - head/sys/boot/fdt/dts/arm
Jared McNeill
jmcneill at FreeBSD.org
Sun May 15 15:56:49 UTC 2016
Author: jmcneill
Date: Sun May 15 15:56:48 2016
New Revision: 299861
URL: https://svnweb.freebsd.org/changeset/base/299861
Log:
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.
Modified:
head/sys/boot/fdt/dts/arm/sinovoip-bpi-m3.dts
Modified: head/sys/boot/fdt/dts/arm/sinovoip-bpi-m3.dts
==============================================================================
--- head/sys/boot/fdt/dts/arm/sinovoip-bpi-m3.dts Sun May 15 15:54:41 2016 (r299860)
+++ head/sys/boot/fdt/dts/arm/sinovoip-bpi-m3.dts Sun May 15 15:56:48 2016 (r299861)
@@ -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";
+ };
};
};
More information about the svn-src-all
mailing list