From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 4 Mar 2014 14:17:29 -0500 Subject: [U-Boot] [U-Boot,v9,11/14] dm: Add GPIO support and tests In-Reply-To: <1393455567-13378-12-git-send-email-sjg@chromium.org> References: <1393455567-13378-12-git-send-email-sjg@chromium.org> Message-ID: <20140304191729.GE16805@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Signed-off-by: Marek Vasut > Signed-off-by: Pavel Herrmann > Signed-off-by: Viktor K?iv?k > Signed-off-by: Tomas Hlavacek 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: