Re: [PATCH 0/3] nvmem: eeprom: add support for FRAM

2021-04-12 Thread Jiří Prchal




On 09. 04. 21 19:21, Christian Eggers wrote:

Hi Jiri,

I have two Fujitsu different FRAMs running with the stock at25 driver. I set
the page size equal to the device size (as FRAMs have no pages).

Are you able to run your FRAM with the unmodified driver?

I assume that getting the device geometry from the chip is vendor specific (in
contrast to flash devices which have standard commands for this).  I suppose
that there is no much value getting vendor specific information from a chip. If
the drivers knows the vendor, it should also know the chip (e.g. from the dt).


Hi Christian,
main purpose of this patch is to get serial number from this chip. I 
don't have it done yet, in older kernels I expose it as separate file in 
sysfs, but in this kernel no luck. So a post first things while I'm 
working on sernum exposing.


Does your chip has serial number? Can you read it?

Any help welcomed.
Thanks
Jiri

PS: If standard EEPROMs has some commands to get size etc., why it's not 
used? I guess that size is increased as time goes while board is still 
the same, so isn't it annoying changing dt every new lot with bigger 
eeproms.


Re: [PATCH 0/3] nvmem: eeprom: add support for FRAM

2021-04-09 Thread Christian Eggers
Hi Jiri,

I have two Fujitsu different FRAMs running with the stock at25 driver. I set
the page size equal to the device size (as FRAMs have no pages).  

Are you able to run your FRAM with the unmodified driver?

I assume that getting the device geometry from the chip is vendor specific (in
contrast to flash devices which have standard commands for this).  I suppose
that there is no much value getting vendor specific information from a chip. If
the drivers knows the vendor, it should also know the chip (e.g. from the dt).

regards
Christian

On Friday, 9 April 2021, 17:47:17 CEST, Jiri Prchal wrote:
> Adds sopport for Cypress FRAMs.
> 
> Jiri Prchal (3):
>   nvmem: eeprom: at25: add support for FRAM
>   nvmem: eeprom: at25: add support for FRAM
>   nvmem: eeprom: add documentation for FRAM
> 
>  .../devicetree/bindings/eeprom/at25.yaml  |  12 +-
>  drivers/misc/eeprom/Kconfig   |   5 +-
>  drivers/misc/eeprom/at25.c| 151 ++
>  drivers/nvmem/core.c  |   4 +
>  include/linux/nvmem-provider.h|   1 +
>  5 files changed, 139 insertions(+), 34 deletions(-)
> 
> 






[PATCH 0/3] nvmem: eeprom: add support for FRAM

2021-04-09 Thread Jiri Prchal
Adds sopport for Cypress FRAMs.

Jiri Prchal (3):
  nvmem: eeprom: at25: add support for FRAM
  nvmem: eeprom: at25: add support for FRAM
  nvmem: eeprom: add documentation for FRAM

 .../devicetree/bindings/eeprom/at25.yaml  |  12 +-
 drivers/misc/eeprom/Kconfig   |   5 +-
 drivers/misc/eeprom/at25.c| 151 ++
 drivers/nvmem/core.c  |   4 +
 include/linux/nvmem-provider.h|   1 +
 5 files changed, 139 insertions(+), 34 deletions(-)

-- 
2.25.1