Commit e7224a11 authored by Bartosz Golaszewski's avatar Bartosz Golaszewski

dt-bindings: at24: add the 'num-addresses' property

Currently the at24 driver only creates additional i2c dummies for
atmel,24c00 and it's hard-coded. Some other chips (like for example
Microchip's 24AA02T) also take more slave addresses despite being
otherwise compatible with already supported variants.

Add a new property to the device tree binding document that defines
the total number of i2c slave addresses taken by the device. The
addresses are counted starting from the one in the reg property.
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
parent 4fa882c9
...@@ -75,6 +75,8 @@ Optional properties: ...@@ -75,6 +75,8 @@ Optional properties:
- address-width: number of address bits (one of 8, 16). - address-width: number of address bits (one of 8, 16).
- num-addresses: total number of i2c slave addresses this device takes
Example: Example:
eeprom@52 { eeprom@52 {
...@@ -82,4 +84,5 @@ eeprom@52 { ...@@ -82,4 +84,5 @@ eeprom@52 {
reg = <0x52>; reg = <0x52>;
pagesize = <32>; pagesize = <32>;
wp-gpios = <&gpio1 3 0>; wp-gpios = <&gpio1 3 0>;
num-addresses = <8>;
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment