Skip to content

Commit 9a0d113

Browse files
jimpariscarlescufi
authored andcommitted
dts: flash: add missing DT properties to jedec,spi-nor
The erase-block-size and write-block-size are needed for the spi_nor driver to compile. scripts/dts/extract/flash.py automatically adds these properties if this flash device is part of the "chosen" flash node, but they're otherwise missing. Signed-off-by: Jim Paris <[email protected]>
1 parent 110cab8 commit 9a0d113

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

dts/bindings/mtd/jedec,spi-nor.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,20 @@ properties:
2323
description: JEDEC ID as manufacturer ID, memory type, memory density
2424
generation: define
2525

26+
erase-block-size:
27+
type: int
28+
description: address alignment required by flash erase operations
29+
generation: define
30+
category: optional
31+
label: alignment
32+
33+
write-block-size:
34+
type: int
35+
description: address alignment required by flash write operations
36+
generation: define
37+
category: optional
38+
label: alignment
39+
2640
size:
2741
type: int
2842
category: optional

0 commit comments

Comments
 (0)