From: Marcus Folkesson <marcus.folkesson@gmail.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Miquel Raynal <miquel.raynal@bootlin.com>,
Richard Weinberger <richard@nod.at>,
Vignesh Raghavendra <vigneshr@ti.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org
Subject: Re: [PATCH v6 2/2] dt-bindings: mtd: davinci: convert to yaml
Date: Thu, 7 Nov 2024 13:23:49 +0100 [thread overview]
Message-ID: <ZyyxVQww6PcYWFJU@gmail.com> (raw)
In-Reply-To: <5r6j26qwcxyppxicdqih6tskb2qxkb5phzjtwqv47iqb4qupkp@zxujctq7ot6k>
[-- Attachment #1.1: Type: text/plain, Size: 2402 bytes --]
On Thu, Nov 07, 2024 at 11:17:14AM +0100, Krzysztof Kozlowski wrote:
> On Thu, Nov 07, 2024 at 10:19:54AM +0100, Marcus Folkesson wrote:
> > Convert the bindings to yaml format.
> >
> > Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
> > ---
> > .../devicetree/bindings/mtd/davinci-nand.txt | 94 ---------------
> > .../devicetree/bindings/mtd/ti,davinci-nand.yaml | 134 +++++++++++++++++++++
> > 2 files changed, 134 insertions(+), 94 deletions(-)
>
> ...
>
> > +allOf:
> > + - $ref: nand-controller.yaml
> > +
> > +properties:
> > + compatible:
> > + enum:
> > + - ti,davinci-nand
> > + - ti,keystone-nand
> > +
> > + reg:
> > + items:
> > + - description:
> > + Access window.
>
> Merge two lines. See other files how they do it.
Ok
>
> > + - description:
> > + AEMIF control registers
>
> Merge two lines
Ok
>
> > +
> > + "#address-cells":
> > + const: 1
> > +
> > + "#size-cells":
> > + const: 0
>
> These two properties are not needed, drop. I don't understand why did
> they appear here. Changelog also does no explain it.
Ok, I drop those.
[...]
> > +examples:
> > + - |
> > + bus {
> > + #address-cells = <2>;
> > + #size-cells = <1>;
> > +
> > + nand-controller@2000000,0 {
> > + compatible = "ti,davinci-nand";
> > + #address-cells = <1>;
> > + #size-cells = <0>;
> > + reg = <0 0x02000000 0x02000000
> > + 1 0x00000000 0x00008000>;
>
> Two items must be encoded as two items, so two <> <>
> Also messed alignment. See DTS coding style.
Ok
>
> > +
> > + ti,davinci-chipselect = <1>;
> > + ti,davinci-mask-ale = <0>;
> > + ti,davinci-mask-cle = <0>;
> > + ti,davinci-mask-chipsel = <0>;
> > +
> > + ti,davinci-nand-buswidth = <16>;
> > + ti,davinci-ecc-mode = "hw";
> > + ti,davinci-ecc-bits = <4>;
> > + ti,davinci-nand-use-bbt;
> > +
> > + partitions {
>
> Where are the partitions documented? In which binding? Don't you miss
> mtd.yaml? I think this binding misses some references, but I am not sure
> which ones.
I thought this covered it?
+ partitions:
+ $ref: /schemas/mtd/partitions/partitions.yaml
>
> Best regards,
> Krzysztof
>
Thanks,
Marcus Folkesson
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 144 bytes --]
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
next prev parent reply other threads:[~2024-11-07 12:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-07 9:19 [PATCH v6 0/2] Add support for "on-die" ECC on Davinci Marcus Folkesson
2024-11-07 9:19 ` [PATCH v6 1/2] mtd: nand: davinci: add support for on-die ECC engine type Marcus Folkesson
2024-11-07 9:19 ` [PATCH v6 2/2] dt-bindings: mtd: davinci: convert to yaml Marcus Folkesson
2024-11-07 10:17 ` Krzysztof Kozlowski
2024-11-07 12:23 ` Marcus Folkesson [this message]
2024-11-07 12:27 ` Krzysztof Kozlowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZyyxVQww6PcYWFJU@gmail.com \
--to=marcus.folkesson@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=miquel.raynal@bootlin.com \
--cc=richard@nod.at \
--cc=robh@kernel.org \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox