aboutsummaryrefslogtreecommitdiff
path: root/arch/sandbox
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-09-25 08:55:59 -0600
committerBin Meng <bmeng.cn@gmail.com>2019-10-08 13:57:39 +0800
commita605b0f76791b0ec0d7f1703b07ad876c12be1b3 (patch)
tree2518fa0f4576f30a76ea234688f689e8998d23aa /arch/sandbox
parent22327003a9d23c25044ce411e2daa992c835763c (diff)
downloadu-boot-a605b0f76791b0ec0d7f1703b07ad876c12be1b3.zip
u-boot-a605b0f76791b0ec0d7f1703b07ad876c12be1b3.tar.gz
u-boot-a605b0f76791b0ec0d7f1703b07ad876c12be1b3.tar.bz2
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>
Diffstat (limited to 'arch/sandbox')
-rw-r--r--arch/sandbox/dts/test.dts2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
index 27b0baa..50d245a 100644
--- a/arch/sandbox/dts/test.dts
+++ b/arch/sandbox/dts/test.dts
@@ -713,11 +713,13 @@
compatible = "sandbox,spmi";
#address-cells = <0x1>;
#size-cells = <0x1>;
+ ranges;
pm8916@0 {
compatible = "qcom,spmi-pmic";
reg = <0x0 0x1>;
#address-cells = <0x1>;
#size-cells = <0x1>;
+ ranges;
spmi_gpios: gpios@c000 {
compatible = "qcom,pm8916-gpio";