[PATCH v3 3/4] nvmem: eeprom: add documentation for FRAM

2021-04-20 Thread Jiri Prchal
Added dt binding documentation. Signed-off-by: Jiri Prchal Reviewed-by: Rob Herring --- -v2: fixed dt_binding_check warnings thanks to Rob Herring --- .../devicetree/bindings/eeprom/at25.yaml | 31 +++ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git

[PATCH v3 4/4] nvmem: eeprom: at25: export FRAM serial num

2021-04-20 Thread Jiri Prchal
This exports serial number of FRAM in sysfs file named "sernum". Formatted in hex, each byte separated by space. Example: $ cat /sys/class/spi_master/spi0/spi0.0/sernum a4 36 44 f2 ae 6c 00 00 Signed-off-by: Jiri Prchal --- drivers/misc/eeprom/at25.c | 28 ++

[PATCH v3 2/4] nvmem: eeprom: at25: add support for FRAM

2021-04-20 Thread Jiri Prchal
Added support for Cypress FRAMs. These frams have ID and some of them have serial number too. Size of them is recognized by ID. They don't have pages, it could be read or written at once, but it's limited in this driver to io limit 4096. Signed-off-by: Jiri Prchal --- v2: fixed warning at %zd

[PATCH v3 0/4] add support for FRAM

2021-04-20 Thread Jiri Prchal
Adds sopport for Cypress FRAMs. Jiri Prchal (4): nvmem: eeprom: at25: add support for FRAM nvmem: eeprom: at25: add support for FRAM nvmem: eeprom: add documentation for FRAM nvmem: eeprom: at25: export FRAM serial num .../devicetree/bindings/eeprom/at25.yaml | 31 ++- drivers

[PATCH v3 1/4] nvmem: eeprom: at25: add support for FRAM

2021-04-20 Thread Jiri Prchal
Added enum and string for FRAM to expose it as "fram". Signed-off-by: Jiri Prchal --- drivers/nvmem/core.c | 4 include/linux/nvmem-provider.h | 1 + 2 files changed, 5 insertions(+) diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c index 177f5bf27c6d..01ef9a934

[PATCH] nvmem: eeprom: at25: export FRAM serial num

2021-04-14 Thread Jiri Prchal
This exports serial number of FRAM in sysfs file named "sernum". Formatted in hex, each byte separated by space. Example: $ cat /sys/class/spi_master/spi0/spi0.0/sernum a4 36 44 f2 ae 6c 00 00 Signed-off-by: Jiri Prchal --- drivers/misc/eeprom/at25.c | 28 ++

[PATCH v2 3/3] nvmem: eeprom: add documentation for FRAM

2021-04-13 Thread Jiri Prchal
Added dt binding documentation. Signed-off-by: Jiri Prchal --- -v2: fixed dt_binding_check warnings thanks to Rob Herring --- .../devicetree/bindings/eeprom/at25.yaml | 31 +++ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings

[PATCH v2] nvmem: eeprom: at25: add support for FRAM

2021-04-12 Thread Jiri Prchal
Added support for Cypress FRAMs. These frams have ID and some of them have serial number too. Size of them is recognized by ID. They don't have pages, it could be read or written at once, but it's limited in this driver to io limit 4096. Signed-off-by: Jiri Prchal --- v2: fixed warning at %zd

