Skip to contentSkip to conversation

dt-bindings: mtd: cadence: convert cadence-nand-controller.txt to yaml

PATCH Superseded [email protected] 3 participants 6 messages Dec 5, 2024 – Dec 9, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 dt-bindings: mtd: cadence: convert cadence-nand-controller.txt to yaml

From: Niravkumar L Rabara <[email protected]>

Convert cadence-nand-controller.txt to yaml format.
Update cadence-nand-controller.txt to cdns,hp-nfc.yaml in MAINTAINER file.

---

Changes in v4:
- Fixed the identation for examples as per review comment in v3.

Changes in v3:
- Changed file name to cdns,hp-nfc.yaml to match with compatible.
- Update description, fixed alignment, and used defines for interrupt flag as per review comments in v2.

Changes in v2:
- Update name cadence-nand-controller.txt to cadence,nand.yaml in MAINTAINER file to resolve the warning.

 .../bindings/mtd/cadence-nand-controller.txt  | 53 -------------
 .../devicetree/bindings/mtd/cdns,hp-nfc.yaml  | 75 +++++++++++++++++++
 MAINTAINERS                                   |  2 +-
 3 files changed, 76 insertions(+), 54 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt
 create mode 100644 Documentation/devicetree/bindings/mtd/cdns,hp-nfc.yaml
Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt deleted +0 -53
deleted file mode 100644
index d2eada5044b2..000000000000
@@ -1,53 +0,0 @@
-* Cadence NAND controller
-
-Required properties:
-  - compatible : "cdns,hp-nfc"
-  - reg : Contains two entries, each of which is a tuple consisting of a
-	  physical address and length. The first entry is the address and
-	  length of the controller register set. The second entry is the
-	  address and length of the Slave DMA data port.
-  - reg-names: should contain "reg" and "sdma"
-  - #address-cells: should be 1. The cell encodes the chip select connection.
-  - #size-cells : should be 0.
-  - interrupts : The interrupt number.
-  - clocks: phandle of the controller core clock (nf_clk).
-
-Optional properties:
-  - dmas: shall reference DMA channel associated to the NAND controller
-  - cdns,board-delay-ps : Estimated Board delay. The value includes the total
-    round trip delay for the signals and is used for deciding on values
-    associated with data read capture. The example formula for SDR mode is
-    the following:
-    board delay = RE#PAD delay + PCB trace to device + PCB trace from device
-    + DQ PAD delay
-
-Child nodes represent the available NAND chips.
-
-Required properties of NAND chips:
-  - reg: shall contain the native Chip Select ids from 0 to max supported by
-    the cadence nand flash controller
-
-See Documentation/devicetree/bindings/mtd/nand-controller.yaml for more details on
-generic bindings.
-
-Example:
-
-nand_controller: nand-controller@60000000 {
-	  compatible = "cdns,hp-nfc";
-	  #address-cells = <1>;
-	  #size-cells = <0>;
-	  reg = <0x60000000 0x10000>, <0x80000000 0x10000>;
-	  reg-names = "reg", "sdma";
-	  clocks = <&nf_clk>;
-	  cdns,board-delay-ps = <4830>;
-	  interrupts = <2 0>;
-	  nand@0 {
-	      reg = <0>;
-	      label = "nand-1";
-	  };
-	  nand@1 {
-	      reg = <1>;
-	      label = "nand-2";
-	  };
-
-};
Documentation/devicetree/bindings/mtd/cdns,hp-nfc.yaml new file +75 -0

75 lines not on this page · raw message

MAINTAINERS +1 -1
index 1e930c7a58b1..9fab4b4a75a1 100644
@@ -5009,7 +5009,7 @@ F:	drivers/media/platform/cadence/cdns-csi2*
 CADENCE NAND DRIVER
 L:	[email protected]
 S:	Orphan
-F:	Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt
+F:	Documentation/devicetree/bindings/mtd/cdns,hp-nfc.yaml
 F:	drivers/mtd/nand/raw/cadence-nand-controller.c
 
 CADENCE USB3 DRD IP DRIVER
Signature · 1 line
2.25.1
#1 lore raw
Quoted 11 lines · On Thu, Dec 05, 2024 at 01:33:50PM +0800, [email protected] wrote:

From: Niravkumar L Rabara <[email protected]>

