Skip to contentSkip to conversation

Add support for Waveshare DSI2DPI unit

PATCH Superseded Joseph Guo 3 participants 8 messages Jul 16, 2025 – Jul 24, 2025

Subsystems (5)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Joseph Guo

author
#0 lore raw

cover Add support for Waveshare DSI2DPI unit

This patchset add support for waveshare DSI2DPI unit.

---
Joseph Guo (3):
dt-bindings: display: bridge: Add waveshare DSI2DPI unit support
dt-bindings: display: panel: Add waveshare DPI panel support
drm: bridge: Add waveshare DSI2DPI unit driver

 .../bindings/display/bridge/waveshare,dsi2dpi.yaml | 103 ++++++++++
 .../bindings/display/panel/panel-simple.yaml       |   4 +
 drivers/gpu/drm/bridge/Kconfig                     |  11 ++
 drivers/gpu/drm/bridge/Makefile                    |   1 +
 drivers/gpu/drm/bridge/waveshare-dsi.c             | 210 +++++++++++++++++++++
 5 files changed, 329 insertions(+)

---
base-commit: 0952d89c3acf6590b89bcfb8505595d7c0e6f367
change-id: 20250715-waveshare-dad93ea9980f

Best regards,

Signature · 1 line
Joseph Guo <[email protected]>
author
#1 lore raw

PATCH 1/3 dt-bindings: display: bridge: Add waveshare DSI2DPI unit support

Add dt-binding documentation for waveshare DSI2DPI unit

---
 .../bindings/display/bridge/waveshare,dsi2dpi.yaml | 103 +++++++++++++++++++++
 1 file changed, 103 insertions(+)
Documentation/devicetree/bindings/display/bridge/waveshare,dsi2dpi.yaml new file +103 -0
new file mode 100644
index 0000000000000000000000000000000000000000..678922ebe138ec2fa7bd05902947a86ec73fc644
@@ -0,0 +1,103 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/bridge/waveshare,dsi2dpi.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Waveshare MIPI-DSI to DPI Converter bridge
+
+maintainers:
+  - Joseph Guo <[email protected]>
+
+description:
+  Waveshare bridge board is part of Waveshare panel which converts DSI to DPI.
+
+properties:
+  compatible:
+    const: waveshare,dsi2dpi
+
+  reg:
+    maxItems: 1
+    description: base I2C address of the device
+
+  power-supply: true
+
+  ports:
+    $ref: /schemas/graph.yaml#/properties/ports
+
+    properties:
+      port@0:
+        $ref: /schemas/graph.yaml#/$defs/port-base
+        unevaluatedProperties: false
+        description:
+          Video port for MIPI DSI input
+
+        properties:
+          endpoint:
+            $ref: /schemas/media/video-interfaces.yaml#
+            unevaluatedProperties: false
+
+            properties:
+              data-lanes:
+                description: array of physical DSI data lane indexes.
+                items:
+                  - const: 1
+                  - const: 2
+
+            required:
+              - data-lanes
+
+      port@1:
+        $ref: /schemas/graph.yaml#/properties/port
+        description:
+          Video port for MIPI DPI output panel.
+
+    required:
+      - port@0
+      - port@1
+
+required:
+  - compatible
+  - reg
+  - ports
+  - power-supply
+
+additionalProperties: false
+
+examples:
+  - |
+
+    i2c0 {
+      #address-cells = <1>;
+      #size-cells = <0>;
+
+      bridge@45 {
+        compatible = "waveshare,dsi2dpi";
+        reg = <0x45>;
+        power-supply = <&reg_3p3v>;
+
+        ports {
+          #address-cells = <1>;
+          #size-cells = <0>;
+
+          port@0 {
+            reg = <0>;
+
+            waveshare_from_dsim: endpoint {
+              data-lanes = <1 2>;
+              remote-endpoint = <&dsim_to_waveshare>;
+            };
+          };
+
+          port@1 {
+            reg = <1>;
+
+            waveshare_to_panel: endpoint {
+              remote-endpoint = <&panel_to_waveshare>;
+            };
+          };
+        };
+      };
+    };
+
+...
Signature · 1 line
2.34.1
author
#3 lore raw

