Skip to contentSkip to conversation

ARM: dts: NSP fixes

PATCH Applied Florian Fainelli 2 participants 7 messages Nov 7, 2017 – Nov 8, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover ARM: dts: NSP fixes

Hi all,

This patch series contains a couple of fixes:

- disables AHCI on NSP HR boards since that results in a hard hang
- fixes PPI interrupts specifiers

Florian Fainelli (2):
ARM: dts: NSP: Disable AHCI controller for HR NSP boards
ARM: dts: NSP: Fix PPI interrupt types

 arch/arm/boot/dts/bcm-nsp.dtsi    | 4 ++--
 arch/arm/boot/dts/bcm958623hr.dts | 4 ----
 arch/arm/boot/dts/bcm958625hr.dts | 4 ----
 3 files changed, 2 insertions(+), 10 deletions(-)
Signature · 1 line
2.9.3
#1 lore raw

PATCH 1/2 ARM: dts: NSP: Disable AHCI controller for HR NSP boards

The AHCI controller is currently enabled for all of these boards:
bcm958623hr and bcm958625hr would result in a hard hang on boot that we cannot get rid of. Since this does not appear to have an easy and simple fix, just disable the AHCI controller for now until this gets resolved.

Fixes 70725d6e97ac ("ARM: dts: NSP: Enable SATA on bcm958625hr")
Fixes d454c3762437 ("ARM: dts: NSP: Add new DT file for bcm958623hr")
---
 arch/arm/boot/dts/bcm958623hr.dts | 4 ----
 arch/arm/boot/dts/bcm958625hr.dts | 4 ----
 2 files changed, 8 deletions(-)
arch/arm/boot/dts/bcm958623hr.dts +0 -4
index 3bc50849d013..b8bde13de90a 100644
@@ -141,10 +141,6 @@
 	status = "okay";
 };
 
-&sata {
-	status = "okay";
-};
-
 &qspi {
 	bspi-sel = <0>;
 	flash: m25p80 at 0 {
arch/arm/boot/dts/bcm958625hr.dts +0 -4
index d94d14b3c745..6a44b8021702 100644
@@ -177,10 +177,6 @@
 	status = "okay";
 };
 
-&sata {
-	status = "okay";
-};
-
 &srab {
 	compatible = "brcm,bcm58625-srab", "brcm,nsp-srab";
 	status = "okay";
Signature · 1 line
2.9.3
#3 lore raw

PATCH 2/2 ARM: dts: NSP: Fix PPI interrupt types

In reply to Florian Fainelli

Booting a kernel results in the kernel warning us about the following PPI interrupts configuration:

[    0.105127] smp: Bringing up secondary CPUs ...
[    0.110545] GIC: PPI11 is secure or misconfigured
[    0.110551] GIC: PPI13 is secure or misconfigured

Fix this by using the appropriate edge configuration for PPI11 and PPI13, this is similar to what was fixed for Northstar (BCM5301X) in commit 0e34079cd1f6 ("ARM: dts: BCM5301X: Correct GIC_PPI interrupt flags").

Fixes 1a9d53cabaf4 ("ARM: dts: NSP: Add TWD Support to DT")
Fixes 1a9d53cabaf4 ("ARM: dts: NSP: Add TWD Support to DT")
---
 arch/arm/boot/dts/bcm-nsp.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/bcm-nsp.dtsi +2 -2
index dff66974feed..d5f5e92e7488 100644
@@ -85,7 +85,7 @@
 		timer at 20200 {
 			compatible = "arm,cortex-a9-global-timer";
 			reg = <0x20200 0x100>;
-			interrupts = <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>;
+			interrupts = <GIC_PPI 11 IRQ_TYPE_EDGE_RISING>;
 			clocks = <&periph_clk>;
 		};
 
@@ -93,7 +93,7 @@
 			compatible = "arm,cortex-a9-twd-timer";
 			reg = <0x20600 0x20>;
 			interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
-						  IRQ_TYPE_LEVEL_HIGH)>;
+						  IRQ_TYPE_EDGE_RISING)>;
 			clocks = <&periph_clk>;
 		};
 
Signature · 1 line
2.9.3
#4 lore raw

Re: [PATCH 2/2] ARM: dts: NSP: Fix PPI interrupt types

Quoted 6 lines · Florian Fainelli

Booting a kernel results in the kernel warning us about the following PPI interrupts configuration:

[    0.105127] smp: Bringing up secondary CPUs ...
[    0.110545] GIC: PPI11 is secure or misconfigured
[    0.110551] GIC: PPI13 is secure or misconfigured
Quoted 6 lines

Fix this by using the appropriate edge configuration for PPI11 and PPI13, this is similar to what was fixed for Northstar (BCM5301X) in commit 0e34079cd1f6 ("ARM: dts: BCM5301X: Correct GIC_PPI interrupt flags").

Fixes 1a9d53cabaf4 ("ARM: dts: NSP: Add TWD Support to DT")

this should have been Fixes: 7b2e987de207 ("ARM: NSP: add minimal Northstar Plus device tree"), I can fix that up while applying unless there are other comments.

