Commit 90ed42ce authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Neil Armstrong
Browse files

dt-bindings: display: novatek, nt36523: define ports



The panel-common schema does not define what "ports" property is, so
bring the definition by referencing the panel-common-dual.yaml. Panels
can be single- or dual-link, depending on the compatible, thus add
if:then:else: block narrowing ports per variant.

Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20240325103611.28240-3-krzysztof.kozlowski@linaro.org


Signed-off-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240325103611.28240-3-krzysztof.kozlowski@linaro.org
parent 1f6612e6
Loading
Loading
Loading
Loading
+20 −5
Original line number Diff line number Diff line
@@ -14,9 +14,6 @@ description: |
  panels. Support video mode panels from China Star Optoelectronics
  Technology (CSOT) and BOE Technology.

allOf:
  - $ref: panel-common.yaml#

properties:
  compatible:
    oneOf:
@@ -38,7 +35,6 @@ properties:
    description: regulator that supplies the I/O voltage

  reg: true
  ports: true
  rotation: true
  backlight: true

@@ -47,7 +43,26 @@ required:
  - reg
  - vddio-supply
  - reset-gpios
  - ports

allOf:
  - $ref: panel-common-dual.yaml#
  - if:
      properties:
        compatible:
          contains:
            enum:
              - novatek,nt36523w
    then:
      properties:
        ports:
          properties:
            port@1: false
    else:
      properties:
        port: false
        ports:
          required:
            - port@1

unevaluatedProperties: false