[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

[PATCH 3/3] nvmem: eeprom: add documentation for FRAM

2021-04-09 Thread Jiri Prchal
Added dt binding documentation. Signed-off-by: Jiri Prchal --- Documentation/devicetree/bindings/eeprom/at25.yaml | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/eeprom/at25.yaml b/Documentation/devicetree/bindings/eeprom/at25

[PATCH 1/3] nvmem: add things for FRAM

2021-04-09 Thread Jiri Prchal
Added enum and string for FRAM to expose it as "fram". Signed-off-by: Jiri Prchal --- drivers/nvmem/core.c | 4 include/linux/nvmem-provider.h | 1 + 2 files changed, 5 insertions(+) diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c index 177f5bf27c6d..01ef9a934

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

2021-04-09 Thread Jiri Prchal
Added support for Cypress FRAMs. These frams have ID and some of them have serial number too. Size of them is recognized by ID. They don't have pages, it could be read or written at once, but it's limited in this driver to io limit 4096. Signed-off-by: Jiri Prchal --- drivers/misc/eeprom

[PATCH v2] leds: triggers: add invert to heartbeat

2015-10-08 Thread Jiri Prchal
this trigger. Signed-off-by: Jiri Prchal --- v2: - Removed led_set_brightness in heartbeat_trig_deactivate. - Reformated message. --- drivers/leds/trigger/ledtrig-heartbeat.c | 47 ++-- 1 file changed, 45 insertions(+), 2 deletions(-) diff --git a/drivers/leds/trigger

[PATCH v2] leds: triggers: add invert to heartbeat

2015-10-08 Thread Jiri Prchal
this trigger. Signed-off-by: Jiri Prchal <jiri.prc...@aksignal.cz> --- v2: - Removed led_set_brightness in heartbeat_trig_deactivate. - Reformated message. --- drivers/leds/trigger/ledtrig-heartbeat.c | 47 ++-- 1 file changed, 45 insertions(+), 2 deletions(-)

[PATCH] misc: eeprom: at25: add Cypress FRAM functionality

2015-10-07 Thread Jiri Prchal
This patch adds functionality for Cypress FRAMs on SPI bus, such as FM25V05, FM25V10 etc. Added to at25 driver: - reading device ID and choose size and addr len from it - serial number reading and exporting it to sysfs - new compatible string Signed-off-by: Jiri Prchal --- drivers/misc/eeprom

[PATCH] leds: triggers: add invert to heartbeat

2015-10-07 Thread Jiri Prchal
this trigger. Signed-off-by: Jiri Prchal --- drivers/leds/trigger/ledtrig-heartbeat.c | 49 ++-- 1 file changed, 47 insertions(+), 2 deletions(-) diff --git a/drivers/leds/trigger/ledtrig-heartbeat.c b/drivers/leds/trigger/ledtrig-heartbeat.c index fea6871..c09c30b

[PATCH] leds: triggers: add invert to heartbeat

2015-10-07 Thread Jiri Prchal
this trigger. Signed-off-by: Jiri Prchal <jiri.prc...@aksignal.cz> --- drivers/leds/trigger/ledtrig-heartbeat.c | 49 ++-- 1 file changed, 47 insertions(+), 2 deletions(-) diff --git a/drivers/leds/trigger/ledtrig-heartbeat.c b/drivers/leds/trigger/ledtrig-heart

[PATCH] misc: eeprom: at25: add Cypress FRAM functionality

2015-10-07 Thread Jiri Prchal
This patch adds functionality for Cypress FRAMs on SPI bus, such as FM25V05, FM25V10 etc. Added to at25 driver: - reading device ID and choose size and addr len from it - serial number reading and exporting it to sysfs - new compatible string Signed-off-by: Jiri Prchal <jiri.prc...@aksignal

[PATCH] ARM: at91: spi: request all csgpio in spi probe

2014-07-28 Thread Jiri Prchal
communication on bus. They are part of bus, like miso, mosi, clk, not part of chips, they are defined in parent spi node, not in child chip node. Csgpio moved to atmel_spi struct as part of master bus. Signed-off-by: Jiri Prchal --- drivers/spi/spi-atmel.c | 68

[PATCH] ARM: at91: spi: request all csgpio in spi probe

2014-07-28 Thread Jiri Prchal
communication on bus. They are part of bus, like miso, mosi, clk, not part of chips, they are defined in parent spi node, not in child chip node. Csgpio moved to atmel_spi struct as part of master bus. Signed-off-by: Jiri Prchal jiri.prc...@aksignal.cz --- drivers/spi/spi-atmel.c | 68