diff options
author | Serge Semin <Sergey.Semin@baikalelectronics.ru> | 2020-05-28 12:33:12 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2020-05-30 12:33:30 +0300 |
commit | 25d11e9ebe0a5560dc057d1261215d9157c0ae8a (patch) | |
tree | c3934e2284539ceaf11dd466a64a2bb5627efb35 /tools/perf/scripts/python/flamegraph.py | |
parent | 3264d9e5cf453fc9d392dfbaca3ba0afd1c54462 (diff) | |
download | linux-25d11e9ebe0a5560dc057d1261215d9157c0ae8a.tar.xz |
dt-bindings: i2c: Convert DW I2C slave to the DW I2C master example
dtc currently doesn't support I2C_OWN_SLAVE_ADDRESS flag set in the
i2c "reg" property. If dtc finds an i2c-slave sub-node having an address
higher than ten-bits wide it'll print an ugly warning:
Warning (i2c_bus_reg): /example-2/i2c@1120000/eeprom@64: I2C bus unit address format error, expected "40000064"
Warning (i2c_bus_reg): /example-2/i2c@1120000/eeprom@64:reg: I2C address must be less than 10-bits, got "0x40000064"
In order to silence dtc up let's replace the corresponding DT binding
example with a normal DW I2C master mode-based one. It's done by clearing
the I2C_OWN_SLAVE_ADDRESS bit in the reg property and converting the
sub-node to be compatible with normal EEPROM like "atmel,24c02".
Just revert this commit when dtc is fixed.
Signed-off-by: Serge Semin <Sergey.Semin@baikalelectronics.ru>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions