Move the Waveshare panels description into separate document, so they
can be properly described with compatible = "waveshare,...", "panel-dpi"
and attached to "waveshare,dsi2dpi" bridge.

While these panels are described as DPI panels, they are generally part
of a larger unit in non-removable metal casing, so the actual internal
configuration is not known. It is likely that internally, those panels
are LVDS panels, connected to ICN6211 DSI-to-DPI bridge and then another
unknown DPI-to-LVDS bridge.

Signed-off-by: Marek Vasut <[email protected]>
---
Cc: Conor Dooley <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: Jessica Zhang <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Maarten Lankhorst <[email protected]>
Cc: Magnus Damm <[email protected]>
Cc: Maxime Ripard <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Cc: Simona Vetter <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Thomas Zimmermann <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
 .../bindings/display/panel/panel-simple.yaml  |  4 ---
 .../bindings/display/panel/waveshare,dpi.yaml | 32 +++++++++++++++++++
 2 files changed, 32 insertions(+), 4 deletions(-)
 create mode 100644 
Documentation/devicetree/bindings/display/panel/waveshare,dpi.yaml

diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml 
b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
index e4a5b30ccfc93..62bfc3f4fee14 100644
--- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
+++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
@@ -335,10 +335,6 @@ properties:
       - vivax,tpc9150-panel
         # VXT 800x480 color TFT LCD panel
       - vxt,vl050-8048nt-c01
-        # Waveshare 13.3" FHD (1920x1080) LCD panel
-      - waveshare,13.3inch-panel
-        # Waveshare 7.0" WSVGA (1024x600) LCD panel
-      - waveshare,7.0inch-c-panel
         # Winstar Display Corporation 3.5" QVGA (320x240) TFT LCD panel
       - winstar,wf35ltiacd
         # Yes Optoelectronics YTC700TLAG-05-201C 7" TFT LCD panel
diff --git a/Documentation/devicetree/bindings/display/panel/waveshare,dpi.yaml 
b/Documentation/devicetree/bindings/display/panel/waveshare,dpi.yaml
new file mode 100644
index 0000000000000..40a6a8e98cc33
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/panel/waveshare,dpi.yaml
@@ -0,0 +1,32 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/waveshare,dpi.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Waveshare Touch Display
+
+maintainers:
+  - Marek Vasut <[email protected]>
+
+allOf:
+  - $ref: panel-dpi.yaml#
+
+properties:
+  compatible:
+    items:
+      - enum:
+          - waveshare,13.3inch-panel
+          - waveshare,7.0inch-c-panel
+      - {} # panel-dpi, but not listed here to avoid false select
+
+  height-mm: true
+  label: true
+  panel-timing: true
+  port: true
+  power-supply: true
+  width-mm: true
+
+additionalProperties: false
+
+...
-- 
2.51.0

Reply via email to