* [PATCH 1/3] drm/panel: simple: add more properties to Innolux G121I1-L01
@ 2016-11-30 13:09 Lucas Stach
2016-11-30 13:09 ` [PATCH 2/3] drm/panel: simple: add support for AUO G133HAN01 Lucas Stach
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Lucas Stach @ 2016-11-30 13:09 UTC (permalink / raw)
To: Thierry Reding; +Cc: kernel, dri-devel, patchwork-lst
Convert from a single mode to display timings, which allow to describe
the minimum/maximium blanking and clock rates, add enable/disable delays
and provide the bus format.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
drivers/gpu/drm/panel/panel-simple.c | 30 +++++++++++++++++-------------
1 file changed, 17 insertions(+), 13 deletions(-)
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 113db3c4a633..2bc22c3abbde 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -877,27 +877,31 @@ static const struct panel_desc innolux_g101ice_l01 = {
.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
};
-static const struct drm_display_mode innolux_g121i1_l01_mode = {
- .clock = 71000,
- .hdisplay = 1280,
- .hsync_start = 1280 + 64,
- .hsync_end = 1280 + 64 + 32,
- .htotal = 1280 + 64 + 32 + 64,
- .vdisplay = 800,
- .vsync_start = 800 + 9,
- .vsync_end = 800 + 9 + 6,
- .vtotal = 800 + 9 + 6 + 9,
- .vrefresh = 60,
+static const struct display_timing innolux_g121i1_l01_timing = {
+ .pixelclock = { 67450000, 71000000, 74550000 },
+ .hactive = { 1280, 1280, 1280 },
+ .hfront_porch = { 40, 80, 160 },
+ .hback_porch = { 39, 79, 159 },
+ .hsync_len = { 1, 1, 1 },
+ .vactive = { 800, 800, 800 },
+ .vfront_porch = { 5, 11, 100 },
+ .vback_porch = { 4, 11, 99 },
+ .vsync_len = { 1, 1, 1 },
};
static const struct panel_desc innolux_g121i1_l01 = {
- .modes = &innolux_g121i1_l01_mode,
- .num_modes = 1,
+ .timings = &innolux_g121i1_l01_timing,
+ .num_timings = 1,
.bpc = 6,
.size = {
.width = 261,
.height = 163,
},
+ .delay = {
+ .enable = 200,
+ .disable = 20,
+ },
+ .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
};
static const struct drm_display_mode innolux_g121x1_l03_mode = {
--
2.10.2
_______________________________________________
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 2/3] drm/panel: simple: add support for AUO G133HAN01
2016-11-30 13:09 [PATCH 1/3] drm/panel: simple: add more properties to Innolux G121I1-L01 Lucas Stach
@ 2016-11-30 13:09 ` Lucas Stach
2016-12-06 15:58 ` Thierry Reding
2016-11-30 13:09 ` [PATCH 3/3] drm/panel: simple: add support for AUO G185HAN01 Lucas Stach
2016-12-06 15:56 ` [PATCH 1/3] drm/panel: simple: add more properties to Innolux G121I1-L01 Thierry Reding
2 siblings, 1 reply; 5+ messages in thread
From: Lucas Stach @ 2016-11-30 13:09 UTC (permalink / raw)
To: Thierry Reding; +Cc: kernel, dri-devel, patchwork-lst
This adds support for the AU Optronics G133HAN01
13.3" LVDS FullHD TFT LCD panel, which can be supported
by the simple panel driver.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
.../bindings/display/panel/auo,g133han01.txt | 7 +++++
drivers/gpu/drm/panel/panel-simple.c | 32 ++++++++++++++++++++++
2 files changed, 39 insertions(+)
create mode 100644 Documentation/devicetree/bindings/display/panel/auo,g133han01.txt
diff --git a/Documentation/devicetree/bindings/display/panel/auo,g133han01.txt b/Documentation/devicetree/bindings/display/panel/auo,g133han01.txt
new file mode 100644
index 000000000000..3afc76747824
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/panel/auo,g133han01.txt
@@ -0,0 +1,7 @@
+AU Optronics Corporation 13.3" FHD (1920x1080) TFT LCD panel
+
+Required properties:
+- compatible: should be "auo,g133han01"
+
+This binding is compatible with the simple-panel binding, which is specified
+in simple-panel.txt in this directory.
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 2bc22c3abbde..9d0b1377cac6 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -555,6 +555,35 @@ static const struct panel_desc auo_b133htn01 = {
},
};
+static const struct display_timing auo_g133han01_timings = {
+ .pixelclock = { 134000000, 141200000, 149000000 },
+ .hactive = { 1920, 1920, 1920 },
+ .hfront_porch = { 39, 58, 77 },
+ .hback_porch = { 59, 88, 117 },
+ .hsync_len = { 28, 42, 56 },
+ .vactive = { 1080, 1080, 1080 },
+ .vfront_porch = { 3, 8, 11 },
+ .vback_porch = { 5, 14, 19 },
+ .vsync_len = { 4, 14, 19 },
+};
+
+static const struct panel_desc auo_g133han01 = {
+ .timings = &auo_g133han01_timings,
+ .num_timings = 1,
+ .bpc = 8,
+ .size = {
+ .width = 293,
+ .height = 165,
+ },
+ .delay = {
+ .prepare = 200,
+ .enable = 50,
+ .disable = 50,
+ .unprepare = 1000,
+ },
+ .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
+};
+
static const struct drm_display_mode avic_tm070ddh03_mode = {
.clock = 51200,
.hdisplay = 1024,
@@ -1579,6 +1608,9 @@ static const struct of_device_id platform_of_match[] = {
.compatible = "auo,b133xtn01",
.data = &auo_b133xtn01,
}, {
+ .compatible = "auo,g133han01",
+ .data = &auo_g133han01,
+ }, {
.compatible = "avic,tm070ddh03",
.data = &avic_tm070ddh03,
}, {
--
2.10.2
_______________________________________________
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 3/3] drm/panel: simple: add support for AUO G185HAN01
2016-11-30 13:09 [PATCH 1/3] drm/panel: simple: add more properties to Innolux G121I1-L01 Lucas Stach
2016-11-30 13:09 ` [PATCH 2/3] drm/panel: simple: add support for AUO G133HAN01 Lucas Stach
@ 2016-11-30 13:09 ` Lucas Stach
2016-12-06 15:56 ` [PATCH 1/3] drm/panel: simple: add more properties to Innolux G121I1-L01 Thierry Reding
2 siblings, 0 replies; 5+ messages in thread
From: Lucas Stach @ 2016-11-30 13:09 UTC (permalink / raw)
To: Thierry Reding; +Cc: kernel, dri-devel, patchwork-lst
This adds support for the AU Optronics G185HAN01
18.5" LVDS FullHD TFT LCD panel, which can be supported
by the simple panel driver.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
.../bindings/display/panel/auo,g185han01.txt | 7 +++++
drivers/gpu/drm/panel/panel-simple.c | 32 ++++++++++++++++++++++
2 files changed, 39 insertions(+)
create mode 100644 Documentation/devicetree/bindings/display/panel/auo,g185han01.txt
diff --git a/Documentation/devicetree/bindings/display/panel/auo,g185han01.txt b/Documentation/devicetree/bindings/display/panel/auo,g185han01.txt
new file mode 100644
index 000000000000..ed657c2141d4
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/panel/auo,g185han01.txt
@@ -0,0 +1,7 @@
+AU Optronics Corporation 18.5" FHD (1920x1080) TFT LCD panel
+
+Required properties:
+- compatible: should be "auo,g185han01"
+
+This binding is compatible with the simple-panel binding, which is specified
+in simple-panel.txt in this directory.
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 9d0b1377cac6..9b14f1861757 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -584,6 +584,35 @@ static const struct panel_desc auo_g133han01 = {
.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
};
+static const struct display_timing auo_g185han01_timings = {
+ .pixelclock = { 120000000, 144000000, 175000000 },
+ .hactive = { 1920, 1920, 1920 },
+ .hfront_porch = { 18, 60, 74 },
+ .hback_porch = { 12, 44, 54 },
+ .hsync_len = { 10, 24, 32 },
+ .vactive = { 1080, 1080, 1080 },
+ .vfront_porch = { 6, 10, 40 },
+ .vback_porch = { 2, 5, 20 },
+ .vsync_len = { 2, 5, 20 },
+};
+
+static const struct panel_desc auo_g185han01 = {
+ .timings = &auo_g185han01_timings,
+ .num_timings = 1,
+ .bpc = 8,
+ .size = {
+ .width = 409,
+ .height = 230,
+ },
+ .delay = {
+ .prepare = 50,
+ .enable = 200,
+ .disable = 110,
+ .unprepare = 1000,
+ },
+ .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+};
+
static const struct drm_display_mode avic_tm070ddh03_mode = {
.clock = 51200,
.hdisplay = 1024,
@@ -1611,6 +1640,9 @@ static const struct of_device_id platform_of_match[] = {
.compatible = "auo,g133han01",
.data = &auo_g133han01,
}, {
+ .compatible = "auo,g185han01",
+ .data = &auo_g185han01,
+ }, {
.compatible = "avic,tm070ddh03",
.data = &avic_tm070ddh03,
}, {
--
2.10.2
_______________________________________________
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 1/3] drm/panel: simple: add more properties to Innolux G121I1-L01
2016-11-30 13:09 [PATCH 1/3] drm/panel: simple: add more properties to Innolux G121I1-L01 Lucas Stach
2016-11-30 13:09 ` [PATCH 2/3] drm/panel: simple: add support for AUO G133HAN01 Lucas Stach
2016-11-30 13:09 ` [PATCH 3/3] drm/panel: simple: add support for AUO G185HAN01 Lucas Stach
@ 2016-12-06 15:56 ` Thierry Reding
2 siblings, 0 replies; 5+ messages in thread
From: Thierry Reding @ 2016-12-06 15:56 UTC (permalink / raw)
To: Lucas Stach; +Cc: kernel, dri-devel, patchwork-lst
[-- Attachment #1.1: Type: text/plain, Size: 471 bytes --]
On Wed, Nov 30, 2016 at 02:09:54PM +0100, Lucas Stach wrote:
> Convert from a single mode to display timings, which allow to describe
> the minimum/maximium blanking and clock rates, add enable/disable delays
> and provide the bus format.
>
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> ---
> drivers/gpu/drm/panel/panel-simple.c | 30 +++++++++++++++++-------------
> 1 file changed, 17 insertions(+), 13 deletions(-)
Applied, thanks.
Thierry
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 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
* Re: [PATCH 2/3] drm/panel: simple: add support for AUO G133HAN01
2016-11-30 13:09 ` [PATCH 2/3] drm/panel: simple: add support for AUO G133HAN01 Lucas Stach
@ 2016-12-06 15:58 ` Thierry Reding
0 siblings, 0 replies; 5+ messages in thread
From: Thierry Reding @ 2016-12-06 15:58 UTC (permalink / raw)
To: Lucas Stach; +Cc: kernel, dri-devel, patchwork-lst
[-- Attachment #1.1: Type: text/plain, Size: 577 bytes --]
On Wed, Nov 30, 2016 at 02:09:55PM +0100, Lucas Stach wrote:
> This adds support for the AU Optronics G133HAN01
> 13.3" LVDS FullHD TFT LCD panel, which can be supported
> by the simple panel driver.
>
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> ---
> .../bindings/display/panel/auo,g133han01.txt | 7 +++++
> drivers/gpu/drm/panel/panel-simple.c | 32 ++++++++++++++++++++++
> 2 files changed, 39 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/display/panel/auo,g133han01.txt
Applied, thanks.
Thierry
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 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:[~2016-12-06 15:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-30 13:09 [PATCH 1/3] drm/panel: simple: add more properties to Innolux G121I1-L01 Lucas Stach
2016-11-30 13:09 ` [PATCH 2/3] drm/panel: simple: add support for AUO G133HAN01 Lucas Stach
2016-12-06 15:58 ` Thierry Reding
2016-11-30 13:09 ` [PATCH 3/3] drm/panel: simple: add support for AUO G185HAN01 Lucas Stach
2016-12-06 15:56 ` [PATCH 1/3] drm/panel: simple: add more properties to Innolux G121I1-L01 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).