]> git.baikalelectronics.ru Git - uboot.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)
commit3034b9d487167e74fc54846fefa5c621a03acf40
tree2518fa0f4576f30a76ea234688f689e8998d23aa
parent914175c4045180768bfe66f62181e5e42b8fd550
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