Skip to contentSkip to conversation

drm/panel: Add panel driver for ChipWealth CH13726A based panels

RFC PATCH Superseded Aaron Kling 2 participants 7 messages Feb 22 – Mar 4

Subsystems (4)

v1 of 7 Superseded Latest is v7 →

lore
Share & tools
lore
#0 lore raw

cover drm/panel: Add panel driver for ChipWealth CH13726A based panels

This series is marked RFC because there is no ongoing maintainer to list. I am willing to put in the effort to get this submitted in a good and maintainable state, but I cannot promise ongoing support for it. I see that Neil Armstrong is listed at the general panel maintainer. Is it okay to list you in the binding? If not, is there someone willing to take over once this is approved for merge? There are three more new panel drivers related to AYN qcs8550 support as well.

This driver is based on the one by Teguh Sobirin [0], cut down to only support the AYN Thor bottom panel.

[0] https://github.com/AYNTechnologies/linux/commit/d0ff75b09e66023c5f88992706dee4601aa7a437

---
Aaron Kling (1):
dt-bindings: display: panel: Add ChipWealth CH13726A AMOLED driver bindings

Teguh Sobirin (1):
drm/panel: Add panel driver for ChipWealth CH13726A based panels

 .../display/panel/chipwealth,ch13726a.yaml         |  66 +++++
 drivers/gpu/drm/panel/Kconfig                      |  11 +
 drivers/gpu/drm/panel/Makefile                     |   1 +
 drivers/gpu/drm/panel/panel-chipwealth-ch13726a.c  | 296 +++++++++++++++++++++
 4 files changed, 374 insertions(+)

---
base-commit: fe9e3edb6a215515d1148d32a5c445c5bdd7916f
change-id: 20260220-ch13726a-59c6678d53d8
prerequisite-change-id: 20260220-ayn-vendor-a153168c29b2:v1
prerequisite-patch-id: 042cab8f04748207ba5395dd0f23c445955aaa2b

Best regards,

Signature · 1 line
Aaron Kling <[email protected]>
#1 lore raw

RFC PATCH 1/2 dt-bindings: display: panel: Add ChipWealth CH13726A AMOLED driver bindings

The Chip Wealth Technology CH13726A display driver is a single chip solution for AMOLED using MIPI-DSI. This is used for the AYN Thor bottom panel.

---
 .../display/panel/chipwealth,ch13726a.yaml         | 66 ++++++++++++++++++++++
 1 file changed, 66 insertions(+)
Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml new file +66 -0
new file mode 100644
index 0000000000000000000000000000000000000000..890984b00c341285066176995e6a973c5607cbde
@@ -0,0 +1,66 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/chipwealth,ch13726a.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Chip Wealth Technology CH13726A display driver
+
+maintainers:
+  - Place Holder <[email protected]>
+
+description:
+  Chip Wealth Technology CH13726A is a single-chip solution
+  for AMOLED connected using a MIPI-DSI video interface.
+
+allOf:
+  - $ref: panel-common.yaml#
+
+properties:
+  compatible:
+    const: ayntec,thor-panel-bottom
+
+  port: true
+  reg:
+    maxItems: 1
+    description: DSI virtual channel
+
+  vdd-supply: true
+  vddio-supply: true
+  vdd1v2-supply: true
+  avdd-supply: true
+
+  reset-gpios: true
+
+  rotation: true
+
+required:
+  - compatible
+  - reg
+  - vdd-supply
+  - vddio-supply
+  - vdd1v2-supply
+  - avdd-supply
+  - reset-gpios
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    dsi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+        panel@0 {
+            compatible = "ayntec,thor-panel-bottom";
+            reg = <0>;
+            vdd1v2-supply = <&vreg_l11b_1p2>;
+            vddio-supply = <&vdd_disp_1v8>;
+            vdd-supply = <&vreg_l13b_3p0>;
+            avdd-supply = <&vdd_disp2_2v8>;
+            reset-gpios = <&tlmm 133 GPIO_ACTIVE_HIGH>;
+        };
+    };
+
+...
Signature · 1 line
2.52.0
maintainer
#2 lore raw

Re: [PATCH RFC 1/2] dt-bindings: display: panel: Add ChipWealth CH13726A AMOLED driver bindings

Quoted 17 lines · On 2/22/26 23:26, Aaron Kling via B4 Relay wrote:

From: Aaron Kling <[email protected]>

The Chip Wealth Technology CH13726A display driver is a single chip solution for AMOLED using MIPI-DSI. This is used for the AYN Thor bottom panel.

---
  .../display/panel/chipwealth,ch13726a.yaml         | 66 ++++++++++++++++++++++
  1 file changed, 66 insertions(+)
Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml new file +0 -0
new file mode 100644
index 0000000000000000000000000000000000000000..890984b00c341285066176995e6a973c5607cbde

Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml line 10

Quoted 10 lines
Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml new file +10 -0
@@ -0,0 +1,66 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/chipwealth,ch13726a.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Chip Wealth Technology CH13726A display driver
+
+maintainers:
+  - Place Holder <[email protected]>

??

Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml line 21

Quoted 11 lines
Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml new file +11 -0
+
+description:
+  Chip Wealth Technology CH13726A is a single-chip solution
+  for AMOLED connected using a MIPI-DSI video interface.
+
+allOf:
+  - $ref: panel-common.yaml#
+
+properties:
+  compatible:
+    const: ayntec,thor-panel-bottom

??? why not chipwealth,ch13726a ??

Quoted 46 lines
Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml new file +45 -0
+
+  port: true
+  reg:
+    maxItems: 1
+    description: DSI virtual channel
+
+  vdd-supply: true
+  vddio-supply: true
+  vdd1v2-supply: true
+  avdd-supply: true
+
+  reset-gpios: true
+
+  rotation: true
+
+required:
+  - compatible
+  - reg
+  - vdd-supply
+  - vddio-supply
+  - vdd1v2-supply
+  - avdd-supply
+  - reset-gpios
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    dsi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+        panel@0 {
+            compatible = "ayntec,thor-panel-bottom";
+            reg = <0>;
+            vdd1v2-supply = <&vreg_l11b_1p2>;
+            vddio-supply = <&vdd_disp_1v8>;
+            vdd-supply = <&vreg_l13b_3p0>;
+            avdd-supply = <&vdd_disp2_2v8>;
+            reset-gpios = <&tlmm 133 GPIO_ACTIVE_HIGH>;
+        };
+    };
+
+...
#3 lore raw

Re: [PATCH RFC 1/2] dt-bindings: display: panel: Add ChipWealth CH13726A AMOLED driver bindings

Quoted 23 lines · Neil Armstrong
Quoted 21 lines · On 2/22/26 23:26, Aaron Kling via B4 Relay wrote:

From: Aaron Kling <[email protected]>

The Chip Wealth Technology CH13726A display driver is a single chip solution for AMOLED using MIPI-DSI. This is used for the AYN Thor bottom panel.

---
  .../display/panel/chipwealth,ch13726a.yaml         | 66 ++++++++++++++++++++++
  1 file changed, 66 insertions(+)
Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml new file +4 -0
new file mode 100644
index 0000000000000000000000000000000000000000..890984b00c341285066176995e6a973c5607cbde
@@ -0,0 +1,66 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/chipwealth,ch13726a.yaml#
Quoted 8 lines

Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml line 10

Quoted 6 lines
Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml new file +6 -0
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Chip Wealth Technology CH13726A display driver
+
+maintainers:
+  - Place Holder <[email protected]>

??

Please see my reply on the cover [0].

Quoted 5 lines
Quoted 5 lines
Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml new file +5 -0
+
+description:
+  Chip Wealth Technology CH13726A is a single-chip solution
+  for AMOLED connected using a MIPI-DSI video interface.
+
Quoted 8 lines

Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml line 21

Quoted 6 lines
Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml new file +6 -0
+allOf:
+  - $ref: panel-common.yaml#
+
+properties:
+  compatible:
+    const: ayntec,thor-panel-bottom

??? why not chipwealth,ch13726a ??

Because this is a driver chip that supports multiple panels. The driver code I based on also supports the retroid pocket 5 panel, which has a different resolution. Similar naming is used in the rocktech jh057n00900 binding, which is why I picked this compatible.

Quoted 38 lines
Quoted 38 lines
Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml new file +38 -0
+
+  port: true
+  reg:
+    maxItems: 1
+    description: DSI virtual channel
+
+  vdd-supply: true
+  vddio-supply: true
+  vdd1v2-supply: true
+  avdd-supply: true
+
+  reset-gpios: true
+
+  rotation: true
+
+required:
+  - compatible
+  - reg
+  - vdd-supply
+  - vddio-supply
+  - vdd1v2-supply
+  - avdd-supply
+  - reset-gpios
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    dsi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+        panel@0 {
+            compatible = "ayntec,thor-panel-bottom";
+            reg = <0>;
+            vdd1v2-supply = <&vreg_l11b_1p2>;
+            vddio-supply = <&vdd_disp_1v8>;
Quoted 9 lines

Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml line 66

Quoted 8 lines
Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml new file +7 -0
+            vdd-supply = <&vreg_l13b_3p0>;
+            avdd-supply = <&vdd_disp2_2v8>;
+            reset-gpios = <&tlmm 133 GPIO_ACTIVE_HIGH>;
+        };
+    };
+
+...

Aaron

[0] https://lore.kernel.org/dri-devel/[email protected]/

maintainer
#4 lore raw

Re: [PATCH RFC 1/2] dt-bindings: display: panel: Add ChipWealth CH13726A AMOLED driver bindings

Quoted 34 lines · Aaron Kling
Quoted 23 lines · Neil Armstrong
Quoted 21 lines · On 2/22/26 23:26, Aaron Kling via B4 Relay wrote:

From: Aaron Kling <[email protected]>

The Chip Wealth Technology CH13726A display driver is a single chip solution for AMOLED using MIPI-DSI. This is used for the AYN Thor bottom panel.

---
   .../display/panel/chipwealth,ch13726a.yaml         | 66 ++++++++++++++++++++++
   1 file changed, 66 insertions(+)
Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml new file +4 -0
new file mode 100644
index 0000000000000000000000000000000000000000..890984b00c341285066176995e6a973c5607cbde
@@ -0,0 +1,66 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/chipwealth,ch13726a.yaml#
Quoted 8 lines

Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml line 10

Quoted 6 lines
Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml new file +6 -0
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Chip Wealth Technology CH13726A display driver
+
+maintainers:
+  - Place Holder <[email protected]>

??

Quoted 1 line

Please see my reply on the cover [0].

Sorry my bad, yes add me it's fine

Quoted 15 lines
Quoted 14 lines

Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml line 21

Quoted 12 lines
Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml new file +11 -0
+
+description:
+  Chip Wealth Technology CH13726A is a single-chip solution
+  for AMOLED connected using a MIPI-DSI video interface.
+
+allOf:
+  - $ref: panel-common.yaml#
+
+properties:
+  compatible:
+    const: ayntec,thor-panel-bottom

??? why not chipwealth,ch13726a ??

Quoted 4 lines

Because this is a driver chip that supports multiple panels. The driver code I based on also supports the retroid pocket 5 panel, which has a different resolution. Similar naming is used in the rocktech jh057n00900 binding, which is why I picked this compatible.

It doesn't work like that, add a compatible per physical device, not by driver. You can add common fallbacks if the panel is the same as another.

Quoted 52 lines
Quoted 39 lines
Quoted 39 lines
Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml new file +38 -0
+
+  port: true
+  reg:
+    maxItems: 1
+    description: DSI virtual channel
+
+  vdd-supply: true
+  vddio-supply: true
+  vdd1v2-supply: true
+  avdd-supply: true
+
+  reset-gpios: true
+
+  rotation: true
+
+required:
+  - compatible
+  - reg
+  - vdd-supply
+  - vddio-supply
+  - vdd1v2-supply
+  - avdd-supply
+  - reset-gpios
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    dsi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+        panel@0 {
+            compatible = "ayntec,thor-panel-bottom";
+            reg = <0>;
+            vdd1v2-supply = <&vreg_l11b_1p2>;
+            vddio-supply = <&vdd_disp_1v8>;
Quoted 9 lines

Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml line 66

Quoted 8 lines
Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml new file +7 -0
+            vdd-supply = <&vreg_l13b_3p0>;
+            avdd-supply = <&vdd_disp2_2v8>;
+            reset-gpios = <&tlmm 133 GPIO_ACTIVE_HIGH>;
+        };
+    };
+
+...

Aaron

[0] https://lore.kernel.org/dri-devel/[email protected]/

#5 lore raw

Re: [PATCH RFC 1/2] dt-bindings: display: panel: Add ChipWealth CH13726A AMOLED driver bindings

Quoted 55 lines · Neil Armstrong
Quoted 34 lines · Aaron Kling
Quoted 23 lines · Neil Armstrong
Quoted 21 lines · On 2/22/26 23:26, Aaron Kling via B4 Relay wrote:

From: Aaron Kling <[email protected]>

The Chip Wealth Technology CH13726A display driver is a single chip solution for AMOLED using MIPI-DSI. This is used for the AYN Thor bottom panel.

---
   .../display/panel/chipwealth,ch13726a.yaml         | 66 ++++++++++++++++++++++
   1 file changed, 66 insertions(+)
Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml new file +4 -0
new file mode 100644
index 0000000000000000000000000000000000000000..890984b00c341285066176995e6a973c5607cbde
@@ -0,0 +1,66 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/chipwealth,ch13726a.yaml#
Quoted 8 lines

Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml line 10

Quoted 6 lines
Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml new file +6 -0
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Chip Wealth Technology CH13726A display driver
+
+maintainers:
+  - Place Holder <[email protected]>

??

Quoted 1 line

Please see my reply on the cover [0].

Sorry my bad, yes add me it's fine

Quoted 15 lines
Quoted 14 lines

Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml line 21

Quoted 12 lines
Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml new file +11 -0
+
+description:
+  Chip Wealth Technology CH13726A is a single-chip solution
+  for AMOLED connected using a MIPI-DSI video interface.
+
+allOf:
+  - $ref: panel-common.yaml#
+
+properties:
+  compatible:
+    const: ayntec,thor-panel-bottom

??? why not chipwealth,ch13726a ??

Quoted 7 lines
Quoted 4 lines

Because this is a driver chip that supports multiple panels. The driver code I based on also supports the retroid pocket 5 panel, which has a different resolution. Similar naming is used in the rocktech jh057n00900 binding, which is why I picked this compatible.

It doesn't work like that, add a compatible per physical device, not by driver. You can add common fallbacks if the panel is the same as another.

So what should it look like then? The ch13726a is a chip that supports multiple panels. The one I'm adding here is a 1240x1080 panel, no idea what the manufacturer or model number is, just that it's used as the bottom panel in the AYN Thor. The chip also supports a 1080x1920 panel as found in the Retroid Pocket 5. Among many others. If the compatible is chipwealth,ch13726a and nothing else, then how is the driver to know what's plugged into the chip and what to report as the supported modes?

