* [PATCH 1/2] dt-bindings: Add CDTech S050WV43-CT5 panel bindings
@ 2019-04-17 23:38 ` Florent TOMASIN
0 siblings, 0 replies; 6+ messages in thread
From: Florent TOMASIN @ 2019-04-17 23:38 UTC (permalink / raw)
Cc: tomasin.florent, Thierry Reding, David Airlie, Daniel Vetter,
Rob Herring, Mark Rutland, dri-devel, devicetree, linux-kernel
Add documentation for S050WV43-CT5 panel
Signed-off-by: Florent TOMASIN <tomasin.florent@gmail.com>
---
.../bindings/display/panel/cdtech,s050wv43-ct5.txt | 12 ++++++++++++
1 file changed, 12 insertions(+)
create mode 100644 Documentation/devicetree/bindings/display/panel/cdtech,s050wv43-ct5.txt
diff --git a/Documentation/devicetree/bindings/display/panel/cdtech,s050wv43-ct5.txt b/Documentation/devicetree/bindings/display/panel/cdtech,s050wv43-ct5.txt
new file mode 100644
index 000000000000..0e3313b68d9e
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/panel/cdtech,s050wv43-ct5.txt
@@ -0,0 +1,12 @@
+CDTech(H.K.) Electronics Limited 5" 800x480 color TFT-LCD panel
+
+Required properties:
+- compatible: should be "cdtech,s050wv43-ct5"
+- power-supply: as specified in the base binding
+
+Optional properties:
+- backlight: as specified in the base binding
+- enable-gpios: as specified in the base binding
+
+This binding is compatible with the simple-panel binding, which is specified
+in simple-panel.txt in this directory.
--
2.17.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 1/2] dt-bindings: Add CDTech S050WV43-CT5 panel bindings
@ 2019-04-17 23:38 ` Florent TOMASIN
0 siblings, 0 replies; 6+ messages in thread
From: Florent TOMASIN @ 2019-04-17 23:38 UTC (permalink / raw)
Cc: tomasin.florent, Thierry Reding, David Airlie, Daniel Vetter,
Rob Herring, Mark Rutland, dri-devel, devicetree, linux-kernel
Add documentation for S050WV43-CT5 panel
Signed-off-by: Florent TOMASIN <tomasin.florent@gmail.com>
---
.../bindings/display/panel/cdtech,s050wv43-ct5.txt | 12 ++++++++++++
1 file changed, 12 insertions(+)
create mode 100644 Documentation/devicetree/bindings/display/panel/cdtech,s050wv43-ct5.txt
diff --git a/Documentation/devicetree/bindings/display/panel/cdtech,s050wv43-ct5.txt b/Documentation/devicetree/bindings/display/panel/cdtech,s050wv43-ct5.txt
new file mode 100644
index 000000000000..0e3313b68d9e
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/panel/cdtech,s050wv43-ct5.txt
@@ -0,0 +1,12 @@
+CDTech(H.K.) Electronics Limited 5" 800x480 color TFT-LCD panel
+
+Required properties:
+- compatible: should be "cdtech,s050wv43-ct5"
+- power-supply: as specified in the base binding
+
+Optional properties:
+- backlight: as specified in the base binding
+- enable-gpios: as specified in the base binding
+
+This binding is compatible with the simple-panel binding, which is specified
+in simple-panel.txt in this directory.
--
2.17.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/2] drm/panel: add panel CDTech S050WV43-CT5 to panel-simple
2019-04-17 23:38 ` Florent TOMASIN
@ 2019-04-17 23:38 ` Florent TOMASIN
-1 siblings, 0 replies; 6+ messages in thread
From: Florent TOMASIN @ 2019-04-17 23:38 UTC (permalink / raw)
Cc: tomasin.florent, Thierry Reding, David Airlie, Daniel Vetter,
Rob Herring, Mark Rutland, dri-devel, devicetree, linux-kernel
This patch adds support for CDTech S050WV43-CT5 800x480 5" panel to DRM
simple panel driver.
Signed-off-by: Florent TOMASIN <tomasin.florent@gmail.com>
---
drivers/gpu/drm/panel/panel-simple.c | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 9e8218f6a3f2..486f61d324fb 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -917,6 +917,30 @@ static const struct panel_desc cdtech_s043wq26h_ct7 = {
.bus_flags = DRM_BUS_FLAG_PIXDATA_POSEDGE,
};
+static const struct drm_display_mode cdtech_s050wv43_ct5_mode = {
+ .clock = 30000,
+ .hdisplay = 800,
+ .hsync_start = 800 + 40,
+ .hsync_end = 800 + 40 + 48,
+ .htotal = 800 + 40 + 48 + 88,
+ .vdisplay = 480,
+ .vsync_start = 480 + 13,
+ .vsync_end = 480 + 13 + 3,
+ .vtotal = 480 + 13 + 3 + 32,
+ .vrefresh = 60,
+ .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
+};
+
+static const struct panel_desc cdtech_s050wv43_ct5 = {
+ .modes = &cdtech_s050wv43_ct5_mode,
+ .num_modes = 1,
+ .bpc = 8,
+ .size = {
+ .width = 108,
+ .height = 64,
+ },
+};
+
static const struct drm_display_mode cdtech_s070wv95_ct16_mode = {
.clock = 35000,
.hdisplay = 800,
@@ -2598,6 +2622,9 @@ static const struct of_device_id platform_of_match[] = {
}, {
.compatible = "cdtech,s043wq26h-ct7",
.data = &cdtech_s043wq26h_ct7,
+ }, {
+ .compatible = "cdtech,s050wv43-ct5",
+ .data = &cdtech_s050wv43_ct5,
}, {
.compatible = "cdtech,s070wv95-ct16",
.data = &cdtech_s070wv95_ct16,
--
2.17.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/2] drm/panel: add panel CDTech S050WV43-CT5 to panel-simple
@ 2019-04-17 23:38 ` Florent TOMASIN
0 siblings, 0 replies; 6+ messages in thread
From: Florent TOMASIN @ 2019-04-17 23:38 UTC (permalink / raw)
Cc: tomasin.florent, Thierry Reding, David Airlie, Daniel Vetter,
Rob Herring, Mark Rutland, dri-devel, devicetree, linux-kernel
This patch adds support for CDTech S050WV43-CT5 800x480 5" panel to DRM
simple panel driver.
Signed-off-by: Florent TOMASIN <tomasin.florent@gmail.com>
---
drivers/gpu/drm/panel/panel-simple.c | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 9e8218f6a3f2..486f61d324fb 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -917,6 +917,30 @@ static const struct panel_desc cdtech_s043wq26h_ct7 = {
.bus_flags = DRM_BUS_FLAG_PIXDATA_POSEDGE,
};
+static const struct drm_display_mode cdtech_s050wv43_ct5_mode = {
+ .clock = 30000,
+ .hdisplay = 800,
+ .hsync_start = 800 + 40,
+ .hsync_end = 800 + 40 + 48,
+ .htotal = 800 + 40 + 48 + 88,
+ .vdisplay = 480,
+ .vsync_start = 480 + 13,
+ .vsync_end = 480 + 13 + 3,
+ .vtotal = 480 + 13 + 3 + 32,
+ .vrefresh = 60,
+ .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
+};
+
+static const struct panel_desc cdtech_s050wv43_ct5 = {
+ .modes = &cdtech_s050wv43_ct5_mode,
+ .num_modes = 1,
+ .bpc = 8,
+ .size = {
+ .width = 108,
+ .height = 64,
+ },
+};
+
static const struct drm_display_mode cdtech_s070wv95_ct16_mode = {
.clock = 35000,
.hdisplay = 800,
@@ -2598,6 +2622,9 @@ static const struct of_device_id platform_of_match[] = {
}, {
.compatible = "cdtech,s043wq26h-ct7",
.data = &cdtech_s043wq26h_ct7,
+ }, {
+ .compatible = "cdtech,s050wv43-ct5",
+ .data = &cdtech_s050wv43_ct5,
}, {
.compatible = "cdtech,s070wv95-ct16",
.data = &cdtech_s070wv95_ct16,
--
2.17.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] dt-bindings: Add CDTech S050WV43-CT5 panel bindings
2019-04-17 23:38 ` Florent TOMASIN
@ 2019-04-30 1:17 ` Rob Herring
-1 siblings, 0 replies; 6+ messages in thread
From: Rob Herring @ 2019-04-30 1:17 UTC (permalink / raw)
To: Florent TOMASIN
Cc: tomasin.florent, Thierry Reding, David Airlie, Daniel Vetter,
Mark Rutland, dri-devel, devicetree, linux-kernel
On Thu, 18 Apr 2019 00:38:44 +0100, Florent TOMASIN wrote:
> Add documentation for S050WV43-CT5 panel
>
> Signed-off-by: Florent TOMASIN <tomasin.florent@gmail.com>
> ---
> .../bindings/display/panel/cdtech,s050wv43-ct5.txt | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/display/panel/cdtech,s050wv43-ct5.txt
>
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] dt-bindings: Add CDTech S050WV43-CT5 panel bindings
@ 2019-04-30 1:17 ` Rob Herring
0 siblings, 0 replies; 6+ messages in thread
From: Rob Herring @ 2019-04-30 1:17 UTC (permalink / raw)
Cc: tomasin.florent, Thierry Reding, David Airlie, Daniel Vetter,
Mark Rutland, dri-devel, devicetree, linux-kernel
On Thu, 18 Apr 2019 00:38:44 +0100, Florent TOMASIN wrote:
> Add documentation for S050WV43-CT5 panel
>
> Signed-off-by: Florent TOMASIN <tomasin.florent@gmail.com>
> ---
> .../bindings/display/panel/cdtech,s050wv43-ct5.txt | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/display/panel/cdtech,s050wv43-ct5.txt
>
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2019-04-30 1:17 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-17 23:38 [PATCH 1/2] dt-bindings: Add CDTech S050WV43-CT5 panel bindings Florent TOMASIN
2019-04-17 23:38 ` Florent TOMASIN
2019-04-17 23:38 ` [PATCH 2/2] drm/panel: add panel CDTech S050WV43-CT5 to panel-simple Florent TOMASIN
2019-04-17 23:38 ` Florent TOMASIN
2019-04-30 1:17 ` [PATCH 1/2] dt-bindings: Add CDTech S050WV43-CT5 panel bindings Rob Herring
2019-04-30 1:17 ` Rob Herring
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.