From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Cc: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>,
David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Magnus Damm <magnus.damm@gmail.com>,
dri-devel@lists.freedesktop.org,
linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] dt-bindings: display: renesas,du: narrow interrupts and resets per variants
Date: Sun, 18 Aug 2024 20:41:37 +0300 [thread overview]
Message-ID: <20240818174137.GC29465@pendragon.ideasonboard.com> (raw)
In-Reply-To: <20240818173003.122025-1-krzysztof.kozlowski@linaro.org>
Hi Krzysztof,
Thank you for the patch.
On Sun, Aug 18, 2024 at 07:30:02PM +0200, Krzysztof Kozlowski wrote:
> Each variable-length property like interrupts or resets must have fixed
> constraints on number of items for given variant in binding. The
> clauses in "if:then:" block should define both limits: upper and lower.
I thought that, when only one of minItems or maxItems was specified, the
other automatically defaulted to the same value. I'm pretty sure I
recall Rob asking me to drop one of the two in some bindings. Has the
rule changes ? Is it documented somewhere ?
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
> .../bindings/display/renesas,du.yaml | 22 +++++++++++++++++++
> 1 file changed, 22 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/display/renesas,du.yaml b/Documentation/devicetree/bindings/display/renesas,du.yaml
> index c5b9e6812bce..147842b6465a 100644
> --- a/Documentation/devicetree/bindings/display/renesas,du.yaml
> +++ b/Documentation/devicetree/bindings/display/renesas,du.yaml
> @@ -173,6 +173,7 @@ allOf:
> - pattern: '^dclkin\.[01]$'
>
> interrupts:
> + minItems: 2
> maxItems: 2
>
> resets:
> @@ -228,6 +229,7 @@ allOf:
> - pattern: '^dclkin\.[01]$'
>
> interrupts:
> + minItems: 2
> maxItems: 2
>
> resets:
> @@ -281,6 +283,7 @@ allOf:
> - pattern: '^dclkin\.[01]$'
>
> interrupts:
> + minItems: 2
> maxItems: 2
>
> resets:
> @@ -335,6 +338,7 @@ allOf:
> - pattern: '^dclkin\.[01]$'
>
> interrupts:
> + minItems: 2
> maxItems: 2
>
> resets:
> @@ -396,6 +400,7 @@ allOf:
> - pattern: '^dclkin\.[012]$'
>
> interrupts:
> + minItems: 3
> maxItems: 3
>
> resets:
> @@ -460,9 +465,11 @@ allOf:
> - pattern: '^dclkin\.[0123]$'
>
> interrupts:
> + minItems: 4
> maxItems: 4
>
> resets:
> + minItems: 2
> maxItems: 2
>
> reset-names:
> @@ -489,9 +496,11 @@ allOf:
>
> renesas,cmms:
> minItems: 4
> + maxItems: 4
>
> renesas,vsps:
> minItems: 4
> + maxItems: 4
>
> required:
> - clock-names
> @@ -531,9 +540,11 @@ allOf:
> - pattern: '^dclkin\.[012]$'
>
> interrupts:
> + minItems: 3
> maxItems: 3
>
> resets:
> + minItems: 2
> maxItems: 2
>
> reset-names:
> @@ -558,9 +569,11 @@ allOf:
>
> renesas,cmms:
> minItems: 3
> + maxItems: 3
>
> renesas,vsps:
> minItems: 3
> + maxItems: 3
>
> required:
> - clock-names
> @@ -600,9 +613,11 @@ allOf:
> - pattern: '^dclkin\.[013]$'
>
> interrupts:
> + minItems: 3
> maxItems: 3
>
> resets:
> + minItems: 2
> maxItems: 2
>
> reset-names:
> @@ -627,9 +642,11 @@ allOf:
>
> renesas,cmms:
> minItems: 3
> + maxItems: 3
>
> renesas,vsps:
> minItems: 3
> + maxItems: 3
>
> required:
> - clock-names
> @@ -684,6 +701,7 @@ allOf:
>
> renesas,vsps:
> minItems: 1
> + maxItems: 1
>
> required:
> - clock-names
> @@ -719,6 +737,7 @@ allOf:
> - pattern: '^dclkin\.[01]$'
>
> interrupts:
> + minItems: 2
> maxItems: 2
>
> resets:
> @@ -746,9 +765,11 @@ allOf:
>
> renesas,cmms:
> minItems: 2
> + maxItems: 2
>
> renesas,vsps:
> minItems: 2
> + maxItems: 2
>
> required:
> - clock-names
> @@ -799,6 +820,7 @@ allOf:
>
> renesas,vsps:
> minItems: 2
> + maxItems: 2
>
> required:
> - clock-names
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2024-08-18 17:42 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-18 17:30 [PATCH 1/2] dt-bindings: display: renesas,du: narrow interrupts and resets per variants Krzysztof Kozlowski
2024-08-18 17:30 ` [PATCH 1/2] dt-bindings: display: renesas, du: " Krzysztof Kozlowski
2024-08-18 17:30 ` [PATCH 2/2] dt-bindings: display: renesas,du: add top-level constraints Krzysztof Kozlowski
2024-08-18 17:30 ` [PATCH 2/2] dt-bindings: display: renesas, du: " Krzysztof Kozlowski
2024-08-18 17:46 ` [PATCH 2/2] dt-bindings: display: renesas,du: " Laurent Pinchart
2024-08-19 17:11 ` Conor Dooley
2024-08-18 17:41 ` Laurent Pinchart [this message]
2024-08-18 17:44 ` [PATCH 1/2] dt-bindings: display: renesas,du: narrow interrupts and resets per variants Krzysztof Kozlowski
2024-08-18 17:51 ` Laurent Pinchart
2024-08-18 18:48 ` Krzysztof Kozlowski
2024-08-28 12:45 ` Laurent Pinchart
2024-08-28 12:52 ` Krzysztof Kozlowski
2024-08-28 13:29 ` Laurent Pinchart
2024-08-19 17:12 ` Conor Dooley
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=20240818174137.GC29465@pendragon.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=airlied@gmail.com \
--cc=conor+dt@kernel.org \
--cc=daniel@ffwll.ch \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=geert+renesas@glider.be \
--cc=kieran.bingham+renesas@ideasonboard.com \
--cc=krzk+dt@kernel.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=magnus.damm@gmail.com \
--cc=mripard@kernel.org \
--cc=robh@kernel.org \
--cc=tzimmermann@suse.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.