add ddr controller node to support EDAC on imx8mp
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
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
@@ -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
Krzysztof Kozlowski
maintainerRe: [PATCH V2 1/2] dt-bindings: memory: snps,ddrc-3.80a compatible also need interrupts
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).
Signed-off-by Sherry Sun <[email protected]>--- .../bindings/memory-controllers/synopsys,ddrc-ecc.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
Looks good, I will take it after merge window. Somehow I was not cc-ed on previous memory controllers patch. :(
Best regards,
Krzysztof
Krzysztof Kozlowski
AppliedRe: (subset) [PATCH V2 1/2] dt-bindings: memory: snps,ddrc-3.80a compatible also need interrupts
In reply to Sherry SunQuoted 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
PATCH v2 2/2 arm64: dts: imx8mp: add ddr controller node to support EDAC on imx8mp
In reply to Sherry Suni.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
@@ -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
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.
Signed-off-by Sherry Sun <[email protected]>--- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 6 ++++++ 1 file changed, 6 insertions(+)arch/arm64/boot/dts/freescale/imx8mp.dtsi +0
-0
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
Shawn Guo
AppliedRe: [PATCH V2 2/2] arm64: dts: imx8mp: add ddr controller node to support EDAC on imx8mp
In reply to Sherry SunQuoted 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.
Signed-off-by Sherry Sun <[email protected]>
Applied, thanks!