Skip to contentSkip to conversation

drm/panel: Add support for Novatek NT36532 panel

PATCH In review Junjie Cao 4 participants 23 messages Oct 1, 2025 – Oct 13, 2025

Subsystems (7)
lore
Share & tools
lore

Junjie Cao

author
#0 lore raw

cover drm/panel: Add support for Novatek NT36532 panel

This series adds support for panels using the Novatek NT36532 Display Driver IC, a dual-DSI, dual-DSC controller that requires DPU support for 'slice_per_pkt = 2'.

Since the current DPU driver lacks this capability, PATCH 2/3 is picked up from Jonathan Marek and Jun Nie [1].

[1]: https://lore.kernel.org/all/[email protected]

Jun Nie (1):
drm/msm/dsi: support DSC configurations with slice_per_pkt > 1

Junjie Cao (2):
dt-bindings: display: panel: Add Novatek NT36532 drm/panel: Add Novatek NT36532 panel driver

 .../display/panel/novatek,nt36532.yaml        |  83 ++++
 MAINTAINERS                                   |   7 +
 drivers/gpu/drm/msm/dsi/dsi_host.c            |  25 +-
 drivers/gpu/drm/panel/Kconfig                 |  10 +
 drivers/gpu/drm/panel/Makefile                |   1 +
 drivers/gpu/drm/panel/panel-novatek-nt36532.c | 437 ++++++++++++++++++
 include/drm/drm_mipi_dsi.h                    |   2 +
 7 files changed, 550 insertions(+), 15 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/display/panel/novatek,nt36532.yaml
 create mode 100644 drivers/gpu/drm/panel/panel-novatek-nt36532.c

base-commit: bf2602a3cb2381fb1a04bf1c39a290518d2538d1

Signature · 1 line
2.48.1
author
#1 lore raw

PATCH 1/3 dt-bindings: display: panel: Add Novatek NT36532

NT36532 is a driver IC used to drive MIPI-DSI panels. It is found in OnePlus Pad 2 tablets with CSOT panels.

---
 .../display/panel/novatek,nt36532.yaml        | 83 +++++++++++++++++++
 1 file changed, 83 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/panel/novatek,nt36532.yaml
Documentation/devicetree/bindings/display/panel/novatek,nt36532.yaml new file +83 -0
new file mode 100644
index 000000000000..ca4b16459a72
@@ -0,0 +1,83 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/novatek,nt36532.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Novatek NT36532 based DSI display Panels
+
+maintainers:
+  - Junjie Cao <[email protected]>
+
+description: |
+  The NT36532 IC from Novatek is a Driver IC used to drive MIPI-DSI panels.
+
+allOf:
+  - $ref: panel-common-dual.yaml#
+
+properties:
+  compatible:
+    items:
+      - enum:
+          - csot,ppc100hb1-1
+      - const: novatek,nt36532
+
+  reg:
+    maxItems: 1
+
+  reset-gpios:
+    maxItems: 1
+    description: phandle of gpio for reset line - This should be 8mA
+
+  vddio-supply:
+    description: regulator that supplies the I/O voltage
+
+  ports: true
+
+required:
+  - compatible
+  - reg
+  - vddio-supply
+  - reset-gpios
+  - ports
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+    dsi {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        panel@0 {
+            compatible = "csot,ppc100hb1-1", "novatek,nt36532";
+            reg = <0>;
+
+            reset-gpios = <&tlmm 133 GPIO_ACTIVE_LOW>;
+
+            vddio-supply = <&vreg_l12b_1p8>;
+
+            ports {
+                #address-cells = <1>;
+                #size-cells = <0>;
+
+                port@0 {
+                    reg = <0>;
+                    panel_in_0: endpoint {
+                        remote-endpoint = <&dsi0_out>;
+                    };
+                };
+
+                port@1 {
+                    reg = <1>;
+                    panel_in_1: endpoint {
+                        remote-endpoint = <&dsi1_out>;
+                    };
+                };
+            };
+        };
+    };
+
+...
Signature · 1 line
2.48.1
author
#3 lore raw

PATCH 2/3 drm/msm/dsi: support DSC configurations with slice_per_pkt > 1

In reply to Junjie Cao

From: Jun Nie <[email protected]>

Some panels support multiple slice to be sent in a single DSC packet. And this feature is a must for specific panels, such as JDI LPM026M648C. Add a dsc_slice_per_pkt member into struct mipi_dsi_device and support the feature in msm mdss driver.

---
 drivers/gpu/drm/msm/dsi/dsi_host.c | 25 ++++++++++---------------
 include/drm/drm_mipi_dsi.h         |  2 ++
 2 files changed, 12 insertions(+), 15 deletions(-)
drivers/gpu/drm/msm/dsi/dsi_host.c +10 -15
index e0de545d4077..773ce8520698 100644
@@ -166,6 +166,7 @@ struct msm_dsi_host {
 
 	struct drm_display_mode *mode;
 	struct drm_dsc_config *dsc;
+	unsigned int dsc_slice_per_pkt;
 
 	/* connected device info */
 	unsigned int channel;
@@ -910,17 +911,10 @@ static void dsi_update_dsc_timing(struct msm_dsi_host *msm_host, bool is_cmd_mod
 	slice_per_intf = dsc->slice_count;
 
 	total_bytes_per_intf = dsc->slice_chunk_size * slice_per_intf;
-	bytes_per_pkt = dsc->slice_chunk_size; /* * slice_per_pkt; */
+	bytes_per_pkt = dsc->slice_chunk_size * msm_host->dsc_slice_per_pkt;
 
 	eol_byte_num = total_bytes_per_intf % 3;
-
-	/*
-	 * Typically, pkt_per_line = slice_per_intf * slice_per_pkt.
-	 *
-	 * Since the current driver only supports slice_per_pkt = 1,
-	 * pkt_per_line will be equal to slice per intf for now.
-	 */
-	pkt_per_line = slice_per_intf;
+	pkt_per_line = slice_per_intf / msm_host->dsc_slice_per_pkt;
 
 	if (is_cmd_mode) /* packet data type */
 		reg = DSI_COMMAND_COMPRESSION_MODE_CTRL_STREAM0_DATATYPE(MIPI_DSI_DCS_LONG_WRITE);
@@ -1069,12 +1063,8 @@ static void dsi_timing_setup(struct msm_dsi_host *msm_host, bool is_bonded_dsi)
 		else
 			/*
 			 * When DSC is enabled, WC = slice_chunk_size * slice_per_pkt + 1.
-			 * Currently, the driver only supports default value of slice_per_pkt = 1
-			 *
-			 * TODO: Expand mipi_dsi_device struct to hold slice_per_pkt info
-			 *       and adjust DSC math to account for slice_per_pkt.
 			 */
-			wc = msm_host->dsc->slice_chunk_size + 1;
+			wc = msm_host->dsc->slice_chunk_size * msm_host->dsc_slice_per_pkt + 1;
 
 		dsi_write(msm_host, REG_DSI_CMD_MDP_STREAM0_CTRL,
 			DSI_CMD_MDP_STREAM0_CTRL_WORD_COUNT(wc) |
@@ -1683,8 +1673,13 @@ static int dsi_host_attach(struct mipi_dsi_host *host,
 	msm_host->lanes = dsi->lanes;
 	msm_host->format = dsi->format;
 	msm_host->mode_flags = dsi->mode_flags;
-	if (dsi->dsc)
+	if (dsi->dsc) {
 		msm_host->dsc = dsi->dsc;
+		msm_host->dsc_slice_per_pkt = dsi->dsc_slice_per_pkt;
+		/* for backwards compatibility, assume 1 if not set */
+		if (!msm_host->dsc_slice_per_pkt)
+			msm_host->dsc_slice_per_pkt = 1;
+	}
 
 	ret = dsi_dev_attach(msm_host->pdev);
 	if (ret)
include/drm/drm_mipi_dsi.h +2 -0
index 3aba7b380c8d..2ddec7931bd0 100644
@@ -180,6 +180,7 @@ struct mipi_dsi_device_info {
  * be set to the real limits of the hardware, zero is only accepted for
  * legacy drivers
  * @dsc: panel/bridge DSC pps payload to be sent
+ * @dsc_slice_per_pkt: number of DSC slices to be sent as in a single packet
  */
 struct mipi_dsi_device {
 	struct mipi_dsi_host *host;
@@ -194,6 +195,7 @@ struct mipi_dsi_device {
 	unsigned long hs_rate;
 	unsigned long lp_rate;
 	struct drm_dsc_config *dsc;
+	unsigned int dsc_slice_per_pkt;
 };
 
 /**
Signature · 1 line
2.48.1
#4 lore raw

Re: [PATCH 2/3] drm/msm/dsi: support DSC configurations with slice_per_pkt > 1

Quoted 7 lines · Junjie Cao

From: Jun Nie <[email protected]>

Some panels support multiple slice to be sent in a single DSC packet. And this feature is a must for specific panels, such as JDI LPM026M648C. Add a dsc_slice_per_pkt member into struct mipi_dsi_device and support the feature in msm mdss driver.

Quoted 8 lines
---
 drivers/gpu/drm/msm/dsi/dsi_host.c | 25 ++++++++++---------------
 include/drm/drm_mipi_dsi.h         |  2 ++
 2 files changed, 12 insertions(+), 15 deletions(-)

Please extract the generic part, so that it can be merged through a generic tree.

Signature · 2 lines
With best wishes
Dmitry
author
#5 lore raw

Re: [PATCH 2/3] drm/msm/dsi: support DSC configurations with slice_per_pkt > 1

Quoted 6 lines

Dmitry Baryshkov <[email protected]> 于2025年10月2日周四 10:04写道:

Quoted 4 lines · Junjie Cao

From: Jun Nie <[email protected]>

Some panels support multiple slice to be sent in a single DSC packet. And this feature is a must for specific panels, such as JDI LPM026M648C. Add

a

Quoted 12 lines
Quoted 11 lines

dsc_slice_per_pkt member into struct mipi_dsi_device and support the feature in msm mdss driver.

---
 drivers/gpu/drm/msm/dsi/dsi_host.c | 25 ++++++++++---------------
 include/drm/drm_mipi_dsi.h         |  2 ++
 2 files changed, 12 insertions(+), 15 deletions(-)
Quoted 3 lines

Please extract the generic part, so that it can be merged through a generic tree.

Sorry, I don't get it. The generic part, generic tree? Do you mean the drm tree? slice_per_pkt >= 2 is seen on the panels of these tablets that are equipped with qcom chips. I don't know if these panels are used on other platforms, and if it is necessary to do it in drm.

Quoted 3 lines

--
With best wishes
Dmitry

Regards,
Junjie

#6 lore raw

Re: [PATCH 2/3] drm/msm/dsi: support DSC configurations with slice_per_pkt > 1

Quoted 28 lines · 曹俊杰
Quoted 1 line

Dmitry Baryshkov <[email protected]

Quoted 4 lines · <mailto:[email protected]>> 于2025年10月2日周四 10:04写道:
Quoted 3 lines · Junjie Cao

From: Jun Nie <[email protected] <mailto:[email protected]>>

Some panels support multiple slice to be sent in a single DSC

packet. And

Quoted 1 line
Quoted 1 line

this feature is a must for specific panels, such as JDI LPM026M648C.

Add a

Quoted 4 lines
Quoted 4 lines

dsc_slice_per_pkt member into struct mipi_dsi_device and support the feature in msm mdss driver.

<mailto:[email protected]>>

Quoted 1 line
Quoted 1 line

<mailto:[email protected]>>

Quoted 2 lines
Quoted 2 lines
Signed-off-by Jun Nie <[email protected] <mailto:[email protected]>>

<mailto:[email protected]>>

Quoted 8 lines
Quoted 4 lines

---
 drivers/gpu/drm/msm/dsi/dsi_host.c | 25 ++++++++++--------------- include/drm/drm_mipi_dsi.h         |  2 ++

 2 files changed, 12 insertions(+), 15 deletions(-)

Please extract the generic part, so that it can be merged through a generic tree.

Quoted 5 lines

Sorry, I don't get it.  The generic part, generic tree? Do you mean the drm tree? slice_per_pkt >= 2 is seen on the panels of these tablets that are equipped with qcom chips. I don't know if these panels are used on other platforms, and if it is necessary to do it in drm.

There are two changes here:
- MIPI DSI header change
- msm DSI driver

I've asked to split it to those two commits so that he change for drm_mipi_dsi.h is more obvious for reviewers and so that it can be merged through a drm-misc tree (or through drm-msm tree provided it gets a necessary ack).

Signature · 2 lines
With best wishes
Dmitry
author
#7 lore raw

Re: [PATCH 2/3] drm/msm/dsi: support DSC configurations with slice_per_pkt > 1

Quoted 35 lines · Dmitry Baryshkov <[email protected]> 于2025年10月13日周一 17:39写道:
Quoted 28 lines · 曹俊杰
Quoted 1 line

Dmitry Baryshkov <[email protected]

Quoted 4 lines · <mailto:[email protected]>> 于2025年10月2日周四 10:04写道:
Quoted 3 lines · Junjie Cao

From: Jun Nie <[email protected] <mailto:[email protected]>>

Some panels support multiple slice to be sent in a single DSC

packet. And

Quoted 1 line
Quoted 1 line

this feature is a must for specific panels, such as JDI LPM026M648C.

Add a

Quoted 4 lines
Quoted 4 lines

dsc_slice_per_pkt member into struct mipi_dsi_device and support the feature in msm mdss driver.

<mailto:[email protected]>>

Quoted 1 line
Quoted 1 line

<mailto:[email protected]>>

Quoted 2 lines
Quoted 2 lines
Signed-off-by Jun Nie <[email protected] <mailto:[email protected]>>

<mailto:[email protected]>>

Quoted 8 lines
Quoted 4 lines
---
 drivers/gpu/drm/msm/dsi/dsi_host.c | 25 ++++++++++---------------
 include/drm/drm_mipi_dsi.h         |  2 ++
 2 files changed, 12 insertions(+), 15 deletions(-)

Please extract the generic part, so that it can be merged through a generic tree.

Quoted 5 lines

Sorry, I don't get it. The generic part, generic tree? Do you mean the drm tree? slice_per_pkt >= 2 is seen on the panels of these tablets that are equipped with qcom chips. I don't know if these panels are used on other platforms, and if it is necessary to do it in drm.

Quoted 9 lines

There are two changes here:
- MIPI DSI header change
- msm DSI driver

I've asked to split it to those two commits so that he change for drm_mipi_dsi.h is more obvious for reviewers and so that it can be merged through a drm-misc tree (or through drm-msm tree provided it gets a necessary ack).

Thanks for your clear explanation.

I don't mind to add the field separately. But should I submit it with the panel driver together? Otherwise, this field is unused for a while.

However, as you mentioned, this is not a part of standard, neither mipi dsi nor VESA DSC. Recently, only Qualcomm devices require it to calculate parameters, then we use them to program registers. Why don't we parse the field from devicetree?

Quoted 4 lines

--
With best wishes
Dmitry

Regards,
Junjie

#8 lore raw

Re: [PATCH 2/3] drm/msm/dsi: support DSC configurations with slice_per_pkt > 1

Quoted 48 lines · Junjie Cao
Quoted 35 lines · Dmitry Baryshkov <[email protected]> 于2025年10月13日周一 17:39写道:
Quoted 28 lines · 曹俊杰
Quoted 1 line

Dmitry Baryshkov <[email protected]

Quoted 4 lines · <mailto:[email protected]>> 于2025年10月2日周四 10:04写道:
Quoted 3 lines · Junjie Cao

From: Jun Nie <[email protected] <mailto:[email protected]>>

Some panels support multiple slice to be sent in a single DSC

packet. And

Quoted 1 line
Quoted 1 line

this feature is a must for specific panels, such as JDI LPM026M648C.

Add a

Quoted 4 lines
Quoted 4 lines

dsc_slice_per_pkt member into struct mipi_dsi_device and support the feature in msm mdss driver.

<mailto:[email protected]>>

Quoted 1 line
Quoted 1 line

<mailto:[email protected]>>

Quoted 2 lines
Quoted 2 lines
Signed-off-by Jun Nie <[email protected] <mailto:[email protected]>>

<mailto:[email protected]>>

Quoted 8 lines
Quoted 4 lines
---
 drivers/gpu/drm/msm/dsi/dsi_host.c | 25 ++++++++++---------------
 include/drm/drm_mipi_dsi.h         |  2 ++
 2 files changed, 12 insertions(+), 15 deletions(-)

Please extract the generic part, so that it can be merged through a generic tree.

Quoted 5 lines

Sorry, I don't get it. The generic part, generic tree? Do you mean the drm tree? slice_per_pkt >= 2 is seen on the panels of these tablets that are equipped with qcom chips. I don't know if these panels are used on other platforms, and if it is necessary to do it in drm.

Quoted 9 lines

There are two changes here:
- MIPI DSI header change
- msm DSI driver

I've asked to split it to those two commits so that he change for drm_mipi_dsi.h is more obvious for reviewers and so that it can be merged through a drm-misc tree (or through drm-msm tree provided it gets a necessary ack).

Thanks for your clear explanation.

Quoted 8 lines

I don't mind to add the field separately. But should I submit it with the panel driver together? Otherwise, this field is unused for a while.

However, as you mentioned, this is not a part of standard, neither mipi dsi nor VESA DSC. Recently, only Qualcomm devices require it to calculate parameters, then we use them to program registers. Why don't we parse the field from devicetree?

Because the value is uniquelly identified by the panel's compat string.

Signature · 2 lines
With best wishes
Dmitry
author
#9 lore raw

Re: [PATCH 2/3] drm/msm/dsi: support DSC configurations with slice_per_pkt > 1

Quoted 53 lines · Dmitry Baryshkov <[email protected]> 于2025年10月13日周一 20:31写道:
Quoted 52 lines · Junjie Cao
Quoted 35 lines · Dmitry Baryshkov <[email protected]> 于2025年10月13日周一 17:39写道:
Quoted 28 lines · 曹俊杰
Quoted 1 line

Dmitry Baryshkov <[email protected]

Quoted 4 lines · <mailto:[email protected]>> 于2025年10月2日周四 10:04写道:
Quoted 3 lines · Junjie Cao

From: Jun Nie <[email protected] <mailto:[email protected]>>

Some panels support multiple slice to be sent in a single DSC

packet. And

Quoted 1 line
Quoted 1 line

this feature is a must for specific panels, such as JDI LPM026M648C.

Add a

Quoted 4 lines
Quoted 4 lines

dsc_slice_per_pkt member into struct mipi_dsi_device and support the feature in msm mdss driver.

<mailto:[email protected]>>

Quoted 1 line
Quoted 1 line

<mailto:[email protected]>>

Quoted 2 lines
Quoted 2 lines
Signed-off-by Jun Nie <[email protected] <mailto:[email protected]>>

<mailto:[email protected]>>

Quoted 8 lines
Quoted 4 lines
---
 drivers/gpu/drm/msm/dsi/dsi_host.c | 25 ++++++++++---------------
 include/drm/drm_mipi_dsi.h         |  2 ++
 2 files changed, 12 insertions(+), 15 deletions(-)

Please extract the generic part, so that it can be merged through a generic tree.

Quoted 5 lines

Sorry, I don't get it. The generic part, generic tree? Do you mean the drm tree? slice_per_pkt >= 2 is seen on the panels of these tablets that are equipped with qcom chips. I don't know if these panels are used on other platforms, and if it is necessary to do it in drm.

Quoted 9 lines

There are two changes here:
- MIPI DSI header change
- msm DSI driver

I've asked to split it to those two commits so that he change for drm_mipi_dsi.h is more obvious for reviewers and so that it can be merged through a drm-misc tree (or through drm-msm tree provided it gets a necessary ack).

Thanks for your clear explanation.

I don't mind to add the field separately. But should I submit it with the panel driver together? Otherwise, this field is unused for a while.

Quoted 7 lines
Quoted 4 lines

However, as you mentioned, this is not a part of standard, neither mipi dsi nor VESA DSC. Recently, only Qualcomm devices require it to calculate parameters, then we use them to program registers. Why don't we parse the field from devicetree?

Because the value is uniquelly identified by the panel's compat string.

Yes, it is panel specified.
But can we set it for every panel like

&mdss_dsi0 {
    qcom,mdss-dsc-slice-per-pkt = <2>;

    status = "okay";

    panel: panel@0 {
        compatible = "foo,bar";
        reg = <0>;
    };
};

or moving the property to panel node? We access it from child node.

Quoted 3 lines

--
With best wishes
Dmitry

#10 lore raw

Re: [PATCH 2/3] drm/msm/dsi: support DSC configurations with slice_per_pkt > 1

Quoted 76 lines · Junjie Cao
Quoted 53 lines · Dmitry Baryshkov <[email protected]> 于2025年10月13日周一 20:31写道:
Quoted 52 lines · Junjie Cao
Quoted 35 lines · Dmitry Baryshkov <[email protected]> 于2025年10月13日周一 17:39写道:
Quoted 28 lines · 曹俊杰
Quoted 1 line

Dmitry Baryshkov <[email protected]

Quoted 4 lines · <mailto:[email protected]>> 于2025年10月2日周四 10:04写道:
Quoted 3 lines · Junjie Cao

From: Jun Nie <[email protected] <mailto:[email protected]>>

Some panels support multiple slice to be sent in a single DSC

packet. And

Quoted 1 line
Quoted 1 line

this feature is a must for specific panels, such as JDI LPM026M648C.

Add a

Quoted 4 lines
Quoted 4 lines

dsc_slice_per_pkt member into struct mipi_dsi_device and support the feature in msm mdss driver.

<mailto:[email protected]>>

Quoted 1 line
Quoted 1 line

<mailto:[email protected]>>

Quoted 2 lines
Quoted 2 lines
Signed-off-by Jun Nie <[email protected] <mailto:[email protected]>>

<mailto:[email protected]>>

Quoted 8 lines
Quoted 4 lines
---
 drivers/gpu/drm/msm/dsi/dsi_host.c | 25 ++++++++++---------------
 include/drm/drm_mipi_dsi.h         |  2 ++
 2 files changed, 12 insertions(+), 15 deletions(-)

Please extract the generic part, so that it can be merged through a generic tree.

Quoted 5 lines

Sorry, I don't get it. The generic part, generic tree? Do you mean the drm tree? slice_per_pkt >= 2 is seen on the panels of these tablets that are equipped with qcom chips. I don't know if these panels are used on other platforms, and if it is necessary to do it in drm.

Quoted 9 lines

There are two changes here:
- MIPI DSI header change
- msm DSI driver

I've asked to split it to those two commits so that he change for drm_mipi_dsi.h is more obvious for reviewers and so that it can be merged through a drm-misc tree (or through drm-msm tree provided it gets a necessary ack).

Thanks for your clear explanation.

I don't mind to add the field separately. But should I submit it with the panel driver together? Otherwise, this field is unused for a while.

Quoted 7 lines
Quoted 4 lines

However, as you mentioned, this is not a part of standard, neither mipi dsi nor VESA DSC. Recently, only Qualcomm devices require it to calculate parameters, then we use them to program registers. Why don't we parse the field from devicetree?

Because the value is uniquelly identified by the panel's compat string.

Yes, it is panel specified.
But can we set it for every panel like

&mdss_dsi0 {
    qcom,mdss-dsc-slice-per-pkt = <2>;

    status = "okay";

    panel: panel@0 {
        compatible = "foo,bar";
        reg = <0>;
    };
};
Quoted 1 line

or moving the property to panel node? We access it from child node.

Why do you need it in DT if the panel driver can provide this information.

Signature · 2 lines
With best wishes
Dmitry
author
#11 lore raw

Re: [PATCH 2/3] drm/msm/dsi: support DSC configurations with slice_per_pkt > 1

In reply to Dmitry Baryshkov
Quoted 5 lines · Dmitry Baryshkov <[email protected]> 于2025年10月2日周四 10:04写道:
Quoted 4 lines · Junjie Cao

From: Jun Nie <[email protected]>

Some panels support multiple slice to be sent in a single DSC packet. And this feature is a must for specific panels, such as JDI LPM026M648C. Add

a

Quoted 12 lines
Quoted 11 lines

dsc_slice_per_pkt member into struct mipi_dsi_device and support the feature in msm mdss driver.

---
 drivers/gpu/drm/msm/dsi/dsi_host.c | 25 ++++++++++---------------
 include/drm/drm_mipi_dsi.h         |  2 ++
 2 files changed, 12 insertions(+), 15 deletions(-)
Quoted 3 lines

Please extract the generic part, so that it can be merged through a generic tree.

Sorry, I don't get it. The generic part, generic tree? Do you mean the drm tree? slice_per_pkt >= 2 is seen on the panels of these tablets that are equipped with qcom chips. I don't know if these panels are used on other platforms, and if it is necessary to do it in drm.

Quoted 3 lines

--
With best wishes
Dmitry

Regards,
Junjie

Quoted 25 lines · Dmitry Baryshkov <[email protected]> 于2025年10月2日周四 10:04写道:
Quoted 4 lines · Junjie Cao

From: Jun Nie <[email protected]>

Some panels support multiple slice to be sent in a single DSC packet. And this feature is a must for specific panels, such as JDI LPM026M648C. Add

a

Quoted 11 lines

dsc_slice_per_pkt member into struct mipi_dsi_device and support the feature in msm mdss driver.

---
 drivers/gpu/drm/msm/dsi/dsi_host.c | 25 ++++++++++---------------
 include/drm/drm_mipi_dsi.h         |  2 ++
 2 files changed, 12 insertions(+), 15 deletions(-)

Please extract the generic part, so that it can be merged through a generic tree.

--
With best wishes
Dmitry

author
#12 lore raw

Re: [PATCH 2/3] drm/msm/dsi: support DSC configurations with slice_per_pkt > 1

In reply to Dmitry Baryshkov
Quoted 17 lines · Dmitry Baryshkov <[email protected]> 于2025年10月2日周四 10:04写道:
Quoted 7 lines · Junjie Cao

From: Jun Nie <[email protected]>

Some panels support multiple slice to be sent in a single DSC packet. And this feature is a must for specific panels, such as JDI LPM026M648C. Add a dsc_slice_per_pkt member into struct mipi_dsi_device and support the feature in msm mdss driver.

Quoted 8 lines
---
 drivers/gpu/drm/msm/dsi/dsi_host.c | 25 ++++++++++---------------
 include/drm/drm_mipi_dsi.h         |  2 ++
 2 files changed, 12 insertions(+), 15 deletions(-)
Quoted 3 lines

Please extract the generic part, so that it can be merged through a generic tree.

Sorry, I don't get it. The generic part, generic tree? Do you mean the drm tree? slice_per_pkt >= 2 is seen on the panels of these tablets that are equipped with qcom chips. I don't know if these panels are used on other platforms, and if it is necessary to do it in drm.

Quoted 3 lines

--
With best wishes
Dmitry

Regards,
Junjie

author
#13 lore raw

PATCH 3/3 drm/panel: Add Novatek NT36532 panel driver

In reply to Junjie Cao

Add a driver for panels using the Novatek NT36532 Display Driver IC, including support for the CSOT PPC100HB1-1, found in the OnePlus Pad 2 tablets.

---
 MAINTAINERS                                   |   7 +
 drivers/gpu/drm/panel/Kconfig                 |  10 +
 drivers/gpu/drm/panel/Makefile                |   1 +
 drivers/gpu/drm/panel/panel-novatek-nt36532.c | 437 ++++++++++++++++++
 4 files changed, 455 insertions(+)
 create mode 100644 drivers/gpu/drm/panel/panel-novatek-nt36532.c
MAINTAINERS +7 -0
index 0c8281ea4cc6..1394b26269b8 100644
@@ -7914,6 +7914,13 @@ T:	git https://gitlab.freedesktop.org/drm/misc/kernel.git
 F:	Documentation/devicetree/bindings/display/panel/novatek,nt36523.yaml
 F:	drivers/gpu/drm/panel/panel-novatek-nt36523.c
 
+DRM DRIVER FOR NOVATEK NT36532 PANELS
+M:	Junjie Cao <[email protected]>
+S:	Maintained
+T:	git https://gitlab.freedesktop.org/drm/misc/kernel.git
+F:	Documentation/devicetree/bindings/display/panel/novatek,nt36532.yaml
+F:	drivers/gpu/drm/panel/panel-novatek-nt36532.c
+
 DRM DRIVER FOR NOVATEK NT36672A PANELS
 M:	Sumit Semwal <[email protected]>
 S:	Maintained
drivers/gpu/drm/panel/Kconfig +10 -0
index 407c5f6a268b..a2ef5be43c96 100644
@@ -520,6 +520,16 @@ config DRM_PANEL_NOVATEK_NT36523
 	  around the Novatek NT36523 display controller, such as some
 	  Boe panels used in Xiaomi Mi Pad 5 and 5 Pro tablets.
 
+config DRM_PANEL_NOVATEK_NT36532
+	tristate "Novatek NT36532-based MIPI-DSI panels"
+	depends on OF
+	depends on DRM_MIPI_DSI
+	help
+	  Say Y here if you want to enable support for the panels built
+	  around the Novatek NT36532 display controller, such as some
+	  CSOT panels used in OnePlus Pad 2 tablets. These panels are
+	  typically dual-DSI and may use DSC (Display Stream Compression).
+
 config DRM_PANEL_NOVATEK_NT36672A
 	tristate "Novatek NT36672A DSI panel"
 	depends on OF
drivers/gpu/drm/panel/Makefile +1 -0
index 3615a761b44f..56b4e362890c 100644
@@ -51,6 +51,7 @@ obj-$(CONFIG_DRM_PANEL_NOVATEK_NT35510) += panel-novatek-nt35510.o
 obj-$(CONFIG_DRM_PANEL_NOVATEK_NT35560) += panel-novatek-nt35560.o
 obj-$(CONFIG_DRM_PANEL_NOVATEK_NT35950) += panel-novatek-nt35950.o
 obj-$(CONFIG_DRM_PANEL_NOVATEK_NT36523) += panel-novatek-nt36523.o
+obj-$(CONFIG_DRM_PANEL_NOVATEK_NT36532) += panel-novatek-nt36532.o
 obj-$(CONFIG_DRM_PANEL_NOVATEK_NT36672A) += panel-novatek-nt36672a.o
 obj-$(CONFIG_DRM_PANEL_NOVATEK_NT36672E) += panel-novatek-nt36672e.o
 obj-$(CONFIG_DRM_PANEL_NOVATEK_NT37801) += panel-novatek-nt37801.o
drivers/gpu/drm/panel/panel-novatek-nt36532.c new file +437 -0

437 lines not on this page · raw message

Signature · 1 line
2.48.1
#14 lore raw

Re: [PATCH 3/3] drm/panel: Add Novatek NT36532 panel driver

Quoted 13 lines · Junjie Cao

Add a driver for panels using the Novatek NT36532 Display Driver IC, including support for the CSOT PPC100HB1-1, found in the OnePlus Pad 2 tablets.

---
 MAINTAINERS                                   |   7 +
 drivers/gpu/drm/panel/Kconfig                 |  10 +
 drivers/gpu/drm/panel/Makefile                |   1 +
 drivers/gpu/drm/panel/panel-novatek-nt36532.c | 437 ++++++++++++++++++
 4 files changed, 455 insertions(+)
 create mode 100644 drivers/gpu/drm/panel/panel-novatek-nt36532.c

drivers/gpu/drm/panel/panel-novatek-nt36532.c line 413

Quoted 10 lines
drivers/gpu/drm/panel/panel-novatek-nt36532.c new file +10 -0
+
+static const struct panel_info csot_panel_info = {
+	.width_mm = 250,
+	.height_mm = 177,
+	.lanes = 4,
+	.format = MIPI_DSI_FMT_RGB888,
+	.mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS |
+		      MIPI_DSI_MODE_LPM,
+	.display_mode = csot_display_mode,
+	.dsc_slice_per_pkt = 2,

As this is not a part of the standard, what if the DSI host doesn't support this feature?

Quoted 5 lines
drivers/gpu/drm/panel/panel-novatek-nt36532.c new file +5 -0
+	.dsc_cfg = &csot_dsc_cfg,
+	.init_sequence = csot_init_sequence,
+	.is_dual_dsi = true,
+};
+
Signature · 2 lines
With best wishes
Dmitry
#15 lore raw

Re: [PATCH 3/3] drm/panel: Add Novatek NT36532 panel driver

Quoted 14 lines · Dmitry Baryshkov
Quoted 13 lines · Junjie Cao

Add a driver for panels using the Novatek NT36532 Display Driver IC, including support for the CSOT PPC100HB1-1, found in the OnePlus Pad 2 tablets.

---
 MAINTAINERS                                   |   7 +
 drivers/gpu/drm/panel/Kconfig                 |  10 +
 drivers/gpu/drm/panel/Makefile                |   1 +
 drivers/gpu/drm/panel/panel-novatek-nt36532.c | 437 ++++++++++++++++++
 4 files changed, 455 insertions(+)
 create mode 100644 drivers/gpu/drm/panel/panel-novatek-nt36532.c
Quoted 13 lines

drivers/gpu/drm/panel/panel-novatek-nt36532.c line 413

Quoted 10 lines
drivers/gpu/drm/panel/panel-novatek-nt36532.c new file +10 -0
+
+static const struct panel_info csot_panel_info = {
+	.width_mm = 250,
+	.height_mm = 177,
+	.lanes = 4,
+	.format = MIPI_DSI_FMT_RGB888,
+	.mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS |
+		      MIPI_DSI_MODE_LPM,
+	.display_mode = csot_display_mode,
+	.dsc_slice_per_pkt = 2,

As this is not a part of the standard, what if the DSI host doesn't support this feature?

Shouldn't the core gracefully throw something like an -EINVAL?

Konrad

#16 lore raw

Re: [PATCH 3/3] drm/panel: Add Novatek NT36532 panel driver

Quoted 29 lines · Konrad Dybcio
Quoted 14 lines · Dmitry Baryshkov
Quoted 13 lines · Junjie Cao

Add a driver for panels using the Novatek NT36532 Display Driver IC, including support for the CSOT PPC100HB1-1, found in the OnePlus Pad 2 tablets.

---
 MAINTAINERS                                   |   7 +
 drivers/gpu/drm/panel/Kconfig                 |  10 +
 drivers/gpu/drm/panel/Makefile                |   1 +
 drivers/gpu/drm/panel/panel-novatek-nt36532.c | 437 ++++++++++++++++++
 4 files changed, 455 insertions(+)
 create mode 100644 drivers/gpu/drm/panel/panel-novatek-nt36532.c
Quoted 13 lines

drivers/gpu/drm/panel/panel-novatek-nt36532.c line 413

Quoted 10 lines
drivers/gpu/drm/panel/panel-novatek-nt36532.c new file +10 -0
+
+static const struct panel_info csot_panel_info = {
+	.width_mm = 250,
+	.height_mm = 177,
+	.lanes = 4,
+	.format = MIPI_DSI_FMT_RGB888,
+	.mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS |
+		      MIPI_DSI_MODE_LPM,
+	.display_mode = csot_display_mode,
+	.dsc_slice_per_pkt = 2,

As this is not a part of the standard, what if the DSI host doesn't support this feature?

Quoted 1 line

Shouldn't the core gracefully throw something like an -EINVAL?

There is no 'core' here. Each DSI DRM host manages DSC on their own.

Signature · 2 lines
With best wishes
Dmitry
#17 lore raw

Re: [PATCH 3/3] drm/panel: Add Novatek NT36532 panel driver

Quoted 30 lines · Dmitry Baryshkov
Quoted 29 lines · Konrad Dybcio
Quoted 27 lines · Dmitry Baryshkov
Quoted 13 lines · Junjie Cao

Add a driver for panels using the Novatek NT36532 Display Driver IC, including support for the CSOT PPC100HB1-1, found in the OnePlus Pad 2 tablets.

---
 MAINTAINERS                                   |   7 +
 drivers/gpu/drm/panel/Kconfig                 |  10 +
 drivers/gpu/drm/panel/Makefile                |   1 +
 drivers/gpu/drm/panel/panel-novatek-nt36532.c | 437 ++++++++++++++++++
 4 files changed, 455 insertions(+)
 create mode 100644 drivers/gpu/drm/panel/panel-novatek-nt36532.c

drivers/gpu/drm/panel/panel-novatek-nt36532.c line 413

Quoted 10 lines
drivers/gpu/drm/panel/panel-novatek-nt36532.c new file +10 -0
+
+static const struct panel_info csot_panel_info = {
+	.width_mm = 250,
+	.height_mm = 177,
+	.lanes = 4,
+	.format = MIPI_DSI_FMT_RGB888,
+	.mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS |
+		      MIPI_DSI_MODE_LPM,
+	.display_mode = csot_display_mode,
+	.dsc_slice_per_pkt = 2,

As this is not a part of the standard, what if the DSI host doesn't support this feature?

Quoted 3 lines
Quoted 1 line

Shouldn't the core gracefully throw something like an -EINVAL?

There is no 'core' here. Each DSI DRM host manages DSC on their own.

drm_dsc_helper?

Konrad

#18 lore raw

Re: [PATCH 3/3] drm/panel: Add Novatek NT36532 panel driver

Quoted 31 lines · Konrad Dybcio
Quoted 30 lines · Dmitry Baryshkov
Quoted 29 lines · Konrad Dybcio
Quoted 27 lines · Dmitry Baryshkov
Quoted 13 lines · Junjie Cao

Add a driver for panels using the Novatek NT36532 Display Driver IC, including support for the CSOT PPC100HB1-1, found in the OnePlus Pad 2 tablets.

---
 MAINTAINERS                                   |   7 +
 drivers/gpu/drm/panel/Kconfig                 |  10 +
 drivers/gpu/drm/panel/Makefile                |   1 +
 drivers/gpu/drm/panel/panel-novatek-nt36532.c | 437 ++++++++++++++++++
 4 files changed, 455 insertions(+)
 create mode 100644 drivers/gpu/drm/panel/panel-novatek-nt36532.c

drivers/gpu/drm/panel/panel-novatek-nt36532.c line 413

Quoted 10 lines
drivers/gpu/drm/panel/panel-novatek-nt36532.c new file +10 -0
+
+static const struct panel_info csot_panel_info = {
+	.width_mm = 250,
+	.height_mm = 177,
+	.lanes = 4,
+	.format = MIPI_DSI_FMT_RGB888,
+	.mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS |
+		      MIPI_DSI_MODE_LPM,
+	.display_mode = csot_display_mode,
+	.dsc_slice_per_pkt = 2,

As this is not a part of the standard, what if the DSI host doesn't support this feature?

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Shouldn't the core gracefully throw something like an -EINVAL?

There is no 'core' here. Each DSI DRM host manages DSC on their own.

drm_dsc_helper?

No, that's just for calculating PPS and some other values. It's one of the problems of the DSI model, which I tried to solve a year ago, but failed up to now to do it completely and clearly. The DSI device can't check host's capabilities. It declares what it needs inside struct mipi_dsi_device and hopes for the best.

Signature · 2 lines
With best wishes
Dmitry
#19 lore raw

Re: [PATCH 3/3] drm/panel: Add Novatek NT36532 panel driver

Quoted 36 lines · Dmitry Baryshkov
Quoted 35 lines · Konrad Dybcio
Quoted 33 lines · Dmitry Baryshkov
Quoted 29 lines · Konrad Dybcio
Quoted 14 lines · Dmitry Baryshkov
Quoted 13 lines · Junjie Cao

Add a driver for panels using the Novatek NT36532 Display Driver IC, including support for the CSOT PPC100HB1-1, found in the OnePlus Pad 2 tablets.

---
 MAINTAINERS                                   |   7 +
 drivers/gpu/drm/panel/Kconfig                 |  10 +
 drivers/gpu/drm/panel/Makefile                |   1 +
 drivers/gpu/drm/panel/panel-novatek-nt36532.c | 437 ++++++++++++++++++
 4 files changed, 455 insertions(+)
 create mode 100644 drivers/gpu/drm/panel/panel-novatek-nt36532.c
Quoted 13 lines

drivers/gpu/drm/panel/panel-novatek-nt36532.c line 413

Quoted 10 lines
drivers/gpu/drm/panel/panel-novatek-nt36532.c new file +10 -0
+
+static const struct panel_info csot_panel_info = {
+	.width_mm = 250,
+	.height_mm = 177,
+	.lanes = 4,
+	.format = MIPI_DSI_FMT_RGB888,
+	.mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS |
+		      MIPI_DSI_MODE_LPM,
+	.display_mode = csot_display_mode,
+	.dsc_slice_per_pkt = 2,

As this is not a part of the standard, what if the DSI host doesn't support this feature?

Quoted 1 line

Shouldn't the core gracefully throw something like an -EINVAL?

There is no 'core' here. Each DSI DRM host manages DSC on their own.

Quoted 7 lines
Quoted 1 line

drm_dsc_helper?

No, that's just for calculating PPS and some other values. It's one of the problems of the DSI model, which I tried to solve a year ago, but failed up to now to do it completely and clearly. The DSI device can't check host's capabilities. It declares what it needs inside struct mipi_dsi_device and hopes for the best.

Alright, thanks for the explanation

Konrad

author
#20 lore raw

Re: [PATCH 3/3] drm/panel: Add Novatek NT36532 panel driver

In reply to Dmitry Baryshkov
Quoted 15 lines

Dmitry Baryshkov <[email protected]> 于2025年10月2日周四 10:05写道:

Quoted 13 lines · Junjie Cao

Add a driver for panels using the Novatek NT36532 Display Driver IC, including support for the CSOT PPC100HB1-1, found in the OnePlus Pad 2 tablets.

---
 MAINTAINERS                                   |   7 +
 drivers/gpu/drm/panel/Kconfig                 |  10 +
 drivers/gpu/drm/panel/Makefile                |   1 +
 drivers/gpu/drm/panel/panel-novatek-nt36532.c | 437 ++++++++++++++++++
 4 files changed, 455 insertions(+)
 create mode 100644 drivers/gpu/drm/panel/panel-novatek-nt36532.c
Quoted 14 lines

drivers/gpu/drm/panel/panel-novatek-nt36532.c line 413

Quoted 10 lines
drivers/gpu/drm/panel/panel-novatek-nt36532.c new file +10 -0
+
+static const struct panel_info csot_panel_info = {
+     .width_mm = 250,
+     .height_mm = 177,
+     .lanes = 4,
+     .format = MIPI_DSI_FMT_RGB888,
+     .mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS |
+                   MIPI_DSI_MODE_LPM,
+     .display_mode = csot_display_mode,
+     .dsc_slice_per_pkt = 2,

As this is not a part of the standard, what if the DSI host doesn't support this feature?

Without it, parameters will not be calculated correctly, garbled then.

Quoted 9 lines

drivers/gpu/drm/panel/panel-novatek-nt36532.c line 418

Quoted 5 lines
drivers/gpu/drm/panel/panel-novatek-nt36532.c new file +5 -0
+     .dsc_cfg = &csot_dsc_cfg,
+     .init_sequence = csot_init_sequence,
+     .is_dual_dsi = true,
+};
+

--
With best wishes
Dmitry

Regards,
Junjie

author
#21 lore raw

Re: [PATCH 3/3] drm/panel: Add Novatek NT36532 panel driver

In reply to Dmitry Baryshkov
Quoted 14 lines · Dmitry Baryshkov <[email protected]> 于2025年10月2日周四 10:05写道:
Quoted 13 lines · Junjie Cao

Add a driver for panels using the Novatek NT36532 Display Driver IC, including support for the CSOT PPC100HB1-1, found in the OnePlus Pad 2 tablets.

---
 MAINTAINERS                                   |   7 +
 drivers/gpu/drm/panel/Kconfig                 |  10 +
 drivers/gpu/drm/panel/Makefile                |   1 +
 drivers/gpu/drm/panel/panel-novatek-nt36532.c | 437 ++++++++++++++++++
 4 files changed, 455 insertions(+)
 create mode 100644 drivers/gpu/drm/panel/panel-novatek-nt36532.c
Quoted 14 lines

drivers/gpu/drm/panel/panel-novatek-nt36532.c line 413

Quoted 10 lines
drivers/gpu/drm/panel/panel-novatek-nt36532.c new file +10 -0
+
+static const struct panel_info csot_panel_info = {
+     .width_mm = 250,
+     .height_mm = 177,
+     .lanes = 4,
+     .format = MIPI_DSI_FMT_RGB888,
+     .mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS |
+                   MIPI_DSI_MODE_LPM,
+     .display_mode = csot_display_mode,
+     .dsc_slice_per_pkt = 2,

As this is not a part of the standard, what if the DSI host doesn't support this feature?

Without it, parameters will not be calculated correctly, garbled then.

Quoted 9 lines

drivers/gpu/drm/panel/panel-novatek-nt36532.c line 418

Quoted 5 lines
drivers/gpu/drm/panel/panel-novatek-nt36532.c new file +5 -0
+     .dsc_cfg = &csot_dsc_cfg,
+     .init_sequence = csot_init_sequence,
+     .is_dual_dsi = true,
+};
+

--
With best wishes
Dmitry

Regards,
Junjie

Quoted 38 lines · Dmitry Baryshkov <[email protected]> 于2025年10月2日周四 10:05写道:
Quoted 13 lines · Junjie Cao

Add a driver for panels using the Novatek NT36532 Display Driver IC, including support for the CSOT PPC100HB1-1, found in the OnePlus Pad 2 tablets.

---
 MAINTAINERS                                   |   7 +
 drivers/gpu/drm/panel/Kconfig                 |  10 +
 drivers/gpu/drm/panel/Makefile                |   1 +
 drivers/gpu/drm/panel/panel-novatek-nt36532.c | 437 ++++++++++++++++++
 4 files changed, 455 insertions(+)
 create mode 100644 drivers/gpu/drm/panel/panel-novatek-nt36532.c

drivers/gpu/drm/panel/panel-novatek-nt36532.c line 413

Quoted 10 lines
drivers/gpu/drm/panel/panel-novatek-nt36532.c new file +10 -0
+
+static const struct panel_info csot_panel_info = {
+     .width_mm = 250,
+     .height_mm = 177,
+     .lanes = 4,
+     .format = MIPI_DSI_FMT_RGB888,
+     .mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS |
+                   MIPI_DSI_MODE_LPM,
+     .display_mode = csot_display_mode,
+     .dsc_slice_per_pkt = 2,

As this is not a part of the standard, what if the DSI host doesn't support this feature?

drivers/gpu/drm/panel/panel-novatek-nt36532.c line 418

Quoted 5 lines
drivers/gpu/drm/panel/panel-novatek-nt36532.c new file +5 -0
+     .dsc_cfg = &csot_dsc_cfg,
+     .init_sequence = csot_init_sequence,
+     .is_dual_dsi = true,
+};
+

--
With best wishes
Dmitry

author
#22 lore raw

Re: [PATCH 3/3] drm/panel: Add Novatek NT36532 panel driver

In reply to Dmitry Baryshkov
Quoted 14 lines · Dmitry Baryshkov <[email protected]> 于2025年10月2日周四 10:05写道:
Quoted 13 lines · Junjie Cao

Add a driver for panels using the Novatek NT36532 Display Driver IC, including support for the CSOT PPC100HB1-1, found in the OnePlus Pad 2 tablets.

---
 MAINTAINERS                                   |   7 +
 drivers/gpu/drm/panel/Kconfig                 |  10 +
 drivers/gpu/drm/panel/Makefile                |   1 +
 drivers/gpu/drm/panel/panel-novatek-nt36532.c | 437 ++++++++++++++++++
 4 files changed, 455 insertions(+)
 create mode 100644 drivers/gpu/drm/panel/panel-novatek-nt36532.c
Quoted 14 lines

drivers/gpu/drm/panel/panel-novatek-nt36532.c line 413

Quoted 10 lines
drivers/gpu/drm/panel/panel-novatek-nt36532.c new file +10 -0
+
+static const struct panel_info csot_panel_info = {
+     .width_mm = 250,
+     .height_mm = 177,
+     .lanes = 4,
+     .format = MIPI_DSI_FMT_RGB888,
+     .mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS |
+                   MIPI_DSI_MODE_LPM,
+     .display_mode = csot_display_mode,
+     .dsc_slice_per_pkt = 2,

As this is not a part of the standard, what if the DSI host doesn't support this feature?

Without it, parameters will not be calculated correctly, garbled then.

Quoted 9 lines

drivers/gpu/drm/panel/panel-novatek-nt36532.c line 418

Quoted 5 lines
drivers/gpu/drm/panel/panel-novatek-nt36532.c new file +5 -0
+     .dsc_cfg = &csot_dsc_cfg,
+     .init_sequence = csot_init_sequence,
+     .is_dual_dsi = true,
+};
+

--
With best wishes
Dmitry

Regards,
Junjie