summaryrefslogtreecommitdiff
path: root/treesource.c
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2020-06-22 12:40:05 +0930
committerDavid Gibson <david@gibson.dropbear.id.au>2020-06-22 17:52:50 +1000
commit8259d59f59def85194bd71e855176a3b2ef8702f (patch)
treecba9392b3034eba448d1d30b926c24fdc23b3989 /treesource.c
parentfdabcf2980a467bb255ea6661eba7273cfa7d708 (diff)
downloaddevice-tree-compiler-8259d59f59def85194bd71e855176a3b2ef8702f.tar.gz
checks: Improve i2c reg property checking
The i2c bindings in the kernel tree describe support for 10 bit addressing, which must be indicated with the I2C_TEN_BIT_ADDRESS flag. When this is set the address can be up to 10 bits. When it is not set the address is a maximum of 7 bits. See Documentation/devicetree/bindings/i2c/i2c.txt. Take into account this flag when checking the address is valid. Signed-off-by: Joel Stanley <joel@jms.id.au> Message-Id: <20200622031005.1890039-3-joel@jms.id.au> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'treesource.c')
0 files changed, 0 insertions, 0 deletions