From owner-svn-src-all@freebsd.org Sun May 15 15:56:49 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C6CB6B3C904; Sun, 15 May 2016 15:56:49 +0000 (UTC) (envelope-from jmcneill@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9643F195F; Sun, 15 May 2016 15:56:49 +0000 (UTC) (envelope-from jmcneill@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4FFumdX088656; Sun, 15 May 2016 15:56:48 GMT (envelope-from jmcneill@FreeBSD.org) Received: (from jmcneill@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4FFumxD088655; Sun, 15 May 2016 15:56:48 GMT (envelope-from jmcneill@FreeBSD.org) Message-Id: <201605151556.u4FFumxD088655@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jmcneill set sender to jmcneill@FreeBSD.org using -f From: Jared McNeill Date: Sun, 15 May 2016 15:56:48 +0000 (UTC) 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 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 May 2016 15:56:49 -0000 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"; + }; }; };