Skip to contentSkip to conversation

arm64: dts: socfpga: agilex5: add NAND board file

PATCH Superseded [email protected] 2 participants 5 messages Feb 5, 2025 – Feb 6, 2025 Device tree bindings

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arm64: dts: socfpga: agilex5: add NAND board file

From: Niravkumar L Rabara <[email protected]>

The Agilex5 devkit supports a separate NAND daughter card. The NAND daughter card replaces the SDMMC slot that is on the default daughter card thus requires a separate board dts file.

---

changes in v2:
* Use nand flash node name according to dt bindings to fix dt build warnings.
* Arrange node in sequence.

Link to v1:https://lore.kernel.org/all/[email protected]/

 arch/arm64/boot/dts/intel/Makefile            |  1 +
 .../dts/intel/socfpga_agilex5_socdk_nand.dts  | 89 +++++++++++++++++++
 2 files changed, 90 insertions(+)
 create mode 100644 arch/arm64/boot/dts/intel/socfpga_agilex5_socdk_nand.dts
arch/arm64/boot/dts/intel/Makefile +1 -0
index d39cfb723f5b..33f6d01266b1 100644
@@ -3,5 +3,6 @@ dtb-$(CONFIG_ARCH_INTEL_SOCFPGA) += socfpga_agilex_n6000.dtb \
 				socfpga_agilex_socdk.dtb \
 				socfpga_agilex_socdk_nand.dtb \
 				socfpga_agilex5_socdk.dtb \
+				socfpga_agilex5_socdk_nand.dtb \
 				socfpga_n5x_socdk.dtb
 dtb-$(CONFIG_ARCH_KEEMBAY) += keembay-evm.dtb
arch/arm64/boot/dts/intel/socfpga_agilex5_socdk_nand.dts new file +89 -0

89 lines not on this page · raw message

Signature · 1 line
2.25.1
#1 lore raw
Quoted 6 lines · On 05/02/2025 11:13, [email protected] wrote:
arch/arm64/boot/dts/intel/socfpga_agilex5_socdk_nand.dts new file +0 -0
new file mode 100644
index 000000000000..ccc9be2cd7c6

arch/arm64/boot/dts/intel/socfpga_agilex5_socdk_nand.dts line 9

