]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: spmi: Add ranges property for address translation
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:55:59 +0000 (08:55 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 8 Oct 2019 05:57:39 +0000 (13:57 +0800)
commita605b0f76791b0ec0d7f1703b07ad876c12be1b3
tree2518fa0f4576f30a76ea234688f689e8998d23aa
parent22327003a9d23c25044ce411e2daa992c835763c
sandbox: spmi: Add ranges property for address translation

At present address translation does not work since there is no ranges
property in the spmi nodes. Add empty ranges properties and a little more
logging so that this shows the error:

   /tmp/b/sandbox/u-boot -d /tmp/b/sandbox/arch/sandbox/dts/test.dtb \
-c "ut dm spmi_access_peripheral" -L7 -v
   ...
   pm8916_gpio_probe() bad address: returning err=-22

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
arch/sandbox/dts/test.dts
drivers/gpio/pm8916_gpio.c