mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] drm: panel-simple: support TOPLAND TIAN G07017 LCD panel
@ 2024-12-18 19:44 Ahmad Fatoum
  2024-12-18 19:44 ` [PATCH 1/3] dt-bindings: vendor-prefixes: add prefix for Topland Electronics (H.K) Ahmad Fatoum
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Ahmad Fatoum @ 2024-12-18 19:44 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Neil Armstrong,
	Jessica Zhang, David Airlie, Simona Vetter, Maarten Lankhorst,
	Maxime Ripard, Thomas Zimmermann, Thierry Reding, Sam Ravnborg
  Cc: devicetree, linux-kernel, dri-devel, kernel, Ahmad Fatoum

The TIAN-G07017-01 is a 7" TFT-LCD module by TOPLAND ELECTRONICS (H.K).
The panel features 1024x600 24-bit RGB pixels driven over LVDS as well
as a PWM backlight and I2C-connected  ft5506-compatible capacitive touch.

This series adds DT binding and Linux driver support for this panel.

---
Ahmad Fatoum (3):
      dt-bindings: vendor-prefixes: add prefix for Topland Electronics (H.K)
      dt-bindings: display: panel-simple: Document Topland TIAN-G07017-01
      drm: panel-simple: support TOPLAND TIAN G07017 LCD panel

 .../bindings/display/panel/panel-simple.yaml       |  2 ++
 .../devicetree/bindings/vendor-prefixes.yaml       |  2 ++
 drivers/gpu/drm/panel/panel-simple.c               | 34 ++++++++++++++++++++++
 3 files changed, 38 insertions(+)
---
base-commit: 78d4f34e2115b517bcbfe7ec0d018bbbb6f9b0b8
change-id: 20241218-topland-tian-g07017-52e3d4e8ea0f

Best regards,
-- 
Ahmad Fatoum <a.fatoum@pengutronix.de>


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

* [PATCH 1/3] dt-bindings: vendor-prefixes: add prefix for Topland Electronics (H.K)
  2024-12-18 19:44 [PATCH 0/3] drm: panel-simple: support TOPLAND TIAN G07017 LCD panel Ahmad Fatoum
@ 2024-12-18 19:44 ` Ahmad Fatoum
  2024-12-19  9:26   ` Krzysztof Kozlowski
  2024-12-18 19:44 ` [PATCH 2/3] dt-bindings: display: panel-simple: Document Topland TIAN-G07017-01 Ahmad Fatoum
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 8+ messages in thread
From: Ahmad Fatoum @ 2024-12-18 19:44 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Neil Armstrong,
	Jessica Zhang, David Airlie, Simona Vetter, Maarten Lankhorst,
	Maxime Ripard, Thomas Zimmermann, Thierry Reding, Sam Ravnborg
  Cc: devicetree, linux-kernel, dri-devel, kernel, Ahmad Fatoum

Topland is a professional supplier of photoelectric display and touch
integrated products from Hong Kong: https://www.topland.com.hk/aboutus/

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 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 da01616802c76830a520594a69bd6a2e0231df0d..42d14899d584ca724439fdf500274a729ddbc455 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.yaml
+++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml
@@ -1524,6 +1524,8 @@ patternProperties:
     description: Topeet
   "^topic,.*":
     description: Topic Embedded Systems
+  "^topland,.*":
+    description: Topland Electronics (H.K) Co., Ltd.
   "^toppoly,.*":
     description: TPO (deprecated, use tpo)
     deprecated: true

-- 
2.39.5


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

* [PATCH 2/3] dt-bindings: display: panel-simple: Document Topland TIAN-G07017-01
  2024-12-18 19:44 [PATCH 0/3] drm: panel-simple: support TOPLAND TIAN G07017 LCD panel Ahmad Fatoum
  2024-12-18 19:44 ` [PATCH 1/3] dt-bindings: vendor-prefixes: add prefix for Topland Electronics (H.K) Ahmad Fatoum
@ 2024-12-18 19:44 ` Ahmad Fatoum
  2024-12-19  9:26   ` Krzysztof Kozlowski
  2024-12-18 19:45 ` [PATCH 3/3] drm: panel-simple: support TOPLAND TIAN G07017 LCD panel Ahmad Fatoum
  2024-12-20 11:08 ` [PATCH 0/3] " Neil Armstrong
  3 siblings, 1 reply; 8+ messages in thread
From: Ahmad Fatoum @ 2024-12-18 19:44 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Neil Armstrong,
	Jessica Zhang, David Airlie, Simona Vetter, Maarten Lankhorst,
	Maxime Ripard, Thomas Zimmermann, Thierry Reding, Sam Ravnborg
  Cc: devicetree, linux-kernel, dri-devel, kernel, Ahmad Fatoum

The TIAN-G07017-01 is a 7" TFT-LCD module by TOPLAND ELECTRONICS (H.K).
Add its compatible string.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 Documentation/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 18b63f356bb4bbf6d2c8e58b13ebb14c5f4004ad..2a3bf4f079e9297b06ca9d25290c0b3fe7881043 100644
--- a/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
+++ b/Documentation/devicetree/bindings/display/panel/panel-simple.yaml
@@ -284,6 +284,8 @@ properties:
       - tianma,tm070jvhg33
         # Tianma Micro-electronics TM070RVHG71 7.0" WXGA TFT LCD panel
       - tianma,tm070rvhg71
+        # Topland TIAN-G07017-01 7.0" WSVGA TFT-LCD panel with capacitive touch
+      - topland,tian-g07017-01
         # Toshiba 8.9" WXGA (1280x768) TFT LCD panel
       - toshiba,lt089ac29000
         # TPK U.S.A. LLC Fusion 7" 800 x 480 (WVGA) LCD panel with capacitive touch

-- 
2.39.5


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

* [PATCH 3/3] drm: panel-simple: support TOPLAND TIAN G07017 LCD panel
  2024-12-18 19:44 [PATCH 0/3] drm: panel-simple: support TOPLAND TIAN G07017 LCD panel Ahmad Fatoum
  2024-12-18 19:44 ` [PATCH 1/3] dt-bindings: vendor-prefixes: add prefix for Topland Electronics (H.K) Ahmad Fatoum
  2024-12-18 19:44 ` [PATCH 2/3] dt-bindings: display: panel-simple: Document Topland TIAN-G07017-01 Ahmad Fatoum
@ 2024-12-18 19:45 ` Ahmad Fatoum
  2024-12-19  8:39   ` Neil Armstrong
  2024-12-20 11:08 ` [PATCH 0/3] " Neil Armstrong
  3 siblings, 1 reply; 8+ messages in thread
From: Ahmad Fatoum @ 2024-12-18 19:45 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Neil Armstrong,
	Jessica Zhang, David Airlie, Simona Vetter, Maarten Lankhorst,
	Maxime Ripard, Thomas Zimmermann, Thierry Reding, Sam Ravnborg
  Cc: devicetree, linux-kernel, dri-devel, kernel, Ahmad Fatoum

The TIAN-G07017-01 is a 7" TFT-LCD module by TOPLAND ELECTRONICS (H.K).
The panel features 1024x600 24-bit RGB pixels driven over LVDS as well
as a PWM backlight and I2C-connected ft5506-compatible capacitive touch.

The panel description is taken from the Datasheet V0 (2024.5.23), but
it lists no timings and these were provided by the vendor separately.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 drivers/gpu/drm/panel/panel-simple.c | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 222c170dde8be261e98ff41168ef8a3a42c167c8..626cbc6858215f6fdc72063e38564e2dc1deb52c 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -4361,6 +4361,37 @@ static const struct panel_desc ti_nspire_classic_lcd_panel = {
 	.bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
 };
 
+static const struct display_timing topland_tian_g07017_01_timing = {
+	.pixelclock = { 44900000, 51200000, 63000000 },
+	.hactive = { 1024, 1024, 1024 },
+	.hfront_porch = { 16, 160, 216 },
+	.hback_porch = { 160, 160, 160 },
+	.hsync_len = { 1, 1, 140 },
+	.vactive = { 600, 600, 600 },
+	.vfront_porch = { 1, 12, 127 },
+	.vback_porch = { 23, 23, 23 },
+	.vsync_len = { 1, 1, 20 },
+};
+
+static const struct panel_desc topland_tian_g07017_01 = {
+	.timings = &topland_tian_g07017_01_timing,
+	.num_timings = 1,
+	.bpc = 8,
+	.size = {
+		.width = 154,
+		.height = 86,
+	},
+	.delay = {
+		.prepare = 1, /* 6.5 - 150µs PLL wake-up time */
+		.enable = 100,  /* 6.4 - Power on: 6 VSyncs */
+		.disable = 84, /* 6.4 - Power off: 5 Vsyncs */
+		.unprepare = 50, /* 6.4 - Power off: 3 Vsyncs */
+	},
+	.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+	.connector_type = DRM_MODE_CONNECTOR_LVDS,
+	.bus_flags = DRM_BUS_FLAG_DE_HIGH,
+};
+
 static const struct drm_display_mode toshiba_lt089ac29000_mode = {
 	.clock = 79500,
 	.hdisplay = 1280,
@@ -5037,6 +5068,9 @@ static const struct of_device_id platform_of_match[] = {
 	}, {
 		.compatible = "toshiba,lt089ac29000",
 		.data = &toshiba_lt089ac29000,
+	}, {
+		.compatible = "topland,tian-g07017-01",
+		.data = &topland_tian_g07017_01,
 	}, {
 		.compatible = "tpk,f07a-0102",
 		.data = &tpk_f07a_0102,

-- 
2.39.5


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

* Re: [PATCH 3/3] drm: panel-simple: support TOPLAND TIAN G07017 LCD panel
  2024-12-18 19:45 ` [PATCH 3/3] drm: panel-simple: support TOPLAND TIAN G07017 LCD panel Ahmad Fatoum
@ 2024-12-19  8:39   ` Neil Armstrong
  0 siblings, 0 replies; 8+ messages in thread
From: Neil Armstrong @ 2024-12-19  8:39 UTC (permalink / raw)
  To: Ahmad Fatoum, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Jessica Zhang, David Airlie, Simona Vetter, Maarten Lankhorst,
	Maxime Ripard, Thomas Zimmermann, Thierry Reding, Sam Ravnborg
  Cc: devicetree, linux-kernel, dri-devel, kernel

On 18/12/2024 20:45, Ahmad Fatoum wrote:
> The TIAN-G07017-01 is a 7" TFT-LCD module by TOPLAND ELECTRONICS (H.K).
> The panel features 1024x600 24-bit RGB pixels driven over LVDS as well
> as a PWM backlight and I2C-connected ft5506-compatible capacitive touch.
> 
> The panel description is taken from the Datasheet V0 (2024.5.23), but
> it lists no timings and these were provided by the vendor separately.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
>   drivers/gpu/drm/panel/panel-simple.c | 34 ++++++++++++++++++++++++++++++++++
>   1 file changed, 34 insertions(+)
> 
> diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
> index 222c170dde8be261e98ff41168ef8a3a42c167c8..626cbc6858215f6fdc72063e38564e2dc1deb52c 100644
> --- a/drivers/gpu/drm/panel/panel-simple.c
> +++ b/drivers/gpu/drm/panel/panel-simple.c
> @@ -4361,6 +4361,37 @@ static const struct panel_desc ti_nspire_classic_lcd_panel = {
>   	.bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
>   };
>   
> +static const struct display_timing topland_tian_g07017_01_timing = {
> +	.pixelclock = { 44900000, 51200000, 63000000 },
> +	.hactive = { 1024, 1024, 1024 },
> +	.hfront_porch = { 16, 160, 216 },
> +	.hback_porch = { 160, 160, 160 },
> +	.hsync_len = { 1, 1, 140 },
> +	.vactive = { 600, 600, 600 },
> +	.vfront_porch = { 1, 12, 127 },
> +	.vback_porch = { 23, 23, 23 },
> +	.vsync_len = { 1, 1, 20 },
> +};
> +
> +static const struct panel_desc topland_tian_g07017_01 = {
> +	.timings = &topland_tian_g07017_01_timing,
> +	.num_timings = 1,
> +	.bpc = 8,
> +	.size = {
> +		.width = 154,
> +		.height = 86,
> +	},
> +	.delay = {
> +		.prepare = 1, /* 6.5 - 150µs PLL wake-up time */
> +		.enable = 100,  /* 6.4 - Power on: 6 VSyncs */
> +		.disable = 84, /* 6.4 - Power off: 5 Vsyncs */
> +		.unprepare = 50, /* 6.4 - Power off: 3 Vsyncs */
> +	},
> +	.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
> +	.connector_type = DRM_MODE_CONNECTOR_LVDS,
> +	.bus_flags = DRM_BUS_FLAG_DE_HIGH,
> +};
> +
>   static const struct drm_display_mode toshiba_lt089ac29000_mode = {
>   	.clock = 79500,
>   	.hdisplay = 1280,
> @@ -5037,6 +5068,9 @@ static const struct of_device_id platform_of_match[] = {
>   	}, {
>   		.compatible = "toshiba,lt089ac29000",
>   		.data = &toshiba_lt089ac29000,
> +	}, {
> +		.compatible = "topland,tian-g07017-01",
> +		.data = &topland_tian_g07017_01,
>   	}, {
>   		.compatible = "tpk,f07a-0102",
>   		.data = &tpk_f07a_0102,
> 

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>

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

* Re: [PATCH 1/3] dt-bindings: vendor-prefixes: add prefix for Topland Electronics (H.K)
  2024-12-18 19:44 ` [PATCH 1/3] dt-bindings: vendor-prefixes: add prefix for Topland Electronics (H.K) Ahmad Fatoum
@ 2024-12-19  9:26   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2024-12-19  9:26 UTC (permalink / raw)
  To: Ahmad Fatoum
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Neil Armstrong,
	Jessica Zhang, David Airlie, Simona Vetter, Maarten Lankhorst,
	Maxime Ripard, Thomas Zimmermann, Thierry Reding, Sam Ravnborg,
	devicetree, linux-kernel, dri-devel, kernel

On Wed, Dec 18, 2024 at 08:44:58PM +0100, Ahmad Fatoum wrote:
> Topland is a professional supplier of photoelectric display and touch
> integrated products from Hong Kong: https://www.topland.com.hk/aboutus/
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


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

* Re: [PATCH 2/3] dt-bindings: display: panel-simple: Document Topland TIAN-G07017-01
  2024-12-18 19:44 ` [PATCH 2/3] dt-bindings: display: panel-simple: Document Topland TIAN-G07017-01 Ahmad Fatoum
@ 2024-12-19  9:26   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 8+ messages in thread
From: Krzysztof Kozlowski @ 2024-12-19  9:26 UTC (permalink / raw)
  To: Ahmad Fatoum
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Neil Armstrong,
	Jessica Zhang, David Airlie, Simona Vetter, Maarten Lankhorst,
	Maxime Ripard, Thomas Zimmermann, Thierry Reding, Sam Ravnborg,
	devicetree, linux-kernel, dri-devel, kernel

On Wed, Dec 18, 2024 at 08:44:59PM +0100, Ahmad Fatoum wrote:
> The TIAN-G07017-01 is a 7" TFT-LCD module by TOPLAND ELECTRONICS (H.K).
> Add its compatible string.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
>  Documentation/devicetree/bindings/display/panel/panel-simple.yaml | 2 ++
>  1 file changed, 2 insertions(+)

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


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

* Re: [PATCH 0/3] drm: panel-simple: support TOPLAND TIAN G07017 LCD panel
  2024-12-18 19:44 [PATCH 0/3] drm: panel-simple: support TOPLAND TIAN G07017 LCD panel Ahmad Fatoum
                   ` (2 preceding siblings ...)
  2024-12-18 19:45 ` [PATCH 3/3] drm: panel-simple: support TOPLAND TIAN G07017 LCD panel Ahmad Fatoum
@ 2024-12-20 11:08 ` Neil Armstrong
  3 siblings, 0 replies; 8+ messages in thread
From: Neil Armstrong @ 2024-12-20 11:08 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Jessica Zhang,
	David Airlie, Simona Vetter, Maarten Lankhorst, Maxime Ripard,
	Thomas Zimmermann, Thierry Reding, Sam Ravnborg, Ahmad Fatoum
  Cc: devicetree, linux-kernel, dri-devel, kernel

Hi,

On Wed, 18 Dec 2024 20:44:57 +0100, Ahmad Fatoum wrote:
> The TIAN-G07017-01 is a 7" TFT-LCD module by TOPLAND ELECTRONICS (H.K).
> The panel features 1024x600 24-bit RGB pixels driven over LVDS as well
> as a PWM backlight and I2C-connected  ft5506-compatible capacitive touch.
> 
> This series adds DT binding and Linux driver support for this panel.
> 

Thanks, Applied to https://gitlab.freedesktop.org/drm/misc/kernel.git (drm-misc-next)

[1/3] dt-bindings: vendor-prefixes: add prefix for Topland Electronics (H.K)
      https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/bd2f80c16f33f5d2abde1e23bfc06dc637259a56
[2/3] dt-bindings: display: panel-simple: Document Topland TIAN-G07017-01
      https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/3e743df4722c24f021143977335649a0f2e1311e
[3/3] drm: panel-simple: support TOPLAND TIAN G07017 LCD panel
      https://gitlab.freedesktop.org/drm/misc/kernel/-/commit/652be03b54e042d229fde7d086655c24b7146924

-- 
Neil


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

end of thread, other threads:[~2024-12-20 11:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-18 19:44 [PATCH 0/3] drm: panel-simple: support TOPLAND TIAN G07017 LCD panel Ahmad Fatoum
2024-12-18 19:44 ` [PATCH 1/3] dt-bindings: vendor-prefixes: add prefix for Topland Electronics (H.K) Ahmad Fatoum
2024-12-19  9:26   ` Krzysztof Kozlowski
2024-12-18 19:44 ` [PATCH 2/3] dt-bindings: display: panel-simple: Document Topland TIAN-G07017-01 Ahmad Fatoum
2024-12-19  9:26   ` Krzysztof Kozlowski
2024-12-18 19:45 ` [PATCH 3/3] drm: panel-simple: support TOPLAND TIAN G07017 LCD panel Ahmad Fatoum
2024-12-19  8:39   ` Neil Armstrong
2024-12-20 11:08 ` [PATCH 0/3] " Neil Armstrong

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

all inboxes | Powered by JetHome®