PATCH 2/3 dt-bindings: display: panel: Add waveshare DPI panel support

In reply to Joseph Guo

Add dt-binding documentation for waveshare DPI panel

---
 Documentation/devicetree/bindings/display/panel/panel-simple.yaml | 4 ++++
 1 file changed, 4 insertions(+)
Documentation/devicetree/bindings/display/panel/panel-simple.yaml +4 -0
index b89e3979057911ab9e669e97e71c16578d9e0150..16465fe3333948909c5d1fdc2a4ddf231bfbce70 100644
@@ -301,6 +301,10 @@ 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
Signature · 1 line
2.34.1
author
#7 lore raw

PATCH 3/3 drm: bridge: Add waveshare DSI2DPI unit driver

In reply to Joseph Guo

Waveshare touchscreen consists of a DPI panel and a driver board. The waveshare driver board consists of ICN6211 and a MCU to convert DSI to DPI and control the backlight.
This driver treats the MCU and ICN6211 board as a whole unit. It can support all resolution waveshare DSI2DPI based panel, the timing table should come from 'panel-dpi' panel in the device tree.

---
 drivers/gpu/drm/bridge/Kconfig         |  11 ++
 drivers/gpu/drm/bridge/Makefile        |   1 +
 drivers/gpu/drm/bridge/waveshare-dsi.c | 210 +++++++++++++++++++++++++++++++++
 3 files changed, 222 insertions(+)
drivers/gpu/drm/bridge/Kconfig +11 -0
index cb3b797fcea1c73e83c9187fef6582296b340305..26fec25c61ed7d950c094e0224f1196946079485 100644
@@ -472,4 +472,15 @@ config DRM_ITE_IT6161
 	help
 	  ITE IT6161 bridge chip driver.
 
+config DRM_WAVESHARE_BRIDGE
+	tristate "Waveshare DSI bridge"
+	depends on OF
+	select DRM_PANEL_BRIDGE
+	select DRM_KMS_HELPER
+	select DRM_MIPI_DSI
+	select REGMAP_I2C
+	help
+	  Driver for waveshare DSI to DPI bridge board.
+	  Please say Y if you have such hardware
+
 endmenu
drivers/gpu/drm/bridge/Makefile +1 -0
index d1db90688a150fdc3a5fd40acebe740798c452b0..3caa4d8f71675804328aa5a51ec67b2587938621 100644
@@ -48,3 +48,4 @@ obj-$(CONFIG_DRM_ITE_IT6263) += it6263.o
 obj-$(CONFIG_DRM_ITE_IT6161) += it6161.o
 obj-$(CONFIG_DRM_SEC_MIPI_DSIM) += sec-dsim.o
 obj-$(CONFIG_DRM_NXP_SEIKO_43WVFIG) += nxp-seiko-43wvfig.o
+obj-$(CONFIG_DRM_WAVESHARE_BRIDGE) += waveshare-dsi.o
drivers/gpu/drm/bridge/waveshare-dsi.c new file +210 -0

210 lines not on this page · raw message

Signature · 1 line
2.34.1
maintainer Reviewed-by on v1 1/3
#2 lore raw

Re: [PATCH 1/3] dt-bindings: display: bridge: Add waveshare DSI2DPI unit support

In reply to Joseph Guo
Quoted 73 lines · Joseph Guo

Add dt-binding documentation for waveshare DSI2DPI unit

---
 .../bindings/display/bridge/waveshare,dsi2dpi.yaml | 103 +++++++++++++++++++++
 1 file changed, 103 insertions(+)