Quoted 53 lines
Quoted 52 lines
Quoted 39 lines
Quoted 39 lines
Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml new file +38 -0
+
+  port: true
+  reg:
+    maxItems: 1
+    description: DSI virtual channel
+
+  vdd-supply: true
+  vddio-supply: true
+  vdd1v2-supply: true
+  avdd-supply: true
+
+  reset-gpios: true
+
+  rotation: true
+
+required:
+  - compatible
+  - reg
+  - vdd-supply
+  - vddio-supply
+  - vdd1v2-supply
+  - avdd-supply
+  - reset-gpios
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    dsi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+        panel@0 {
+            compatible = "ayntec,thor-panel-bottom";
+            reg = <0>;
+            vdd1v2-supply = <&vreg_l11b_1p2>;
+            vddio-supply = <&vdd_disp_1v8>;
Quoted 9 lines

Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml line 66

Quoted 8 lines
Documentation/devicetree/bindings/display/panel/chipwealth,ch13726a.yaml new file +7 -0
+            vdd-supply = <&vreg_l13b_3p0>;
+            avdd-supply = <&vdd_disp2_2v8>;
+            reset-gpios = <&tlmm 133 GPIO_ACTIVE_HIGH>;
+        };
+    };
+
+...

Aaron

[0] https://lore.kernel.org/dri-devel/[email protected]/

#6 lore raw

RFC PATCH 2/2 drm/panel: Add panel driver for ChipWealth CH13726A based panels

In reply to Aaron Kling

From: Teguh Sobirin <[email protected]>

This is used by the AYN Thor for the bottom panel.

---
 drivers/gpu/drm/panel/Kconfig                     |  11 +
 drivers/gpu/drm/panel/Makefile                    |   1 +
 drivers/gpu/drm/panel/panel-chipwealth-ch13726a.c | 296 ++++++++++++++++++++++
 3 files changed, 308 insertions(+)
drivers/gpu/drm/panel/Kconfig +11 -0
index 307152ad77591af513086121813e6d52f9f5ed62..9791bf9850c3c29481afe46176aa474cf20ee0be 100644
@@ -105,6 +105,17 @@ config DRM_PANEL_BOE_TV101WUM_LL2
 	  Say Y here if you want to support for BOE TV101WUM-LL2
 	  WUXGA PANEL DSI Video Mode panel
 
+config DRM_PANEL_CHIPWEALTH_CH13726A
+	tristate "CHIPWEALTH CH13726A-based DSI panel"
+	depends on OF
+	depends on DRM_MIPI_DSI
+	depends on BACKLIGHT_CLASS_DEVICE
+	select DRM_DISPLAY_DP_HELPER
+	select DRM_DISPLAY_HELPER
+	help
+	  Say Y here if you want to enable support for ChipWealth
+	  CH13726A-based display panels.
+
 config DRM_PANEL_EBBG_FT8719
 	tristate "EBBG FT8719 panel driver"
 	depends on OF
drivers/gpu/drm/panel/Makefile +1 -0
index aeffaa95666d6d447f675bf4e8e7d28ee7c1351a..8ec0a978221016d1e34bf05c64f58232d0a2dec3 100644
@@ -9,6 +9,7 @@ obj-$(CONFIG_DRM_PANEL_BOE_TD4320) += panel-boe-td4320.o
 obj-$(CONFIG_DRM_PANEL_BOE_TH101MB31UIG002_28A) += panel-boe-th101mb31ig002-28a.o
 obj-$(CONFIG_DRM_PANEL_BOE_TV101WUM_LL2) += panel-boe-tv101wum-ll2.o
 obj-$(CONFIG_DRM_PANEL_BOE_TV101WUM_NL6) += panel-boe-tv101wum-nl6.o
+obj-$(CONFIG_DRM_PANEL_CHIPWEALTH_CH13726A) += panel-chipwealth-ch13726a.o
 obj-$(CONFIG_DRM_PANEL_DSI_CM) += panel-dsi-cm.o
 obj-$(CONFIG_DRM_PANEL_LVDS) += panel-lvds.o
 obj-$(CONFIG_DRM_PANEL_SIMPLE) += panel-simple.o
drivers/gpu/drm/panel/panel-chipwealth-ch13726a.c new file +296 -0

296 lines not on this page · raw message

Signature · 1 line
2.52.0