dtoc: Handle 'reg' properties with unusual sizes
authorSimon Glass <sjg@chromium.org>
Tue, 29 Aug 2017 20:15:51 +0000 (14:15 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 15 Sep 2017 11:27:47 +0000 (05:27 -0600)
commit5ec741fd84ec2c080a6c400feaaa7f335f5cb62f
tree70ab0c5c5fe49d87679988b22737c99f72d022dc
parentc20ee0ed070953600b54b16c8b48725348abead5
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>
tools/dtoc/dtoc_test_simple.dts
tools/dtoc/test_dtoc.py