u-boot/test/dm
Simon Glass 96495d90fe dm: Add GPIO support and tests
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@chromium.org>
Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Pavel Herrmann <morpheus.ibis@gmail.com>
Signed-off-by: Viktor Křivák <viktor.krivak@gmail.com>
Signed-off-by: Tomas Hlavacek <tmshlvck@gmail.com>
2014-03-04 12:15:30 -05:00
..
.gitignore dm: Add basic tests 2014-03-04 12:15:29 -05:00
cmd_dm.c dm: Add a 'dm' command for testing 2014-03-04 12:15:29 -05:00
core.c dm: Add basic tests 2014-03-04 12:15:29 -05:00
gpio.c dm: Add GPIO support and tests 2014-03-04 12:15:30 -05:00
Makefile dm: Add a 'dm' command for testing 2014-03-04 12:15:29 -05:00
test-dm.sh dm: Add basic tests 2014-03-04 12:15:29 -05:00
test-driver.c dm: Add basic tests 2014-03-04 12:15:29 -05:00
test-fdt.c dm: Add basic tests 2014-03-04 12:15:29 -05:00
test-main.c dm: Add basic tests 2014-03-04 12:15:29 -05:00
test-uclass.c dm: Add basic tests 2014-03-04 12:15:29 -05:00
test.dts dm: Add basic tests 2014-03-04 12:15:29 -05:00
ut.c dm: Add basic tests 2014-03-04 12:15:29 -05:00