From: Conor Dooley <conor@kernel.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>,
David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>,
Inki Dae <inki.dae@samsung.com>,
dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/5] dt-bindings: gpu: samsung: re-order entries to match coding convention
Date: Mon, 13 Nov 2023 13:50:47 +0000 [thread overview]
Message-ID: <20231113-tweet-batboy-c2867f2ceeee@squawk> (raw)
In-Reply-To: <20231112184403.3449-2-krzysztof.kozlowski@linaro.org>
[-- Attachment #1: Type: text/plain, Size: 4418 bytes --]
On Sun, Nov 12, 2023 at 07:44:00PM +0100, Krzysztof Kozlowski wrote:
> The Devicetree bindings coding convention, as used in most of the files
> and expressed in Documentation/devicetree/bindings/example-schema.yaml,
> expects "allOf:" block with if-statements after "required:" block.
>
> Re-order few schemas to match the convention to avoid repeating review
> comments for new patches using existing code as template. No functional
> changes.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
thanks,
Conor,
> ---
> .../devicetree/bindings/gpu/samsung-g2d.yaml | 53 +++++++++--------
> .../bindings/gpu/samsung-scaler.yaml | 59 +++++++++----------
> 2 files changed, 56 insertions(+), 56 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/gpu/samsung-g2d.yaml b/Documentation/devicetree/bindings/gpu/samsung-g2d.yaml
> index e7daae862578..b6951acc7643 100644
> --- a/Documentation/devicetree/bindings/gpu/samsung-g2d.yaml
> +++ b/Documentation/devicetree/bindings/gpu/samsung-g2d.yaml
> @@ -27,32 +27,6 @@ properties:
> iommus: {}
> power-domains: {}
>
> -if:
> - properties:
> - compatible:
> - contains:
> - const: samsung,exynos5250-g2d
> -
> -then:
> - properties:
> - clocks:
> - items:
> - - description: fimg2d clock
> - clock-names:
> - items:
> - - const: fimg2d
> -
> -else:
> - properties:
> - clocks:
> - items:
> - - description: sclk_fimg2d clock
> - - description: fimg2d clock
> - clock-names:
> - items:
> - - const: sclk_fimg2d
> - - const: fimg2d
> -
> required:
> - compatible
> - reg
> @@ -60,6 +34,33 @@ required:
> - clocks
> - clock-names
>
> +allOf:
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: samsung,exynos5250-g2d
> +
> + then:
> + properties:
> + clocks:
> + items:
> + - description: fimg2d clock
> + clock-names:
> + items:
> + - const: fimg2d
> +
> + else:
> + properties:
> + clocks:
> + items:
> + - description: sclk_fimg2d clock
> + - description: fimg2d clock
> + clock-names:
> + items:
> + - const: sclk_fimg2d
> + - const: fimg2d
> +
> additionalProperties: false
>
> examples:
> diff --git a/Documentation/devicetree/bindings/gpu/samsung-scaler.yaml b/Documentation/devicetree/bindings/gpu/samsung-scaler.yaml
> index 5317ac64426a..97d86a002a90 100644
> --- a/Documentation/devicetree/bindings/gpu/samsung-scaler.yaml
> +++ b/Documentation/devicetree/bindings/gpu/samsung-scaler.yaml
> @@ -26,36 +26,6 @@ properties:
> iommus: {}
> power-domains: {}
>
> -if:
> - properties:
> - compatible:
> - contains:
> - const: samsung,exynos5420-scaler
> -
> -then:
> - properties:
> - clocks:
> - items:
> - - description: mscl clock
> -
> - clock-names:
> - items:
> - - const: mscl
> -
> -else:
> - properties:
> - clocks:
> - items:
> - - description: pclk clock
> - - description: aclk clock
> - - description: aclk_xiu clock
> -
> - clock-names:
> - items:
> - - const: pclk
> - - const: aclk
> - - const: aclk_xiu
> -
> required:
> - compatible
> - reg
> @@ -63,6 +33,35 @@ required:
> - clocks
> - clock-names
>
> +allOf:
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: samsung,exynos5420-scaler
> +
> + then:
> + properties:
> + clocks:
> + items:
> + - description: mscl clock
> + clock-names:
> + items:
> + - const: mscl
> +
> + else:
> + properties:
> + clocks:
> + items:
> + - description: pclk clock
> + - description: aclk clock
> + - description: aclk_xiu clock
> + clock-names:
> + items:
> + - const: pclk
> + - const: aclk
> + - const: aclk_xiu
> +
> additionalProperties: false
>
> examples:
> --
> 2.34.1
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2023-11-13 13:50 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-12 18:43 [PATCH 1/5] dt-bindings: gpu: samsung-rotator: drop redundant quotes Krzysztof Kozlowski
2023-11-12 18:44 ` [PATCH 2/5] dt-bindings: gpu: samsung: re-order entries to match coding convention Krzysztof Kozlowski
2023-11-13 13:50 ` Conor Dooley [this message]
2023-11-12 18:44 ` [PATCH 3/5] dt-bindings: gpu: samsung: constrain clocks in top-level properties Krzysztof Kozlowski
2023-11-13 13:51 ` Conor Dooley
2023-11-16 16:28 ` Rob Herring
2023-11-16 17:17 ` Krzysztof Kozlowski
2023-11-16 17:24 ` Conor Dooley
2023-11-12 18:44 ` [PATCH 4/5] dt-bindings: gpu: samsung-g2d: constrain iommus and power-domains Krzysztof Kozlowski
2023-11-13 13:49 ` Conor Dooley
2023-11-12 18:44 ` [PATCH 5/5] dt-bindings: gpu: samsung-scaler: " Krzysztof Kozlowski
2023-11-13 13:49 ` Conor Dooley
2023-11-13 13:48 ` [PATCH 1/5] dt-bindings: gpu: samsung-rotator: drop redundant quotes Conor Dooley
2023-11-14 15:21 ` Rob Herring
2023-12-08 13:20 ` Rob Herring
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=20231113-tweet-batboy-c2867f2ceeee@squawk \
--to=conor@kernel.org \
--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=inki.dae@samsung.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=robh+dt@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 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).