[U-Boot] [U-Boot,v9,11/14] dm: Add GPIO support and tests

Tom Rini trini at ti.com
Tue Mar 4 20:17:29 CET 2014


On Wed, Feb 26, 2014 at 03:59:24PM -0700, Simon Glass wrote:

> Add driver model support for GPIOs. Since existing GPIO drivers do not use
> driver model, this feature must be enabled by CONFIG_DM_GPIO. After all
> GPO drivers are converted over we can perhaps remove this config.
> 
> Tests are provided for the sandbox implementation, and are a sufficient
> sanity check for basic operation.
> 
> The GPIO uclass understands the concept of named banks of GPIOs, with each
> GPIO device providing a single bank. Within each bank the GPIOs are numbered
> using an offset from 0 to n-1. For example a bank named 'b' with 20
> offsets will provide GPIOs named b0 to b19.
> 
> Anonymous GPIO banks are also supported, and are just numbered without any
> prefix.
> 
> Each time a GPIO driver is added to the uclass, the GPIOs are renumbered
> accordinging, so there is always a global GPIO numbering order.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Signed-off-by: Marek Vasut <marex at denx.de>
> Signed-off-by: Pavel Herrmann <morpheus.ibis at gmail.com>
> Signed-off-by: Viktor Křivák <viktor.krivak at gmail.com>
> Signed-off-by: Tomas Hlavacek <tmshlvck at gmail.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140304/2f1b2b51/attachment.pgp>


More information about the U-Boot mailing list