From owner-svn-src-all@FreeBSD.ORG Fri Feb 14 18:22:57 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 88B7114F; Fri, 14 Feb 2014 18:22:57 +0000 (UTC) Received: from mail-yk0-x22d.google.com (mail-yk0-x22d.google.com [IPv6:2607:f8b0:4002:c07::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 058661781; Fri, 14 Feb 2014 18:22:56 +0000 (UTC) Received: by mail-yk0-f173.google.com with SMTP id 10so24160226ykt.4 for ; Fri, 14 Feb 2014 10:22:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=EZmhYs/zOiuAOlAu45JfpjSZVzen/t5qJa78vLmJP1I=; b=GwXDglRwUIAj03MQsYOjQT8Gcne7DuID7w+8x7WvJPYyAbQ2j0FNVlC6sCBX6esCUc 5Cu8jxrW8oz/JWWXWoq+lQxSPKrQwc+qvujsR81KMVn1GCSz5fypoCjnksVckZD+HykJ jVYe/8YpeIGAgG8JRoAiBUfxGc5p2HBFk2CM1EiNVMDyQhIUJPvTsMUC/oGQ5dKZras4 MFie28wlgHKtPLW5+AHC87LZ0NdhEQa7nSGE3xgqnqVk89s9OdgRmcd8q5gXMXGE9kXo YYMB2zp24ftlX8KFZqrrD08aLlDlV935Pvp3ilP106DLEh3tKzJc3NZtxbCfkA/4lMmF 8Dfg== X-Received: by 10.236.28.162 with SMTP id g22mr4201518yha.52.1392402176309; Fri, 14 Feb 2014 10:22:56 -0800 (PST) Received: from [192.168.1.13] ([187.120.137.162]) by mx.google.com with ESMTPSA id k76sm19354266yho.18.2014.02.14.10.22.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 14 Feb 2014 10:22:55 -0800 (PST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Subject: Re: svn commit: r261843 - in head: share/man/man4 sys/dev/gpio From: Luiz Otavio O Souza In-Reply-To: <52FD32AE.7030006@freebsd.org> Date: Fri, 14 Feb 2014 16:22:42 -0200 Content-Transfer-Encoding: quoted-printable Message-Id: <6B90FC61-EA18-4FDE-B96F-37676C8FCD72@gmail.com> References: <201402131758.s1DHwqFA084060@svn.freebsd.org> <52FD32AE.7030006@freebsd.org> To: Nathan Whitehorn X-Mailer: Apple Mail (2.1827) Cc: Luiz Otavio O Souza , svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.17 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: Fri, 14 Feb 2014 18:22:57 -0000 On Feb 13, 2014, at 7:01 PM, Nathan Whitehorn wrote: > On 02/13/14 11:58, Luiz Otavio O Souza wrote: >> Author: loos >> Date: Thu Feb 13 17:58:52 2014 >> New Revision: 261843 >> URL: http://svnweb.freebsd.org/changeset/base/261843 >>=20 >> Log: >> Add OFW support to the in tree gpio compatible devices: gpioiic(4) = and >> gpioled(4). >> Tested on RPi and BBB (using the hardware I2C controller and = gpioiic(4) for >> the I2C tests). It was also verified for regressions on RSPRO = (MIPS/ar71xx) >> used as reference for a non OFW-based system. >> Update the gpioled(4) and gpioiic(4) man pages with some details = and >> examples about the FDT/OFW support. >> Some compatibility details pointed out by imp@ will follow in = subsequent >> commits. >> Approved by: adrian (mentor, implicit) >>=20 >=20 > Is there a reason gpioled has an identify() method? Usually enumerable = buses like OF buses wouldn't have something like that. > -Nathan Yes, it is used to give a chance to gpioled to traverse the FDT data and = check for the gpio-leds node which isn=92t a direct child of gpiobus. The gpio-leds should be under the root node and can describe leds = attached under any of the available gpio controllers on the system. The usual probe()/attach() methods are also supported and they can = coexist in the system as long as the DTS data don=92t try to reuse the = same gpio pins (which, in any case, will just produce a warning). Luiz=