From: Max Merchel <[email protected]>
Add support for the Tianma Micro-electronics TM070JVHG33 7.0" WXGA display
to panel-simple.
Signed-off-by: Max Merchel <[email protected]>
Signed-off-by: Matthias Schiffer <[email protected]>
---
drivers/gpu/drm/panel/panel-simple.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index 1673113e5a5a..68fcf68da1f3 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -3421,6 +3421,17 @@ static const struct panel_desc tianma_tm070jdhg30 = {
.connector_type = DRM_MODE_CONNECTOR_LVDS,
};
+static const struct panel_desc tianma_tm070jvhg33 = {
+ .timings = &tianma_tm070jdhg30_timing,
+ .num_timings = 1,
+ .bpc = 8,
+ .size = {
+ .width = 150,
+ .height = 94,
+ },
+ .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
+};
+
static const struct display_timing tianma_tm070rvhg71_timing = {
.pixelclock = { 27700000, 29200000, 39600000 },
.hactive = { 800, 800, 800 },
@@ -4029,6 +4040,9 @@ static const struct of_device_id platform_of_match[] = {
}, {
.compatible = "tianma,tm070jdhg30",
.data = &tianma_tm070jdhg30,
+ }, {
+ .compatible = "tianma,tm070jvhg33",
+ .data = &tianma_tm070jvhg33,
}, {
.compatible = "tianma,tm070rvhg71",
.data = &tianma_tm070rvhg71,
--
2.17.1
Hi Matthias.
Thanks,
also a few details here to fix.
Sam
On Wed, Jun 10, 2020 at 02:01:31PM +0200, Matthias Schiffer wrote:
> From: Max Merchel <[email protected]>
>
> Add support for the Tianma Micro-electronics TM070JVHG33 7.0" WXGA display
> to panel-simple.
>
> Signed-off-by: Max Merchel <[email protected]>
> Signed-off-by: Matthias Schiffer <[email protected]>
> ---
> drivers/gpu/drm/panel/panel-simple.c | 14 ++++++++++++++
> 1 file changed, 14 insertions(+)
>
> diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
> index 1673113e5a5a..68fcf68da1f3 100644
> --- a/drivers/gpu/drm/panel/panel-simple.c
> +++ b/drivers/gpu/drm/panel/panel-simple.c
> @@ -3421,6 +3421,17 @@ static const struct panel_desc tianma_tm070jdhg30 = {
> .connector_type = DRM_MODE_CONNECTOR_LVDS,
> };
>
> +static const struct panel_desc tianma_tm070jvhg33 = {
> + .timings = &tianma_tm070jdhg30_timing,
> + .num_timings = 1,
> + .bpc = 8,
> + .size = {
> + .width = 150,
> + .height = 94,
> + },
> + .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
.bus_flags??
And again .connector_type.
Sam
> +};
> +
> static const struct display_timing tianma_tm070rvhg71_timing = {
> .pixelclock = { 27700000, 29200000, 39600000 },
> .hactive = { 800, 800, 800 },
> @@ -4029,6 +4040,9 @@ static const struct of_device_id platform_of_match[] = {
> }, {
> .compatible = "tianma,tm070jdhg30",
> .data = &tianma_tm070jdhg30,
> + }, {
> + .compatible = "tianma,tm070jvhg33",
> + .data = &tianma_tm070jvhg33,
> }, {
> .compatible = "tianma,tm070rvhg71",
> .data = &tianma_tm070rvhg71,
> --
> 2.17.1