ARM: dts: aspeed: Move flash nodes out of aspeed-g6.dtsi
Subsystems (2)
v2 cover ARM: dts: aspeed: Move flash nodes out of aspeed-g6.dtsi
Move SPI NOR flash descriptions out of aspeed-g6.dtsi. The disabled flash@* stubs there describe board population, not SoC IP.
Patches #1..#7 make each board or vendor common DTSI declare the flashes it uses, and keep status = "okay" so intermediate commits stay bisect-safe while the stubs still exist. Patch #8 removes the stubs.
Changes in v2:
Add Ventura2's four flash declarations to the Facebook patch.
Link to v1:
https://lore.kernel.org/all/[email protected]/
Jacky Huang (8):
ARM: dts: aspeed: facebook: Declare SPI NOR flashes on boards
ARM: dts: aspeed: ibm: Declare SPI NOR flashes on boards
ARM: dts: aspeed: nvidia: Declare SPI NOR flashes on boards
ARM: dts: aspeed: ampere: Declare SPI NOR flashes on boards
ARM: dts: aspeed: asus: Declare SPI NOR flashes on boards
ARM: dts: aspeed: inventec: Declare SPI NOR flashes on boards
ARM: dts: aspeed: Declare SPI NOR flashes on remaining boards
ARM: dts: aspeed: g6: Remove board-level flash stubs
.../boot/dts/aspeed/aspeed-ast2600-evb.dts | 4 ++ .../aspeed/aspeed-bmc-ampere-mtjefferson.dts | 9 +++ .../aspeed/aspeed-bmc-ampere-mtmitchell.dts | 9 +++ .../aspeed-bmc-asus-kommando-ipmi-card.dts | 3 + .../boot/dts/aspeed/aspeed-bmc-asus-x4tf.dts | 6 ++ .../aspeed/aspeed-bmc-facebook-anacapa.dts | 7 +++ .../aspeed/aspeed-bmc-facebook-bletchley.dts | 9 +++ .../aspeed/aspeed-bmc-facebook-catalina.dts | 6 ++ .../aspeed/aspeed-bmc-facebook-clemente.dts | 6 ++ .../aspeed/aspeed-bmc-facebook-greatlakes.dts | 4 ++ .../dts/aspeed/aspeed-bmc-facebook-harma.dts | 8 +++ .../aspeed/aspeed-bmc-facebook-minerva.dts | 6 ++ .../aspeed/aspeed-bmc-facebook-rainiera6.dts | 8 +++ .../aspeed/aspeed-bmc-facebook-sanmiguel.dts | 6 ++ .../aspeed-bmc-facebook-santabarbara.dts | 8 +++ .../aspeed/aspeed-bmc-facebook-ventura2.dts | 10 ++++ .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 4 ++ .../aspeed/aspeed-bmc-facebook-yosemite5.dts | 8 +++ .../boot/dts/aspeed/aspeed-bmc-ibm-sbp1.dts | 6 ++ .../aspeed/aspeed-bmc-inventec-starscream.dts | 6 ++ .../aspeed-bmc-inventec-transformers.dts | 6 ++ .../aspeed/aspeed-bmc-nvidia-gb200nvl-bmc.dts | 5 ++ .../dts/aspeed/aspeed-bmc-nvidia-msx4-bmc.dts | 5 ++ .../boot/dts/aspeed/aspeed-bmc-opp-tacoma.dts | 9 +++ .../dts/aspeed/aspeed-bmc-qcom-dc-scm-v1.dts | 9 +++ .../boot/dts/aspeed/aspeed-bmc-quanta-s6q.dts | 6 ++ .../aspeed/aspeed-bmc-ufispace-ncplite.dts | 6 ++ arch/arm/boot/dts/aspeed/aspeed-g6.dtsi | 56 ------------------- .../ast2600-facebook-netbmc-common.dtsi | 8 +++ 29 files changed, 187 insertions(+), 56 deletions(-)
base-commit: ba3f2c447203166c640e40dc8e9b4b91fc613aa5
Signature · 1 line
2.43.0
PATCH v2 1/8 ARM: dts: aspeed: facebook: Declare SPI NOR flashes on boards
Declare jedec,spi-nor flash nodes with the properties previously inherited from aspeed-g6.dtsi stubs. Keep status = "okay" so these boards stay enabled while the SoC stubs still exist.
---
Changes in v2:
Add the missing compatible and reg properties for Ventura2's four flash nodes, plus spi-rx-bus-width for its two FMC flashes.
.../boot/dts/aspeed/aspeed-bmc-facebook-anacapa.dts | 7 +++++++ .../boot/dts/aspeed/aspeed-bmc-facebook-bletchley.dts | 9 +++++++++ .../boot/dts/aspeed/aspeed-bmc-facebook-catalina.dts | 6 ++++++ .../boot/dts/aspeed/aspeed-bmc-facebook-clemente.dts | 6 ++++++ .../boot/dts/aspeed/aspeed-bmc-facebook-greatlakes.dts | 4 ++++ arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts | 8 ++++++++ .../boot/dts/aspeed/aspeed-bmc-facebook-minerva.dts | 6 ++++++ .../boot/dts/aspeed/aspeed-bmc-facebook-rainiera6.dts | 8 ++++++++ .../boot/dts/aspeed/aspeed-bmc-facebook-sanmiguel.dts | 6 ++++++ .../dts/aspeed/aspeed-bmc-facebook-santabarbara.dts | 8 ++++++++ .../boot/dts/aspeed/aspeed-bmc-facebook-ventura2.dts | 10 ++++++++++ .../boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts | 4 ++++ .../boot/dts/aspeed/aspeed-bmc-facebook-yosemite5.dts | 8 ++++++++ .../dts/aspeed/ast2600-facebook-netbmc-common.dtsi | 8 ++++++++ 14 files changed, 98 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-anacapa.dts +7 -0
@@ -166,18 +166,24 @@ &fmc { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; #include "openbmc-flash-layout-128.dtsi" }; flash@1 { + compatible = "jedec,spi-nor"; + reg = <1>; status = "okay"; m25p,fast-read; label = "alt-bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; }; };
@@ -1023,6 +1029,7 @@ &spi2 { flash@0 { compatible = "jedec,spi-nor"; + reg = <0>; label = "pnor"; spi-max-frequency = <12000000>; spi-tx-bus-width = <2>;
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-bletchley.dts +9 -0
@@ -314,17 +314,23 @@ fixed-link { &fmc { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; #include "openbmc-flash-layout-128.dtsi" }; flash@1 { + compatible = "jedec,spi-nor"; + reg = <1>; status = "okay"; m25p,fast-read; label = "alt-bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; }; };
@@ -334,10 +340,13 @@ &spi2 { pinctrl-0 = <&pinctrl_spi2_default>; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "pnor"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; }; };
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-catalina.dts +6 -0
@@ -170,17 +170,23 @@ &mac3 { &fmc { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; #include "openbmc-flash-layout-128.dtsi" }; flash@1 { + compatible = "jedec,spi-nor"; + reg = <1>; status = "okay"; m25p,fast-read; label = "alt-bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; }; };
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-clemente.dts +6 -0
@@ -189,18 +189,24 @@ &ehci0 { &fmc { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; #include "openbmc-flash-layout-128.dtsi" }; flash@1 { + compatible = "jedec,spi-nor"; + reg = <1>; status = "okay"; m25p,fast-read; label = "alt-bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; }; };
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-greatlakes.dts +4 -0
@@ -82,6 +82,8 @@ &rtc { &fmc { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "bmc";
@@ -90,6 +92,8 @@ flash@0 { #include "openbmc-flash-layout-64.dtsi" }; flash@1 { + compatible = "jedec,spi-nor"; + reg = <1>; status = "okay"; m25p,fast-read; label = "bmc2";
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +8 -0
@@ -139,18 +139,24 @@ &fmc { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; #include "openbmc-flash-layout-128.dtsi" }; flash@1 { + compatible = "jedec,spi-nor"; + reg = <1>; status = "okay"; m25p,fast-read; label = "alt-bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; }; };
@@ -161,6 +167,8 @@ &spi2 { pinctrl-0 = <&pinctrl_spi2_default>; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "pnor";
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva.dts +6 -0
@@ -161,17 +161,23 @@ &mdio3 { &fmc { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; #include "openbmc-flash-layout-128.dtsi" }; flash@1 { + compatible = "jedec,spi-nor"; + reg = <1>; status = "okay"; m25p,fast-read; label = "alt-bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; }; };
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-rainiera6.dts +8 -0
@@ -128,18 +128,24 @@ &fmc { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; #include "openbmc-flash-layout-128.dtsi" }; flash@1 { + compatible = "jedec,spi-nor"; + reg = <1>; status = "okay"; m25p,fast-read; label = "alt-bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; }; };
@@ -969,6 +975,8 @@ &spi2 { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; m25p,fast-read; label = "pnor"; spi-max-frequency = <12000000>;
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-sanmiguel.dts +6 -0
@@ -117,20 +117,26 @@ &fmc { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; label = "bmc"; spi-max-frequency = <50000000>; m25p,fast-read; status = "okay"; + spi-rx-bus-width = <2>; #include "openbmc-flash-layout-128.dtsi" }; flash@1 { + compatible = "jedec,spi-nor"; + reg = <1>; label = "alt-bmc"; spi-max-frequency = <50000000>; m25p,fast-read; status = "okay"; + spi-rx-bus-width = <2>; #include "openbmc-flash-layout-128-alt.dtsi" }; };
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-santabarbara.dts +8 -0
@@ -173,18 +173,24 @@ &fmc { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; #include "openbmc-flash-layout-128.dtsi" }; flash@1 { + compatible = "jedec,spi-nor"; + reg = <1>; status = "okay"; m25p,fast-read; label = "alt-bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; }; };
@@ -1867,6 +1873,8 @@ &spi2 { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; m25p,fast-read; label = "pnor"; spi-max-frequency = <12000000>;
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-ventura2.dts +10 -0
@@ -301,20 +301,26 @@ &fmc { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; label = "bmc"; spi-max-frequency = <50000000>; m25p,fast-read; status = "okay"; + spi-rx-bus-width = <2>; #include "openbmc-flash-layout-128.dtsi" }; flash@1 { + compatible = "jedec,spi-nor"; + reg = <1>; label = "alt-bmc"; spi-max-frequency = <50000000>; m25p,fast-read; status = "okay"; + spi-rx-bus-width = <2>; #include "openbmc-flash-layout-128-alt.dtsi" }; };
@@ -2851,6 +2857,8 @@ &spi2 { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; label = "pnor"; spi-max-frequency = <12000000>; spi-rx-bus-width = <2>;
@@ -2861,6 +2869,8 @@ flash@0 { }; flash@1 { + compatible = "jedec,spi-nor"; + reg = <1>; label = "e810"; spi-max-frequency = <12000000>; spi-rx-bus-width = <2>;
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +4 -0
@@ -162,6 +162,8 @@ &mac3 { &fmc { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "bmc";
@@ -171,6 +173,8 @@ flash@0 { #include "openbmc-flash-layout-128.dtsi" }; flash@1 { + compatible = "jedec,spi-nor"; + reg = <1>; status = "okay"; m25p,fast-read; label = "alt-bmc";
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite5.dts +8 -0
@@ -128,18 +128,24 @@ &fmc { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; #include "openbmc-flash-layout-128.dtsi" }; flash@1 { + compatible = "jedec,spi-nor"; + reg = <1>; status = "okay"; m25p,fast-read; label = "alt-bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; }; };
@@ -1028,6 +1034,8 @@ &spi2 { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; m25p,fast-read; label = "pnor"; spi-max-frequency = <12000000>;
arch/arm/boot/dts/aspeed/ast2600-facebook-netbmc-common.dtsi +8 -0
@@ -51,17 +51,25 @@ &fmc { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "spi0.0"; + spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; #include "facebook-bmc-flash-layout-128.dtsi" }; flash@1 { + compatible = "jedec,spi-nor"; + reg = <1>; status = "okay"; m25p,fast-read; label = "spi0.1"; + spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; partitions { compatible = "fixed-partitions";
Signature · 1 line
2.43.0
PATCH v2 4/8 ARM: dts: aspeed: ampere: Declare SPI NOR flashes on boards
In reply to Jacky HuangDeclare jedec,spi-nor flash nodes with the properties previously inherited from aspeed-g6.dtsi stubs. Keep status = "okay" so these boards stay enabled while the SoC stubs still exist.
--- .../boot/dts/aspeed/aspeed-bmc-ampere-mtjefferson.dts | 9 +++++++++ .../arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts | 9 +++++++++ 2 files changed, 18 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtjefferson.dts +9 -0
@@ -149,18 +149,24 @@ &mac3 { &fmc { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; #include "openbmc-flash-layout-64.dtsi" }; flash@1 { + compatible = "jedec,spi-nor"; + reg = <1>; status = "okay"; m25p,fast-read; label = "alt-bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; #include "openbmc-flash-layout-64-alt.dtsi" }; };
@@ -171,10 +177,13 @@ &spi1 { pinctrl-0 = <&pinctrl_spi1_default>; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "pnor"; spi-max-frequency = <20000000>; + spi-rx-bus-width = <2>; }; };
arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts +9 -0
@@ -379,18 +379,24 @@ &mac3 { &fmc { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; #include "openbmc-flash-layout-64.dtsi" }; flash@1 { + compatible = "jedec,spi-nor"; + reg = <1>; status = "okay"; m25p,fast-read; label = "alt-bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; #include "openbmc-flash-layout-64-alt.dtsi" }; };
@@ -401,10 +407,13 @@ &spi1 { pinctrl-0 = <&pinctrl_spi1_default>; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "pnor"; spi-max-frequency = <20000000>; + spi-rx-bus-width = <2>; }; };
Signature · 1 line
2.43.0
PATCH v2 6/8 ARM: dts: aspeed: inventec: Declare SPI NOR flashes on boards
In reply to Jacky HuangDeclare jedec,spi-nor flash nodes with the properties previously inherited from aspeed-g6.dtsi stubs. Keep status = "okay" so these boards stay enabled while the SoC stubs still exist.
--- arch/arm/boot/dts/aspeed/aspeed-bmc-inventec-starscream.dts | 6 ++++++ .../boot/dts/aspeed/aspeed-bmc-inventec-transformers.dts | 6 ++++++ 2 files changed, 12 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-inventec-starscream.dts +6 -0
@@ -81,6 +81,8 @@ &mac3 { &fmc { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "bmc";
@@ -91,6 +93,8 @@ flash@0 { }; flash@1 { + compatible = "jedec,spi-nor"; + reg = <1>; status = "okay"; m25p,fast-read; label = "bmc2";
@@ -106,6 +110,8 @@ &spi1 { pinctrl-0 = <&pinctrl_spi1_default>; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "bios";
arch/arm/boot/dts/aspeed/aspeed-bmc-inventec-transformers.dts +6 -0
@@ -64,6 +64,8 @@ &fmc { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "bmc";
@@ -74,6 +76,8 @@ flash@0 { }; flash@1 { + compatible = "jedec,spi-nor"; + reg = <1>; status = "okay"; m25p,fast-read; label = "bmc2";
@@ -89,6 +93,8 @@ &spi1 { pinctrl-0 = <&pinctrl_spi1_default>; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "bios";
Signature · 1 line
2.43.0
PATCH v2 7/8 ARM: dts: aspeed: Declare SPI NOR flashes on remaining boards
In reply to Jacky HuangDeclare jedec,spi-nor flash nodes on the AST2600 EVB, Qualcomm DC-SCM, Quanta S6Q, and UfiSpace NCPlite boards with the properties previously inherited from aspeed-g6.dtsi stubs. Keep status = "okay" so these boards stay enabled while the SoC stubs still exist.
--- arch/arm/boot/dts/aspeed/aspeed-ast2600-evb.dts | 4 ++++ arch/arm/boot/dts/aspeed/aspeed-bmc-qcom-dc-scm-v1.dts | 9 +++++++++ arch/arm/boot/dts/aspeed/aspeed-bmc-quanta-s6q.dts | 6 ++++++ arch/arm/boot/dts/aspeed/aspeed-bmc-ufispace-ncplite.dts | 6 ++++++ 4 files changed, 25 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-ast2600-evb.dts +4 -0
@@ -179,6 +179,8 @@ &rtc { &fmc { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "bmc";
@@ -194,6 +196,8 @@ &spi1 { pinctrl-0 = <&pinctrl_spi1_default>; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "pnor";
arch/arm/boot/dts/aspeed/aspeed-bmc-qcom-dc-scm-v1.dts +9 -0
@@ -61,18 +61,24 @@ &fmc { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "bmc"; spi-max-frequency = <133000000>; + spi-rx-bus-width = <2>; #include "openbmc-flash-layout-64.dtsi" }; flash@1 { + compatible = "jedec,spi-nor"; + reg = <1>; status = "okay"; m25p,fast-read; label = "alt-bmc"; spi-max-frequency = <133000000>; + spi-rx-bus-width = <2>; #include "openbmc-flash-layout-64-alt.dtsi" }; };
@@ -83,10 +89,13 @@ &spi1 { pinctrl-0 = <&pinctrl_spi1_default>; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "bios"; spi-max-frequency = <133000000>; + spi-rx-bus-width = <2>; }; };
arch/arm/boot/dts/aspeed/aspeed-bmc-quanta-s6q.dts +6 -0
@@ -196,10 +196,13 @@ &fmc { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; #include "openbmc-flash-layout-64.dtsi" }; };
@@ -211,10 +214,13 @@ &spi2 { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "spi2:0"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; }; };
arch/arm/boot/dts/aspeed/aspeed-bmc-ufispace-ncplite.dts +6 -0
@@ -148,18 +148,24 @@ &mac2 { &fmc { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; #include "openbmc-flash-layout-64.dtsi" }; flash@1 { + compatible = "jedec,spi-nor"; + reg = <1>; status = "okay"; m25p,fast-read; label = "alt-bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; #include "openbmc-flash-layout-64-alt.dtsi" }; };
Signature · 1 line
2.43.0
PATCH v2 3/8 ARM: dts: aspeed: nvidia: Declare SPI NOR flashes on boards
In reply to Jacky HuangDeclare jedec,spi-nor flash nodes with the properties previously inherited from aspeed-g6.dtsi stubs. Keep status = "okay" so these boards stay enabled while the SoC stubs still exist.
--- arch/arm/boot/dts/aspeed/aspeed-bmc-nvidia-gb200nvl-bmc.dts | 5 +++++ arch/arm/boot/dts/aspeed/aspeed-bmc-nvidia-msx4-bmc.dts | 5 +++++ 2 files changed, 10 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-nvidia-gb200nvl-bmc.dts +5 -0
@@ -145,8 +145,10 @@ &fmc { flash@0 { status = "okay"; compatible = "jedec,spi-nor"; + reg = <0>; label = "bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; partitions { compatible = "fixed-partitions"; #address-cells = <1>;
@@ -180,9 +182,12 @@ &spi2 { // Data SPI is 64MB in size flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; label = "config"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; partitions { compatible = "fixed-partitions"; #address-cells = <1>;
arch/arm/boot/dts/aspeed/aspeed-bmc-nvidia-msx4-bmc.dts +5 -0
@@ -56,17 +56,22 @@ &fmc { flash@0 { compatible = "jedec,spi-nor"; + reg = <0>; label = "bmc"; status = "okay"; + spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; #include "openbmc-flash-layout-128.dtsi" }; flash@1 { compatible = "jedec,spi-nor"; + reg = <1>; label = "alt-bmc"; spi-tx-bus-width = <1>; spi-rx-bus-width = <1>; status = "okay"; + spi-max-frequency = <50000000>; #include "openbmc-flash-layout-128-alt.dtsi" }; };
Signature · 1 line
2.43.0
PATCH v2 5/8 ARM: dts: aspeed: asus: Declare SPI NOR flashes on boards
In reply to Jacky HuangDeclare jedec,spi-nor flash nodes with the properties previously inherited from aspeed-g6.dtsi stubs. Keep status = "okay" so these boards stay enabled while the SoC stubs still exist.
--- .../boot/dts/aspeed/aspeed-bmc-asus-kommando-ipmi-card.dts | 3 +++ arch/arm/boot/dts/aspeed/aspeed-bmc-asus-x4tf.dts | 6 ++++++ 2 files changed, 9 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-asus-kommando-ipmi-card.dts +3 -0
@@ -60,10 +60,13 @@ &fmc { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; #include "openbmc-flash-layout-64.dtsi" }; };
arch/arm/boot/dts/aspeed/aspeed-bmc-asus-x4tf.dts +6 -0
@@ -120,10 +120,13 @@ &fmc { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; #include "openbmc-flash-layout-64.dtsi" }; };
@@ -134,9 +137,12 @@ &spi1 { pinctrl-0 = <&pinctrl_spi1_default>; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; label = "bios"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; }; };
Signature · 1 line
2.43.0
PATCH v2 8/8 ARM: dts: aspeed: g6: Remove board-level flash stubs
In reply to Jacky HuangSPI NOR flashes describe board population, not SoC IP. With boards now declaring the flashes they use, drop the disabled flash@* stubs from aspeed-g6.dtsi and leave only the FMC/SPI controllers.
--- arch/arm/boot/dts/aspeed/aspeed-g6.dtsi | 56 ------------------------- 1 file changed, 56 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-g6.dtsi +0 -56
@@ -119,27 +119,6 @@ fmc: spi@1e620000 { clocks = <&syscon ASPEED_CLK_AHB>; status = "disabled"; interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; - flash@0 { - reg = < 0 >; - compatible = "jedec,spi-nor"; - spi-max-frequency = <50000000>; - spi-rx-bus-width = <2>; - status = "disabled"; - }; - flash@1 { - reg = < 1 >; - compatible = "jedec,spi-nor"; - spi-max-frequency = <50000000>; - spi-rx-bus-width = <2>; - status = "disabled"; - }; - flash@2 { - reg = < 2 >; - compatible = "jedec,spi-nor"; - spi-max-frequency = <50000000>; - spi-rx-bus-width = <2>; - status = "disabled"; - }; }; spi1: spi@1e630000 {
@@ -149,20 +128,6 @@ spi1: spi@1e630000 { compatible = "aspeed,ast2600-spi"; clocks = <&syscon ASPEED_CLK_AHB>; status = "disabled"; - flash@0 { - reg = < 0 >; - compatible = "jedec,spi-nor"; - spi-max-frequency = <50000000>; - spi-rx-bus-width = <2>; - status = "disabled"; - }; - flash@1 { - reg = < 1 >; - compatible = "jedec,spi-nor"; - spi-max-frequency = <50000000>; - spi-rx-bus-width = <2>; - status = "disabled"; - }; }; spi2: spi@1e631000 {
@@ -172,27 +137,6 @@ spi2: spi@1e631000 { compatible = "aspeed,ast2600-spi"; clocks = <&syscon ASPEED_CLK_AHB>; status = "disabled"; - flash@0 { - reg = < 0 >; - compatible = "jedec,spi-nor"; - spi-max-frequency = <50000000>; - spi-rx-bus-width = <2>; - status = "disabled"; - }; - flash@1 { - reg = < 1 >; - compatible = "jedec,spi-nor"; - spi-max-frequency = <50000000>; - spi-rx-bus-width = <2>; - status = "disabled"; - }; - flash@2 { - reg = < 2 >; - compatible = "jedec,spi-nor"; - spi-max-frequency = <50000000>; - spi-rx-bus-width = <2>; - status = "disabled"; - }; }; mdio0: mdio@1e650000 {
Signature · 1 line
2.43.0
PATCH v2 2/8 ARM: dts: aspeed: ibm: Declare SPI NOR flashes on boards
In reply to Jacky HuangDeclare jedec,spi-nor flash nodes with the properties previously inherited from aspeed-g6.dtsi stubs. Keep status = "okay" so these boards stay enabled while the SoC stubs still exist.
--- arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-sbp1.dts | 6 ++++++ arch/arm/boot/dts/aspeed/aspeed-bmc-opp-tacoma.dts | 9 +++++++++ 2 files changed, 15 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-ibm-sbp1.dts +6 -0
@@ -1551,20 +1551,26 @@ &lpc_snoop { &fmc { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "bmc"; spi-tx-bus-width = <1>; spi-rx-bus-width = <4>; + spi-max-frequency = <50000000>; #include "openbmc-flash-layout-64.dtsi" }; flash@1 { + compatible = "jedec,spi-nor"; + reg = <1>; status = "okay"; m25p,fast-read; label = "alt-bmc"; spi-tx-bus-width = <1>; spi-rx-bus-width = <4>; + spi-max-frequency = <50000000>; #include "openbmc-flash-layout-64-alt.dtsi" }; };
arch/arm/boot/dts/aspeed/aspeed-bmc-opp-tacoma.dts +9 -0
@@ -140,18 +140,24 @@ &gpio0 { &fmc { status = "okay"; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; #include "openbmc-flash-layout-128.dtsi" }; flash@1 { + compatible = "jedec,spi-nor"; + reg = <1>; status = "okay"; m25p,fast-read; label = "alt-bmc"; spi-max-frequency = <50000000>; + spi-rx-bus-width = <2>; }; };
@@ -161,10 +167,13 @@ &spi1 { pinctrl-0 = <&pinctrl_spi1_default>; flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; status = "okay"; m25p,fast-read; label = "pnor"; spi-max-frequency = <100000000>; + spi-rx-bus-width = <2>; }; };
Signature · 1 line
2.43.0