From owner-freebsd-arch@FreeBSD.ORG Tue Dec 4 21:01:35 2012 Return-Path: Delivered-To: freebsd-arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3D5B6DA3 for ; Tue, 4 Dec 2012 21:01:35 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (gatekeeper.allbsd.org [IPv6:2001:2f0:104:e001::32]) by mx1.freebsd.org (Postfix) with ESMTP id A94568FC14 for ; Tue, 4 Dec 2012 21:01:34 +0000 (UTC) Received: from alph.allbsd.org (p1137-ipbf1505funabasi.chiba.ocn.ne.jp [118.7.212.137]) (authenticated bits=128) by mail.allbsd.org (8.14.5/8.14.5) with ESMTP id qB4L1HoG008298 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 5 Dec 2012 06:01:27 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) (authenticated bits=0) by alph.allbsd.org (8.14.5/8.14.5) with ESMTP id qB4L1FVW023151; Wed, 5 Dec 2012 06:01:17 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Wed, 05 Dec 2012 06:00:56 +0900 (JST) Message-Id: <20121205.060056.592894859995638978.hrs@allbsd.org> To: loos.br@gmail.com Subject: Re: FDT Support for GPIO (gpiobus and friends) From: Hiroki Sato In-Reply-To: References: X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.5 on Emacs 23.4 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart(Wed_Dec__5_06_00_56_2012_562)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97.4 at gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (mail.allbsd.org [133.31.130.32]); Wed, 05 Dec 2012 06:01:27 +0900 (JST) X-Spam-Status: No, score=-98.1 required=13.0 tests=CONTENT_TYPE_PRESENT, ONLY1HOPDIRECT,SAMEHELOBY2HOP,USER_IN_WHITELIST autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on gatekeeper.allbsd.org Cc: freebsd-arch@FreeBSD.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Dec 2012 21:01:35 -0000 ----Security_Multipart(Wed_Dec__5_06_00_56_2012_562)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Luiz Otavio O Souza wrote in : lo> Hi, lo> lo> I've been playing with GPIO on RPi and found the missing support of lo> FDT on gpiobus very annoying. lo> lo> The following patch (gpio-fdt.diff) adds FDT support to GPIO (gpiobus, lo> gpioc, gpioled). lo> lo> The bcm2835_gpio.c.fdt.diff will add (a better) support of FDT on RPi lo> GPIO controller and the bcm2835.dts.diff has my changes on the RPi dts lo> for adding support of gpioled on 'ok' led (pin 16). lo> lo> Comments ? I like this idea, but it should be consistent with standard device tree bindings. For example, + gpiobus { + compatible = "gpiobus"; + + /* Ok led */ + led { + compatible = "gpioled"; + label = "ok"; + pins = <16>; + }; + }; should be something like the following: led { compatible = "gpio-leds"; ok { gpios = <&foo 16 1>; label = "ok"; }; }; A node using GPIOs must have gpios property for the gpio-controller node and pin number. -- Hiroki ----Security_Multipart(Wed_Dec__5_06_00_56_2012_562)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEABECAAYFAlC+ZIgACgkQTyzT2CeTzy11aACdGlsC5wkywjh7b7i22FeEhgLU 2UUAn20D8iJiexPsVsSHTOjO8w5EbTXG =3KTu -----END PGP SIGNATURE----- ----Security_Multipart(Wed_Dec__5_06_00_56_2012_562)----