arm64: dts: socfpga: agilex5: add clock-names property to nand node
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
@@ -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
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
Signed-off-by Niravkumar L Rabara <[email protected]>--- arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi | 1 + 1 file changed, 1 insertion(+)arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi +0
-0
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
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 nodeQuoted 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
Signed-off-by Niravkumar L Rabara <[email protected]>--- arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi | 1 + 1 file changed, 1 insertion(+)arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi +0
-0arch/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(seeDocumentation/devicetree/bindings/writing-schema.rstor 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
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 nodeQuoted 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
Signed-off-by Niravkumar L Rabara <[email protected]>--- arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi | 1 + 1 file changed, 1 insertion(+)arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi +0
-0arch/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(seeDocumentation/devicetree/bindings/writing-schema.rstor 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
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 nodeQuoted 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 nodeQuoted 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
Signed-off-by Niravkumar L Rabara <[email protected]>--- arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi | 1 + 1 file changed, 1 insertion(+)arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi +0
-0arch/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(seeDocumentation/devicetree/bindings/writing-schema.rstor
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