* [PATCH 1/4] dt-bindings: brcm,spi-bcm-qspi: allow hif_mspi as alternative for mspi
2025-12-25 10:25 [PATCH 0/4] mips: bmips: fix brcm,spi-bcm-qspi devicetree usage Jonas Gorski
@ 2025-12-25 10:25 ` Jonas Gorski
2025-12-25 12:32 ` Krzysztof Kozlowski
2025-12-25 12:34 ` Krzysztof Kozlowski
2025-12-25 10:25 ` [PATCH 2/4] mips: bmips: dts: fix {m,q}spi compatible order Jonas Gorski
` (2 subsequent siblings)
3 siblings, 2 replies; 8+ messages in thread
From: Jonas Gorski @ 2025-12-25 10:25 UTC (permalink / raw)
To: Kamal Dasu, Broadcom internal kernel review list, Mark Brown,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Florian Fainelli,
Thomas Bogendoerfer, Rafał Miłecki
Cc: Kamal Dasu, linux-spi, devicetree, linux-kernel, linux-mips
Add "hif_mspi" as an alternative reg-name for brcm,spi-bcm-qspi, as
it is in use by BCM7xxx (BMIPS) device trees.
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
---
Documentation/devicetree/bindings/spi/brcm,spi-bcm-qspi.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/spi/brcm,spi-bcm-qspi.yaml b/Documentation/devicetree/bindings/spi/brcm,spi-bcm-qspi.yaml
index 45975f40d943..ffe8d7f8dd4a 100644
--- a/Documentation/devicetree/bindings/spi/brcm,spi-bcm-qspi.yaml
+++ b/Documentation/devicetree/bindings/spi/brcm,spi-bcm-qspi.yaml
@@ -57,7 +57,7 @@ properties:
reg-names:
minItems: 1
items:
- - const: mspi
+ - enum: [ hif_mspi, mspi ]
- const: bspi
- enum: [ intr_regs, intr_status_reg, cs_reg ]
- enum: [ intr_regs, intr_status_reg, cs_reg ]
--
2.43.0
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH 1/4] dt-bindings: brcm,spi-bcm-qspi: allow hif_mspi as alternative for mspi
2025-12-25 10:25 ` [PATCH 1/4] dt-bindings: brcm,spi-bcm-qspi: allow hif_mspi as alternative for mspi Jonas Gorski
@ 2025-12-25 12:32 ` Krzysztof Kozlowski
2025-12-25 12:34 ` Krzysztof Kozlowski
1 sibling, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2025-12-25 12:32 UTC (permalink / raw)
To: Jonas Gorski, Kamal Dasu, Broadcom internal kernel review list,
Mark Brown, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Florian Fainelli, Thomas Bogendoerfer, Rafał Miłecki
Cc: Kamal Dasu, linux-spi, devicetree, linux-kernel, linux-mips
On 25/12/2025 11:25, Jonas Gorski wrote:
> Add "hif_mspi" as an alternative reg-name for brcm,spi-bcm-qspi, as
> it is in use by BCM7xxx (BMIPS) device trees.
>
> Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Rather fix the DTS or provide reason why they cannot/should not be fixed.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/4] dt-bindings: brcm,spi-bcm-qspi: allow hif_mspi as alternative for mspi
2025-12-25 10:25 ` [PATCH 1/4] dt-bindings: brcm,spi-bcm-qspi: allow hif_mspi as alternative for mspi Jonas Gorski
2025-12-25 12:32 ` Krzysztof Kozlowski
@ 2025-12-25 12:34 ` Krzysztof Kozlowski
1 sibling, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2025-12-25 12:34 UTC (permalink / raw)
To: Jonas Gorski, Kamal Dasu, Broadcom internal kernel review list,
Mark Brown, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Florian Fainelli, Thomas Bogendoerfer, Rafał Miłecki
Cc: Kamal Dasu, linux-spi, devicetree, linux-kernel, linux-mips
On 25/12/2025 11:25, Jonas Gorski wrote:
> Add "hif_mspi" as an alternative reg-name for brcm,spi-bcm-qspi, as
> it is in use by BCM7xxx (BMIPS) device trees.
>
> Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Also:
Please use subject prefixes matching the subsystem. You can get them for
example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory
your patch is touching. For bindings, the preferred subjects are
explained here:
https://www.kernel.org/doc/html/latest/devicetree/bindings/submitting-patches.html#i-for-patch-submitters
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 2/4] mips: bmips: dts: fix {m,q}spi compatible order
2025-12-25 10:25 [PATCH 0/4] mips: bmips: fix brcm,spi-bcm-qspi devicetree usage Jonas Gorski
2025-12-25 10:25 ` [PATCH 1/4] dt-bindings: brcm,spi-bcm-qspi: allow hif_mspi as alternative for mspi Jonas Gorski
@ 2025-12-25 10:25 ` Jonas Gorski
2025-12-25 10:25 ` [PATCH 3/4] mips: bmips: dts: fix qspi interrupt order Jonas Gorski
2025-12-25 10:25 ` [PATCH 4/4] mips: bmips: dts: fix qspi register order Jonas Gorski
3 siblings, 0 replies; 8+ messages in thread
From: Jonas Gorski @ 2025-12-25 10:25 UTC (permalink / raw)
To: Kamal Dasu, Broadcom internal kernel review list, Mark Brown,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Florian Fainelli,
Thomas Bogendoerfer, Rafał Miłecki
Cc: Kamal Dasu, linux-spi, devicetree, linux-kernel, linux-mips
The compatible order should be from most specific to least specific, but
the {m,q}spi controller nodes had theirs reversed.
The actual order does not matter, as the brcmmstb-qspi driver matches
both, which than calls bcm_qspi_probe(), which only checks for the
presence of the *-qspi compatible.
Fixes warnings like:
arch/mips/boot/dts/brcm/bcm97425svmb.dtb: spi@409200 (brcm,spi-bcm-qspi): compatible: 'oneOf' conditional failed, one must be fixed:
['brcm,spi-bcm-qspi', 'brcm,spi-brcmstb-mspi'] is too short
'brcm,spi-bcm-qspi' is not one of ['brcm,spi-bcm7425-qspi', 'brcm,spi-bcm7429-qspi', 'brcm,spi-bcm7435-qspi', 'brcm,spi-bcm7445-qspi', 'brcm,spi-bcm7216-qspi', 'brcm,spi-bcm7278-qspi']
'brcm,spi-bcm-qspi' is not one of ['brcm,spi-brcmstb-qspi', 'brcm,spi-brcmstb-mspi', 'brcm,spi-nsp-qspi', 'brcm,spi-ns2-qspi']
'brcm,spi-bcm-qspi' was expected
from schema $id: http://devicetree.org/schemas/spi/brcm,spi-bcm-qspi.yaml
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
---
arch/mips/boot/dts/brcm/bcm7125.dtsi | 8 ++++----
arch/mips/boot/dts/brcm/bcm7346.dtsi | 8 ++++----
arch/mips/boot/dts/brcm/bcm7358.dtsi | 8 ++++----
arch/mips/boot/dts/brcm/bcm7360.dtsi | 8 ++++----
arch/mips/boot/dts/brcm/bcm7362.dtsi | 8 ++++----
arch/mips/boot/dts/brcm/bcm7420.dtsi | 8 ++++----
arch/mips/boot/dts/brcm/bcm7425.dtsi | 8 ++++----
arch/mips/boot/dts/brcm/bcm7435.dtsi | 8 ++++----
8 files changed, 32 insertions(+), 32 deletions(-)
diff --git a/arch/mips/boot/dts/brcm/bcm7125.dtsi b/arch/mips/boot/dts/brcm/bcm7125.dtsi
index 5bf77b6fcceb..92963a1998b7 100644
--- a/arch/mips/boot/dts/brcm/bcm7125.dtsi
+++ b/arch/mips/boot/dts/brcm/bcm7125.dtsi
@@ -247,8 +247,8 @@ spi_l2_intc: interrupt-controller@411d00 {
qspi: spi@443000 {
#address-cells = <0x1>;
#size-cells = <0x0>;
- compatible = "brcm,spi-bcm-qspi",
- "brcm,spi-brcmstb-qspi";
+ compatible = "brcm,spi-brcmstb-qspi",
+ "brcm,spi-bcm-qspi";
clocks = <&upg_clk>;
reg = <0x440920 0x4 0x443200 0x188 0x443000 0x50>;
reg-names = "cs_reg", "hif_mspi", "bspi";
@@ -267,8 +267,8 @@ qspi: spi@443000 {
mspi: spi@406400 {
#address-cells = <1>;
#size-cells = <0>;
- compatible = "brcm,spi-bcm-qspi",
- "brcm,spi-brcmstb-mspi";
+ compatible = "brcm,spi-brcmstb-mspi",
+ "brcm,spi-bcm-qspi";
clocks = <&upg_clk>;
reg = <0x406400 0x180>;
reg-names = "mspi";
diff --git a/arch/mips/boot/dts/brcm/bcm7346.dtsi b/arch/mips/boot/dts/brcm/bcm7346.dtsi
index 9d6f97e02ff9..42125684b523 100644
--- a/arch/mips/boot/dts/brcm/bcm7346.dtsi
+++ b/arch/mips/boot/dts/brcm/bcm7346.dtsi
@@ -471,8 +471,8 @@ spi_l2_intc: interrupt-controller@411d00 {
qspi: spi@413000 {
#address-cells = <0x1>;
#size-cells = <0x0>;
- compatible = "brcm,spi-bcm-qspi",
- "brcm,spi-brcmstb-qspi";
+ compatible = "brcm,spi-brcmstb-qspi",
+ "brcm,spi-bcm-qspi";
clocks = <&upg_clk>;
reg = <0x410920 0x4 0x413200 0x188 0x413000 0x50>;
reg-names = "cs_reg", "hif_mspi", "bspi";
@@ -491,8 +491,8 @@ qspi: spi@413000 {
mspi: spi@408a00 {
#address-cells = <1>;
#size-cells = <0>;
- compatible = "brcm,spi-bcm-qspi",
- "brcm,spi-brcmstb-mspi";
+ compatible = "brcm,spi-brcmstb-mspi",
+ "brcm,spi-bcm-qspi";
clocks = <&upg_clk>;
reg = <0x408a00 0x180>;
reg-names = "mspi";
diff --git a/arch/mips/boot/dts/brcm/bcm7358.dtsi b/arch/mips/boot/dts/brcm/bcm7358.dtsi
index 6375fc77f389..fdc52acab8c8 100644
--- a/arch/mips/boot/dts/brcm/bcm7358.dtsi
+++ b/arch/mips/boot/dts/brcm/bcm7358.dtsi
@@ -339,8 +339,8 @@ spi_l2_intc: interrupt-controller@411d00 {
qspi: spi@413000 {
#address-cells = <0x1>;
#size-cells = <0x0>;
- compatible = "brcm,spi-bcm-qspi",
- "brcm,spi-brcmstb-qspi";
+ compatible = "brcm,spi-brcmstb-qspi",
+ "brcm,spi-bcm-qspi";
clocks = <&upg_clk>;
reg = <0x410920 0x4 0x413200 0x188 0x413000 0x50>;
reg-names = "cs_reg", "hif_mspi", "bspi";
@@ -359,8 +359,8 @@ qspi: spi@413000 {
mspi: spi@408a00 {
#address-cells = <1>;
#size-cells = <0>;
- compatible = "brcm,spi-bcm-qspi",
- "brcm,spi-brcmstb-mspi";
+ compatible = "brcm,spi-brcmstb-mspi",
+ "brcm,spi-bcm-qspi";
clocks = <&upg_clk>;
reg = <0x408a00 0x180>;
reg-names = "mspi";
diff --git a/arch/mips/boot/dts/brcm/bcm7360.dtsi b/arch/mips/boot/dts/brcm/bcm7360.dtsi
index a7f60f059e50..e8b0b0ff7588 100644
--- a/arch/mips/boot/dts/brcm/bcm7360.dtsi
+++ b/arch/mips/boot/dts/brcm/bcm7360.dtsi
@@ -390,8 +390,8 @@ spi_l2_intc: interrupt-controller@411d00 {
qspi: spi@413000 {
#address-cells = <0x1>;
#size-cells = <0x0>;
- compatible = "brcm,spi-bcm-qspi",
- "brcm,spi-brcmstb-qspi";
+ compatible = "brcm,spi-brcmstb-qspi",
+ "brcm,spi-bcm-qspi";
clocks = <&upg_clk>;
reg = <0x410920 0x4 0x413200 0x188 0x413000 0x50>;
reg-names = "cs_reg", "hif_mspi", "bspi";
@@ -410,8 +410,8 @@ qspi: spi@413000 {
mspi: spi@408a00 {
#address-cells = <1>;
#size-cells = <0>;
- compatible = "brcm,spi-bcm-qspi",
- "brcm,spi-brcmstb-mspi";
+ compatible = "brcm,spi-brcmstb-mspi",
+ "brcm,spi-bcm-qspi";
clocks = <&upg_clk>;
reg = <0x408a00 0x180>;
reg-names = "mspi";
diff --git a/arch/mips/boot/dts/brcm/bcm7362.dtsi b/arch/mips/boot/dts/brcm/bcm7362.dtsi
index 2d483cbf254f..a1ed0b193389 100644
--- a/arch/mips/boot/dts/brcm/bcm7362.dtsi
+++ b/arch/mips/boot/dts/brcm/bcm7362.dtsi
@@ -386,8 +386,8 @@ spi_l2_intc: interrupt-controller@411d00 {
qspi: spi@413000 {
#address-cells = <0x1>;
#size-cells = <0x0>;
- compatible = "brcm,spi-bcm-qspi",
- "brcm,spi-brcmstb-qspi";
+ compatible = "brcm,spi-brcmstb-qspi",
+ "brcm,spi-bcm-qspi";
clocks = <&upg_clk>;
reg = <0x410920 0x4 0x413200 0x188 0x413000 0x50>;
reg-names = "cs_reg", "hif_mspi", "bspi";
@@ -406,8 +406,8 @@ qspi: spi@413000 {
mspi: spi@408a00 {
#address-cells = <1>;
#size-cells = <0>;
- compatible = "brcm,spi-bcm-qspi",
- "brcm,spi-brcmstb-mspi";
+ compatible = "brcm,spi-brcmstb-mspi",
+ "brcm,spi-bcm-qspi";
clocks = <&upg_clk>;
reg = <0x408a00 0x180>;
reg-names = "mspi";
diff --git a/arch/mips/boot/dts/brcm/bcm7420.dtsi b/arch/mips/boot/dts/brcm/bcm7420.dtsi
index 9540c27f12e7..62e7e1602d4e 100644
--- a/arch/mips/boot/dts/brcm/bcm7420.dtsi
+++ b/arch/mips/boot/dts/brcm/bcm7420.dtsi
@@ -308,8 +308,8 @@ spi_l2_intc: interrupt-controller@411d00 {
qspi: spi@443000 {
#address-cells = <0x1>;
#size-cells = <0x0>;
- compatible = "brcm,spi-bcm-qspi",
- "brcm,spi-brcmstb-qspi";
+ compatible = "brcm,spi-brcmstb-qspi",
+ "brcm,spi-bcm-qspi";
clocks = <&upg_clk>;
reg = <0x440920 0x4 0x443200 0x188 0x443000 0x50>;
reg-names = "cs_reg", "hif_mspi", "bspi";
@@ -328,8 +328,8 @@ qspi: spi@443000 {
mspi: spi@406400 {
#address-cells = <1>;
#size-cells = <0>;
- compatible = "brcm,spi-bcm-qspi",
- "brcm,spi-brcmstb-mspi";
+ compatible = "brcm,spi-brcmstb-mspi",
+ "brcm,spi-bcm-qspi";
clocks = <&upg_clk>;
reg = <0x406400 0x180>;
reg-names = "mspi";
diff --git a/arch/mips/boot/dts/brcm/bcm7425.dtsi b/arch/mips/boot/dts/brcm/bcm7425.dtsi
index c3bb020ff2b5..71422fd2ecc9 100644
--- a/arch/mips/boot/dts/brcm/bcm7425.dtsi
+++ b/arch/mips/boot/dts/brcm/bcm7425.dtsi
@@ -482,8 +482,8 @@ spi_l2_intc: interrupt-controller@41ad00 {
qspi: spi@41c000 {
#address-cells = <0x1>;
#size-cells = <0x0>;
- compatible = "brcm,spi-bcm-qspi",
- "brcm,spi-brcmstb-qspi";
+ compatible = "brcm,spi-brcmstb-qspi",
+ "brcm,spi-bcm-qspi";
clocks = <&upg_clk>;
reg = <0x419920 0x4 0x41c200 0x188 0x41c000 0x50>;
reg-names = "cs_reg", "hif_mspi", "bspi";
@@ -502,8 +502,8 @@ qspi: spi@41c000 {
mspi: spi@409200 {
#address-cells = <1>;
#size-cells = <0>;
- compatible = "brcm,spi-bcm-qspi",
- "brcm,spi-brcmstb-mspi";
+ compatible = "brcm,spi-brcmstb-mspi",
+ "brcm,spi-bcm-qspi";
clocks = <&upg_clk>;
reg = <0x409200 0x180>;
reg-names = "mspi";
diff --git a/arch/mips/boot/dts/brcm/bcm7435.dtsi b/arch/mips/boot/dts/brcm/bcm7435.dtsi
index 60cfa4074cce..38eea5373b66 100644
--- a/arch/mips/boot/dts/brcm/bcm7435.dtsi
+++ b/arch/mips/boot/dts/brcm/bcm7435.dtsi
@@ -498,8 +498,8 @@ spi_l2_intc: interrupt-controller@41bd00 {
qspi: spi@41d200 {
#address-cells = <0x1>;
#size-cells = <0x0>;
- compatible = "brcm,spi-bcm-qspi",
- "brcm,spi-brcmstb-qspi";
+ compatible = "brcm,spi-brcmstb-qspi",
+ "brcm,spi-bcm-qspi";
clocks = <&upg_clk>;
reg = <0x41a920 0x4 0x41d400 0x188 0x41d200 0x50>;
reg-names = "cs_reg", "hif_mspi", "bspi";
@@ -518,8 +518,8 @@ qspi: spi@41d200 {
mspi: spi@409200 {
#address-cells = <1>;
#size-cells = <0>;
- compatible = "brcm,spi-bcm-qspi",
- "brcm,spi-brcmstb-mspi";
+ compatible = "brcm,spi-brcmstb-mspi",
+ "brcm,spi-bcm-qspi";
clocks = <&upg_clk>;
reg = <0x409200 0x180>;
reg-names = "mspi";
--
2.43.0
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH 3/4] mips: bmips: dts: fix qspi interrupt order
2025-12-25 10:25 [PATCH 0/4] mips: bmips: fix brcm,spi-bcm-qspi devicetree usage Jonas Gorski
2025-12-25 10:25 ` [PATCH 1/4] dt-bindings: brcm,spi-bcm-qspi: allow hif_mspi as alternative for mspi Jonas Gorski
2025-12-25 10:25 ` [PATCH 2/4] mips: bmips: dts: fix {m,q}spi compatible order Jonas Gorski
@ 2025-12-25 10:25 ` Jonas Gorski
2025-12-25 10:25 ` [PATCH 4/4] mips: bmips: dts: fix qspi register order Jonas Gorski
3 siblings, 0 replies; 8+ messages in thread
From: Jonas Gorski @ 2025-12-25 10:25 UTC (permalink / raw)
To: Kamal Dasu, Broadcom internal kernel review list, Mark Brown,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Florian Fainelli,
Thomas Bogendoerfer, Rafał Miłecki
Cc: Kamal Dasu, linux-spi, devicetree, linux-kernel, linux-mips
The binding for brcm,spi-bcm-qspi requires the interrupt-names in a
certain order, so reorder the interrupts to match it.
Fixes warnings like:
arch/mips/boot/dts/brcm/bcm97435svmb.dtb: spi@41d200 (brcm,spi-brcmstb-qspi): interrupt-names: 'oneOf' conditional failed, one must be fixed:
['spi_lr_fullness_reached', 'spi_lr_session_aborted', 'spi_lr_impatient', 'spi_lr_session_done', 'spi_lr_overread', 'mspi_done', 'mspi_halted'] is too long
'mspi_done' was expected
'spi_l1_intr' was expected
'mspi_halted' was expected
'spi_lr_fullness_reached' was expected
'spi_lr_session_aborted' was expected
'spi_lr_impatient' was expected
'spi_lr_session_done' was expected
'spi_lr_overread' was expected
from schema $id: http://devicetree.org/schemas/spi/brcm,spi-bcm-qspi.yaml
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
---
arch/mips/boot/dts/brcm/bcm7125.dtsi | 10 +++++-----
arch/mips/boot/dts/brcm/bcm7346.dtsi | 10 +++++-----
arch/mips/boot/dts/brcm/bcm7358.dtsi | 10 +++++-----
arch/mips/boot/dts/brcm/bcm7360.dtsi | 10 +++++-----
arch/mips/boot/dts/brcm/bcm7362.dtsi | 10 +++++-----
arch/mips/boot/dts/brcm/bcm7420.dtsi | 10 +++++-----
arch/mips/boot/dts/brcm/bcm7425.dtsi | 10 +++++-----
arch/mips/boot/dts/brcm/bcm7435.dtsi | 10 +++++-----
8 files changed, 40 insertions(+), 40 deletions(-)
diff --git a/arch/mips/boot/dts/brcm/bcm7125.dtsi b/arch/mips/boot/dts/brcm/bcm7125.dtsi
index 92963a1998b7..dd1cc3cda694 100644
--- a/arch/mips/boot/dts/brcm/bcm7125.dtsi
+++ b/arch/mips/boot/dts/brcm/bcm7125.dtsi
@@ -252,15 +252,15 @@ qspi: spi@443000 {
clocks = <&upg_clk>;
reg = <0x440920 0x4 0x443200 0x188 0x443000 0x50>;
reg-names = "cs_reg", "hif_mspi", "bspi";
- interrupts = <0x0 0x1 0x2 0x3 0x4 0x5 0x6>;
+ interrupts = <0x5 0x6 0x0 0x1 0x2 0x3 0x4>;
interrupt-parent = <&spi_l2_intc>;
- interrupt-names = "spi_lr_fullness_reached",
+ interrupt-names = "mspi_done",
+ "mspi_halted",
+ "spi_lr_fullness_reached",
"spi_lr_session_aborted",
"spi_lr_impatient",
"spi_lr_session_done",
- "spi_lr_overread",
- "mspi_done",
- "mspi_halted";
+ "spi_lr_overread";
status = "disabled";
};
diff --git a/arch/mips/boot/dts/brcm/bcm7346.dtsi b/arch/mips/boot/dts/brcm/bcm7346.dtsi
index 42125684b523..21c7418aaf0d 100644
--- a/arch/mips/boot/dts/brcm/bcm7346.dtsi
+++ b/arch/mips/boot/dts/brcm/bcm7346.dtsi
@@ -476,15 +476,15 @@ qspi: spi@413000 {
clocks = <&upg_clk>;
reg = <0x410920 0x4 0x413200 0x188 0x413000 0x50>;
reg-names = "cs_reg", "hif_mspi", "bspi";
- interrupts = <0x0 0x1 0x2 0x3 0x4 0x5 0x6>;
+ interrupts = <0x5 0x6 0x0 0x1 0x2 0x3 0x4>;
interrupt-parent = <&spi_l2_intc>;
- interrupt-names = "spi_lr_fullness_reached",
+ interrupt-names = "mspi_done",
+ "mspi_halted",
+ "spi_lr_fullness_reached",
"spi_lr_session_aborted",
"spi_lr_impatient",
"spi_lr_session_done",
- "spi_lr_overread",
- "mspi_done",
- "mspi_halted";
+ "spi_lr_overread";
status = "disabled";
};
diff --git a/arch/mips/boot/dts/brcm/bcm7358.dtsi b/arch/mips/boot/dts/brcm/bcm7358.dtsi
index fdc52acab8c8..63b3a42a8dc6 100644
--- a/arch/mips/boot/dts/brcm/bcm7358.dtsi
+++ b/arch/mips/boot/dts/brcm/bcm7358.dtsi
@@ -344,15 +344,15 @@ qspi: spi@413000 {
clocks = <&upg_clk>;
reg = <0x410920 0x4 0x413200 0x188 0x413000 0x50>;
reg-names = "cs_reg", "hif_mspi", "bspi";
- interrupts = <0x0 0x1 0x2 0x3 0x4 0x5 0x6>;
+ interrupts = <0x5 0x6 0x0 0x1 0x2 0x3 0x4>;
interrupt-parent = <&spi_l2_intc>;
- interrupt-names = "spi_lr_fullness_reached",
+ interrupt-names = "mspi_done",
+ "mspi_halted",
+ "spi_lr_fullness_reached",
"spi_lr_session_aborted",
"spi_lr_impatient",
"spi_lr_session_done",
- "spi_lr_overread",
- "mspi_done",
- "mspi_halted";
+ "spi_lr_overread";
status = "disabled";
};
diff --git a/arch/mips/boot/dts/brcm/bcm7360.dtsi b/arch/mips/boot/dts/brcm/bcm7360.dtsi
index e8b0b0ff7588..9d89da400104 100644
--- a/arch/mips/boot/dts/brcm/bcm7360.dtsi
+++ b/arch/mips/boot/dts/brcm/bcm7360.dtsi
@@ -395,15 +395,15 @@ qspi: spi@413000 {
clocks = <&upg_clk>;
reg = <0x410920 0x4 0x413200 0x188 0x413000 0x50>;
reg-names = "cs_reg", "hif_mspi", "bspi";
- interrupts = <0x0 0x1 0x2 0x3 0x4 0x5 0x6>;
+ interrupts = <0x5 0x6 0x0 0x1 0x2 0x3 0x4>;
interrupt-parent = <&spi_l2_intc>;
- interrupt-names = "spi_lr_fullness_reached",
+ interrupt-names = "mspi_done",
+ "mspi_halted",
+ "spi_lr_fullness_reached",
"spi_lr_session_aborted",
"spi_lr_impatient",
"spi_lr_session_done",
- "spi_lr_overread",
- "mspi_done",
- "mspi_halted";
+ "spi_lr_overread";
status = "disabled";
};
diff --git a/arch/mips/boot/dts/brcm/bcm7362.dtsi b/arch/mips/boot/dts/brcm/bcm7362.dtsi
index a1ed0b193389..a0d15fcd3b81 100644
--- a/arch/mips/boot/dts/brcm/bcm7362.dtsi
+++ b/arch/mips/boot/dts/brcm/bcm7362.dtsi
@@ -391,15 +391,15 @@ qspi: spi@413000 {
clocks = <&upg_clk>;
reg = <0x410920 0x4 0x413200 0x188 0x413000 0x50>;
reg-names = "cs_reg", "hif_mspi", "bspi";
- interrupts = <0x0 0x1 0x2 0x3 0x4 0x5 0x6>;
+ interrupts = <0x5 0x6 0x0 0x1 0x2 0x3 0x4>;
interrupt-parent = <&spi_l2_intc>;
- interrupt-names = "spi_lr_fullness_reached",
+ interrupt-names = "mspi_done",
+ "mspi_halted",
+ "spi_lr_fullness_reached",
"spi_lr_session_aborted",
"spi_lr_impatient",
"spi_lr_session_done",
- "spi_lr_overread",
- "mspi_done",
- "mspi_halted";
+ "spi_lr_overread";
status = "disabled";
};
diff --git a/arch/mips/boot/dts/brcm/bcm7420.dtsi b/arch/mips/boot/dts/brcm/bcm7420.dtsi
index 62e7e1602d4e..a38041451faf 100644
--- a/arch/mips/boot/dts/brcm/bcm7420.dtsi
+++ b/arch/mips/boot/dts/brcm/bcm7420.dtsi
@@ -313,15 +313,15 @@ qspi: spi@443000 {
clocks = <&upg_clk>;
reg = <0x440920 0x4 0x443200 0x188 0x443000 0x50>;
reg-names = "cs_reg", "hif_mspi", "bspi";
- interrupts = <0x0 0x1 0x2 0x3 0x4 0x5 0x6>;
+ interrupts = <0x5 0x6 0x0 0x1 0x2 0x3 0x4>;
interrupt-parent = <&spi_l2_intc>;
- interrupt-names = "spi_lr_fullness_reached",
+ interrupt-names = "mspi_done",
+ "mspi_halted",
+ "spi_lr_fullness_reached",
"spi_lr_session_aborted",
"spi_lr_impatient",
"spi_lr_session_done",
- "spi_lr_overread",
- "mspi_done",
- "mspi_halted";
+ "spi_lr_overread";
status = "disabled";
};
diff --git a/arch/mips/boot/dts/brcm/bcm7425.dtsi b/arch/mips/boot/dts/brcm/bcm7425.dtsi
index 71422fd2ecc9..c2b3ea21410d 100644
--- a/arch/mips/boot/dts/brcm/bcm7425.dtsi
+++ b/arch/mips/boot/dts/brcm/bcm7425.dtsi
@@ -487,15 +487,15 @@ qspi: spi@41c000 {
clocks = <&upg_clk>;
reg = <0x419920 0x4 0x41c200 0x188 0x41c000 0x50>;
reg-names = "cs_reg", "hif_mspi", "bspi";
- interrupts = <0x0 0x1 0x2 0x3 0x4 0x5 0x6>;
+ interrupts = <0x5 0x6 0x0 0x1 0x2 0x3 0x4>;
interrupt-parent = <&spi_l2_intc>;
- interrupt-names = "spi_lr_fullness_reached",
+ interrupt-names = "mspi_done",
+ "mspi_halted",
+ "spi_lr_fullness_reached",
"spi_lr_session_aborted",
"spi_lr_impatient",
"spi_lr_session_done",
- "spi_lr_overread",
- "mspi_done",
- "mspi_halted";
+ "spi_lr_overread";
status = "disabled";
};
diff --git a/arch/mips/boot/dts/brcm/bcm7435.dtsi b/arch/mips/boot/dts/brcm/bcm7435.dtsi
index 38eea5373b66..826731515f0b 100644
--- a/arch/mips/boot/dts/brcm/bcm7435.dtsi
+++ b/arch/mips/boot/dts/brcm/bcm7435.dtsi
@@ -503,15 +503,15 @@ qspi: spi@41d200 {
clocks = <&upg_clk>;
reg = <0x41a920 0x4 0x41d400 0x188 0x41d200 0x50>;
reg-names = "cs_reg", "hif_mspi", "bspi";
- interrupts = <0x0 0x1 0x2 0x3 0x4 0x5 0x6>;
+ interrupts = <0x5 0x6 0x0 0x1 0x2 0x3 0x4>;
interrupt-parent = <&spi_l2_intc>;
- interrupt-names = "spi_lr_fullness_reached",
+ interrupt-names = "mspi_done",
+ "mspi_halted",
+ "spi_lr_fullness_reached",
"spi_lr_session_aborted",
"spi_lr_impatient",
"spi_lr_session_done",
- "spi_lr_overread",
- "mspi_done",
- "mspi_halted";
+ "spi_lr_overread";
status = "disabled";
};
--
2.43.0
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH 4/4] mips: bmips: dts: fix qspi register order
2025-12-25 10:25 [PATCH 0/4] mips: bmips: fix brcm,spi-bcm-qspi devicetree usage Jonas Gorski
` (2 preceding siblings ...)
2025-12-25 10:25 ` [PATCH 3/4] mips: bmips: dts: fix qspi interrupt order Jonas Gorski
@ 2025-12-25 10:25 ` Jonas Gorski
2025-12-25 12:35 ` Krzysztof Kozlowski
3 siblings, 1 reply; 8+ messages in thread
From: Jonas Gorski @ 2025-12-25 10:25 UTC (permalink / raw)
To: Kamal Dasu, Broadcom internal kernel review list, Mark Brown,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Florian Fainelli,
Thomas Bogendoerfer, Rafał Miłecki
Cc: Kamal Dasu, linux-spi, devicetree, linux-kernel, linux-mips
Align the register order to the schema. Fixes warnings like:
arch/mips/boot/dts/brcm/bcm97435svmb.dtb: spi@41d200 (brcm,spi-brcmstb-qspi): reg-names:0: 'cs_reg' is not one of ['hif_mspi', 'mspi']
from schema $id: http://devicetree.org/schemas/spi/brcm,spi-bcm-qspi.yaml
arch/mips/boot/dts/brcm/bcm97435svmb.dtb: spi@41d200 (brcm,spi-brcmstb-qspi): reg-names:1: 'bspi' was expected
from schema $id: http://devicetree.org/schemas/spi/brcm,spi-bcm-qspi.yaml
arch/mips/boot/dts/brcm/bcm97435svmb.dtb: spi@41d200 (brcm,spi-brcmstb-qspi): reg-names:2: 'bspi' is not one of ['intr_regs', 'intr_status_reg', 'cs_reg']
from schema $id: http://devicetree.org/schemas/spi/brcm,spi-bcm-qspi.yaml
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
---
arch/mips/boot/dts/brcm/bcm7125.dtsi | 4 ++--
arch/mips/boot/dts/brcm/bcm7346.dtsi | 4 ++--
arch/mips/boot/dts/brcm/bcm7358.dtsi | 4 ++--
arch/mips/boot/dts/brcm/bcm7360.dtsi | 4 ++--
arch/mips/boot/dts/brcm/bcm7362.dtsi | 4 ++--
arch/mips/boot/dts/brcm/bcm7420.dtsi | 4 ++--
arch/mips/boot/dts/brcm/bcm7425.dtsi | 4 ++--
arch/mips/boot/dts/brcm/bcm7435.dtsi | 4 ++--
8 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/arch/mips/boot/dts/brcm/bcm7125.dtsi b/arch/mips/boot/dts/brcm/bcm7125.dtsi
index dd1cc3cda694..81ee0f49b645 100644
--- a/arch/mips/boot/dts/brcm/bcm7125.dtsi
+++ b/arch/mips/boot/dts/brcm/bcm7125.dtsi
@@ -250,8 +250,8 @@ qspi: spi@443000 {
compatible = "brcm,spi-brcmstb-qspi",
"brcm,spi-bcm-qspi";
clocks = <&upg_clk>;
- reg = <0x440920 0x4 0x443200 0x188 0x443000 0x50>;
- reg-names = "cs_reg", "hif_mspi", "bspi";
+ reg = <0x443200 0x188 0x443000 0x50 0x440920 0x4>;
+ reg-names = "hif_mspi", "bspi", "cs_reg";
interrupts = <0x5 0x6 0x0 0x1 0x2 0x3 0x4>;
interrupt-parent = <&spi_l2_intc>;
interrupt-names = "mspi_done",
diff --git a/arch/mips/boot/dts/brcm/bcm7346.dtsi b/arch/mips/boot/dts/brcm/bcm7346.dtsi
index 21c7418aaf0d..6efb6347a2e4 100644
--- a/arch/mips/boot/dts/brcm/bcm7346.dtsi
+++ b/arch/mips/boot/dts/brcm/bcm7346.dtsi
@@ -474,8 +474,8 @@ qspi: spi@413000 {
compatible = "brcm,spi-brcmstb-qspi",
"brcm,spi-bcm-qspi";
clocks = <&upg_clk>;
- reg = <0x410920 0x4 0x413200 0x188 0x413000 0x50>;
- reg-names = "cs_reg", "hif_mspi", "bspi";
+ reg = <0x413200 0x188 0x413000 0x50 0x410920 0x4>;
+ reg-names = "hif_mspi", "bspi", "cs_reg";
interrupts = <0x5 0x6 0x0 0x1 0x2 0x3 0x4>;
interrupt-parent = <&spi_l2_intc>;
interrupt-names = "mspi_done",
diff --git a/arch/mips/boot/dts/brcm/bcm7358.dtsi b/arch/mips/boot/dts/brcm/bcm7358.dtsi
index 63b3a42a8dc6..527406a5fa4d 100644
--- a/arch/mips/boot/dts/brcm/bcm7358.dtsi
+++ b/arch/mips/boot/dts/brcm/bcm7358.dtsi
@@ -342,8 +342,8 @@ qspi: spi@413000 {
compatible = "brcm,spi-brcmstb-qspi",
"brcm,spi-bcm-qspi";
clocks = <&upg_clk>;
- reg = <0x410920 0x4 0x413200 0x188 0x413000 0x50>;
- reg-names = "cs_reg", "hif_mspi", "bspi";
+ reg = <0x413200 0x188 0x413000 0x50 0x410920 0x4>;
+ reg-names = "hif_mspi", "bspi", "cs_reg";
interrupts = <0x5 0x6 0x0 0x1 0x2 0x3 0x4>;
interrupt-parent = <&spi_l2_intc>;
interrupt-names = "mspi_done",
diff --git a/arch/mips/boot/dts/brcm/bcm7360.dtsi b/arch/mips/boot/dts/brcm/bcm7360.dtsi
index 9d89da400104..7ed6dbd145bf 100644
--- a/arch/mips/boot/dts/brcm/bcm7360.dtsi
+++ b/arch/mips/boot/dts/brcm/bcm7360.dtsi
@@ -393,8 +393,8 @@ qspi: spi@413000 {
compatible = "brcm,spi-brcmstb-qspi",
"brcm,spi-bcm-qspi";
clocks = <&upg_clk>;
- reg = <0x410920 0x4 0x413200 0x188 0x413000 0x50>;
- reg-names = "cs_reg", "hif_mspi", "bspi";
+ reg = <0x413200 0x188 0x413000 0x50 0x410920 0x4>;
+ reg-names = "hif_mspi", "bspi", "cs_reg";
interrupts = <0x5 0x6 0x0 0x1 0x2 0x3 0x4>;
interrupt-parent = <&spi_l2_intc>;
interrupt-names = "mspi_done",
diff --git a/arch/mips/boot/dts/brcm/bcm7362.dtsi b/arch/mips/boot/dts/brcm/bcm7362.dtsi
index a0d15fcd3b81..194b6dd34eab 100644
--- a/arch/mips/boot/dts/brcm/bcm7362.dtsi
+++ b/arch/mips/boot/dts/brcm/bcm7362.dtsi
@@ -389,8 +389,8 @@ qspi: spi@413000 {
compatible = "brcm,spi-brcmstb-qspi",
"brcm,spi-bcm-qspi";
clocks = <&upg_clk>;
- reg = <0x410920 0x4 0x413200 0x188 0x413000 0x50>;
- reg-names = "cs_reg", "hif_mspi", "bspi";
+ reg = <0x413200 0x188 0x413000 0x50 0x410920 0x4>;
+ reg-names = "hif_mspi", "bspi", "cs_reg";
interrupts = <0x5 0x6 0x0 0x1 0x2 0x3 0x4>;
interrupt-parent = <&spi_l2_intc>;
interrupt-names = "mspi_done",
diff --git a/arch/mips/boot/dts/brcm/bcm7420.dtsi b/arch/mips/boot/dts/brcm/bcm7420.dtsi
index a38041451faf..be4c9ba3d509 100644
--- a/arch/mips/boot/dts/brcm/bcm7420.dtsi
+++ b/arch/mips/boot/dts/brcm/bcm7420.dtsi
@@ -311,8 +311,8 @@ qspi: spi@443000 {
compatible = "brcm,spi-brcmstb-qspi",
"brcm,spi-bcm-qspi";
clocks = <&upg_clk>;
- reg = <0x440920 0x4 0x443200 0x188 0x443000 0x50>;
- reg-names = "cs_reg", "hif_mspi", "bspi";
+ reg = <0x443200 0x188 0x443000 0x50 0x440920 0x4>;
+ reg-names = "hif_mspi", "bspi", "cs_reg";
interrupts = <0x5 0x6 0x0 0x1 0x2 0x3 0x4>;
interrupt-parent = <&spi_l2_intc>;
interrupt-names = "mspi_done",
diff --git a/arch/mips/boot/dts/brcm/bcm7425.dtsi b/arch/mips/boot/dts/brcm/bcm7425.dtsi
index c2b3ea21410d..8c476a20aea5 100644
--- a/arch/mips/boot/dts/brcm/bcm7425.dtsi
+++ b/arch/mips/boot/dts/brcm/bcm7425.dtsi
@@ -485,8 +485,8 @@ qspi: spi@41c000 {
compatible = "brcm,spi-brcmstb-qspi",
"brcm,spi-bcm-qspi";
clocks = <&upg_clk>;
- reg = <0x419920 0x4 0x41c200 0x188 0x41c000 0x50>;
- reg-names = "cs_reg", "hif_mspi", "bspi";
+ reg = <0x41c200 0x188 0x41c000 0x50 0x419920 0x4>;
+ reg-names = "hif_mspi", "bspi", "cs_reg";
interrupts = <0x5 0x6 0x0 0x1 0x2 0x3 0x4>;
interrupt-parent = <&spi_l2_intc>;
interrupt-names = "mspi_done",
diff --git a/arch/mips/boot/dts/brcm/bcm7435.dtsi b/arch/mips/boot/dts/brcm/bcm7435.dtsi
index 826731515f0b..328fafe7519b 100644
--- a/arch/mips/boot/dts/brcm/bcm7435.dtsi
+++ b/arch/mips/boot/dts/brcm/bcm7435.dtsi
@@ -501,8 +501,8 @@ qspi: spi@41d200 {
compatible = "brcm,spi-brcmstb-qspi",
"brcm,spi-bcm-qspi";
clocks = <&upg_clk>;
- reg = <0x41a920 0x4 0x41d400 0x188 0x41d200 0x50>;
- reg-names = "cs_reg", "hif_mspi", "bspi";
+ reg = <0x41d400 0x188 0x41d200 0x50 0x41a920 0x4>;
+ reg-names = "hif_mspi", "bspi", "cs_reg";
interrupts = <0x5 0x6 0x0 0x1 0x2 0x3 0x4>;
interrupt-parent = <&spi_l2_intc>;
interrupt-names = "mspi_done",
--
2.43.0
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH 4/4] mips: bmips: dts: fix qspi register order
2025-12-25 10:25 ` [PATCH 4/4] mips: bmips: dts: fix qspi register order Jonas Gorski
@ 2025-12-25 12:35 ` Krzysztof Kozlowski
0 siblings, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2025-12-25 12:35 UTC (permalink / raw)
To: Jonas Gorski, Kamal Dasu, Broadcom internal kernel review list,
Mark Brown, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Florian Fainelli, Thomas Bogendoerfer, Rafał Miłecki
Cc: Kamal Dasu, linux-spi, devicetree, linux-kernel, linux-mips
On 25/12/2025 11:25, Jonas Gorski wrote:
> Align the register order to the schema. Fixes warnings like:
>
> arch/mips/boot/dts/brcm/bcm97435svmb.dtb: spi@41d200 (brcm,spi-brcmstb-qspi): reg-names:0: 'cs_reg' is not one of ['hif_mspi', 'mspi']
> from schema $id: http://devicetree.org/schemas/spi/brcm,spi-bcm-qspi.yaml
> arch/mips/boot/dts/brcm/bcm97435svmb.dtb: spi@41d200 (brcm,spi-brcmstb-qspi): reg-names:1: 'bspi' was expected
> from schema $id: http://devicetree.org/schemas/spi/brcm,spi-bcm-qspi.yaml
> arch/mips/boot/dts/brcm/bcm97435svmb.dtb: spi@41d200 (brcm,spi-brcmstb-qspi): reg-names:2: 'bspi' is not one of ['intr_regs', 'intr_status_reg', 'cs_reg']
> from schema $id: http://devicetree.org/schemas/spi/brcm,spi-bcm-qspi.yaml
Trim redundant parts. You do not need to paste schema path every time.
Full path to DTB also is not really necessary, IMO.
>
> Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
> ---
> arch/mips/boot/dts/brcm/bcm7125.dtsi | 4 ++--
> arch/mips/boot/dts/brcm/bcm7346.dtsi | 4 ++--
> arch/mips/boot/dts/brcm/bcm7358.dtsi | 4 ++--
> arch/mips/boot/dts/brcm/bcm7360.dtsi | 4 ++--
> arch/mips/boot/dts/brcm/bcm7362.dtsi | 4 ++--
> arch/mips/boot/dts/brcm/bcm7420.dtsi | 4 ++--
> arch/mips/boot/dts/brcm/bcm7425.dtsi | 4 ++--
> arch/mips/boot/dts/brcm/bcm7435.dtsi | 4 ++--
> 8 files changed, 16 insertions(+), 16 deletions(-)
>
> diff --git a/arch/mips/boot/dts/brcm/bcm7125.dtsi b/arch/mips/boot/dts/brcm/bcm7125.dtsi
> index dd1cc3cda694..81ee0f49b645 100644
> --- a/arch/mips/boot/dts/brcm/bcm7125.dtsi
> +++ b/arch/mips/boot/dts/brcm/bcm7125.dtsi
> @@ -250,8 +250,8 @@ qspi: spi@443000 {
> compatible = "brcm,spi-brcmstb-qspi",
> "brcm,spi-bcm-qspi";
> clocks = <&upg_clk>;
> - reg = <0x440920 0x4 0x443200 0x188 0x443000 0x50>;
> - reg-names = "cs_reg", "hif_mspi", "bspi";
> + reg = <0x443200 0x188 0x443000 0x50 0x440920 0x4>;
> + reg-names = "hif_mspi", "bspi", "cs_reg";
So order is anyway broken by this change, thus you can as well rename it
to mspi, right?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 8+ messages in thread