diff options
author | Simon Glass <sjg@chromium.org> | 2021-08-07 07:24:12 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-09-25 09:46:15 -0600 |
commit | 48609d0789f811014b33e6eefc2c27c99be7fea7 (patch) | |
tree | a60a6c721d5776859926501269c2a9f08235bb26 /arch/sandbox | |
parent | 3e57ad907caa55bab8ba52ef87ddbc5130aede2c (diff) | |
download | u-boot-48609d0789f811014b33e6eefc2c27c99be7fea7.zip u-boot-48609d0789f811014b33e6eefc2c27c99be7fea7.tar.gz u-boot-48609d0789f811014b33e6eefc2c27c99be7fea7.tar.bz2 |
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>
Diffstat (limited to 'arch/sandbox')
-rw-r--r-- | arch/sandbox/dts/sandbox.dtsi | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/sandbox/dts/sandbox.dtsi b/arch/sandbox/dts/sandbox.dtsi index 1fc9c9b..66b813f 100644 --- a/arch/sandbox/dts/sandbox.dtsi +++ b/arch/sandbox/dts/sandbox.dtsi @@ -66,7 +66,7 @@ }; gpio_b: gpios@1 { - u-boot,dm-pre-proper; + u-boot,dm-spl; gpio-controller; compatible = "sandbox,gpio"; #gpio-cells = <2>; @@ -74,6 +74,12 @@ sandbox,gpio-count = <10>; }; + gpio-test { + u-boot,dm-spl; + compatible = "sandbox,gpio-test"; + test-gpios = <&gpio_b 3 0>; + }; + hexagon { compatible = "demo-simple"; colour = "white"; |