svn commit: r261846 - in head/sys: arm/conf boot/fdt/dts

Luiz Otavio O Souza loos at FreeBSD.org
Thu Feb 13 18:51:38 UTC 2014


Author: loos
Date: Thu Feb 13 18:51:37 2014
New Revision: 261846
URL: http://svnweb.freebsd.org/changeset/base/261846

Log:
  Make the gpioled(4) work out of the box on BBB.
  
  Add gpioled(4) to BEAGLEBONE kernel and add the description of the four
  on-board leds of beaglebone-black to its DTS file.
  
  Approved by:	adrian (mentor, implicit)

Modified:
  head/sys/arm/conf/BEAGLEBONE
  head/sys/boot/fdt/dts/beaglebone-black.dts

Modified: head/sys/arm/conf/BEAGLEBONE
==============================================================================
--- head/sys/arm/conf/BEAGLEBONE	Thu Feb 13 18:42:23 2014	(r261845)
+++ head/sys/arm/conf/BEAGLEBONE	Thu Feb 13 18:51:37 2014	(r261846)
@@ -101,6 +101,7 @@ device		am335x_pmic		# AM335x Power Mana
 
 # GPIO
 device		gpio
+device		gpioled
 
 # USB support
 device		usb

Modified: head/sys/boot/fdt/dts/beaglebone-black.dts
==============================================================================
--- head/sys/boot/fdt/dts/beaglebone-black.dts	Thu Feb 13 18:42:23 2014	(r261845)
+++ head/sys/boot/fdt/dts/beaglebone-black.dts	Thu Feb 13 18:51:37 2014	(r261846)
@@ -147,6 +147,30 @@
 		}
 	};
 
+	leds {
+		compatible = "gpio-leds";
+
+		led1 {
+			gpios = <&GPIO 53 2 0>;
+			name = "led1";
+		};
+
+		led2 {
+			gpios = <&GPIO 54 2 0>;
+			name = "led2";
+		};
+
+		led3 {
+			gpios = <&GPIO 55 2 0>;
+			name = "led3";
+		};
+
+		led4 {
+			gpios = <&GPIO 56 2 0>;
+			name = "led4";
+		};
+	};
+
 	chosen {
 		stdin = "uart0";
 		stdout = "uart0";


More information about the svn-src-head mailing list