From: Lukasz Majewski <lukma@denx.de>
To: Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Thierry Reding <thierry.reding@gmail.com>,
David Airlie <airlied@linux.ie>, Rob Herring <robh@kernel.org>
Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, Lukasz Majewski <lukma@denx.de>
Subject: [PATCH v2] display: panel: Add KOE tx14d24vm1bpa display support (320x240)
Date: Tue, 29 May 2018 17:05:28 +0200 [thread overview]
Message-ID: <20180529150528.22136-1-lukma@denx.de> (raw)
In-Reply-To: <20180412143715.6828-1-lukma@denx.de>
This commit adds support for KOE's 5.7" display.
Signed-off-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Rob Herring <robh@kernel.org>
---
Changes for v2:
- Add Reviewed-by tag
---
.../bindings/display/panel/koe,tx14d24vm1bpa.txt | 42 ++++++++++++++++++++++
drivers/gpu/drm/panel/panel-simple.c | 26 ++++++++++++++
2 files changed, 68 insertions(+)
create mode 100644 Documentation/devicetree/bindings/display/panel/koe,tx14d24vm1bpa.txt
diff --git a/Documentation/devicetree/bindings/display/panel/koe,tx14d24vm1bpa.txt b/Documentation/devicetree/bindings/display/panel/koe,tx14d24vm1bpa.txt
new file mode 100644
index 000000000000..be7ac666807b
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/panel/koe,tx14d24vm1bpa.txt
@@ -0,0 +1,42 @@
+Kaohsiung Opto-Electronics Inc. 5.7" QVGA (320 x 240) TFT LCD panel
+
+Required properties:
+- compatible: should be "koe,tx14d24vm1bpa"
+- backlight: phandle of the backlight device attached to the panel
+- power-supply: single regulator to provide the supply voltage
+
+Required nodes:
+- port: Parallel port mapping to connect this display
+
+This panel needs single power supply voltage. Its backlight is conntrolled
+via PWM signal.
+
+Example:
+--------
+
+Example device-tree definition when connected to iMX53 based board
+
+ lcd_panel: lcd-panel {
+ compatible = "koe,tx14d24vm1bpa";
+ backlight = <&backlight_lcd>;
+ power-supply = <®_3v3>;
+
+ port {
+ lcd_panel_in: endpoint {
+ remote-endpoint = <&lcd_display_out>;
+ };
+ };
+ };
+
+Then one needs to extend the dispX node:
+
+ lcd_display: disp1 {
+
+ port@1 {
+ reg = <1>;
+
+ lcd_display_out: endpoint {
+ remote-endpoint = <&lcd_panel_in>;
+ };
+ };
+ };
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index d9984bdb5bb5..103b43ce7dee 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -1268,6 +1268,29 @@ static const struct panel_desc innolux_zj070na_01p = {
},
};
+static const struct display_timing koe_tx14d24vm1bpa_timing = {
+ .pixelclock = { 5580000, 5850000, 6200000 },
+ .hactive = { 320, 320, 320 },
+ .hfront_porch = { 30, 30, 30 },
+ .hback_porch = { 30, 30, 30 },
+ .hsync_len = { 1, 5, 17 },
+ .vactive = { 240, 240, 240 },
+ .vfront_porch = { 6, 6, 6 },
+ .vback_porch = { 5, 5, 5 },
+ .vsync_len = { 1, 2, 11 },
+ .flags = DISPLAY_FLAGS_DE_HIGH,
+};
+
+static const struct panel_desc koe_tx14d24vm1bpa = {
+ .timings = &koe_tx14d24vm1bpa_timing,
+ .num_timings = 1,
+ .bpc = 6,
+ .size = {
+ .width = 115,
+ .height = 86,
+ },
+};
+
static const struct display_timing koe_tx31d200vm0baa_timing = {
.pixelclock = { 39600000, 43200000, 48000000 },
.hactive = { 1280, 1280, 1280 },
@@ -2204,6 +2227,9 @@ static const struct of_device_id platform_of_match[] = {
.compatible = "innolux,zj070na-01p",
.data = &innolux_zj070na_01p,
}, {
+ .compatible = "koe,tx14d24vm1bpa",
+ .data = &koe_tx14d24vm1bpa,
+ }, {
.compatible = "koe,tx31d200vm0baa",
.data = &koe_tx31d200vm0baa,
}, {
--
2.11.0
next prev parent reply other threads:[~2018-05-29 15:07 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-12 14:37 [PATCH] display: panel: Add KOE tx14d24vm1bpa display support (320x240) Lukasz Majewski
2018-04-16 19:24 ` Rob Herring
2018-05-04 10:28 ` Lukasz Majewski
2018-05-10 14:22 ` Rob Herring
2018-05-11 15:04 ` Lukasz Majewski
2018-05-09 15:43 ` [PATCH RESEND] " Lukasz Majewski
2018-05-10 14:24 ` Rob Herring
2018-05-19 11:05 ` Lukasz Majewski
2018-05-28 7:55 ` Lukasz Majewski
2018-05-29 14:30 ` Thierry Reding
2018-05-29 15:01 ` Lukasz Majewski
2018-05-29 15:22 ` Thierry Reding
2018-05-29 15:33 ` Lukasz Majewski
2018-05-29 16:12 ` Thierry Reding
2018-05-29 15:05 ` Lukasz Majewski [this message]
2018-06-22 8:56 ` [PATCH v2] " Lukasz Majewski
2018-06-29 17:05 ` Lukasz Majewski
2018-07-08 8:43 ` Lukasz Majewski
2019-04-04 11:22 ` [PATCH v3 1/2] dt-bindings: display/panel: Add KOE tx14d24vm1bpa display description Lukasz Majewski
2019-04-04 11:22 ` [PATCH v3 2/2] drm/panel: simple: Add KOE tx14d24vm1bpa display support (320x240) Lukasz Majewski
2019-04-26 12:29 ` Lukasz Majewski
2019-04-26 12:29 ` [PATCH v3 1/2] dt-bindings: display/panel: Add KOE tx14d24vm1bpa display description Lukasz Majewski
2019-05-15 16:04 ` [PATCH v4 " Lukasz Majewski
2019-05-24 21:56 ` Rob Herring
2019-05-25 6:54 ` Sam Ravnborg
2019-05-15 16:06 ` [PATCH v4 2/2] drm/panel: simple: Add KOE tx14d24vm1bpa display support (320x240) Lukasz Majewski
2019-05-25 6:55 ` Sam Ravnborg
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=20180529150528.22136-1-lukma@denx.de \
--to=lukma@denx.de \
--cc=airlied@linux.ie \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
--cc=robh@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 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).