[PATCH 0/2] eeprom: at24: new property

From: Bartosz Golaszewski
Date: Tue Feb 05 2019 - 09:00:05 EST


From: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx>

Microchip 24aa02t EEPROM is compatible with Atmel 24c02 except that
it's visible on 8 i2c slave addresses. We already support such a
use case with hard-coded config for 'atmel,24c00'. Let's add a more
flexible device tree property - 'num-addresses' - to the binding
document and support it in the driver.

Bartosz Golaszewski (2):
dt-bindings: at24: add the 'num-addresses' property
eeprom: at24: implement support for 'num-addresses' property

Documentation/devicetree/bindings/eeprom/at24.txt | 3 +++
drivers/misc/eeprom/at24.c | 13 ++++++++-----
2 files changed, 11 insertions(+), 5 deletions(-)

--
2.20.1