Quoted 9 lines
arch/arm64/boot/dts/intel/socfpga_agilex5_socdk_nand.dts new file +9 -0
@@ -0,0 +1,89 @@
+// SPDX-License-Identifier:     GPL-2.0
+/*
+ * Copyright (C) 2025, Altera Corporation
+ */
+#include "socfpga_agilex5.dtsi"
+
+/ {
+	model = "SoCFPGA Agilex5 SoCDK";
+	compatible = "intel,socfpga-agilex5-socdk", "intel,socfpga-agilex5";

You cannot use other boards compatibles. Different device, different compatible.

Best regards,
Krzysztof

#2 lore raw

Hi Krysztof,

Quoted 22 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Wednesday, 5 February, 2025 7:31 PM
To: Rabara, Niravkumar L <[email protected]>; Dinh Nguyen <[email protected]>; Rob Herring <[email protected]>; Krzysztof Kozlowski <[email protected]>; Conor Dooley <[email protected]>; [email protected]; [email protected]; linux- [email protected]
Subject: Re: [PATCH v2] arm64: dts: socfpga: agilex5: add NAND board file

Quoted 11 lines · On 05/02/2025 11:13, [email protected] wrote:
arch/arm64/boot/dts/intel/socfpga_agilex5_socdk_nand.dts new file +4 -0
new file mode 100644
index 000000000000..ccc9be2cd7c6
@@ -0,0 +1,89 @@
+// SPDX-License-Identifier:     GPL-2.0
+/*
+ * Copyright (C) 2025, Altera Corporation  */ #include
+"socfpga_agilex5.dtsi"
Quoted 9 lines

arch/arm64/boot/dts/intel/socfpga_agilex5_socdk_nand.dts line 9

Quoted 4 lines
arch/arm64/boot/dts/intel/socfpga_agilex5_socdk_nand.dts new file +4 -0
+
+/ {
+	model = "SoCFPGA Agilex5 SoCDK";
+	compatible = "intel,socfpga-agilex5-socdk", "intel,socfpga-agilex5";

You cannot use other boards compatibles. Different device, different compatible.

Same Agilex5 development kit board supports a separate NAND daughter card.
Default daughter card with SDMMC on Agilex5 devkit required to replaced with this NAND daughter card to use NAND flash with Agilex5 devkit.

Maybe I should replace the "NAND board" to "NAND daughter board" for the patch title.

Is this reasonable?

Thanks,
Nirav

#3 lore raw
Quoted 34 lines · Niravkumar L

Hi Krysztof,

Quoted 22 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Wednesday, 5 February, 2025 7:31 PM
To: Rabara, Niravkumar L <[email protected]>; Dinh Nguyen <[email protected]>; Rob Herring <[email protected]>; Krzysztof Kozlowski <[email protected]>; Conor Dooley <[email protected]>; [email protected]; [email protected]; linux- [email protected]
Subject: Re: [PATCH v2] arm64: dts: socfpga: agilex5: add NAND board file

Quoted 11 lines · On 05/02/2025 11:13, [email protected] wrote:
arch/arm64/boot/dts/intel/socfpga_agilex5_socdk_nand.dts new file +4 -0
new file mode 100644
index 000000000000..ccc9be2cd7c6
@@ -0,0 +1,89 @@
+// SPDX-License-Identifier:     GPL-2.0
+/*
+ * Copyright (C) 2025, Altera Corporation  */ #include
+"socfpga_agilex5.dtsi"
Quoted 9 lines

arch/arm64/boot/dts/intel/socfpga_agilex5_socdk_nand.dts line 9

Quoted 4 lines
arch/arm64/boot/dts/intel/socfpga_agilex5_socdk_nand.dts new file +4 -0
+
+/ {
+	model = "SoCFPGA Agilex5 SoCDK";
+	compatible = "intel,socfpga-agilex5-socdk", "intel,socfpga-agilex5";

You cannot use other boards compatibles. Different device, different compatible.

Quoted 5 lines

Same Agilex5 development kit board supports a separate NAND daughter card.
Default daughter card with SDMMC on Agilex5 devkit required to replaced with this NAND daughter card to use NAND flash with Agilex5 devkit.

So different boards?

Quoted 5 lines

Maybe I should replace the "NAND board" to "NAND daughter board" for the patch title.

Is this reasonable?

Yeah, would be better, but I was not commenting about that. Define what is the hardware here and use proper compatibles.

Best regards,
Krzysztof

#4 lore raw

Hi Krysztof,

Quoted 29 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Thursday, 6 February, 2025 12:36 AM
To: Rabara, Niravkumar L <[email protected]>; Dinh Nguyen <[email protected]>; Rob Herring <[email protected]>; Krzysztof Kozlowski <[email protected]>; Conor Dooley <[email protected]>; [email protected]; [email protected]; linux- [email protected]
Subject: Re: [PATCH v2] arm64: dts: socfpga: agilex5: add NAND board file

Quoted 9 lines
Quoted 8 lines

Review

Quoted 3 lines
(quoted diff) +3 -0
+	model = "SoCFPGA Agilex5 SoCDK";
+	compatible = "intel,socfpga-agilex5-socdk",
+"intel,socfpga-agilex5";

You cannot use other boards compatibles. Different device, different compatible.

Quoted 5 lines

Same Agilex5 development kit board supports a separate NAND daughter card.
Default daughter card with SDMMC on Agilex5 devkit required to replaced with this NAND daughter card to use NAND flash with Agilex5 devkit.

So different boards?

Quoted 1 line
Quoted 9 lines
Quoted 4 lines

Maybe I should replace the "NAND board" to "NAND daughter board" for the patch title.

Is this reasonable?

Yeah, would be better, but I was not commenting about that. Define what is the hardware here and use proper compatibles.

Got it.
I was under the wrong impression that daughter board can use the base board compatibles.

I will add the NAND board's compatible to the bindings and use it here in v3.

Thanks,
Nirav