Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2440234rdb; Wed, 4 Oct 2023 00:45:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHvNubdsZVSu5g9oh9UlF9kyHuKXcXliXXzRoEazHzpNtr7a6VaInRJ6UK+A4PNTwF9ZBIO X-Received: by 2002:a17:902:eb4c:b0:1bd:bbc3:c87b with SMTP id i12-20020a170902eb4c00b001bdbbc3c87bmr1509477pli.41.1696405540940; Wed, 04 Oct 2023 00:45:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696405540; cv=none; d=google.com; s=arc-20160816; b=FUsXy8bWfu9ay7TIdvjydOd9OhSvZiDlZEpuAwU8XUGt4XwaB9U2vNWJ53aMC8ypTO jrwlopQPj06epKqI9IPD2VThSrr5JnqKrSAz+lSol3mWL75EsJHGaTdHhQ4CmxPPPMVD /wQd7Nk0p2F1WkD0pp89stwYoVCO8OeZQmTxGZ1L8x+QeBY4vMSzfzVD346TZhSgULKl kKP4TlZ6u75EcfZo9Ckh2MI1f4XIA7UCSggvXN5Wm4W+/1FHWXt7CdMsoesEglVCrWx4 CyRfF4kWVa10ZoHYmL3TVrF+dWzkRMCKgw9ZvQZItYeLGa3Y/E/sgrUUc1/E8Wi0e8B4 gc1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=VBA0XNaTJ/GmTYAgKn/HyRrIiXhJIs4Y4o8burTOcdA=; fh=ADmaqVqsXxY7om3oVsUuN9kSL65WlmmcC8zK7ZEZ/sE=; b=kEttDWDX7VhDj/ytqRd56cIREi6LIwV5tg0aTMeAJt/1V5dNVT5dnBDb8imTS7cCa3 LJ0kfWiCPagru5SgKlUkuonkwEBDsfFwK6mkqLmDYcMoVdKvlcOQr6bEWP3ZEqRxC3gj /Y8PzcRuca0cLr2BfDEKoVLTiBDGUmIhkDnYM9Ha4rci5jGVvgZuH4IqIfvtQNOs/FCU yGZxVowilQGUUGTmUc8XnbLuTf3MfIcT1fov47keNml2R3Vqho7130RpekIEsaXG17/p Dyp5mofnKnUpI7GBkzUeT8CbMNflJdC71/2obNX6ksRqMFLPXzs8S65ypVQPjejgYMf9 u6bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=eHmtNjrg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id x10-20020a170902a38a00b001c60d6a620bsi3053393pla.95.2023.10.04.00.45.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 00:45:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=eHmtNjrg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 7565480A4310; Wed, 4 Oct 2023 00:45:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241551AbjJDHpF (ORCPT + 99 others); Wed, 4 Oct 2023 03:45:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241532AbjJDHpD (ORCPT ); Wed, 4 Oct 2023 03:45:03 -0400 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 062AE9B; Wed, 4 Oct 2023 00:44:59 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id DE763E0010; Wed, 4 Oct 2023 07:44:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1696405498; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VBA0XNaTJ/GmTYAgKn/HyRrIiXhJIs4Y4o8burTOcdA=; b=eHmtNjrgLvEZb0H5aTAt5rVWa9YJ34C6Zk+y1qUhwwnyX8RGB7xwNdigpW5TDuseT1ErJC O2TLcu1Q13w9Xz+cZrreXdX2AwAl8hLZHTmdpF2e/fx7B9lWB9gEGjS2SQxfcQ30MPIxpZ C+mLSLLb/Yfs+xNtNGphamBiHOMkRgZ+qlc2VGIlNk2RGDoEIOpHisxUyax0FGggLP4d2J AkE2jAP2msO8fl3FV8x+FynJUx36e0tixmwC/C83AuzOp4eevww3/YUbic9MJXNLeAF7Lc HASsplzEoE3dpkjvQxp9v9kUiXMBhf99j4zO6WUPgzTpHKS4M2cY+u385RPqhg== Date: Wed, 4 Oct 2023 09:44:55 +0200 From: Miquel Raynal To: niravkumar.l.rabara@intel.com Cc: Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dt-bindings: mtd: cadence: convert cadence-nand-controller.txt to yaml Message-ID: <20231004094455.1a6a19e1@xps-13> In-Reply-To: <20231004061214.17176-1-niravkumar.l.rabara@intel.com> References: <20231004061214.17176-1-niravkumar.l.rabara@intel.com> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 04 Oct 2023 00:45:23 -0700 (PDT) Hello, niravkumar.l.rabara@intel.com wrote on Wed, 4 Oct 2023 14:12:14 +0800: > From: Niravkumar L Rabara >=20 > Convert cadence-nand-controller.txt to yaml format. Looks good to me, one question below. > Signed-off-by: Niravkumar L Rabara > --- > .../devicetree/bindings/mtd/cadence,nand.yaml | 73 +++++++++++++++++++ > .../bindings/mtd/cadence-nand-controller.txt | 53 -------------- > 2 files changed, 73 insertions(+), 53 deletions(-) > create mode 100644 Documentation/devicetree/bindings/mtd/cadence,nand.ya= ml > delete mode 100644 Documentation/devicetree/bindings/mtd/cadence-nand-co= ntroller.txt >=20 > diff --git a/Documentation/devicetree/bindings/mtd/cadence,nand.yaml b/Do= cumentation/devicetree/bindings/mtd/cadence,nand.yaml > new file mode 100644 > index 000000000000..781812ac702f > --- /dev/null > +++ b/Documentation/devicetree/bindings/mtd/cadence,nand.yaml > @@ -0,0 +1,73 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/mtd/cadence,nand.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Cadence NAND controller > + > +maintainers: > + - Niravkumar L Rabara > + > +allOf: > + - $ref: nand-controller.yaml > + > +properties: > + compatible: > + items: > + - const: cdns,hp-nfc > + > + reg: > + items: > + - description: Address and length of the controller register set > + - description: Address and length of the Slave DMA data port > + > + reg-names: > + items: > + - const: reg > + - const: sdma > + > + interrupts: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + dmas: > + maxItems: 1 > + > + cdns,board-delay-ps: > + description: | > + 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 =3D RE#PAD delay + PCB trace to device + PCB trace fro= m device > + + DQ PAD delay > + > +required: > + - compatible > + - reg > + - reg-names > + - interrupts > + - clocks > + > +unevaluatedProperties: false > + > +examples: > + - | > + nand-controller@10b80000 { > + compatible =3D "cdns,hp-nfc"; > + reg =3D <0x10b80000 0x10000>, > + <0x10840000 0x10000>; > + reg-names =3D "reg", "sdma"; > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + interrupts =3D <0 97 4>; > + clocks =3D <&nf_clk>; > + cdns,board-delay-ps =3D <4830>; > + > + nand@0 { > + reg =3D <0>; > + }; > + }; > diff --git a/Documentation/devicetree/bindings/mtd/cadence-nand-controlle= r.txt b/Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt > deleted file mode 100644 > index d2eada5044b2..000000000000 > --- a/Documentation/devicetree/bindings/mtd/cadence-nand-controller.txt > +++ /dev/null > @@ -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 connec= tion. > - - #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 =3D RE#PAD delay + PCB trace to device + PCB trace from = device > - + DQ PAD delay > - > -Child nodes represent the available NAND chips. This is not fully pictured in the current schema, by referencing nand-controller.yaml I believe you allow all kind of direct partitioning (which is legacy, and not supposed to be supported here). Can you try to define a partition directly within the controller node in the example and see whether it still passes the checks? Thanks, Miqu=C3=A8l