Devicetree
 help / color / mirror / Atom feed
* [PATCH 0/3] drm/panel: simple: Add Techshine TS-P0700031A panel
@ 2026-11-25 10:19 Alessandro Zini
  2026-11-25 10:19 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add Techshine Alessandro Zini
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Alessandro Zini @ 2026-11-25 10:19 UTC (permalink / raw)
  To: neil.armstrong, jesszhan0024, robh, krzk+dt, conor+dt
  Cc: maarten.lankhorst, mripard, tzimmermann, airlied, simona,
	thierry.reding, sam, dri-devel, devicetree, Andrej Valek,
	Alessandro Zini

Add Techshine TS-P0700031A panel support into panel-simple driver along
with the required DT bindings documentation, including the vendor prefix.

Alessandro Zini (2):
  dt-bindings: vendor-prefixes: Add Techshine
  dt-bindings: display: simple: Add Techshine TS-P0700031A panel

Andrej Valek (1):
  drm/panel: simple: Add support for Techshine TS-P0700031A panel

 .../bindings/display/panel/panel-simple.yaml  |  2 ++
 .../devicetree/bindings/vendor-prefixes.yaml  |  2 ++
 drivers/gpu/drm/panel/panel-simple.c          | 32 +++++++++++++++++++
 3 files changed, 36 insertions(+)


base-commit: adcad7f4e6332cff3d6d7165f41584899f598534
-- 
2.56.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/3] dt-bindings: vendor-prefixes: Add Techshine
  2026-11-25 10:19 [PATCH 0/3] drm/panel: simple: Add Techshine TS-P0700031A panel Alessandro Zini
@ 2026-11-25 10:19 ` Alessandro Zini
  2026-11-25 10:19 ` [PATCH 2/3] dt-bindings: display: simple: Add Techshine TS-P0700031A panel Alessandro Zini
  2026-11-25 10:19 ` [PATCH 3/3] drm/panel: simple: Add support for " Alessandro Zini
  2 siblings, 0 replies; 5+ messages in thread
From: Alessandro Zini @ 2026-11-25 10:19 UTC (permalink / raw)
  To: neil.armstrong, jesszhan0024, robh, krzk+dt, conor+dt
  Cc: maarten.lankhorst, mripard, tzimmermann, airlied, simona,
	thierry.reding, sam, dri-devel, devicetree, Andrej Valek,
	Alessandro Zini

Add the vendor prefix for Guangxi Techshine Electronics Co., Ltd., the
manufacturer of the TS-P0700031A LVDS panel.

Signed-off-by: Alessandro Zini <alessandro.zini@siemens.com>
---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml
index a846ae023584e..6e896c342f637 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
@@ -1726,6 +1726,8 @@ patternProperties:
     description: TechNexion
   "^technologic,.*":
     description: Technologic Systems
+  "^techshine,.*":
+    description: Guangxi Techshine Electronics Co., Ltd.
   "^techstar,.*":
     description: Shenzhen Techstar Electronics Co., Ltd.
   "^techvision,.*":
-- 
2.56.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/3] dt-bindings: display: simple: Add Techshine TS-P0700031A panel
  2026-11-25 10:19 [PATCH 0/3] drm/panel: simple: Add Techshine TS-P0700031A panel Alessandro Zini
  2026-11-25 10:19 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add Techshine Alessandro Zini
@ 2026-11-25 10:19 ` Alessandro Zini
  2026-11-25 10:19 ` [PATCH 3/3] drm/panel: simple: Add support for " Alessandro Zini
  2 siblings, 0 replies; 5+ messages in thread
From: Alessandro Zini @ 2026-11-25 10:19 UTC (permalink / raw)
  To: neil.armstrong, jesszhan0024, robh, krzk+dt, conor+dt
  Cc: maarten.lankhorst, mripard, tzimmermann, airlied, simona,
	thierry.reding, sam, dri-devel, devicetree, Andrej Valek,
	Alessandro Zini

Document the compatible string for the Guangxi Techshine Electronics
Co., Ltd. TS-P0700031A 1024x600 single-channel 24-bit LVDS (SPWG) TFT
LCD panel, which is driven by the panel-simple driver.

Signed-off-by: Alessandro Zini <alessandro.zini@siemens.com>
---
 .../devicetree/bindings/display/panel/panel-simple.yaml         | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
index 11d4a8275ecde..385ee9acf5e1b 100644
--- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
+++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
@@ -318,6 +318,8 @@ properties:
       - startek,kd070wvfpa
         # Team Source Display Technology TST043015CMHX 4.3" WQVGA TFT LCD panel
       - team-source-display,tst043015cmhx
+        # Guangxi Techshine Electronics Co., Ltd. TS-P0700031A 1024x600 LVDS TFT LCD panel
+      - techshine,ts-p0700031a
         # Tianma Micro-electronics P0700WXF1MBAA 7.0" WXGA (1280x800) LVDS TFT LCD panel
       - tianma,p0700wxf1mbaa
         # Tianma Micro-electronics TM050RDH03 5.0" WVGA TFT LCD panel
-- 
2.56.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 3/3] drm/panel: simple: Add support for Techshine TS-P0700031A panel
  2026-11-25 10:19 [PATCH 0/3] drm/panel: simple: Add Techshine TS-P0700031A panel Alessandro Zini
  2026-11-25 10:19 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add Techshine Alessandro Zini
  2026-11-25 10:19 ` [PATCH 2/3] dt-bindings: display: simple: Add Techshine TS-P0700031A panel Alessandro Zini
@ 2026-11-25 10:19 ` Alessandro Zini
  2026-11-25 10:28   ` sashiko-bot
  2 siblings, 1 reply; 5+ messages in thread
From: Alessandro Zini @ 2026-11-25 10:19 UTC (permalink / raw)
  To: neil.armstrong, jesszhan0024, robh, krzk+dt, conor+dt
  Cc: maarten.lankhorst, mripard, tzimmermann, airlied, simona,
	thierry.reding, sam, dri-devel, devicetree, Andrej Valek,
	Alessandro Zini

From: Andrej Valek <andrej.v@skyrain.eu>

Add display timing and panel descriptor for the Techshine TS-P0700031A
LCD panel.
Register the panel in the of_device_id table with the compatible string
"techshine,ts-p0700031a".

Signed-off-by: Andrej Valek <andrej.v@skyrain.eu>
Signed-off-by: Alessandro Zini <alessandro.zini@siemens.com>
---
 drivers/gpu/drm/panel/panel-simple.c | 32 ++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 33d954f3ee289..8eda4f74bc44f 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -4827,6 +4827,35 @@ static const struct panel_desc tsd_tst043015cmhx = {
 	.bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
 };
 
+static const struct display_timing techshine_ts_p0700031a_timing = {
+	.pixelclock = { 44900000, 51200000, 63000000 },
+	.hactive = { 1024, 1024, 1024 },
+	.hfront_porch = { 16, 160, 216 },
+	.hback_porch = { 160, 160, 160 },
+	.hsync_len = { 1, 1, 256 },
+	.vactive = { 600, 600, 600 },
+	.vfront_porch = { 1, 12, 127 },
+	.vback_porch = { 23, 23, 23 },
+	.vsync_len = { 1, 1, 128 },
+	.flags = DISPLAY_FLAGS_DE_HIGH,
+};
+
+static const struct panel_desc techshine_ts_p0700031a = {
+	.timings = &techshine_ts_p0700031a_timing,
+	.num_timings = 1,
+	.bpc = 8,
+	.size = {
+		.width = 165,
+		.height = 105,
+	},
+	.delay = {
+		.enable = 25,
+		.disable = 25,
+	},
+	.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+	.connector_type = DRM_MODE_CONNECTOR_LVDS,
+};
+
 static const struct drm_display_mode tfc_s9700rtwv43tr_01b_mode = {
 	.clock = 30000,
 	.hdisplay = 800,
@@ -6179,6 +6208,9 @@ static const struct of_device_id platform_of_match[] = {
 	}, {
 		.compatible = "team-source-display,tst043015cmhx",
 		.data = &tsd_tst043015cmhx,
+	}, {
+		.compatible = "techshine,ts-p0700031a",
+		.data = &techshine_ts_p0700031a,
 	}, {
 		.compatible = "tfc,s9700rtwv43tr-01b",
 		.data = &tfc_s9700rtwv43tr_01b,
-- 
2.56.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 3/3] drm/panel: simple: Add support for Techshine TS-P0700031A panel
  2026-11-25 10:19 ` [PATCH 3/3] drm/panel: simple: Add support for " Alessandro Zini
@ 2026-11-25 10:28   ` sashiko-bot
  0 siblings, 0 replies; 5+ messages in thread
From: sashiko-bot @ 2026-11-25 10:28 UTC (permalink / raw)
  To: Alessandro Zini; +Cc: dri-devel, devicetree, robh, conor+dt

Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [Medium] drm/panel: simple: missing DRM_BUS_FLAG_DE_HIGH in
  techshine_ts_p0700031a
- [Medium] drm/panel: simple: outline dimensions used for
  techshine_ts_p0700031a.size
--

commit 09cc823426aa17952fdeb447b0b574537835dc2b
Author: Andrej Valek <andrej.v@skyrain.eu>

drm/panel: simple: Add support for Techshine TS-P0700031A panel

This commit adds a display timing descriptor, a panel descriptor, and an OF
match table entry for the Techshine TS-P0700031A LVDS panel.

> diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
> index 33d954f3ee289..8eda4f74bc44f 100644
> --- a/drivers/gpu/drm/panel/panel-simple.c
> +++ b/drivers/gpu/drm/panel/panel-simple.c
> @@ -4827,6 +4827,35 @@ static const struct panel_desc tsd_tst043015cmhx = {
>  	.bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
>  };
>  
> +static const struct display_timing techshine_ts_p0700031a_timing = {
> +	.pixelclock = { 44900000, 51200000, 63000000 },
> +	.hactive = { 1024, 1024, 1024 },
> +	.hfront_porch = { 16, 160, 216 },
> +	.hback_porch = { 160, 160, 160 },
> +	.hsync_len = { 1, 1, 256 },
> +	.vactive = { 600, 600, 600 },
> +	.vfront_porch = { 1, 12, 127 },
> +	.vback_porch = { 23, 23, 23 },
> +	.vsync_len = { 1, 1, 128 },
> +	.flags = DISPLAY_FLAGS_DE_HIGH,
> +};
> +
> +static const struct panel_desc techshine_ts_p0700031a = {
> +	.timings = &techshine_ts_p0700031a_timing,
> +	.num_timings = 1,
> +	.bpc = 8,
> +	.size = {
> +		.width = 165,
> +		.height = 105,
> +	},

[Severity: Medium]
Are 165 mm and 105 mm in techshine_ts_p0700031a.size the mechanical module
outline dimensions rather than the active display area?

struct panel_desc.size specifies the active display area in millimeters and
populates connector->display_info.width_mm and height_mm.  For a 7.0-inch
1024x600 panel, 165x105 mm yields a 7.7-inch diagonal and non-square pixel
aspect ratio instead of the ~154x86 mm active area.

> +	.delay = {
> +		.enable = 25,
> +		.disable = 25,
> +	},
> +	.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
> +	.connector_type = DRM_MODE_CONNECTOR_LVDS,
> +};

[Severity: Medium]
Should techshine_ts_p0700031a also set .bus_flags = DRM_BUS_FLAG_DE_HIGH to
match DISPLAY_FLAGS_DE_HIGH in techshine_ts_p0700031a_timing?

panel_simple_get_timings_modes() does not translate DISPLAY_FLAGS_DE_HIGH
into connector->display_info.bus_flags, which panel_simple_get_non_edid_modes()
copies directly from panel->desc->bus_flags.  Leaving .bus_flags unset leaves
display_info.bus_flags as 0 for display controllers and LVDS bridges that
configure Data Enable polarity from it.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261125101936.103094-1-alessandro.zini@siemens.com?part=3

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-25 10:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25 10:19 [PATCH 0/3] drm/panel: simple: Add Techshine TS-P0700031A panel Alessandro Zini
2026-11-25 10:19 ` [PATCH 1/3] dt-bindings: vendor-prefixes: Add Techshine Alessandro Zini
2026-11-25 10:19 ` [PATCH 2/3] dt-bindings: display: simple: Add Techshine TS-P0700031A panel Alessandro Zini
2026-11-25 10:19 ` [PATCH 3/3] drm/panel: simple: Add support for " Alessandro Zini
2026-11-25 10:28   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox