mtd: core: OTP nvmem provider support
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
- v2 Latest5 patches 13 repliesApplied
- v15 patches 7 repliesSuperseded
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | nvmem: core: allow specifying of_nodedrivers/ include/ | +5 | 1 reply | |
| 2/5 | dt-bindings: mtd: add YAML schema for the generic MTD bindingsDocumentation/ Documentation/ | +40 | 3 replies | |
| 3/5 | dt-bindings: mtd: add OTP bindingsDocumentation/ | +50 | 2 replies | |
| 4/5 | dt-bindings: mtd: spi-nor: add otp propertyDocumentation/ | +6 | 2 replies | |
| 5/5 | mtd: core: add OTP nvmem provider supportdrivers/ include/ | +150 | 8 replies |
Reviews trailers per patch
All 5 patches have a Reviewed-by or Acked-by.
| Patch | Srinivas Kandagatla | Rob Herring | Michael Walle |
|---|---|---|---|
| 1/5 | A-b | ||
| 2/5 | R-b | ||
| 3/5 | R-b | ||
| 4/5 | R-b | ||
| 5/5 | R-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.
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