Quoted 29 lines
Fixes 1a9d53cabaf4 ("ARM: dts: NSP: Add TWD Support to DT")
---
 arch/arm/boot/dts/bcm-nsp.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/bcm-nsp.dtsi +2 -2
index dff66974feed..d5f5e92e7488 100644
@@ -85,7 +85,7 @@
 		timer at 20200 {
 			compatible = "arm,cortex-a9-global-timer";
 			reg = <0x20200 0x100>;
-			interrupts = <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>;
+			interrupts = <GIC_PPI 11 IRQ_TYPE_EDGE_RISING>;
 			clocks = <&periph_clk>;
 		};
 
@@ -93,7 +93,7 @@
 			compatible = "arm,cortex-a9-twd-timer";
 			reg = <0x20600 0x20>;
 			interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
-						  IRQ_TYPE_LEVEL_HIGH)>;
+						  IRQ_TYPE_EDGE_RISING)>;
 			clocks = <&periph_clk>;
 		};
 
Signature · 1 line
Florian
Acked-by
#5 lore raw

Re: [PATCH 2/2] ARM: dts: NSP: Fix PPI interrupt types

Quoted 12 lines · Florian Fainelli
Quoted 11 lines · Florian Fainelli

Booting a kernel results in the kernel warning us about the following PPI interrupts configuration:

[    0.105127] smp: Bringing up secondary CPUs ...
[    0.110545] GIC: PPI11 is secure or misconfigured
[    0.110551] GIC: PPI13 is secure or misconfigured

Fix this by using the appropriate edge configuration for PPI11 and PPI13, this is similar to what was fixed for Northstar (BCM5301X) in commit 0e34079cd1f6 ("ARM: dts: BCM5301X: Correct GIC_PPI interrupt flags").

Quoted 8 lines
Quoted 1 line
Fixes 1a9d53cabaf4 ("ARM: dts: NSP: Add TWD Support to DT")

this should have been Fixes: 7b2e987de207 ("ARM: NSP: add minimal Northstar Plus device tree"), I can fix that up while applying unless there are other comments.

Quoted 2 lines
Fixes 1a9d53cabaf4 ("ARM: dts: NSP: Add TWD Support to DT")
Quoted 31 lines
Quoted 19 lines
---
 arch/arm/boot/dts/bcm-nsp.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/bcm-nsp.dtsi +1 -1
index dff66974feed..d5f5e92e7488 100644
@@ -85,7 +85,7 @@
              timer at 20200 {
                      compatible = "arm,cortex-a9-global-timer";
                      reg = <0x20200 0x100>;
-                     interrupts = <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>;
+                     interrupts = <GIC_PPI 11 IRQ_TYPE_EDGE_RISING>;
                      clocks = <&periph_clk>;
              };
 

arch/arm/boot/dts/bcm-nsp.dtsi line 99

Quoted 8 lines
arch/arm/boot/dts/bcm-nsp.dtsi +1 -1
@@ -93,7 +93,7 @@
                      compatible = "arm,cortex-a9-twd-timer";
                      reg = <0x20600 0x20>;
                      interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
-                                               IRQ_TYPE_LEVEL_HIGH)>;
+                                               IRQ_TYPE_EDGE_RISING)>;
                      clocks = <&periph_clk>;
              };
 

--
Florian

Acked-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] ARM: dts: NSP: Disable AHCI controller for HR NSP boards

In reply to Florian Fainelli
Quoted 8 lines · Florian Fainelli

The AHCI controller is currently enabled for all of these boards:
bcm958623hr and bcm958625hr would result in a hard hang on boot that we cannot get rid of. Since this does not appear to have an easy and simple fix, just disable the AHCI controller for now until this gets resolved.

Fixes 70725d6e97ac ("ARM: dts: NSP: Enable SATA on bcm958625hr")
Fixes d454c3762437 ("ARM: dts: NSP: Add new DT file for bcm958623hr")
Quoted 38 lines
---
 arch/arm/boot/dts/bcm958623hr.dts | 4 ----
 arch/arm/boot/dts/bcm958625hr.dts | 4 ----
 2 files changed, 8 deletions(-)
arch/arm/boot/dts/bcm958623hr.dts +0 -4
index 3bc50849d013..b8bde13de90a 100644
@@ -141,10 +141,6 @@
        status = "okay";
 };
 
-&sata {
-       status = "okay";
-};
-
 &qspi {
        bspi-sel = <0>;
        flash: m25p80 at 0 {
arch/arm/boot/dts/bcm958625hr.dts +0 -5
index d94d14b3c745..6a44b8021702 100644
@@ -177,10 +177,6 @@
        status = "okay";
 };
 
-&sata {
-       status = "okay";
-};
-
 &srab {
        compatible = "brcm,bcm58625-srab", "brcm,nsp-srab";
        status = "okay";
--

2.9.3

author Applied
#6 lore raw
In reply to Florian Fainelli
Quoted 6 lines · Florian Fainelli

Hi all,

This patch series contains a couple of fixes:

- disables AHCI on NSP HR boards since that results in a hard hang
- fixes PPI interrupts specifiers

Applied to devicetree/fixes.

Signature · 1 line
Florian