Documentation/devicetree/bindings/display/bridge/waveshare,dsi2dpi.yaml new file +60 -0
new file mode 100644
index 0000000000000000000000000000000000000000..678922ebe138ec2fa7bd05902947a86ec73fc644
@@ -0,0 +1,103 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/bridge/waveshare,dsi2dpi.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Waveshare MIPI-DSI to DPI Converter bridge
+
+maintainers:
+  - Joseph Guo <[email protected]>
+
+description:
+  Waveshare bridge board is part of Waveshare panel which converts DSI to DPI.
+
+properties:
+  compatible:
+    const: waveshare,dsi2dpi
+
+  reg:
+    maxItems: 1
+    description: base I2C address of the device
+
+  power-supply: true
+
+  ports:
+    $ref: /schemas/graph.yaml#/properties/ports
+
+    properties:
+      port@0:
+        $ref: /schemas/graph.yaml#/$defs/port-base
+        unevaluatedProperties: false
+        description:
+          Video port for MIPI DSI input
+
+        properties:
+          endpoint:
+            $ref: /schemas/media/video-interfaces.yaml#
+            unevaluatedProperties: false
+
+            properties:
+              data-lanes:
+                description: array of physical DSI data lane indexes.
+                items:
+                  - const: 1
+                  - const: 2
+
+            required:
+              - data-lanes
+
+      port@1:
+        $ref: /schemas/graph.yaml#/properties/port
+        description:
+          Video port for MIPI DPI output panel.
+
+    required:
+      - port@0
+      - port@1
+
+required:
+  - compatible

Documentation/devicetree/bindings/display/bridge/waveshare,dsi2dpi.yaml line 70

Quoted 10 lines
Documentation/devicetree/bindings/display/bridge/waveshare,dsi2dpi.yaml new file +10 -0
+  - reg
+  - ports
+  - power-supply
+
+additionalProperties: false
+
+examples:
+  - |
+
+    i2c0 {

i2c {

Otherwise,

author
#5 lore raw

RE: [EXT] Re: [PATCH 2/3] dt-bindings: display: panel: Add waveshare DPI panel support

HI,

Quoted 27 lines

-----Original Message-----
From: Rob Herring (Arm) <[email protected]>
Sent: Monday, July 21, 2025 6:53 AM
To: Joseph Guo <[email protected]>
Cc: Robert Foss <[email protected]>; Maxime Ripard <[email protected]>; Thomas Zimmermann <[email protected]>; dri- [email protected]; Maarten Lankhorst <[email protected]>; Simona Vetter <[email protected]>; Laurent Pinchart <[email protected]>; Jonas Karlman <[email protected]>; David Airlie <[email protected]>; Andrzej Hajda <[email protected]>; [email protected]; Ying Liu <[email protected]>; Jessica Zhang <[email protected]>; Thierry Reding <[email protected]>; Sam Ravnborg <[email protected]>; Jernej Skrabec <[email protected]>; Neil Armstrong <[email protected]>; [email protected]; Krzysztof Kozlowski <[email protected]>; Conor Dooley <[email protected]>
Subject: [EXT] Re: [PATCH 2/3] dt-bindings: display: panel: Add waveshare DPI panel support

Caution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email' button

Quoted 2 lines · Joseph Guo

Add dt-binding documentation for waveshare DPI panel

Quoted 8 lines
Quoted 3 lines
---
 Documentation/devicetree/bindings/display/panel/panel-simple.yaml | 4

++++

Quoted 2 lines
 1 file changed, 4 insertions(+)

[Joseph] Thank you Rob. The PATCH 3/3 is not reviewed yet. Could you kindly take a look?

#6 lore raw

Re: [EXT] Re: [PATCH 2/3] dt-bindings: display: panel: Add waveshare DPI panel support

Quoted 4 lines · Joseph Guo
Quoted 3 lines
Quoted 1 line

[Joseph] Thank you Rob. The PATCH 3/3 is not reviewed yet. Could you kindly take a look?

Why? It is not relevant to DT.

Anyway, contentless pings after a week are not helping.

Best regards,
Krzysztof