Commit 6b91e0ee authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Rob Herring
Browse files

dt-bindings: gpu: samsung: re-order entries to match coding convention



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: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: default avatarConor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20231112184403.3449-2-krzysztof.kozlowski@linaro.org


Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 64497773
Loading
Loading
Loading
Loading
+27 −26
Original line number Diff line number Diff line
@@ -27,7 +27,15 @@ properties:
  iommus: {}
  power-domains: {}

if:
required:
  - compatible
  - reg
  - interrupts
  - clocks
  - clock-names

allOf:
  - if:
      properties:
        compatible:
          contains:
@@ -53,13 +61,6 @@ else:
            - const: sclk_fimg2d
            - const: fimg2d

required:
  - compatible
  - reg
  - interrupts
  - clocks
  - clock-names

additionalProperties: false

examples:
+29 −30
Original line number Diff line number Diff line
@@ -26,7 +26,15 @@ properties:
  iommus: {}
  power-domains: {}

if:
required:
  - compatible
  - reg
  - interrupts
  - clocks
  - clock-names

allOf:
  - if:
      properties:
        compatible:
          contains:
@@ -37,7 +45,6 @@ then:
        clocks:
          items:
            - description: mscl clock

        clock-names:
          items:
            - const: mscl
@@ -49,20 +56,12 @@ else:
            - description: pclk clock
            - description: aclk clock
            - description: aclk_xiu clock

        clock-names:
          items:
            - const: pclk
            - const: aclk
            - const: aclk_xiu

required:
  - compatible
  - reg
  - interrupts
  - clocks
  - clock-names

additionalProperties: false

examples: