Skip to content

Commit f83ad78

Browse files
pabigotcarlescufi
authored andcommitted
dts: jedec,spi-nor: require size property
The SPI NOR driver requires that the size (in bits) be provided in the devicetree node. Update the binding to make the property required, and update all nodes based on the memory chip identified. Signed-off-by: Peter A. Bigot <[email protected]>
1 parent 1794535 commit f83ad78

File tree

10 files changed

+10
-1
lines changed

10 files changed

+10
-1
lines changed

boards/arm/mimxrt1015_evk/mimxrt1015_evk.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ arduino_serial: &uart4 {};
5353
reg = <0x402a8000 0x4000>, <0x60000000 0x1000000>;
5454
at25sf128a: at25sf128a@0 {
5555
compatible = "adesto,at25sf128a", "jedec,spi-nor";
56+
size = <134217728>;
5657
label = "AT25SF128A";
5758
reg = <0>;
5859
spi-max-frequency = <133000000>;

boards/arm/mimxrt1020_evk/mimxrt1020_evk.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ arduino_serial: &uart2 {};
6161
reg = <0x402a8000 0x4000>, <0x60000000 0x800000>;
6262
is25wp064: is25wp064@0 {
6363
compatible = "issi,is25wp064", "jedec,spi-nor";
64+
size = <67108864>;
6465
label = "IS25WP064";
6566
reg = <0>;
6667
spi-max-frequency = <133000000>;

boards/arm/mimxrt1050_evk/mimxrt1050_evk_qspi.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
reg = <0x402a8000 0x4000>, <0x60000000 0x800000>;
1313
is25wp064: is25wp064@0 {
1414
compatible = "issi,is25wp064", "jedec,spi-nor";
15+
size = <67108864>;
1516
label = "IS25WP064";
1617
reg = <0>;
1718
spi-max-frequency = <133000000>;

boards/arm/mimxrt1060_evk/mimxrt1060_evk.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ arduino_serial: &uart3 {};
6868
reg = <0x402a8000 0x4000>, <0x60000000 0x800000>;
6969
is25wp064: is25wp064@0 {
7070
compatible = "issi,is25wp064", "jedec,spi-nor";
71+
size = <67108864>;
7172
label = "IS25WP064";
7273
reg = <0>;
7374
spi-max-frequency = <133000000>;

boards/riscv/hifive1/hifive1.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
reg = <0x10014000 0x1000 0x20400000 0xc00000>;
6464
flash0: flash@0 {
6565
compatible = "issi,is25lp128", "jedec,spi-nor";
66+
size = <134217728>;
6667
label = "FLASH0";
6768
jedec-id = [96 60 18];
6869
reg = <0>;

boards/riscv/hifive1_revb/hifive1_revb.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
reg = <0x10014000 0x1000 0x20010000 0x3c0900>;
6262
flash0: flash@0 {
6363
compatible = "issi,is25lp128", "jedec,spi-nor";
64+
size = <134217728>;
6465
label = "FLASH0";
6566
jedec-id = [96 60 18];
6667
reg = <0>;

boards/riscv/qemu_riscv32/qemu_riscv32.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
reg = <0x10014000 0x1000 0x20400000 0xc00000>;
4040
flash0: flash@0 {
4141
compatible = "issi,is25lp128", "jedec,spi-nor";
42+
size = <134217728>;
4243
label = "FLASH0";
4344
jedec-id = [96 60 18];
4445
reg = <0>;

boards/riscv/qemu_riscv64/qemu_riscv64.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
reg = <0x10014000 0x1000 0x20400000 0xc00000>;
4444
flash0: flash@0 {
4545
compatible = "issi,is25lp128", "jedec,spi-nor";
46+
size = <134217728>;
4647
label = "FLASH0";
4748
jedec-id = [96 60 18];
4849
reg = <0>;

dts/arm/nxp/nxp_rt1064.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
/* WINBOND */
1212
w25q32jvwj0: w25q32jvwj@0 {
1313
compatible = "winbond,w25q32jvwj", "jedec,spi-nor";
14+
size = <33554432>;
1415
label = "W25Q32JVWJ0";
1516
reg = <0>;
1617
spi-max-frequency = <133000000>;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ properties:
2323

2424
size:
2525
type: int
26-
required: false
26+
required: true
2727
description: flash capacity in bits
2828

2929
wp-gpios:

0 commit comments

Comments
 (0)