From: Rob Herring <robh@kernel.org>
To: Binbin Zhou <zhoubinbin@loongson.cn>
Cc: Binbin Zhou <zhoubb.aaron@gmail.com>,
Huacai Chen <chenhuacai@loongson.cn>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Keguang Zhang <keguang.zhang@gmail.com>,
Miquel Raynal <miquel.raynal@bootlin.com>,
Richard Weinberger <richard@nod.at>,
Vignesh Raghavendra <vigneshr@ti.com>,
Huacai Chen <chenhuacai@kernel.org>,
Xuerui Wang <kernel@xen0n.name>,
loongarch@lists.linux.dev, devicetree@vger.kernel.org,
linux-mtd@lists.infradead.org
Subject: Re: [PATCH v1 7/8] dt-bindings: mtd: loongson,ls1b-nand-controller: Document the Loongson-2K1000 NAND controller
Date: Tue, 22 Jul 2025 23:53:22 -0500 [thread overview]
Message-ID: <20250723045322.GA1226341-robh@kernel.org> (raw)
In-Reply-To: <ed625518c752738cb7e24f6d4b7fb9b62a609880.1753166096.git.zhoubinbin@loongson.cn>
On Tue, Jul 22, 2025 at 05:11:06PM +0800, Binbin Zhou wrote:
> Add new compatible for the Loongson-2K NAND controller used for
> Loongson-2K1000 SoC.
>
> Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn>
> ---
> .../mtd/loongson,ls1b-nand-controller.yaml | 58 +++++++++++++++++--
> 1 file changed, 54 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/mtd/loongson,ls1b-nand-controller.yaml b/Documentation/devicetree/bindings/mtd/loongson,ls1b-nand-controller.yaml
> index 4ec2b5d1e89d..07a0d9b40fdd 100644
> --- a/Documentation/devicetree/bindings/mtd/loongson,ls1b-nand-controller.yaml
> +++ b/Documentation/devicetree/bindings/mtd/loongson,ls1b-nand-controller.yaml
> @@ -26,18 +26,19 @@ properties:
> - loongson,ls1b-nand-controller
> - loongson,ls1c-nand-controller
> - loongson,ls2k0500-nand-controller
> + - loongson,ls2k1000-nand-controller
> - items:
> - enum:
> - loongson,ls1a-nand-controller
> - const: loongson,ls1b-nand-controller
>
> reg:
> - maxItems: 2
> + minItems: 2
> + maxItems: 3
>
> reg-names:
> - items:
> - - const: nand
> - - const: nand-dma
Keep the list and add dma-config here and 'minItems: 2'
> + minItems: 2
> + maxItems: 3
>
> dmas:
> maxItems: 1
> @@ -54,6 +55,32 @@ required:
>
> unevaluatedProperties: false
>
> +if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - loongson,ls2k1000-nand-controller
> +
> +then:
> + properties:
> + reg:
> + minItems: 3
> + reg-names:
> + items:
> + - const: nand
> + - const: nand-dma
> + - const: dma-config
And just 'minItems: 3' here
> +
> +else:
> + properties:
> + reg:
> + maxItems: 2
> + reg-names:
> + items:
> + - const: nand
> + - const: nand-dma
And 'maxItems: 2' here.
> +
> examples:
> - |
> nand-controller@1fe78000 {
> @@ -72,3 +99,26 @@ examples:
> nand-ecc-algo = "hamming";
> };
> };
> +
> + - |
> + nand-controller@1fe26000 {
> + compatible = "loongson,ls2k1000-nand-controller";
> + reg = <0x1fe26000 0x24>,
> + <0x1fe26040 0x4>,
> + <0x1fe00438 0x8>;
> + reg-names = "nand", "nand-dma", "dma-config";
> + dmas = <&apbdma0 0>;
> + dma-names = "rxtx";
> +
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + nand@0 {
> + reg = <0>;
> + label = "ls2k1000-nand";
> + nand-use-soft-ecc-engine;
> + nand-ecc-algo = "bch";
> + nand-ecc-strength = <8>;
> + nand-ecc-step-size = <512>;
> + };
> + };
> --
> 2.47.3
>
next prev parent reply other threads:[~2025-07-23 4:53 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-22 9:10 [PATCH v1 0/8] mtd: rawnand: loongson: Add Loongson-2K nand controller support Binbin Zhou
2025-07-22 9:10 ` [PATCH v1 1/8] mtd: rawnand: loongson1: Rename the prefix from ls1x to loongson Binbin Zhou
2025-07-22 9:10 ` [PATCH v1 2/8] mtd: rawnand: loongson: Rename loongson1 " Binbin Zhou
2025-07-22 9:10 ` [PATCH v1 3/8] mtd: rawnand: loongson: Add 6-byte NAND ID reading support Binbin Zhou
2025-07-22 9:11 ` [PATCH v1 4/8] mtd: rawnand: loongson: Add nand chip select support Binbin Zhou
2025-07-22 9:11 ` [PATCH v1 5/8] dt-bindings: mtd: loongson,ls1b-nand-controller: Document the Loongson-2K0500 NAND controller Binbin Zhou
2025-07-23 4:51 ` Rob Herring (Arm)
2025-07-22 9:11 ` [PATCH v1 6/8] mtd: rawnand: loongson: Add Loongson-2K0500 NAND controller support Binbin Zhou
2025-07-22 9:11 ` [PATCH v1 7/8] dt-bindings: mtd: loongson,ls1b-nand-controller: Document the Loongson-2K1000 NAND controller Binbin Zhou
2025-07-23 4:53 ` Rob Herring [this message]
2025-07-23 6:56 ` Binbin Zhou
2025-07-22 9:11 ` [PATCH v1 8/8] mtd: rawnand: loongson: Add Loongson-2K1000 NAND controller support Binbin Zhou
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=20250723045322.GA1226341-robh@kernel.org \
--to=robh@kernel.org \
--cc=chenhuacai@kernel.org \
--cc=chenhuacai@loongson.cn \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=keguang.zhang@gmail.com \
--cc=kernel@xen0n.name \
--cc=krzk+dt@kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=loongarch@lists.linux.dev \
--cc=miquel.raynal@bootlin.com \
--cc=richard@nod.at \
--cc=vigneshr@ti.com \
--cc=zhoubb.aaron@gmail.com \
--cc=zhoubinbin@loongson.cn \
/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;
as well as URLs for NNTP newsgroup(s).