All of lore.kernel.org
 help / color / mirror / Atom feed
From: Giulio Benetti <giulio.benetti@benettiengineering.com>
To: Rob Herring <robh+dt@kernel.org>
Cc: Thierry Reding <thierry.reding@gmail.com>,
	Sam Ravnborg <sam@ravnborg.org>, David Airlie <airlied@linux.ie>,
	Daniel Vetter <daniel@ffwll.ch>,
	Krzysztof Kozlowski <krzk@kernel.org>,
	Arnd Bergmann <arnd@arndb.de>, Shawn Guo <shawnguo@kernel.org>,
	Oleksij Rempel <linux@rempel-privat.de>,
	Daniel Palmer <daniel@0x0f.com>, allen <allen.chen@ite.com.tw>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
	dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Giulio Benetti <giulio.benetti@micronovasrl.com>
Subject: [PATCH v2 7/9] drm/panel: simple: add Jenson JT60248-01
Date: Sat,  6 Mar 2021 00:44:24 +0100	[thread overview]
Message-ID: <20210305234427.572114-8-giulio.benetti@benettiengineering.com> (raw)
In-Reply-To: <20210305234427.572114-1-giulio.benetti@benettiengineering.com>

From: Giulio Benetti <giulio.benetti@micronovasrl.com>

This patch adds support for Jenson JT60248-01 480x272 4.3" panel to DRM
simple panel driver.

Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.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 f63fa75ae4ef..f96f820a890b 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -2556,6 +2556,30 @@ static const struct panel_desc jenson_jt60245_01 = {
 	.bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
 };
 
+static const struct drm_display_mode jenson_jt60248_01_mode = {
+	.clock = 9000,
+	.hdisplay = 480,
+	.hsync_start = 480 + 8,
+	.hsync_end = 480 + 8 + 4,
+	.htotal = 480 + 8 + 4 + 43,
+	.vdisplay = 272,
+	.vsync_start = 272 + 8,
+	.vsync_end = 272 + 8 + 4,
+	.vtotal = 272 + 8 + 4 + 12,
+	.flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
+};
+
+static const struct panel_desc jenson_jt60248_01 = {
+	.modes = &jenson_jt60248_01_mode,
+	.num_modes = 1,
+	.bpc = 8,
+	.size = {
+		.width = 95,
+		.height = 54,
+	},
+	.bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
+};
+
 static const struct drm_display_mode kingdisplay_kd116n21_30nv_a010_mode = {
 	.clock = 81000,
 	.hdisplay = 1366,
@@ -4328,6 +4352,9 @@ static const struct of_device_id platform_of_match[] = {
 	}, {
 		.compatible = "jenson,jt60245-01",
 		.data = &jenson_jt60245_01,
+	}, {
+		.compatible = "jenson,jt60248-01",
+		.data = &jenson_jt60248_01,
 	}, {
 		.compatible = "kingdisplay,kd116n21-30nv-a010",
 		.data = &kingdisplay_kd116n21_30nv_a010,
-- 
2.25.1


WARNING: multiple messages have this Message-ID (diff)
From: Giulio Benetti <giulio.benetti@benettiengineering.com>
To: Rob Herring <robh+dt@kernel.org>
Cc: devicetree@vger.kernel.org,
	Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Arnd Bergmann <arnd@arndb.de>, David Airlie <airlied@linux.ie>,
	Shawn Guo <shawnguo@kernel.org>, Daniel Palmer <daniel@0x0f.com>,
	linux-kernel@vger.kernel.org,
	Krzysztof Kozlowski <krzk@kernel.org>,
	Oleksij Rempel <linux@rempel-privat.de>,
	Thierry Reding <thierry.reding@gmail.com>,
	dri-devel@lists.freedesktop.org, allen <allen.chen@ite.com.tw>,
	Sam Ravnborg <sam@ravnborg.org>,
	Giulio Benetti <giulio.benetti@micronovasrl.com>
Subject: [PATCH v2 7/9] drm/panel: simple: add Jenson JT60248-01
Date: Sat,  6 Mar 2021 00:44:24 +0100	[thread overview]
Message-ID: <20210305234427.572114-8-giulio.benetti@benettiengineering.com> (raw)
In-Reply-To: <20210305234427.572114-1-giulio.benetti@benettiengineering.com>

From: Giulio Benetti <giulio.benetti@micronovasrl.com>

This patch adds support for Jenson JT60248-01 480x272 4.3" panel to DRM
simple panel driver.

Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.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 f63fa75ae4ef..f96f820a890b 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -2556,6 +2556,30 @@ static const struct panel_desc jenson_jt60245_01 = {
 	.bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
 };
 
+static const struct drm_display_mode jenson_jt60248_01_mode = {
+	.clock = 9000,
+	.hdisplay = 480,
+	.hsync_start = 480 + 8,
+	.hsync_end = 480 + 8 + 4,
+	.htotal = 480 + 8 + 4 + 43,
+	.vdisplay = 272,
+	.vsync_start = 272 + 8,
+	.vsync_end = 272 + 8 + 4,
+	.vtotal = 272 + 8 + 4 + 12,
+	.flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
+};
+
+static const struct panel_desc jenson_jt60248_01 = {
+	.modes = &jenson_jt60248_01_mode,
+	.num_modes = 1,
+	.bpc = 8,
+	.size = {
+		.width = 95,
+		.height = 54,
+	},
+	.bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
+};
+
 static const struct drm_display_mode kingdisplay_kd116n21_30nv_a010_mode = {
 	.clock = 81000,
 	.hdisplay = 1366,
@@ -4328,6 +4352,9 @@ static const struct of_device_id platform_of_match[] = {
 	}, {
 		.compatible = "jenson,jt60245-01",
 		.data = &jenson_jt60245_01,
+	}, {
+		.compatible = "jenson,jt60248-01",
+		.data = &jenson_jt60248_01,
 	}, {
 		.compatible = "kingdisplay,kd116n21-30nv-a010",
 		.data = &kingdisplay_kd116n21_30nv_a010,
-- 
2.25.1

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

  parent reply	other threads:[~2021-03-05 23:45 UTC|newest]

Thread overview: 75+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-18 22:54 [PATCH 0/9] Add 4 Jenson simple panels Giulio Benetti
2021-02-18 22:54 ` Giulio Benetti
2021-02-18 22:54 ` [PATCH 1/9] dt-bindings: Add Jenson Display vendor prefix Giulio Benetti
2021-02-18 22:54   ` Giulio Benetti
2021-03-05 22:52   ` Rob Herring
2021-03-05 22:52     ` Rob Herring
2021-02-18 22:54 ` [PATCH 2/9] dt-bindings: display/panel: add Jenson JT60248-01 Giulio Benetti
2021-02-18 22:54   ` Giulio Benetti
2021-03-05 22:53   ` Rob Herring
2021-03-05 22:53     ` Rob Herring
2021-02-18 22:54 ` [PATCH 3/9] dt-bindings: display/panel: add Jenson JT60249-01 Giulio Benetti
2021-02-18 22:54   ` Giulio Benetti
2021-03-05 22:53   ` Rob Herring
2021-03-05 22:53     ` Rob Herring
2021-02-18 22:54 ` [PATCH 4/9] dt-bindings: display/panel: add Jenson JT60245-01 Giulio Benetti
2021-02-18 22:54   ` Giulio Benetti
2021-03-05 22:54   ` Rob Herring
2021-03-05 22:54     ` Rob Herring
2021-03-05 23:44     ` [PATCH v2 0/9] Add 4 Jenson simple panels Giulio Benetti
2021-03-05 23:44       ` Giulio Benetti
2021-03-05 23:44       ` [PATCH v2 1/9] dt-bindings: Add Jenson Display vendor prefix Giulio Benetti
2021-03-05 23:44         ` Giulio Benetti
2021-03-06 19:46         ` Rob Herring
2021-03-06 19:46           ` Rob Herring
2021-03-05 23:44       ` [PATCH v2 2/9] dt-bindings: display/panel: add Jenson JT60245-01 Giulio Benetti
2021-03-05 23:44         ` Giulio Benetti
2021-03-05 23:44       ` [PATCH v2 3/9] dt-bindings: display/panel: add Jenson JT60248-01 Giulio Benetti
2021-03-05 23:44         ` Giulio Benetti
2021-03-05 23:44       ` [PATCH v2 4/9] dt-bindings: display/panel: add Jenson JT60249-01 Giulio Benetti
2021-03-05 23:44         ` Giulio Benetti
2021-03-05 23:44       ` [PATCH v2 5/9] dt-bindings: display/panel: add Jenson JT60250-02 Giulio Benetti
2021-03-05 23:44         ` Giulio Benetti
2021-03-05 23:44       ` [PATCH v2 6/9] drm/panel: simple: add Jenson JT60245-01 Giulio Benetti
2021-03-05 23:44         ` Giulio Benetti
2021-03-05 23:44       ` Giulio Benetti [this message]
2021-03-05 23:44         ` [PATCH v2 7/9] drm/panel: simple: add Jenson JT60248-01 Giulio Benetti
2021-03-05 23:44       ` [PATCH v2 8/9] drm/panel: simple: add Jenson JT60249-01 Giulio Benetti
2021-03-05 23:44         ` Giulio Benetti
2021-03-05 23:44       ` [PATCH v2 9/9] drm/panel: simple: add Jenson JT60250-02 Giulio Benetti
2021-03-05 23:44         ` Giulio Benetti
2021-04-01 23:17       ` [PATCH v3 0/9] Add 4 Jenson simple panels Giulio Benetti
2021-04-01 23:17         ` Giulio Benetti
2021-04-01 23:17         ` [PATCH v3 1/9] dt-bindings: Add Jenson Display vendor prefix Giulio Benetti
2021-04-01 23:17           ` Giulio Benetti
2021-04-01 23:17         ` [PATCH v3 2/9] dt-bindings: display/panel: add Jenson JT60245-01 Giulio Benetti
2021-04-01 23:17           ` Giulio Benetti
2021-04-08 20:24           ` Rob Herring
2021-04-08 20:24             ` Rob Herring
2021-04-01 23:17         ` [PATCH v3 3/9] dt-bindings: display/panel: add Jenson JT60248-01 Giulio Benetti
2021-04-01 23:17           ` Giulio Benetti
2021-04-01 23:17         ` [PATCH v3 4/9] dt-bindings: display/panel: add Jenson JT60249-01 Giulio Benetti
2021-04-01 23:17           ` Giulio Benetti
2021-04-01 23:17         ` [PATCH v3 5/9] dt-bindings: display/panel: add Jenson JT60250-02 Giulio Benetti
2021-04-01 23:17           ` Giulio Benetti
2021-04-01 23:17         ` [PATCH v3 6/9] drm/panel: simple: add Jenson JT60245-01 Giulio Benetti
2021-04-01 23:17           ` Giulio Benetti
2021-04-01 23:17         ` [PATCH v3 7/9] drm/panel: simple: add Jenson JT60248-01 Giulio Benetti
2021-04-01 23:17           ` Giulio Benetti
2021-04-01 23:17         ` [PATCH v3 8/9] drm/panel: simple: add Jenson JT60249-01 Giulio Benetti
2021-04-01 23:17           ` Giulio Benetti
2021-04-01 23:17         ` [PATCH v3 9/9] drm/panel: simple: add Jenson JT60250-02 Giulio Benetti
2021-04-01 23:17           ` Giulio Benetti
2021-05-02 20:50         ` [PATCH v3 0/9] Add 4 Jenson simple panels Giulio Benetti
2021-05-02 20:50           ` Giulio Benetti
2021-10-05 23:04           ` Giulio Benetti
2021-03-05 23:47     ` [PATCH 4/9] dt-bindings: display/panel: add Jenson JT60245-01 Giulio Benetti
2021-03-05 23:47       ` Giulio Benetti
2021-02-18 22:54 ` [PATCH 5/9] dt-bindings: display/panel: add Jenson JT60250-02 Giulio Benetti
2021-02-18 22:54   ` Giulio Benetti
2021-03-05 22:55   ` Rob Herring
2021-03-05 22:55     ` Rob Herring
2021-02-18 22:54 ` [PATCH 6/9] drm/panel: simple: add Jenson JT60245-01 Giulio Benetti
2021-02-18 22:54   ` Giulio Benetti
2021-02-18 22:54 ` [PATCH 7/9] drm/panel: simple: add Jenson JT60248-01 Giulio Benetti
2021-02-18 22:54   ` Giulio Benetti

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210305234427.572114-8-giulio.benetti@benettiengineering.com \
    --to=giulio.benetti@benettiengineering.com \
    --cc=airlied@linux.ie \
    --cc=allen.chen@ite.com.tw \
    --cc=arnd@arndb.de \
    --cc=daniel@0x0f.com \
    --cc=daniel@ffwll.ch \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=geert+renesas@glider.be \
    --cc=giulio.benetti@micronovasrl.com \
    --cc=krzk@kernel.org \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@rempel-privat.de \
    --cc=robh+dt@kernel.org \
    --cc=sam@ravnborg.org \
    --cc=shawnguo@kernel.org \
    --cc=thierry.reding@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.