sysinfo: Add gpio-sysinfo driver
authorSean Anderson <sean.anderson@seco.com>
Tue, 20 Apr 2021 14:50:57 +0000 (10:50 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 4 May 2021 11:57:18 +0000 (07:57 -0400)
commit54aa07fdfc01ac5abff342699df269f6f869fbe0
treedb041b01ed62c82ff71b3b26e0b8661b1f8e2d5f
parent4d65c6bcd71ab2a03a5b7fff0ecf22d068597b25
sysinfo: Add gpio-sysinfo driver

This uses the newly-added dm_gpio_get_values_as_int_base3 function to
implement a sysinfo device. The revision map is stored in the device tree.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
doc/device-tree-bindings/sysinfo/gpio-sysinfo.txt [new file with mode: 0644]
drivers/sysinfo/Kconfig
drivers/sysinfo/Makefile
drivers/sysinfo/gpio.c [new file with mode: 0644]