All of lore.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: 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
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Subject: [PATCH 5/5] dt-bindings: gpu: samsung-scaler: constrain iommus and power-domains
Date: Sun, 12 Nov 2023 19:44:03 +0100	[thread overview]
Message-ID: <20231112184403.3449-5-krzysztof.kozlowski@linaro.org> (raw)
In-Reply-To: <20231112184403.3449-1-krzysztof.kozlowski@linaro.org>

Provide specific constraints for iommus and power-domains, based on
current DTS.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 .../devicetree/bindings/gpu/samsung-scaler.yaml      | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/gpu/samsung-scaler.yaml b/Documentation/devicetree/bindings/gpu/samsung-scaler.yaml
index e08fc1e4115f..9fb530e65d0e 100644
--- a/Documentation/devicetree/bindings/gpu/samsung-scaler.yaml
+++ b/Documentation/devicetree/bindings/gpu/samsung-scaler.yaml
@@ -29,8 +29,12 @@ properties:
     minItems: 1
     maxItems: 3
 
-  iommus: {}
-  power-domains: {}
+  iommus:
+    minItems: 1
+    maxItems: 2
+
+  power-domains:
+    maxItems: 1
 
 required:
   - compatible
@@ -54,6 +58,8 @@ allOf:
         clock-names:
           items:
             - const: mscl
+        iommus:
+          minItems: 2
 
     else:
       properties:
@@ -67,6 +73,8 @@ allOf:
             - const: pclk
             - const: aclk
             - const: aclk_xiu
+        iommus:
+          maxItems: 1
 
 additionalProperties: false
 
-- 
2.34.1


  parent reply	other threads:[~2023-11-12 18:44 UTC|newest]

Thread overview: 25+ 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
2023-11-13 13:50     ` Conor Dooley
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-13 13:51     ` Conor Dooley
2023-11-16 16:28     ` Rob Herring
2023-11-16 16:28       ` Rob Herring
2023-11-16 17:17       ` Krzysztof Kozlowski
2023-11-16 17:17         ` Krzysztof Kozlowski
2023-11-16 17:24         ` Conor Dooley
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-13 13:49     ` Conor Dooley
2023-11-12 18:44 ` Krzysztof Kozlowski [this message]
2023-11-13 13:49   ` [PATCH 5/5] dt-bindings: gpu: samsung-scaler: " Conor Dooley
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-13 13:48   ` Conor Dooley
2023-11-14 15:21 ` Rob Herring
2023-11-14 15:21   ` Rob Herring
2023-12-08 13:20 ` 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=20231112184403.3449-5-krzysztof.kozlowski@linaro.org \
    --to=krzysztof.kozlowski@linaro.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=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 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.