[PATCH v2 0/5] mtd: core: OTP nvmem provider support
Michael Walle
michael at walle.cc
Sat Apr 24 12:06:03 BST 2021
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 at 0 {
otp {
compatible = "user-otp";
#address-cells = <1>;
#size-cells = <1>;
serial-number at 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
--
2.20.1
More information about the linux-mtd
mailing list