diff options
author | Simon Glass <sjg@chromium.org> | 2017-08-29 14:15:51 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-09-15 05:27:47 -0600 |
commit | 5ec741fd84ec2c080a6c400feaaa7f335f5cb62f (patch) | |
tree | 70ab0c5c5fe49d87679988b22737c99f72d022dc /tools/dtoc/dtoc_test_simple.dts | |
parent | c20ee0ed070953600b54b16c8b48725348abead5 (diff) | |
download | u-boot-5ec741fd84ec2c080a6c400feaaa7f335f5cb62f.tar.gz u-boot-5ec741fd84ec2c080a6c400feaaa7f335f5cb62f.tar.bz2 u-boot-5ec741fd84ec2c080a6c400feaaa7f335f5cb62f.zip |
dtoc: Handle 'reg' properties with unusual sizes
At present dtoc assumes that all 'reg' properties have both an address and
a size. For I2C devices we do not have this. Adjust dtoc to cope.
Reported-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'tools/dtoc/dtoc_test_simple.dts')
-rw-r--r-- | tools/dtoc/dtoc_test_simple.dts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/dtoc/dtoc_test_simple.dts b/tools/dtoc/dtoc_test_simple.dts index c736686263..6afe674b1f 100644 --- a/tools/dtoc/dtoc_test_simple.dts +++ b/tools/dtoc/dtoc_test_simple.dts @@ -9,6 +9,8 @@ /dts-v1/; / { + #address-cells = <1>; + #size-cells = <1>; spl-test { u-boot,dm-pre-reloc; compatible = "sandbox,spl-test"; @@ -45,4 +47,16 @@ compatible = "sandbox,spl-test.2"; }; + i2c@0 { + compatible = "sandbox,i2c-test"; + u-boot,dm-pre-reloc; + #address-cells = <1>; + #size-cells = <0>; + pmic@9 { + compatible = "sandbox,pmic-test"; + u-boot,dm-pre-reloc; + reg = <9>; + low-power; + }; + }; }; |