mbox series

[0/2] eeprom: at24: new property

Message ID 20190205135934.18841-1-brgl@bgdev.pl
Headers show
Series eeprom: at24: new property | expand

Message

Bartosz Golaszewski Feb. 5, 2019, 1:59 p.m. UTC
From: Bartosz Golaszewski <bgolaszewski@baylibre.com>

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(-)

Comments

Bartosz Golaszewski Feb. 12, 2019, 2:12 p.m. UTC | #1
wt., 5 lut 2019 o 15:00 Bartosz Golaszewski <brgl@bgdev.pl> napisał(a):
>
> From: Bartosz Golaszewski <bgolaszewski@baylibre.com>
>
> 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
>

If there are no objections, I will apply these in 2 days and include
them in the PR for v5.1.

Bart
gregkh@linuxfoundation.org Feb. 19, 2019, 12:39 p.m. UTC | #2
On Tue, Feb 12, 2019 at 03:12:05PM +0100, Bartosz Golaszewski wrote:
> wt., 5 lut 2019 o 15:00 Bartosz Golaszewski <brgl@bgdev.pl> napisał(a):
> >
> > From: Bartosz Golaszewski <bgolaszewski@baylibre.com>
> >
> > 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
> >
> 
> If there are no objections, I will apply these in 2 days and include
> them in the PR for v5.1.

No objections from me:
	Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>