From owner-svn-src-head@freebsd.org Sun Aug 30 23:20:02 2015 Return-Path: Delivered-To: svn-src-head@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 B55819C57B8; Sun, 30 Aug 2015 23:20:02 +0000 (UTC) (envelope-from loos@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::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 9804EA95; Sun, 30 Aug 2015 23:20:02 +0000 (UTC) (envelope-from loos@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t7UNK275004011; Sun, 30 Aug 2015 23:20:02 GMT (envelope-from loos@FreeBSD.org) Received: (from loos@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t7UNK12U003860; Sun, 30 Aug 2015 23:20:01 GMT (envelope-from loos@FreeBSD.org) Message-Id: <201508302320.t7UNK12U003860@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: loos set sender to loos@FreeBSD.org using -f From: Luiz Otavio O Souza Date: Sun, 30 Aug 2015 23:20:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r287316 - in head/sys: arm/conf 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-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Aug 2015 23:20:02 -0000 Author: loos Date: Sun Aug 30 23:20:00 2015 New Revision: 287316 URL: https://svnweb.freebsd.org/changeset/base/287316 Log: Add the LED definitions from vendor's DTS. Add gpioled support to A20 kernel. While here rename the gpio phandle to match the one used in the vendor's DTS. Modified: head/sys/arm/conf/A20 head/sys/boot/fdt/dts/arm/bananapi.dts head/sys/boot/fdt/dts/arm/cubieboard2.dts head/sys/boot/fdt/dts/arm/sun7i-a20.dtsi Modified: head/sys/arm/conf/A20 ============================================================================== --- head/sys/arm/conf/A20 Sun Aug 30 22:38:06 2015 (r287315) +++ head/sys/arm/conf/A20 Sun Aug 30 23:20:00 2015 (r287316) @@ -78,6 +78,7 @@ device random # Entropy device # GPIO device gpio +device gpioled device scbus # SCSI bus (required for ATA/SCSI) device da # Direct Access (disks) Modified: head/sys/boot/fdt/dts/arm/bananapi.dts ============================================================================== --- head/sys/boot/fdt/dts/arm/bananapi.dts Sun Aug 30 22:38:06 2015 (r287315) +++ head/sys/boot/fdt/dts/arm/bananapi.dts Sun Aug 30 23:20:00 2015 (r287316) @@ -30,6 +30,8 @@ /include/ "sun7i-a20.dtsi" +#include + / { model = "LeMaker Banana Pi"; compatible = "lemaker,bananapi", "allwinner,sun7i-a20"; @@ -72,6 +74,15 @@ }; }; + leds { + compatible = "gpio-leds"; + + green { + label = "bananapi:green:usr"; + gpios = <&pio 7 24 GPIO_ACTIVE_HIGH>; + }; + }; + chosen { bootargs = "-v"; stdin = "UART0"; Modified: head/sys/boot/fdt/dts/arm/cubieboard2.dts ============================================================================== --- head/sys/boot/fdt/dts/arm/cubieboard2.dts Sun Aug 30 22:38:06 2015 (r287315) +++ head/sys/boot/fdt/dts/arm/cubieboard2.dts Sun Aug 30 23:20:00 2015 (r287316) @@ -30,6 +30,8 @@ /include/ "sun7i-a20.dtsi" +#include + / { model = "Cubietech Cubieboard2"; @@ -70,6 +72,20 @@ }; }; + leds { + compatible = "gpio-leds"; + + blue { + label = "cubieboard2:blue:usr"; + gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>; + }; + + green { + label = "cubieboard2:green:usr"; + gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>; + }; + }; + chosen { bootargs = "-v"; stdin = "UART0"; Modified: head/sys/boot/fdt/dts/arm/sun7i-a20.dtsi ============================================================================== --- head/sys/boot/fdt/dts/arm/sun7i-a20.dtsi Sun Aug 30 22:38:06 2015 (r287315) +++ head/sys/boot/fdt/dts/arm/sun7i-a20.dtsi Sun Aug 30 23:20:00 2015 (r287316) @@ -86,7 +86,7 @@ reg = <0x01c20c90 0x10>; }; - GPIO: gpio@01c20800 { + pio: gpio@01c20800 { #gpio-cells = <3>; compatible = "allwinner,sun4i-gpio"; gpio-controller;