dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v7 0/2] drm/panel: simple: Add TFC S9700RTWV43TR-01B 800x480 panel support
@ 2019-03-22  8:33 Jyri Sarha
  2019-03-22  8:33 ` [PATCH v7 1/2] dt-bindings: drm/panel: simple: Add binding for TFC S9700RTWV43TR-01B Jyri Sarha
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jyri Sarha @ 2019-03-22  8:33 UTC (permalink / raw)
  To: devicetree, dri-devel
  Cc: peter.ujfalusi, tomi.valkeinen, thierry.reding, laurent.pinchart

Changes since v6:
- Make power-supply a mandatory property
- Split binding to a separate patch
- Drop Tomi's reviewed-by, since the patch has changed quite a bit since his
  review

Previous round:
https://patchwork.kernel.org/patch/10854851/

Jyri Sarha (2):
  dt-bindings: drm/panel: simple: Add binding for TFC S9700RTWV43TR-01B
  drm/panel: simple: Add TFC S9700RTWV43TR-01B 800x480 panel support

 .../display/panel/tfc,s9700rtwv43tr-01b.txt   | 15 ++++++++++
 .../devicetree/bindings/vendor-prefixes.txt   |  1 +
 drivers/gpu/drm/panel/panel-simple.c          | 28 +++++++++++++++++++
 3 files changed, 44 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/panel/tfc,s9700rtwv43tr-01b.txt

-- 
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* [PATCH v7 1/2] dt-bindings: drm/panel: simple: Add binding for TFC S9700RTWV43TR-01B
  2019-03-22  8:33 [PATCH v7 0/2] drm/panel: simple: Add TFC S9700RTWV43TR-01B 800x480 panel support Jyri Sarha
@ 2019-03-22  8:33 ` Jyri Sarha
  2019-03-25 20:43   ` Rob Herring
  2019-03-22  8:33 ` [PATCH v7 2/2] drm/panel: simple: Add TFC S9700RTWV43TR-01B 800x480 panel support Jyri Sarha
  2019-04-23 12:16 ` [PATCH v7 0/2] " Thierry Reding
  2 siblings, 1 reply; 5+ messages in thread
From: Jyri Sarha @ 2019-03-22  8:33 UTC (permalink / raw)
  To: devicetree, dri-devel
  Cc: peter.ujfalusi, tomi.valkeinen, thierry.reding, laurent.pinchart

Add bindign for TFC S9700RTWV43TR-01B 7" Three Five Corp 800x480 LCD
panel with resistive touch.

The panel is found on TI AM335x-evm.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
---
 .../display/panel/tfc,s9700rtwv43tr-01b.txt       | 15 +++++++++++++++
 .../devicetree/bindings/vendor-prefixes.txt       |  1 +
 2 files changed, 16 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/panel/tfc,s9700rtwv43tr-01b.txt

diff --git a/Documentation/devicetree/bindings/display/panel/tfc,s9700rtwv43tr-01b.txt b/Documentation/devicetree/bindings/display/panel/tfc,s9700rtwv43tr-01b.txt
new file mode 100644
index 000000000000..dfb572f085eb
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/panel/tfc,s9700rtwv43tr-01b.txt
@@ -0,0 +1,15 @@
+TFC S9700RTWV43TR-01B 7" Three Five Corp 800x480 LCD panel with
+resistive touch
+
+The panel is found on TI AM335x-evm.
+
+Required properties:
+- compatible: should be "tfc,s9700rtwv43tr-01b"
+- power-supply: See panel-common.txt
+
+Optional properties:
+- enable-gpios: GPIO pin to enable or disable the panel, if there is one
+- backlight: phandle of the backlight device attached to the panel
+
+This binding is compatible with the simple-panel binding, which is specified
+in simple-panel.txt in this directory.
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt
index 389508584f48..0c0ffe2cc823 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.txt
+++ b/Documentation/devicetree/bindings/vendor-prefixes.txt
@@ -391,6 +391,7 @@ technexion	TechNexion
 technologic	Technologic Systems
 tempo	Tempo Semiconductor
 terasic	Terasic Inc.
+tfc	Three Five Corp
 thine	THine Electronics, Inc.
 ti	Texas Instruments
 tianma	Tianma Micro-electronics Co., Ltd.
-- 
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* [PATCH v7 2/2] drm/panel: simple: Add TFC S9700RTWV43TR-01B 800x480 panel support
  2019-03-22  8:33 [PATCH v7 0/2] drm/panel: simple: Add TFC S9700RTWV43TR-01B 800x480 panel support Jyri Sarha
  2019-03-22  8:33 ` [PATCH v7 1/2] dt-bindings: drm/panel: simple: Add binding for TFC S9700RTWV43TR-01B Jyri Sarha
@ 2019-03-22  8:33 ` Jyri Sarha
  2019-04-23 12:16 ` [PATCH v7 0/2] " Thierry Reding
  2 siblings, 0 replies; 5+ messages in thread
From: Jyri Sarha @ 2019-03-22  8:33 UTC (permalink / raw)
  To: devicetree, dri-devel
  Cc: peter.ujfalusi, tomi.valkeinen, thierry.reding, laurent.pinchart

Add support for Three Five displays TFC S9700RTWV43TR-01B 800x480
panel with resistive touch found on TI's AM335X-EVM.

Signed-off-by: Jyri Sarha <jsarha@ti.com>
---
 drivers/gpu/drm/panel/panel-simple.c | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 9c69e739a524..cfa57ee78482 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -2281,6 +2281,31 @@ static const struct panel_desc starry_kr122ea0sra = {
 	},
 };
 
+static const struct drm_display_mode tfc_s9700rtwv43tr_01b_mode = {
+	.clock = 30000,
+	.hdisplay = 800,
+	.hsync_start = 800 + 39,
+	.hsync_end = 800 + 39 + 47,
+	.htotal = 800 + 39 + 47 + 39,
+	.vdisplay = 480,
+	.vsync_start = 480 + 13,
+	.vsync_end = 480 + 13 + 2,
+	.vtotal = 480 + 13 + 2 + 29,
+	.vrefresh = 62,
+};
+
+static const struct panel_desc tfc_s9700rtwv43tr_01b = {
+	.modes = &tfc_s9700rtwv43tr_01b_mode,
+	.num_modes = 1,
+	.bpc = 8,
+	.size = {
+		.width = 155,
+		.height = 90,
+	},
+	.bus_format = MEDIA_BUS_FMT_RGB888_1X24,
+	.bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_POSEDGE,
+};
+
 static const struct display_timing tianma_tm070jdhg30_timing = {
 	.pixelclock = { 62600000, 68200000, 78100000 },
 	.hactive = { 1280, 1280, 1280 },
@@ -2718,6 +2743,9 @@ static const struct of_device_id platform_of_match[] = {
 	}, {
 		.compatible = "starry,kr122ea0sra",
 		.data = &starry_kr122ea0sra,
+	}, {
+		.compatible = "tfc,s9700rtwv43tr-01b",
+		.data = &tfc_s9700rtwv43tr_01b,
 	}, {
 		.compatible = "tianma,tm070jdhg30",
 		.data = &tianma_tm070jdhg30,
-- 
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* Re: [PATCH v7 1/2] dt-bindings: drm/panel: simple: Add binding for TFC S9700RTWV43TR-01B
  2019-03-22  8:33 ` [PATCH v7 1/2] dt-bindings: drm/panel: simple: Add binding for TFC S9700RTWV43TR-01B Jyri Sarha
@ 2019-03-25 20:43   ` Rob Herring
  0 siblings, 0 replies; 5+ messages in thread
From: Rob Herring @ 2019-03-25 20:43 UTC (permalink / raw)
  To: Jyri Sarha
  Cc: devicetree, dri-devel, peter.ujfalusi, tomi.valkeinen,
	thierry.reding, laurent.pinchart

On Fri, 22 Mar 2019 10:33:35 +0200, Jyri Sarha wrote:
> Add bindign for TFC S9700RTWV43TR-01B 7" Three Five Corp 800x480 LCD
> panel with resistive touch.
> 
> The panel is found on TI AM335x-evm.
> 
> Signed-off-by: Jyri Sarha <jsarha@ti.com>
> ---
>  .../display/panel/tfc,s9700rtwv43tr-01b.txt       | 15 +++++++++++++++
>  .../devicetree/bindings/vendor-prefixes.txt       |  1 +
>  2 files changed, 16 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/display/panel/tfc,s9700rtwv43tr-01b.txt
> 

Reviewed-by: Rob Herring <robh@kernel.org>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* Re: [PATCH v7 0/2] drm/panel: simple: Add TFC S9700RTWV43TR-01B 800x480 panel support
  2019-03-22  8:33 [PATCH v7 0/2] drm/panel: simple: Add TFC S9700RTWV43TR-01B 800x480 panel support Jyri Sarha
  2019-03-22  8:33 ` [PATCH v7 1/2] dt-bindings: drm/panel: simple: Add binding for TFC S9700RTWV43TR-01B Jyri Sarha
  2019-03-22  8:33 ` [PATCH v7 2/2] drm/panel: simple: Add TFC S9700RTWV43TR-01B 800x480 panel support Jyri Sarha
@ 2019-04-23 12:16 ` Thierry Reding
  2 siblings, 0 replies; 5+ messages in thread
From: Thierry Reding @ 2019-04-23 12:16 UTC (permalink / raw)
  To: Jyri Sarha
  Cc: devicetree, dri-devel, peter.ujfalusi, tomi.valkeinen, laurent.pinchart


[-- Attachment #1.1: Type: text/plain, Size: 866 bytes --]

On Fri, Mar 22, 2019 at 10:33:34AM +0200, Jyri Sarha wrote:
> Changes since v6:
> - Make power-supply a mandatory property
> - Split binding to a separate patch
> - Drop Tomi's reviewed-by, since the patch has changed quite a bit since his
>   review
> 
> Previous round:
> https://patchwork.kernel.org/patch/10854851/
> 
> Jyri Sarha (2):
>   dt-bindings: drm/panel: simple: Add binding for TFC S9700RTWV43TR-01B
>   drm/panel: simple: Add TFC S9700RTWV43TR-01B 800x480 panel support
> 
>  .../display/panel/tfc,s9700rtwv43tr-01b.txt   | 15 ++++++++++
>  .../devicetree/bindings/vendor-prefixes.txt   |  1 +
>  drivers/gpu/drm/panel/panel-simple.c          | 28 +++++++++++++++++++
>  3 files changed, 44 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/display/panel/tfc,s9700rtwv43tr-01b.txt

Applied, thanks.

Thierry

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2019-04-23 12:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-22  8:33 [PATCH v7 0/2] drm/panel: simple: Add TFC S9700RTWV43TR-01B 800x480 panel support Jyri Sarha
2019-03-22  8:33 ` [PATCH v7 1/2] dt-bindings: drm/panel: simple: Add binding for TFC S9700RTWV43TR-01B Jyri Sarha
2019-03-25 20:43   ` Rob Herring
2019-03-22  8:33 ` [PATCH v7 2/2] drm/panel: simple: Add TFC S9700RTWV43TR-01B 800x480 panel support Jyri Sarha
2019-04-23 12:16 ` [PATCH v7 0/2] " Thierry Reding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).