Date: Thu, 13 Feb 2014 18:51:37 +0000 (UTC) From: Luiz Otavio O Souza <loos@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r261846 - in head/sys: arm/conf boot/fdt/dts Message-ID: <201402131851.s1DIpb49007128@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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";
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402131851.s1DIpb49007128>