Skip to contentSkip to conversation

add ddr controller node to support EDAC on imx8mp

PATCH Applied Sherry Sun 4 participants 7 messages Mar 21, 2022 – Apr 10, 2022

Subsystems (3)
lore
Share & tools
lore

Sherry Sun

author
#0 lore raw

v2 cover add ddr controller node to support EDAC on imx8mp

First fix the errors for snps,ddrc-3.80a in DT bindings, then add the device node to support EDAC on imx8mp.

Changes in V2:
* Suggested by Krzysztof, fix the error for snps,ddrc-3.80a compatible in synopsys,ddrc-ecc.yaml, then add the dts node in device tree.

Sherry Sun (2):
dt-bindings: memory: snps,ddrc-3.80a compatible also need interrupts
arm64: dts: imx8mp: add ddr controller node to support EDAC on imx8mp

 .../bindings/memory-controllers/synopsys,ddrc-ecc.yaml      | 6 ++++--
 arch/arm64/boot/dts/freescale/imx8mp.dtsi                   | 6 ++++++
 2 files changed, 10 insertions(+), 2 deletions(-)
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH v2 1/2 dt-bindings: memory: snps,ddrc-3.80a compatible also need interrupts

For the snps,ddrc-3.80a compatible, the interrupts property is also required, also order the compatibles by name (s goes before x).

---
 .../bindings/memory-controllers/synopsys,ddrc-ecc.yaml      | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/memory-controllers/synopsys,ddrc-ecc.yaml +4 -2
index fb7ae38a9c86..e3bc6ebce090 100644
@@ -24,9 +24,9 @@ description: |
 properties:
   compatible:
     enum:
+      - snps,ddrc-3.80a
       - xlnx,zynq-ddrc-a05
       - xlnx,zynqmp-ddrc-2.40a
-      - snps,ddrc-3.80a
 
   interrupts:
     maxItems: 1
@@ -43,7 +43,9 @@ allOf:
       properties:
         compatible:
           contains:
-            const: xlnx,zynqmp-ddrc-2.40a
+            enum:
+              - snps,ddrc-3.80a
+              - xlnx,zynqmp-ddrc-2.40a
     then:
       required:
         - interrupts
Signature · 1 line
2.17.1
author
#4 lore raw

PATCH v2 2/2 arm64: dts: imx8mp: add ddr controller node to support EDAC on imx8mp

In reply to Sherry Sun

i.MX8MP use synopsys V3.70a ddr controller IP, so add edac support for i.MX8MP based on "snps,ddrc-3.80a" synopsys edac driver.

---
 arch/arm64/boot/dts/freescale/imx8mp.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/freescale/imx8mp.dtsi +6 -0
index 3f8703f3ba5b..f39da2b12ddc 100644
@@ -902,6 +902,12 @@
 			interrupt-parent = <&gic>;
 		};
 
+		edacmc: memory-controller@3d400000 {
+			compatible = "snps,ddrc-3.80a";
+			reg = <0x3d400000 0x400000>;
+			interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>;
+		};
+
 		ddr-pmu@3d800000 {
 			compatible = "fsl,imx8mp-ddr-pmu", "fsl,imx8m-ddr-pmu";
 			reg = <0x3d800000 0x400000>;
Signature · 1 line
2.17.1
maintainer Acked-by on v2 2/2
#5 lore raw

Re: [PATCH V2 2/2] arm64: dts: imx8mp: add ddr controller node to support EDAC on imx8mp

Quoted 13 lines · Sherry Sun

i.MX8MP use synopsys V3.70a ddr controller IP, so add edac support for i.MX8MP based on "snps,ddrc-3.80a" synopsys edac driver.

---
 arch/arm64/boot/dts/freescale/imx8mp.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm64/boot/dts/freescale/imx8mp.dtsi +0 -0
index 3f8703f3ba5b..f39da2b12ddc 100644

arch/arm64/boot/dts/freescale/imx8mp.dtsi line 904

Quoted 3 lines
arch/arm64/boot/dts/freescale/imx8mp.dtsi +0 -0
@@ -902,6 +902,12 @@
 			interrupt-parent = <&gic>;
 		};
 

Best regards,
Krzysztof

#2 lore raw

Re: [PATCH V2 1/2] dt-bindings: memory: snps,ddrc-3.80a compatible also need interrupts

In reply to Sherry Sun
Quoted 8 lines · Sherry Sun

For the snps,ddrc-3.80a compatible, the interrupts property is also required, also order the compatibles by name (s goes before x).

---
 .../bindings/memory-controllers/synopsys,ddrc-ecc.yaml      | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Fixes a9e6b3819b36 ("dt-bindings: memory: Add entry for version 3.80a")

Looks good, I will take it after merge window. Somehow I was not cc-ed on previous memory controllers patch. :(

Best regards,
Krzysztof

#3 lore raw

Re: (subset) [PATCH V2 1/2] dt-bindings: memory: snps,ddrc-3.80a compatible also need interrupts

In reply to Sherry Sun
Quoted 4 lines · Sherry Sun

For the snps,ddrc-3.80a compatible, the interrupts property is also required, also order the compatibles by name (s goes before x).

Applied, thanks!

[1/2] dt-bindings: memory: snps,ddrc-3.80a compatible also need interrupts

      commit: 4f9f45d0eb0e7d449bc9294459df79b9c66edfac

Best regards,

Signature · 6 lines
Krzysztof Kozlowski <[email protected]>

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Applied
#6 lore raw

Re: [PATCH V2 2/2] arm64: dts: imx8mp: add ddr controller node to support EDAC on imx8mp

In reply to Sherry Sun
Quoted 4 lines · Sherry Sun

i.MX8MP use synopsys V3.70a ddr controller IP, so add edac support for i.MX8MP based on "snps,ddrc-3.80a" synopsys edac driver.

Applied, thanks!