* [PATCH] drm/panel: simple: Add support for Seiko 43WVF1G
@ 2017-02-02 20:04 Breno Lima
2017-02-02 20:18 ` Thierry Reding
2017-02-07 18:49 ` Rob Herring
0 siblings, 2 replies; 9+ messages in thread
From: Breno Lima @ 2017-02-02 20:04 UTC (permalink / raw)
To: shawnguo-DgEjT+Ai2ygdnm+yROfE0A
Cc: thierry.reding-Re5JQEeQqe8AvxtiuMwx3w, airlied-cv59FeDIM0c,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A, mark.rutland-5wv7dgnIgG8,
dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
devicetree-u79uwXL29TY76Z2rM5mHXA,
brenomatheus-Re5JQEeQqe8AvxtiuMwx3w, fabio.estevam-3arQi8VN3Tc,
festevam-Re5JQEeQqe8AvxtiuMwx3w, Breno Lima
Add support for Seiko Instruments Inc. 4.3" WVGA (800 x RGB x 480)
TFT with Touch-Panel, which can be supported by the simple panel driver.
Data-sheet available at:
http://www.glyn.de/data/glyn/media/doc/43wvf1g-0.pdf
Signed-off-by: Breno Lima <breno.lima-3arQi8VN3Tc@public.gmane.org>
---
.../bindings/display/panel/sii,43wvf1g.txt | 7 ++++++
drivers/gpu/drm/panel/panel-simple.c | 28 ++++++++++++++++++++++
2 files changed, 35 insertions(+)
create mode 100644 Documentation/devicetree/bindings/display/panel/sii,43wvf1g.txt
diff --git a/Documentation/devicetree/bindings/display/panel/sii,43wvf1g.txt b/Documentation/devicetree/bindings/display/panel/sii,43wvf1g.txt
new file mode 100644
index 0000000..bbbc49f
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/panel/sii,43wvf1g.txt
@@ -0,0 +1,7 @@
+Seiko Instruments Inc. 4.3" WVGA (800 x RGB x 480) TFT with Touch-Panel
+
+Required properties:
+- compatible: should be "sii,43wvf1g"
+
+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 06aaf79..0e08c56 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -863,6 +863,31 @@ static const struct panel_desc hannstar_hsd070pww1 = {
.bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
};
+static const struct display_timing sii_43wvf1g_timing = {
+ .pixelclock = { 33500000, 33500000, 33500000 },
+ .hactive = { 800, 800, 800 },
+ .hfront_porch = { 164, 164, 164 },
+ .hback_porch = { 89, 89, 89 },
+ .hsync_len = { 10, 10, 10 },
+ .vactive = { 480, 480, 480 },
+ .vfront_porch = { 10, 10, 10 },
+ .vback_porch = { 23, 23, 23 },
+ .vsync_len = { 10, 10, 10 },
+ .flags = DISPLAY_FLAGS_DE_LOW,
+};
+
+static const struct panel_desc sii_43wvf1g = {
+ .timings = &sii_43wvf1g_timing,
+ .num_timings = 1,
+ .bpc = 8,
+ .size = {
+ .width = 93,
+ .height = 57,
+ },
+ .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
+ .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_NEGEDGE,
+};
+
static const struct display_timing hannstar_hsd100pxn1_timing = {
.pixelclock = { 55000000, 65000000, 75000000 },
.hactive = { 1024, 1024, 1024 },
@@ -1853,6 +1878,9 @@ static const struct of_device_id platform_of_match[] = {
.compatible = "samsung,ltn140at29-301",
.data = &samsung_ltn140at29_301,
}, {
+ .compatible = "sii,43wvf1g",
+ .data = &sii_43wvf1g,
+ }, {
.compatible = "sharp,lq101k1ly04",
.data = &sharp_lq101k1ly04,
}, {
--
2.7.4
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH] drm/panel: simple: Add support for Seiko 43WVF1G
2017-02-02 20:04 [PATCH] drm/panel: simple: Add support for Seiko 43WVF1G Breno Lima
@ 2017-02-02 20:18 ` Thierry Reding
[not found] ` <20170202201832.GB9941-EkSeR96xj6Pcmrwk2tT4+A@public.gmane.org>
2017-02-07 18:49 ` Rob Herring
1 sibling, 1 reply; 9+ messages in thread
From: Thierry Reding @ 2017-02-02 20:18 UTC (permalink / raw)
To: Breno Lima
Cc: mark.rutland, devicetree, dri-devel, robh+dt, fabio.estevam,
shawnguo, brenomatheus
[-- Attachment #1.1: Type: text/plain, Size: 2453 bytes --]
On Thu, Feb 02, 2017 at 06:04:00PM -0200, Breno Lima wrote:
> Add support for Seiko Instruments Inc. 4.3" WVGA (800 x RGB x 480)
> TFT with Touch-Panel, which can be supported by the simple panel driver.
>
> Data-sheet available at:
> http://www.glyn.de/data/glyn/media/doc/43wvf1g-0.pdf
>
> Signed-off-by: Breno Lima <breno.lima@nxp.com>
> ---
> .../bindings/display/panel/sii,43wvf1g.txt | 7 ++++++
> drivers/gpu/drm/panel/panel-simple.c | 28 ++++++++++++++++++++++
> 2 files changed, 35 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/display/panel/sii,43wvf1g.txt
>
> diff --git a/Documentation/devicetree/bindings/display/panel/sii,43wvf1g.txt b/Documentation/devicetree/bindings/display/panel/sii,43wvf1g.txt
> new file mode 100644
> index 0000000..bbbc49f
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/display/panel/sii,43wvf1g.txt
> @@ -0,0 +1,7 @@
> +Seiko Instruments Inc. 4.3" WVGA (800 x RGB x 480) TFT with Touch-Panel
> +
> +Required properties:
> +- compatible: should be "sii,43wvf1g"
> +
> +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 06aaf79..0e08c56 100644
> --- a/drivers/gpu/drm/panel/panel-simple.c
> +++ b/drivers/gpu/drm/panel/panel-simple.c
> @@ -863,6 +863,31 @@ static const struct panel_desc hannstar_hsd070pww1 = {
> .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
> };
>
> +static const struct display_timing sii_43wvf1g_timing = {
> + .pixelclock = { 33500000, 33500000, 33500000 },
> + .hactive = { 800, 800, 800 },
> + .hfront_porch = { 164, 164, 164 },
> + .hback_porch = { 89, 89, 89 },
> + .hsync_len = { 10, 10, 10 },
> + .vactive = { 480, 480, 480 },
> + .vfront_porch = { 10, 10, 10 },
> + .vback_porch = { 23, 23, 23 },
> + .vsync_len = { 10, 10, 10 },
> + .flags = DISPLAY_FLAGS_DE_LOW,
> +};
I was going to say that you should list minimum and maximum values, and
that the default implementation will give you the typical values, but it
seems like the datasheet doesn't have minimum and maximum values, so
this looks fine.
Shawn, Fabio, anyone want to give this a Tested-by? I take it that this,
in combination with Fabio's patch to fix the displacement would make the
SabreSD display work properly?
Thierry
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 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] 9+ messages in thread
* Re: [PATCH] drm/panel: simple: Add support for Seiko 43WVF1G
[not found] ` <20170202201832.GB9941-EkSeR96xj6Pcmrwk2tT4+A@public.gmane.org>
@ 2017-02-02 21:06 ` Fabio Estevam
0 siblings, 0 replies; 9+ messages in thread
From: Fabio Estevam @ 2017-02-02 21:06 UTC (permalink / raw)
To: Thierry Reding
Cc: Breno Lima, Shawn Guo, David Airlie,
robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, Mark Rutland,
DRI mailing list,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Breno Matheus Lima, Fabio Estevam
Hi Thierry,
On Thu, Feb 2, 2017 at 6:18 PM, Thierry Reding <thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Shawn, Fabio, anyone want to give this a Tested-by? I take it that this,
> in combination with Fabio's patch to fix the displacement would make the
> SabreSD display work properly?
Yes, that is correct. It also needs the other patch I sent yesterday
that allows the power-supply regulator to work.
I was able to test it on a imx6sx-sdb board, so:
Tested-by: Fabio Estevam <fabio.estevam-3arQi8VN3Tc@public.gmane.org>
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] drm/panel: simple: Add support for Seiko 43WVF1G
2017-02-02 20:04 [PATCH] drm/panel: simple: Add support for Seiko 43WVF1G Breno Lima
2017-02-02 20:18 ` Thierry Reding
@ 2017-02-07 18:49 ` Rob Herring
2017-02-07 18:55 ` Fabio Estevam
1 sibling, 1 reply; 9+ messages in thread
From: Rob Herring @ 2017-02-07 18:49 UTC (permalink / raw)
To: Breno Lima
Cc: mark.rutland, devicetree, dri-devel, fabio.estevam, shawnguo,
brenomatheus
On Thu, Feb 02, 2017 at 06:04:00PM -0200, Breno Lima wrote:
> Add support for Seiko Instruments Inc. 4.3" WVGA (800 x RGB x 480)
> TFT with Touch-Panel, which can be supported by the simple panel driver.
>
> Data-sheet available at:
> http://www.glyn.de/data/glyn/media/doc/43wvf1g-0.pdf
>
> Signed-off-by: Breno Lima <breno.lima@nxp.com>
> ---
> .../bindings/display/panel/sii,43wvf1g.txt | 7 ++++++
> drivers/gpu/drm/panel/panel-simple.c | 28 ++++++++++++++++++++++
> 2 files changed, 35 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/display/panel/sii,43wvf1g.txt
>
> diff --git a/Documentation/devicetree/bindings/display/panel/sii,43wvf1g.txt b/Documentation/devicetree/bindings/display/panel/sii,43wvf1g.txt
> new file mode 100644
> index 0000000..bbbc49f
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/display/panel/sii,43wvf1g.txt
> @@ -0,0 +1,7 @@
> +Seiko Instruments Inc. 4.3" WVGA (800 x RGB x 480) TFT with Touch-Panel
> +
> +Required properties:
> +- compatible: should be "sii,43wvf1g"
> +
No power supply(ies) for this panel?
> +This binding is compatible with the simple-panel binding, which is specified
> +in simple-panel.txt in this directory.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] drm/panel: simple: Add support for Seiko 43WVF1G
2017-02-07 18:49 ` Rob Herring
@ 2017-02-07 18:55 ` Fabio Estevam
2017-02-07 23:36 ` Rob Herring
0 siblings, 1 reply; 9+ messages in thread
From: Fabio Estevam @ 2017-02-07 18:55 UTC (permalink / raw)
To: Rob Herring
Cc: Mark Rutland, devicetree@vger.kernel.org, Breno Lima,
DRI mailing list, Fabio Estevam, Shawn Guo, Breno Matheus Lima
Hi Rob,
On Tue, Feb 7, 2017 at 4:49 PM, Rob Herring <robh@kernel.org> wrote:
> No power supply(ies) for this panel?
power-supply is mentioned in simple-panel.txt.
>> +This binding is compatible with the simple-panel binding, which is specified
>> +in simple-panel.txt in this directory.
and this doc refers to simple-panel.txt. Isn't that enough?
Seems like a common pattern for the other simple panel binding doc.
Thanks
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] drm/panel: simple: Add support for Seiko 43WVF1G
2017-02-07 18:55 ` Fabio Estevam
@ 2017-02-07 23:36 ` Rob Herring
2017-02-08 0:48 ` Fabio Estevam
0 siblings, 1 reply; 9+ messages in thread
From: Rob Herring @ 2017-02-07 23:36 UTC (permalink / raw)
To: Fabio Estevam
Cc: Mark Rutland, devicetree@vger.kernel.org, Breno Lima,
DRI mailing list, Fabio Estevam, Shawn Guo, Breno Matheus Lima
On Tue, Feb 7, 2017 at 12:55 PM, Fabio Estevam <festevam@gmail.com> wrote:
> Hi Rob,
>
> On Tue, Feb 7, 2017 at 4:49 PM, Rob Herring <robh@kernel.org> wrote:
>
>> No power supply(ies) for this panel?
>
> power-supply is mentioned in simple-panel.txt.
>
>>> +This binding is compatible with the simple-panel binding, which is specified
>>> +in simple-panel.txt in this directory.
>
> and this doc refers to simple-panel.txt. Isn't that enough?
Except I have no way of knowing whether: a) you omitted a supply
because you don't (yet) care, b) the panel has a single supply and you
are using power-supply or c) the panel has multiple supplies and your
binding is wrong.
I can only eliminate A if you list the supplies. Just need something
like "power-supply : see simple-panel.txt". I've still got to go read
the panel spec if I really want to check the binding.
> Seems like a common pattern for the other simple panel binding doc.
We've gotten stricter about this.
Rob
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] drm/panel: simple: Add support for Seiko 43WVF1G
2017-02-07 23:36 ` Rob Herring
@ 2017-02-08 0:48 ` Fabio Estevam
[not found] ` <CAOMZO5C+7v=ppVpSYwKEiprCSVSM1z0wVVOwSmbuEPaO3618Wg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 9+ messages in thread
From: Fabio Estevam @ 2017-02-08 0:48 UTC (permalink / raw)
To: Rob Herring
Cc: Mark Rutland, devicetree@vger.kernel.org, Breno Lima,
DRI mailing list, Fabio Estevam, Shawn Guo, Breno Matheus Lima
On Tue, Feb 7, 2017 at 9:36 PM, Rob Herring <robh@kernel.org> wrote:
> Except I have no way of knowing whether: a) you omitted a supply
> because you don't (yet) care, b) the panel has a single supply and you
> are using power-supply or c) the panel has multiple supplies and your
> binding is wrong.
>
> I can only eliminate A if you list the supplies. Just need something
> like "power-supply : see simple-panel.txt". I've still got to go read
> the panel spec if I really want to check the binding.
Just checked the panel datasheet at
http://www.glyn.de/data/glyn/media/doc/43wvf1g-0.pdf and it lists two
supplies:
DVDD (Digital power supply) and AVDD (Analog power supply).
Our dts was just providing a single 'power-supply' which referred to a
GPIO enabled regulator that drives DVDD.
So it seems we missed to pass AVDD (not software controlled in our
case, but we need to describe it in dts anyway).
Does this mean we cannot use simple-panel for this particular panel
and we should add a separate driver for it?
Thanks
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] drm/panel: simple: Add support for Seiko 43WVF1G
[not found] ` <CAOMZO5C+7v=ppVpSYwKEiprCSVSM1z0wVVOwSmbuEPaO3618Wg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2017-04-08 20:45 ` Fabio Estevam
[not found] ` <CAOMZO5C21w9eGbFciZn3PEdB14eqPJ0dwbtVw=F4dTafyng0aQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 9+ messages in thread
From: Fabio Estevam @ 2017-04-08 20:45 UTC (permalink / raw)
To: Rob Herring, Thierry Reding
Cc: Breno Lima, Shawn Guo, David Airlie, Mark Rutland,
DRI mailing list,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Breno Matheus Lima, Fabio Estevam
Thierry/Rob,
On Tue, Feb 7, 2017 at 10:48 PM, Fabio Estevam <festevam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> On Tue, Feb 7, 2017 at 9:36 PM, Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
>
>> Except I have no way of knowing whether: a) you omitted a supply
>> because you don't (yet) care, b) the panel has a single supply and you
>> are using power-supply or c) the panel has multiple supplies and your
>> binding is wrong.
>>
>> I can only eliminate A if you list the supplies. Just need something
>> like "power-supply : see simple-panel.txt". I've still got to go read
>> the panel spec if I really want to check the binding.
>
> Just checked the panel datasheet at
> http://www.glyn.de/data/glyn/media/doc/43wvf1g-0.pdf and it lists two
> supplies:
> DVDD (Digital power supply) and AVDD (Analog power supply).
>
> Our dts was just providing a single 'power-supply' which referred to a
> GPIO enabled regulator that drives DVDD.
>
> So it seems we missed to pass AVDD (not software controlled in our
> case, but we need to describe it in dts anyway).
>
> Does this mean we cannot use simple-panel for this particular panel
> and we should add a separate driver for it?
Please confirm if we need to create a separate driver for this panel, thanks.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] drm/panel: simple: Add support for Seiko 43WVF1G
[not found] ` <CAOMZO5C21w9eGbFciZn3PEdB14eqPJ0dwbtVw=F4dTafyng0aQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2017-04-11 16:36 ` Rob Herring
0 siblings, 0 replies; 9+ messages in thread
From: Rob Herring @ 2017-04-11 16:36 UTC (permalink / raw)
To: Fabio Estevam
Cc: Thierry Reding, Breno Lima, Shawn Guo, David Airlie, Mark Rutland,
DRI mailing list,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Breno Matheus Lima, Fabio Estevam
On Sat, Apr 8, 2017 at 3:45 PM, Fabio Estevam <festevam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Thierry/Rob,
>
> On Tue, Feb 7, 2017 at 10:48 PM, Fabio Estevam <festevam-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>> On Tue, Feb 7, 2017 at 9:36 PM, Rob Herring <robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
>>
>>> Except I have no way of knowing whether: a) you omitted a supply
>>> because you don't (yet) care, b) the panel has a single supply and you
>>> are using power-supply or c) the panel has multiple supplies and your
>>> binding is wrong.
>>>
>>> I can only eliminate A if you list the supplies. Just need something
>>> like "power-supply : see simple-panel.txt". I've still got to go read
>>> the panel spec if I really want to check the binding.
>>
>> Just checked the panel datasheet at
>> http://www.glyn.de/data/glyn/media/doc/43wvf1g-0.pdf and it lists two
>> supplies:
>> DVDD (Digital power supply) and AVDD (Analog power supply).
>>
>> Our dts was just providing a single 'power-supply' which referred to a
>> GPIO enabled regulator that drives DVDD.
>>
>> So it seems we missed to pass AVDD (not software controlled in our
>> case, but we need to describe it in dts anyway).
>>
>> Does this mean we cannot use simple-panel for this particular panel
>> and we should add a separate driver for it?
>
> Please confirm if we need to create a separate driver for this panel, thanks.
The binding should list both. They can be optional though. Maybe you
can parameterize the supply name in the driver for the single
(controlled) supply case. Or provide power on/off hooks.
Rob
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2017-04-11 16:36 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-02 20:04 [PATCH] drm/panel: simple: Add support for Seiko 43WVF1G Breno Lima
2017-02-02 20:18 ` Thierry Reding
[not found] ` <20170202201832.GB9941-EkSeR96xj6Pcmrwk2tT4+A@public.gmane.org>
2017-02-02 21:06 ` Fabio Estevam
2017-02-07 18:49 ` Rob Herring
2017-02-07 18:55 ` Fabio Estevam
2017-02-07 23:36 ` Rob Herring
2017-02-08 0:48 ` Fabio Estevam
[not found] ` <CAOMZO5C+7v=ppVpSYwKEiprCSVSM1z0wVVOwSmbuEPaO3618Wg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-04-08 20:45 ` Fabio Estevam
[not found] ` <CAOMZO5C21w9eGbFciZn3PEdB14eqPJ0dwbtVw=F4dTafyng0aQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-04-11 16:36 ` 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.