Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 May 2016 15:56:48 +0000 (UTC)
From:      Jared McNeill <jmcneill@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r299861 - head/sys/boot/fdt/dts/arm
Message-ID:  <201605151556.u4FFumxD088655@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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";
+		};
 	};
 };



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605151556.u4FFumxD088655>