dm: gpio: Add of-platdata support
authorSimon Glass <sjg@chromium.org>
Sat, 7 Aug 2021 13:24:12 +0000 (07:24 -0600)
committerSimon Glass <sjg@chromium.org>
Sat, 25 Sep 2021 15:46:15 +0000 (09:46 -0600)
commit48609d0789f811014b33e6eefc2c27c99be7fea7
treea60a6c721d5776859926501269c2a9f08235bb26
parent3e57ad907caa55bab8ba52ef87ddbc5130aede2c
dm: gpio: Add of-platdata support

Add support for accessing GPIOs using of-plata. This uses the same
mechanism as for clocks, but allows use of the xlate() method so that
the driver can interpret the parameters.

Update the condition for GPIO_HOG so that it is not built into SPL,
since it needs SPL_OF_REAL which is not enabled in sandbox_spl.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/dts/sandbox.dtsi
configs/sandbox_noinst_defconfig
configs/sandbox_spl_defconfig
drivers/gpio/Makefile
drivers/gpio/gpio-uclass.c
drivers/gpio/sandbox.c
drivers/gpio/sandbox_test.c [new file with mode: 0644]
include/asm-generic/gpio.h
test/dm/of_platdata.c