[PATCH 0/5] sysinfo: Add gpio sysinfo driver
Sean Anderson
sean.anderson at seco.com
Mon Mar 1 21:45:58 CET 2021
This series adds a GPIO sysinfo driver using the
dm_gpio_get_values_as_int_base3 function. The board revision is mapped
based in devicetree properties. This series is based on Simon's GPIO
series [1].
[1] https://patchwork.ozlabs.org/project/uboot/list/?series=228126
Sean Anderson (5):
dm: gpio: Fix gpio_get_list_count failing with livetree
sysinfo: Provide some global/default IDs
sysinfo: Require that sysinfo_detect be called before other methods
sysinfo: Add gpio-sysinfo driver
test: Add gpio-sysinfo test
arch/sandbox/dts/test.dts | 7 +
common/spl/spl_fit.c | 4 +
.../sysinfo/gpio-sysinfo.txt | 37 +++++
drivers/gpio/gpio-uclass.c | 4 +-
drivers/sysinfo/Kconfig | 8 +
drivers/sysinfo/Makefile | 1 +
drivers/sysinfo/gazerbeam.h | 10 +-
drivers/sysinfo/gpio.c | 138 ++++++++++++++++++
drivers/sysinfo/sandbox.h | 10 +-
include/sysinfo.h | 42 ++++--
test/dm/Makefile | 1 +
test/dm/sysinfo-gpio.c | 69 +++++++++
12 files changed, 309 insertions(+), 22 deletions(-)
create mode 100644 doc/device-tree-bindings/sysinfo/gpio-sysinfo.txt
create mode 100644 drivers/sysinfo/gpio.c
create mode 100644 test/dm/sysinfo-gpio.c
--
2.25.1
More information about the U-Boot
mailing list