]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
dt-bindings: display: panel-simple-dsi: allow vddio variant
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 26 Mar 2023 15:54:22 +0000 (17:54 +0200)
committerRob Herring <robh@kernel.org>
Wed, 29 Mar 2023 19:34:47 +0000 (14:34 -0500)
Few panels like Samsung s6e3fc2x01 and sofef00 use vddio-supply instead
of power-supply (in DTS and Linux driver), so allow it to fix:

  sdm845-oneplus-enchilada.dtb: panel@0: 'power-supply' is a required property

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20230326155425.91181-3-krzysztof.kozlowski@linaro.org
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/display/panel/panel-simple-dsi.yaml

index 2c00813f5d205848049268610ef1ed72f3c8704a..90c04cff82812005d781df35c9fd2f1ace019531 100644 (file)
@@ -19,9 +19,6 @@ description: |
 
   If the panel is more advanced a dedicated binding file is required.
 
-allOf:
-  - $ref: panel-common.yaml#
-
 properties:
 
   compatible:
@@ -67,12 +64,31 @@ properties:
   reset-gpios: true
   port: true
   power-supply: true
+  vddio-supply: true
+
+allOf:
+  - $ref: panel-common.yaml#
+  - if:
+      properties:
+        compatible:
+          enum:
+            - samsung,s6e3fc2x01
+            - samsung,sofef00
+    then:
+      properties:
+        power-supply: false
+      required:
+        - vddio-supply
+    else:
+      properties:
+        vddio-supply: false
+      required:
+        - power-supply
 
 additionalProperties: false
 
 required:
   - compatible
-  - power-supply
   - reg
 
 examples: