Skip to content

Commit

Permalink
spi: dt-bindings: cdns,qspi-nor: Require some peripheral properties
Browse files Browse the repository at this point in the history
There are 5 mandatory peripheral properties. They are described in a
separate binding but not explicitly required. Make sure they are
correctly marked required and update the example to reflect this.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://patch.msgid.link/20250319094651.1290509-4-miquel.raynal@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Miquel Raynal authored and Mark Brown committed Mar 20, 2025
1 parent 8b35d65 commit 50605d2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Documentation/devicetree/bindings/spi/cdns,qspi-nor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,18 @@ properties:
items:
enum: [ qspi, qspi-ocp, rstc_ref ]

patternProperties:
"^flash@[0-9a-f]+$":
type: object
$ref: cdns,qspi-nor-peripheral-props.yaml
additionalProperties: true
required:
- cdns,read-delay
- cdns,tshsl-ns
- cdns,tsd2d-ns
- cdns,tchsh-ns
- cdns,tslch-ns

required:
- compatible
- reg
Expand Down Expand Up @@ -177,5 +189,10 @@ examples:
flash@0 {
compatible = "jedec,spi-nor";
reg = <0x0>;
cdns,read-delay = <4>;
cdns,tshsl-ns = <60>;
cdns,tsd2d-ns = <60>;
cdns,tchsh-ns = <60>;
cdns,tslch-ns = <60>;
};
};

0 comments on commit 50605d2

Please sign in to comment.