u-boot-brain/test
Simon Glass 3669e0e759 dm: gpio: Add better functions to request GPIOs
At present U-Boot sort-of supports the standard way of reading GPIOs from
device tree nodes, but the support is incomplete, a bit clunky and only
works for GPIO bindings where #gpio-cells is 2.

Add new functions to request GPIOs, taking full account of the device
tree binding. These permit requesting a GPIO with a simple call like:

   gpio_request_by_name(dev, "cd-gpios", 0, &desc, GPIOD_IS_IN);

This will request the GPIO, looking at the device's node which might be
this, for example:

   cd-gpios = <&gpio TEGRA_GPIO(B, 3) GPIO_ACTIVE_LOW>;

The GPIO will be set to input mode in this case and polarity will be
honoured by the GPIO calls.

It is also possible to request and free a list of GPIOs.

Signed-off-by: Simon Glass <sjg@chromium.org>
2015-01-29 17:09:51 -07:00
..
dfu test: dfu: cosmetic: Add missing license information to DFU test scripts 2014-08-20 13:10:33 +02:00
dm dm: gpio: Add better functions to request GPIOs 2015-01-29 17:09:51 -07:00
fs sandbox: script for testing sandbox/ext4/fat/fs commands 2014-11-23 06:49:05 -05:00
image test: Add DEBUG output option to test-fit.py 2015-01-14 11:35:43 -05:00
stdint test: Add a simple test to detected warnings with uint64_t, uintptr_t 2014-10-27 11:04:01 -04:00
trace test: Add a test for command repeat 2014-09-24 18:30:28 -04:00
ums test: ums: Add sleep before unmount directory 2014-11-14 21:09:12 +01:00
vboot Implement generalised RSA public exponents for verified boot 2014-08-09 11:17:01 -04:00
cmd_repeat.sh test: Add a test for command repeat 2014-09-24 18:30:28 -04:00
command_ut.c hush: make run_command() return an error on parsing failure 2014-11-07 16:27:06 -05:00
common.sh test: Add a test for command repeat 2014-09-24 18:30:28 -04:00
compression.c test: Add unit tests for bootm image decompression 2015-01-14 11:35:43 -05:00
Makefile dts, api, test: convert makefiles to Kbuild style 2013-11-01 11:42:12 -04:00