Skip to content

mtd: core: OTP nvmem provider support

Michael Walle linux-devicetree linux-mtd linux-tegra lkml 2 versions – Applied

Status from this message: Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 13 repliesApplied
  2. v15 patches 7 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5nvmem: core: allow specifying of_nodedrivers/nvmem/core.c include/linux/nvmem-provider.h+5 -11 reply
2/5dt-bindings: mtd: add YAML schema for the generic MTD bindingsDocumentation/devicetree/bindings/mtd/common.txt Documentation/devicetree/bindings/mtd/mtd.yaml+40 -153 replies
3/5dt-bindings: mtd: add OTP bindingsDocumentation/devicetree/bindings/mtd/mtd.yaml+50 -02 replies
4/5dt-bindings: mtd: spi-nor: add otp propertyDocumentation/devicetree/bindings/mtd/jedec,spi-nor.yaml+6 -02 replies
5/5mtd: core: add OTP nvmem provider supportdrivers/mtd/mtdcore.c include/linux/mtd/mtd.h+150 -08 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchSrinivas KandagatlaRob HerringMichael Walle
1/5A-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/5] mtd: core: OTP nvmem provider support

Some flashes provide one (or more) OTP regions which can be used to store MAC addresses or serial numbers. Implement a NVMEM provider for this storage which then can be used by a network card to fetch the MAC adress for example.

This is an example DT node:

flash@0 {
    otp {
        compatible = "user-otp";
        #address-cells = <1>;
        #size-cells = <1>;

        serial-number@0 {
            reg = <0x0 0x8>;
        };
    };
};

Michael Walle (5):
nvmem: core: allow specifying of_node
dt-bindings: mtd: add YAML schema for the generic MTD bindings
dt-bindings: mtd: add OTP bindings
dt-bindings: mtd: spi-nor: add otp property
mtd: core: add OTP nvmem provider support

 .../devicetree/bindings/mtd/common.txt        |  16 +-
 .../bindings/mtd/jedec,spi-nor.yaml           |   6 +
 .../devicetree/bindings/mtd/mtd.yaml          |  89 +++++++++++
 drivers/mtd/mtdcore.c                         | 148 ++++++++++++++++++
 drivers/nvmem/core.c                          |   4 +-
 include/linux/mtd/mtd.h                       |   2 +
 include/linux/nvmem-provider.h                |   2 +
 7 files changed, 251 insertions(+), 16 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/mtd/mtd.yaml
Signature · 1 line
2.20.1