Thread (4 messages) 4 messages, 3 authors, 2024-08-19

Re: [PATCH] dt-bindings: samsung: exynos-usi: add missing constraints

From: Sam Protsenko <semen.protsenko@linaro.org>
Date: 2024-08-19 18:26:43
Also in: linux-devicetree, linux-samsung-soc, lkml

On Sun, Aug 18, 2024 at 12:28 PM Krzysztof Kozlowski
[off-list ref] wrote:
Properties with variable number of items per each device are expected to
have widest constraints in top-level "properties:" block and further
customized (narrowed) in "if:then:".  Add missing top-level constraints
for reg, clocks and clock-names.

Signed-off-by: Krzysztof Kozlowski <redacted>
---
Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
quoted hunk ↗ jump to hunk
 .../bindings/soc/samsung/exynos-usi.yaml          | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/Documentation/devicetree/bindings/soc/samsung/exynos-usi.yaml b/Documentation/devicetree/bindings/soc/samsung/exynos-usi.yaml
index 8b478d6cdc30..f80fcbc3128b 100644
--- a/Documentation/devicetree/bindings/soc/samsung/exynos-usi.yaml
+++ b/Documentation/devicetree/bindings/soc/samsung/exynos-usi.yaml
@@ -32,11 +32,16 @@ properties:
       - enum:
           - samsung,exynos850-usi

-  reg: true
+  reg:
+    maxItems: 1

-  clocks: true
+  clocks:
+    maxItems: 2

-  clock-names: true
+  clock-names:
+    items:
+      - const: pclk
+      - const: ipclk

   ranges: true
@@ -113,9 +118,7 @@ then:
         - description: Operating clock for UART/SPI/I2C protocol

     clock-names:
-      items:
-        - const: pclk
-        - const: ipclk
+      maxItems: 2

   required:
     - reg
--
2.43.0
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help