From: Krzysztof Kozlowski <krzk@kernel.org>
To: Richard Genoud <richard.genoud@bootlin.com>,
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>, Chen-Yu Tsai <wens@csie.org>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Samuel Holland <samuel@sholland.org>
Cc: "Wentao Liang" <vulab@iscas.ac.cn>,
"Uwe Kleine-König" <u.kleine-koenig@baylibre.com>,
"Maxime Ripard" <mripard@kernel.org>,
"Thomas Petazzoni" <thomas.petazzoni@bootlin.com>,
linux-mtd@lists.infradead.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 02/15] dt-bindings: mtd: sunxi: Add new compatible
Date: Fri, 10 Oct 2025 10:45:56 +0200 [thread overview]
Message-ID: <414c16db-cdd1-433d-b0ae-915e11d964f0@kernel.org> (raw)
In-Reply-To: <20251010084042.341224-3-richard.genoud@bootlin.com>
On 10/10/2025 10:40, Richard Genoud wrote:
> The H616 NAND controller is quite different from the A10 and A23 ones,
> some registers offset changed, and some new one are introduced.
> Also, the DMA handling is different (it uses chained descriptors)
>
Subject: not new compatible, but "H616" or whatever device is called.
Otherwise every commit would be called like that making git log
--oneline useless.
> So, introduce a new compatible to represent this version of the IP.
>
> Signed-off-by: Richard Genoud <richard.genoud@bootlin.com>
> ---
> .../mtd/allwinner,sun4i-a10-nand.yaml | 56 ++++++++++++++-----
> 1 file changed, 43 insertions(+), 13 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml b/Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml
> index 054b6b8bf9b9..cc63091fe936 100644
> --- a/Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml
> +++ b/Documentation/devicetree/bindings/mtd/allwinner,sun4i-a10-nand.yaml
> @@ -6,34 +6,64 @@ $schema: http://devicetree.org/meta-schemas/core.yaml#
>
> title: Allwinner A10 NAND Controller
>
> -allOf:
> - - $ref: nand-controller.yaml
> -
> maintainers:
> - Chen-Yu Tsai <wens@csie.org>
> - Maxime Ripard <mripard@kernel.org>
>
> +allOf:
> + - $ref: nand-controller.yaml
If moving it, can you place it like in example-schema, so at the bottom,
above unevaluatedProps?
> +
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - allwinner,sun4i-a10-nand
> + - allwinner,sun8i-a23-nand-controller
> + then:
> + properties:
> + clocks:
> + items:
> + - description: Bus Clock
> + - description: Module Clock
> + clock-names:
> + items:
> + - const: ahb
> + - const: mod
> +
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - allwinner,sun50i-h616-nand-controller
> + then:
> + properties:
> + clocks:
> + items:
> + - description: Bus Clock
> + - description: Module Clock
> + - description: ECC Clock
> + - description: MBus Clock
> + clock-names:
> + items:
> + - const: ahb
> + - const: mod
> + - const: ecc
> + - const: mbus
> +
> properties:
> compatible:
> enum:
> - allwinner,sun4i-a10-nand
> - allwinner,sun8i-a23-nand-controller
> + - allwinner,sun50i-h616-nand-controller
> reg:
> maxItems: 1
>
> interrupts:
> maxItems: 1
>
> - clocks:
> - items:
> - - description: Bus Clock
> - - description: Module Clock
> -
> - clock-names:
> - items:
> - - const: ahb
> - - const: mod
You cannot remove it. Broadest constraints, see writing schema.
or my standard reference example:
https://elixir.bootlin.com/linux/v6.11-rc6/source/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml#L127
Best regards,
Krzysztof
next prev parent reply other threads:[~2025-10-10 8:46 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-10 8:40 [PATCH 00/15] Introduce Allwinner H6/H616 NAND controller support Richard Genoud
2025-10-10 8:40 ` [PATCH 01/15] mtd: rawnand: sunxi: Remove superfluous register readings Richard Genoud
2025-10-11 10:15 ` Jernej Škrabec
2025-10-10 8:40 ` [PATCH 02/15] dt-bindings: mtd: sunxi: Add new compatible Richard Genoud
2025-10-10 8:45 ` Krzysztof Kozlowski [this message]
2025-10-10 10:16 ` Richard GENOUD
2025-10-10 8:49 ` Krzysztof Kozlowski
2025-10-10 10:18 ` Richard GENOUD
2025-10-11 10:27 ` Jernej Škrabec
2025-10-13 11:56 ` Richard GENOUD
2025-10-10 8:40 ` [PATCH 03/15] arm64: dts: allwinner: h616: add NAND controller Richard Genoud
2025-10-10 8:47 ` Krzysztof Kozlowski
2025-10-10 10:22 ` Richard GENOUD
2025-10-10 10:24 ` Krzysztof Kozlowski
2025-10-11 10:33 ` Jernej Škrabec
2025-10-13 11:59 ` Richard GENOUD
2025-10-10 8:40 ` [PATCH 04/15] mtd: nand: sunxi: move ecc strenghts in sunxi_nfc_caps Richard Genoud
2025-10-11 10:41 ` Jernej Škrabec
2025-10-13 12:00 ` Richard GENOUD
2025-10-10 8:40 ` [PATCH 05/15] mtd: nand: sunxi: introduce reg_ecc_err_cnt " Richard Genoud
2025-10-10 8:40 ` [PATCH 06/15] mtd: nand: sunxi: introduce reg_user_data " Richard Genoud
2025-10-10 8:40 ` [PATCH 07/15] mtd: nand: sunxi: rework pattern found registers Richard Genoud
2025-10-10 8:40 ` [PATCH 08/15] mtd: nand: sunxi: add has_ecc_block_512 capability Richard Genoud
2025-10-10 8:40 ` [PATCH 09/15] mtd: nand: sunxi: introduce ecc_mode_mask in sunxi_nfc_caps Richard Genoud
2025-10-10 8:40 ` [PATCH 10/15] mtd: nand: sunxi: introduce random en/dir " Richard Genoud
2025-10-10 8:40 ` [PATCH 11/15] mtd: nand: sunxi: introduce reg_pat_id " Richard Genoud
2025-10-10 8:40 ` [PATCH 12/15] mtd: nand: sunxi: introduce reg_spare_area " Richard Genoud
2025-10-10 8:40 ` [PATCH 13/15] mtd: nand: sunxi: introduce ecc_err_mask " Richard Genoud
2025-10-10 8:40 ` [PATCH 14/15] mtd: nand: sunxi: introduce sram_size " Richard Genoud
2025-10-10 8:40 ` [PATCH 15/15] mtd: rawnand: sunxi: Add support for H616 nand controller Richard Genoud
2025-10-11 1:00 ` kernel test robot
2025-10-11 10:48 ` Jernej Škrabec
2025-10-13 12:01 ` Richard GENOUD
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=414c16db-cdd1-433d-b0ae-915e11d964f0@kernel.org \
--to=krzk@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jernej.skrabec@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=miquel.raynal@bootlin.com \
--cc=mripard@kernel.org \
--cc=richard.genoud@bootlin.com \
--cc=richard@nod.at \
--cc=robh@kernel.org \
--cc=samuel@sholland.org \
--cc=thomas.petazzoni@bootlin.com \
--cc=u.kleine-koenig@baylibre.com \
--cc=vigneshr@ti.com \
--cc=vulab@iscas.ac.cn \
--cc=wens@csie.org \
/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).