Skip to contentSkip to conversation

arm64: dts: socfpga: agilex5: add clock-names property to nand node

PATCH Superseded [email protected] 2 participants 5 messages Jan 7, 2025 – Jan 8, 2025 Device tree bindings

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: socfpga: agilex5: add clock-names property to nand node

From: Niravkumar L Rabara <[email protected]>

Cadence nand controller driver requires clock-names = "nf_clk" property.

---
 arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi +1 -0
index 51c6e19e40b8..4357572e96e3 100644
@@ -272,6 +272,7 @@ nand: nand-controller@10b80000 {
 			interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&clkmgr AGILEX5_NAND_NF_CLK>;
 			cdns,board-delay-ps = <4830>;
+			clock-names = "nf_clk";
 			status = "disabled";
 		};
 
Signature · 1 line
2.25.1
#1 lore raw
Quoted 4 lines · On 07/01/2025 09:49, [email protected] wrote:

From: Niravkumar L Rabara <[email protected]>

Cadence nand controller driver requires clock-names = "nf_clk" property.

Fixes tag.

Quoted 10 lines
---
 arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi +0 -0
index 51c6e19e40b8..4357572e96e3 100644

arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi nand: nand-controller@10b80000 { · line 275

Quoted 4 lines
arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi +1 -0
@@ -272,6 +272,7 @@ nand: nand-controller@10b80000 {
 			interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&clkmgr AGILEX5_NAND_NF_CLK>;
 			cdns,board-delay-ps = <4830>;
+			clock-names = "nf_clk";

It does not look like you tested the DTS against bindings. Please run make dtbs_check W=1 (see Documentation/devicetree/bindings/writing-schema.rst or
https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
for instructions).
Maybe you need to update your dtschema and yamllint. Don't rely on distro packages for dtschema and be sure you are using the latest released dtschema.

Best regards,
Krzysztof

#2 lore raw
Quoted 36 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Tuesday, 7 January, 2025 5:21 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]
Subject: Re: [PATCH] arm64: dts: socfpga: agilex5: add clock-names property to nand node

Quoted 4 lines · On 07/01/2025 09:49, [email protected] wrote:

From: Niravkumar L Rabara <[email protected]>

Cadence nand controller driver requires clock-names = "nf_clk" property.

Fixes tag.

Quoted 11 lines
---
 arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi +0 -0
index 51c6e19e40b8..4357572e96e3 100644

arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi nand: nand-controller@10b80000 { · line 275

Quoted 4 lines
arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi +1 -0
@@ -272,6 +272,7 @@ nand: nand-controller@10b80000 {
 			interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&clkmgr AGILEX5_NAND_NF_CLK>;
 			cdns,board-delay-ps = <4830>;
+			clock-names = "nf_clk";
Quoted 8 lines

It does not look like you tested the DTS against bindings. Please run make dtbs_check W=1 (see Documentation/devicetree/bindings/writing- schema.rst or https://www.linaro.org/blog/tips-and-tricks-for-validating-
devicetree-sources-with-the-devicetree-schema/
for instructions).
Maybe you need to update your dtschema and yamllint. Don't rely on distro packages for dtschema and be sure you are using the latest released dtschema.

I believe you are pointing to this error message /soc@0/nand-controller@10b80000: failed to match any schema with
compatible: ['cdns,hp-nfc']

I have already converted Cadence NAND controller txt to yaml bindings.
https://lore.kernel.org/all/[email protected]/
This patch is applied to nand/next and fixed the ['cdns,hp-nfc'] error.

I will mention this binding patch as dependency in v2 patch.

Quoted 3 lines

Best regards,
Krzysztof

#3 lore raw
Quoted 45 lines · Niravkumar L
Quoted 36 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Tuesday, 7 January, 2025 5:21 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]
Subject: Re: [PATCH] arm64: dts: socfpga: agilex5: add clock-names property to nand node

Quoted 4 lines · On 07/01/2025 09:49, [email protected] wrote:

From: Niravkumar L Rabara <[email protected]>

Cadence nand controller driver requires clock-names = "nf_clk" property.

Fixes tag.

Quoted 11 lines
---
 arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi +0 -0
index 51c6e19e40b8..4357572e96e3 100644

arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi nand: nand-controller@10b80000 { · line 275

Quoted 4 lines
arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi +1 -0
@@ -272,6 +272,7 @@ nand: nand-controller@10b80000 {
 			interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&clkmgr AGILEX5_NAND_NF_CLK>;
 			cdns,board-delay-ps = <4830>;
+			clock-names = "nf_clk";
Quoted 8 lines

It does not look like you tested the DTS against bindings. Please run make dtbs_check W=1 (see Documentation/devicetree/bindings/writing- schema.rst or https://www.linaro.org/blog/tips-and-tricks-for-validating-
devicetree-sources-with-the-devicetree-schema/
for instructions).
Maybe you need to update your dtschema and yamllint. Don't rely on distro packages for dtschema and be sure you are using the latest released dtschema.

Quoted 4 lines

I believe you are pointing to this error message /soc@0/nand-controller@10b80000: failed to match any schema with
compatible: ['cdns,hp-nfc']

No. I refer to this clock-names property. As you can easily see in the
binding: there is no clock-names.

Best regards,
Krzysztof

#4 lore raw
Quoted 59 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Wednesday, 8 January, 2025 3:14 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]
Subject: Re: [PATCH] arm64: dts: socfpga: agilex5: add clock-names property to nand node

Quoted 46 lines · Niravkumar L
Quoted 45 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Tuesday, 7 January, 2025 5:21 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]
Subject: Re: [PATCH] arm64: dts: socfpga: agilex5: add clock-names property to nand node

Quoted 4 lines · On 07/01/2025 09:49, [email protected] wrote:

From: Niravkumar L Rabara <[email protected]>

Cadence nand controller driver requires clock-names = "nf_clk" property.

Fixes tag.

Quoted 11 lines
---
 arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi +0 -0
index 51c6e19e40b8..4357572e96e3 100644

arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi nand: nand-controller@10b80000 { · line 275

Quoted 4 lines
arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi +1 -0
@@ -272,6 +272,7 @@ nand: nand-controller@10b80000 {
 			interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&clkmgr AGILEX5_NAND_NF_CLK>;
 			cdns,board-delay-ps = <4830>;
+			clock-names = "nf_clk";

It does not look like you tested the DTS against bindings. Please run make dtbs_check W=1 (see Documentation/devicetree/bindings/writing- schema.rst or
https://www.linaro.org/blog/tips-and-tricks-for-validating-
devicetree-sources-with-the-devicetree-schema/
for instructions).
Maybe you need to update your dtschema and yamllint. Don't rely on distro packages for dtschema and be sure you are using the latest released dtschema.

Quoted 8 lines
Quoted 4 lines

I believe you are pointing to this error message /soc@0/nand-controller@10b80000: failed to match any schema with
compatible: ['cdns,hp-nfc']

No. I refer to this clock-names property. As you can easily see in the
binding: there is no clock-names.

Got it. I need to update binding with clock-names property first.

Thanks,
Nirav