Skip to content

Commit 4b0cb4e

Browse files
miquelraynalambarus
authored andcommitted
dt-bindings: mtd: spi-nor: clarify the need for spi-nor compatibles
Most SPI NOR devices do not require a specific compatible, their ID can in general be discovered with the JEDEC READ ID opcode. In this case, only the "jedec,spi-nor" generic compatible is expected. Clarify this information in the compatible description to (i) help device-tree writers and (ii) prevent further attempts to extend this list with useless information. Signed-off-by: Miquel Raynal <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ta: s/JEDEC/JEDEC SFDP for clarity and s/JEDEC READ ID/READ ID as the opcode is not part of the JEDEC SFDP standard.] Signed-off-by: Tudor Ambarus <[email protected]>
1 parent 18d7d01 commit 4b0cb4e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Documentation/devicetree/bindings/mtd/jedec,spi-nor.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ properties:
4343
- const: jedec,spi-nor
4444
- const: jedec,spi-nor
4545
description:
46-
Must also include "jedec,spi-nor" for any SPI NOR flash that can be
47-
identified by the JEDEC READ ID opcode (0x9F).
46+
SPI NOR flashes compatible with the JEDEC SFDP standard or which may be
47+
identified with the READ ID opcode (0x9F) do not deserve a specific
48+
compatible. They should instead only be matched against the generic
49+
"jedec,spi-nor" compatible.
4850

4951
reg:
5052
minItems: 1

0 commit comments

Comments
 (0)