linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: n5x: add sdr edac support
@ 2022-03-01 15:12 Dinh Nguyen
  2022-03-18 12:00 ` Krzysztof Kozlowski
  0 siblings, 1 reply; 3+ messages in thread
From: Dinh Nguyen @ 2022-03-01 15:12 UTC (permalink / raw)
  To: robh+dt, mark.rutland; +Cc: dinguyen, linux-arm-kernel

The N5X platform has the Synopsys DDR controller the includes an EDAC
controller. Add the entry for the controller in the DTS file instead of
the base Agilex DTSI because the base Agilex does not have the
controller.

Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
---
 arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts b/arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts
index f3c1310dae0a..628c9943914b 100644
--- a/arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts
+++ b/arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts
@@ -23,6 +23,16 @@ memory {
 		/* We expect the bootloader to fill in the reg */
 		reg = <0 0 0 0>;
 	};
+
+	soc {
+		sdram_edac: sdr_edac@f87f8000 {
+			compatible = "snps,ddrc-3.80a";
+			reg = <0xf87f8000 0x400>;
+			interrupts = <0 175 4>;
+			intel,sysmgr-syscon = <&sysmgr 0xb8>;
+			status = "okay";
+		};
+	};
 };
 
 &clkmgr {
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: dts: n5x: add sdr edac support
  2022-03-01 15:12 [PATCH] arm64: dts: n5x: add sdr edac support Dinh Nguyen
@ 2022-03-18 12:00 ` Krzysztof Kozlowski
  2022-03-22 13:34   ` Dinh Nguyen
  0 siblings, 1 reply; 3+ messages in thread
From: Krzysztof Kozlowski @ 2022-03-18 12:00 UTC (permalink / raw)
  To: Dinh Nguyen, robh+dt, mark.rutland; +Cc: linux-arm-kernel

On 01/03/2022 16:12, Dinh Nguyen wrote:
> The N5X platform has the Synopsys DDR controller the includes an EDAC
> controller. Add the entry for the controller in the DTS file instead of
> the base Agilex DTSI because the base Agilex does not have the
> controller.
> 
> Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
> ---
>  arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts b/arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts
> index f3c1310dae0a..628c9943914b 100644
> --- a/arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts
> +++ b/arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts
> @@ -23,6 +23,16 @@ memory {
>  		/* We expect the bootloader to fill in the reg */
>  		reg = <0 0 0 0>;
>  	};
> +
> +	soc {
> +		sdram_edac: sdr_edac@f87f8000 {

This patch was merged but it is not correct. The node name should be
memory-controller (generic, not specific).

> +			compatible = "snps,ddrc-3.80a";
> +			reg = <0xf87f8000 0x400>;
> +			interrupts = <0 175 4>;

This fails dt schema.

> +			intel,sysmgr-syscon = <&sysmgr 0xb8>;

This fails schema even more... it's not documented.

> +			status = "okay";

This is not needed.


Please test your changes against bindings (you can use dtbs_check).


Best regards,
Krzysztof

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: dts: n5x: add sdr edac support
  2022-03-18 12:00 ` Krzysztof Kozlowski
@ 2022-03-22 13:34   ` Dinh Nguyen
  0 siblings, 0 replies; 3+ messages in thread
From: Dinh Nguyen @ 2022-03-22 13:34 UTC (permalink / raw)
  To: Krzysztof Kozlowski, robh+dt, mark.rutland; +Cc: linux-arm-kernel



On 3/18/22 07:00, Krzysztof Kozlowski wrote:
> On 01/03/2022 16:12, Dinh Nguyen wrote:
>> The N5X platform has the Synopsys DDR controller the includes an EDAC
>> controller. Add the entry for the controller in the DTS file instead of
>> the base Agilex DTSI because the base Agilex does not have the
>> controller.
>>
>> Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
>> ---
>>   arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts | 10 ++++++++++
>>   1 file changed, 10 insertions(+)
>>
>> diff --git a/arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts b/arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts
>> index f3c1310dae0a..628c9943914b 100644
>> --- a/arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts
>> +++ b/arch/arm64/boot/dts/intel/socfpga_n5x_socdk.dts
>> @@ -23,6 +23,16 @@ memory {
>>   		/* We expect the bootloader to fill in the reg */
>>   		reg = <0 0 0 0>;
>>   	};
>> +
>> +	soc {
>> +		sdram_edac: sdr_edac@f87f8000 {
> 
> This patch was merged but it is not correct. The node name should be
> memory-controller (generic, not specific).
> 
>> +			compatible = "snps,ddrc-3.80a";
>> +			reg = <0xf87f8000 0x400>;
>> +			interrupts = <0 175 4>;
> 
> This fails dt schema.
> 
>> +			intel,sysmgr-syscon = <&sysmgr 0xb8>;
> 
> This fails schema even more... it's not documented.
> 
>> +			status = "okay";
> 
> This is not needed.
> 
> 
> Please test your changes against bindings (you can use dtbs_check).
> 

Will do and I'll send a patch to fix this up in a bit.

Thanks,
Dinh

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-03-22 13:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-01 15:12 [PATCH] arm64: dts: n5x: add sdr edac support Dinh Nguyen
2022-03-18 12:00 ` Krzysztof Kozlowski
2022-03-22 13:34   ` Dinh Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).