Skip to content

Commit

Permalink
dt-bindings: mtd: spi-nor: add otp property
Browse files Browse the repository at this point in the history
SPI-NOR flashes may have OTP regions and have a nvmem binding. This
binding is described in mtd.yaml.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210424110608.15748-5-michael@walle.cc
  • Loading branch information
Michael Walle authored and Miquel Raynal committed May 10, 2021
1 parent 74ae366 commit 96d3af2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ title: SPI NOR flash ST M25Pxx (and similar) serial flash chips
maintainers:
- Rob Herring <robh@kernel.org>

allOf:
- $ref: "mtd.yaml#"

properties:
compatible:
oneOf:
Expand Down Expand Up @@ -82,6 +85,9 @@ patternProperties:
'^partition@':
type: object

"^otp(-[0-9]+)?$":
type: object

additionalProperties: false

examples:
Expand Down

0 comments on commit 96d3af2

Please sign in to comment.