Skip to contentSkip to conversation

add clock-names property to nand node

PATCH Superseded [email protected] 2 participants 5 messages Feb 12, 2025

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover add clock-names property to nand node

From: Niravkumar L Rabara <[email protected]>

1) Document the required clock-names property because the driver requests the clock by name and not the index.
2) Add required clock-names property to the nand node in device tree.

Changes in v2:
* Document clock-names property for Cadence NAND controller.

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

Niravkumar L Rabara (2):
dt-bindings: mtd: cadence: document required clock-names
arm64: dts: socfpga: agilex5: add clock-names property to nand node

 Documentation/devicetree/bindings/mtd/cdns,hp-nfc.yaml | 8 +++++++-
 arch/arm64/boot/dts/intel/socfpga_agilex5.dtsi         | 1 +
 2 files changed, 8 insertions(+), 1 deletion(-)
Signature · 1 line
2.25.1
#1 lore raw

PATCH v2 1/2 dt-bindings: mtd: cadence: document required clock-names

From: Niravkumar L Rabara <[email protected]>

The clock-names property is required because the driver requests the clock by name and not the index.
Update the example to use &clk instead of &nf_clk for the clocks property to avoid confusion with the clock-names property "nf_clk".

---
 Documentation/devicetree/bindings/mtd/cdns,hp-nfc.yaml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/mtd/cdns,hp-nfc.yaml +7 -1
index 0bed37a994c3..e1f4d7c35a88 100644
@@ -33,6 +33,10 @@ properties:
   clocks:
     maxItems: 1
 
+  clock-names:
+    items:
+      - const: nf_clk
+
   dmas:
     maxItems: 1
 
@@ -51,6 +55,7 @@ required:
   - reg-names
   - interrupts
   - clocks
+  - clock-names
 
 unevaluatedProperties: false
 
@@ -66,7 +71,8 @@ examples:
         #address-cells = <1>;
         #size-cells = <0>;
         interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
-        clocks = <&nf_clk>;
+        clocks = <&clk>;
+        clock-names = "nf_clk";
         cdns,board-delay-ps = <4830>;
 
         nand@0 {
Signature · 1 line
2.25.1
Reviewed-by on v2 1/2
#2 lore raw

Re: [PATCH v2 1/2] dt-bindings: mtd: cadence: document required clock-names

Quoted 11 lines · On 12/02/2025 10:54, [email protected] wrote:

From: Niravkumar L Rabara <[email protected]>

The clock-names property is required because the driver requests the clock by name and not the index.
Update the example to use &clk instead of &nf_clk for the clocks property to avoid confusion with the clock-names property "nf_clk".

---
 Documentation/devicetree/bindings/mtd/cdns,hp-nfc.yaml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Please add fixes tag - probably the conversion, because original TXT binding mentioned "nf_clk" so it could be implied.

Best regards,
Krzysztof

#3 lore raw

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

In reply to [email protected]

From: Niravkumar L Rabara <[email protected]>

Add required clock-names property to the nand node.

---
 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..27f75e1bc8eb 100644
@@ -271,6 +271,7 @@ nand: nand-controller@10b80000 {
 			#size-cells = <0>;
 			interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&clkmgr AGILEX5_NAND_NF_CLK>;
+			clock-names = "nf_clk";
 			cdns,board-delay-ps = <4830>;
 			status = "disabled";
 		};
Signature · 1 line
2.25.1