Skip to content

Commit

Permalink
dts: jedec,spi-nor: require size property
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
pabigot authored and carlescufi committed Nov 9, 2019
1 parent 1794535 commit f83ad78
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions boards/arm/mimxrt1015_evk/mimxrt1015_evk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ arduino_serial: &uart4 {};
reg = <0x402a8000 0x4000>, <0x60000000 0x1000000>;
at25sf128a: at25sf128a@0 {
compatible = "adesto,at25sf128a", "jedec,spi-nor";
size = <134217728>;
label = "AT25SF128A";
reg = <0>;
spi-max-frequency = <133000000>;
Expand Down
1 change: 1 addition & 0 deletions boards/arm/mimxrt1020_evk/mimxrt1020_evk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ arduino_serial: &uart2 {};
reg = <0x402a8000 0x4000>, <0x60000000 0x800000>;
is25wp064: is25wp064@0 {
compatible = "issi,is25wp064", "jedec,spi-nor";
size = <67108864>;
label = "IS25WP064";
reg = <0>;
spi-max-frequency = <133000000>;
Expand Down
1 change: 1 addition & 0 deletions boards/arm/mimxrt1050_evk/mimxrt1050_evk_qspi.dts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
reg = <0x402a8000 0x4000>, <0x60000000 0x800000>;
is25wp064: is25wp064@0 {
compatible = "issi,is25wp064", "jedec,spi-nor";
size = <67108864>;
label = "IS25WP064";
reg = <0>;
spi-max-frequency = <133000000>;
Expand Down
1 change: 1 addition & 0 deletions boards/arm/mimxrt1060_evk/mimxrt1060_evk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ arduino_serial: &uart3 {};
reg = <0x402a8000 0x4000>, <0x60000000 0x800000>;
is25wp064: is25wp064@0 {
compatible = "issi,is25wp064", "jedec,spi-nor";
size = <67108864>;
label = "IS25WP064";
reg = <0>;
spi-max-frequency = <133000000>;
Expand Down
1 change: 1 addition & 0 deletions boards/riscv/hifive1/hifive1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
reg = <0x10014000 0x1000 0x20400000 0xc00000>;
flash0: flash@0 {
compatible = "issi,is25lp128", "jedec,spi-nor";
size = <134217728>;
label = "FLASH0";
jedec-id = [96 60 18];
reg = <0>;
Expand Down
1 change: 1 addition & 0 deletions boards/riscv/hifive1_revb/hifive1_revb.dts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
reg = <0x10014000 0x1000 0x20010000 0x3c0900>;
flash0: flash@0 {
compatible = "issi,is25lp128", "jedec,spi-nor";
size = <134217728>;
label = "FLASH0";
jedec-id = [96 60 18];
reg = <0>;
Expand Down
1 change: 1 addition & 0 deletions boards/riscv/qemu_riscv32/qemu_riscv32.dts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
reg = <0x10014000 0x1000 0x20400000 0xc00000>;
flash0: flash@0 {
compatible = "issi,is25lp128", "jedec,spi-nor";
size = <134217728>;
label = "FLASH0";
jedec-id = [96 60 18];
reg = <0>;
Expand Down
1 change: 1 addition & 0 deletions boards/riscv/qemu_riscv64/qemu_riscv64.dts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
reg = <0x10014000 0x1000 0x20400000 0xc00000>;
flash0: flash@0 {
compatible = "issi,is25lp128", "jedec,spi-nor";
size = <134217728>;
label = "FLASH0";
jedec-id = [96 60 18];
reg = <0>;
Expand Down
1 change: 1 addition & 0 deletions dts/arm/nxp/nxp_rt1064.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
/* WINBOND */
w25q32jvwj0: w25q32jvwj@0 {
compatible = "winbond,w25q32jvwj", "jedec,spi-nor";
size = <33554432>;
label = "W25Q32JVWJ0";
reg = <0>;
spi-max-frequency = <133000000>;
Expand Down
2 changes: 1 addition & 1 deletion dts/bindings/mtd/jedec,spi-nor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ properties:

size:
type: int
required: false
required: true
description: flash capacity in bits

wp-gpios:
Expand Down

0 comments on commit f83ad78

Please sign in to comment.