Convert cadence-nand-controller.txt to yaml format.
Update cadence-nand-controller.txt to cdns,hp-nfc.yaml in MAINTAINER file.

---

Changes in v4:
- Fixed the identation for examples as per review comment in v3.

<form letter>
This is a friendly reminder during the review process.

It looks like you received a tag and forgot to add it.

If you do not know the process, here is a short explanation: Please add Acked-by/Reviewed-by/Tested-by tags when posting new versions, under or above your Signed-off-by tag. Tag is "received", when provided in a message replied to you on the mailing list. Tools like b4 can help here. However, there's no need to repost patches *only* to add the tags. The upstream maintainer will do that for tags received on the version they apply.

https://elixir.bootlin.com/linux/v6.5-rc3/source/Documentation/process/submitting-patches.rst#L577

If a tag was not added on purpose, please state why and what changed. </form letter>

Best regards,
Krzysztof

#3 lore raw
Quoted 10 lines · Miquel Raynal
Quoted 6 lines · On 05/12/2024 at 13:33:50 +08, [email protected] wrote:

From: Niravkumar L Rabara <[email protected]>

Convert cadence-nand-controller.txt to yaml format.
Update cadence-nand-controller.txt to cdns,hp-nfc.yaml in MAINTAINER file.

Looks good to me, but I'll wait for binding maintainers ack ofc.

There was one, but author ignored it.

Best regards,
Krzysztof

#4 lore raw
Quoted 23 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Sunday, 8 December, 2024 10:26 PM
To: Miquel Raynal <[email protected]>
Cc: Rabara, Niravkumar L <[email protected]>; [email protected]; Richard Weinberger <[email protected]>; Vignesh Raghavendra <[email protected]>; Rob Herring <[email protected]>; Krzysztof Kozlowski <[email protected]>; Conor Dooley <[email protected]>; linux- [email protected]; [email protected]
Subject: Re: [PATCH v4] dt-bindings: mtd: cadence: convert cadence-nand- controller.txt to yaml

Quoted 6 lines · Miquel Raynal
Quoted 4 lines · On 05/12/2024 at 13:33:50 +08, [email protected] wrote:

From: Niravkumar L Rabara <[email protected]>

Convert cadence-nand-controller.txt to yaml format. Update cadence-nand-controller.txt to cdns,hp-nfc.yaml in MAINTAINER

file.

Quoted 1 line
Quoted 1 line
Quoted 8 lines
Quoted 3 lines
Quoted 1 line

Looks good to me, but I'll wait for binding maintainers ack ofc.

There was one, but author ignored it.

Best regards,
Krzysztof

My apologies, I forgot to include the 'Reviewed-by: Conor Dooley [email protected]' tag that I received in the v3 patch. I will ensure this does not happen again.

Thanks,
Nirav

maintainer
#5 lore raw
Quoted 25 lines · Niravkumar L
Quoted 25 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Sunday, 8 December, 2024 10:26 PM
To: Miquel Raynal <[email protected]>
Cc: Rabara, Niravkumar L <[email protected]>; [email protected]; Richard Weinberger <[email protected]>; Vignesh Raghavendra <[email protected]>; Rob Herring <[email protected]>; Krzysztof Kozlowski <[email protected]>; Conor Dooley <[email protected]>; linux- [email protected]; [email protected]
Subject: Re: [PATCH v4] dt-bindings: mtd: cadence: convert cadence-nand- controller.txt to yaml

Quoted 6 lines · Miquel Raynal
Quoted 4 lines · On 05/12/2024 at 13:33:50 +08, [email protected] wrote:

From: Niravkumar L Rabara <[email protected]>

Convert cadence-nand-controller.txt to yaml format. Update cadence-nand-controller.txt to cdns,hp-nfc.yaml in MAINTAINER

file.

Quoted 4 lines
Quoted 2 lines

Looks good to me, but I'll wait for binding maintainers ack ofc.

Quoted 8 lines
Quoted 4 lines

There was one, but author ignored it.

Best regards,
Krzysztof

My apologies, I forgot to include the 'Reviewed-by: Conor Dooley [email protected]' tag that I received in the v3 patch. I will ensure this does not happen again.

Please re-send with the missing tag(s), otherwise they will not be picked-up (automatically).

Cheers,
Miquèl