Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1592044 > unrolled thread
| Started by | Richard Genoud <richard.genoud@gmail.com> |
|---|---|
| First post | 2017-03-03 16:30 +0100 |
| Last post | 2017-03-13 13:00 +0100 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 2/2] drm/panel: simple: Add support for Winstar WF35LTIACD Richard Genoud <richard.genoud@gmail.com> - 2017-03-03 16:30 +0100
Re: [PATCH 2/2] drm/panel: simple: Add support for Winstar WF35LTIACD Rob Herring <robh@kernel.org> - 2017-03-12 15:20 +0100
Re: [PATCH 2/2] drm/panel: simple: Add support for Winstar WF35LTIACD Richard Genoud <richard.genoud@gmail.com> - 2017-03-13 13:00 +0100
| From | Richard Genoud <richard.genoud@gmail.com> |
|---|---|
| Date | 2017-03-03 16:30 +0100 |
| Subject | [PATCH 2/2] drm/panel: simple: Add support for Winstar WF35LTIACD |
| Message-ID | <tgXjz-35T-9@gated-at.bofh.it> |
This adds support for the Winstar Display Co. WF35LTIACD 3.5" QVGA TFT
LCD panel, which can be supported by the simple panel driver.
Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
---
.../bindings/display/panel/winstar,wf35ltiacd | 7 ++++++
drivers/gpu/drm/panel/panel-simple.c | 28 ++++++++++++++++++++++
2 files changed, 35 insertions(+)
create mode 100644 Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacd
diff --git a/Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacd b/Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacd
new file mode 100644
index 000000000000..68408adf239f
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacd
@@ -0,0 +1,7 @@
+Winstar Display Corporation 3.5" QVGA (320x240) TFT LCD panel
+
+Required properties:
+- compatible: should be "winstar,wf35ltiacd"
+
+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 06aaf79de8c8..5d45664c6c0e 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -1713,6 +1713,31 @@ static const struct panel_desc urt_umsh_8596md_parallel = {
.bus_format = MEDIA_BUS_FMT_RGB666_1X18,
};
+static const struct drm_display_mode winstar_wf35ltiacd_mode = {
+ .clock = 6410,
+ .hdisplay = 320,
+ .hsync_start = 320 + 20,
+ .hsync_end = 320 + 20 + 30,
+ .htotal = 320 + 20 + 30 + 38,
+ .vdisplay = 240,
+ .vsync_start = 240 + 4,
+ .vsync_end = 240 + 4 + 3,
+ .vtotal = 240 + 4 + 3 + 15,
+ .vrefresh = 60,
+ .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
+};
+
+static const struct panel_desc winstar_wf35ltiacd = {
+ .modes = &winstar_wf35ltiacd_mode,
+ .num_modes = 1,
+ .bpc = 8,
+ .size = {
+ .width = 70,
+ .height = 53,
+ },
+ .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
+};
+
static const struct of_device_id platform_of_match[] = {
{
.compatible = "ampire,am800480r3tmqwa1h",
@@ -1892,6 +1917,9 @@ static const struct of_device_id platform_of_match[] = {
.compatible = "urt,umsh-8596md-20t",
.data = &urt_umsh_8596md_parallel,
}, {
+ .compatible = "winstar,wf35ltiacd",
+ .data = &winstar_wf35ltiacd,
+ }, {
/* sentinel */
}
};
[toc] | [next] | [standalone]
| From | Rob Herring <robh@kernel.org> |
|---|---|
| Date | 2017-03-12 15:20 +0100 |
| Message-ID | <tkcvM-2Ek-11@gated-at.bofh.it> |
| In reply to | #1592044 |
On Fri, Mar 03, 2017 at 04:21:56PM +0100, Richard Genoud wrote: > This adds support for the Winstar Display Co. WF35LTIACD 3.5" QVGA TFT > LCD panel, which can be supported by the simple panel driver. > > Signed-off-by: Richard Genoud <richard.genoud@gmail.com> > --- > .../bindings/display/panel/winstar,wf35ltiacd | 7 ++++++ > drivers/gpu/drm/panel/panel-simple.c | 28 ++++++++++++++++++++++ > 2 files changed, 35 insertions(+) > create mode 100644 Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacd > > diff --git a/Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacd b/Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacd > new file mode 100644 > index 000000000000..68408adf239f > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacd > @@ -0,0 +1,7 @@ > +Winstar Display Corporation 3.5" QVGA (320x240) TFT LCD panel > + > +Required properties: > +- compatible: should be "winstar,wf35ltiacd" > + > +This binding is compatible with the simple-panel binding, which is specified > +in simple-panel.txt in this directory. Please specify the power supply(ies). I know a lot of bindings haven't, but many panels have more than 1 supply and just relying on simple panel doesn't distinguish whether the panel has 1 supply or you didn't check and it has more than 1. Rob
[toc] | [prev] | [next] | [standalone]
| From | Richard Genoud <richard.genoud@gmail.com> |
|---|---|
| Date | 2017-03-13 13:00 +0100 |
| Message-ID | <tkwNQ-8qX-5@gated-at.bofh.it> |
| In reply to | #1598636 |
On 12/03/2017 15:17, Rob Herring wrote: > On Fri, Mar 03, 2017 at 04:21:56PM +0100, Richard Genoud wrote: >> This adds support for the Winstar Display Co. WF35LTIACD 3.5" QVGA TFT >> LCD panel, which can be supported by the simple panel driver. >> >> Signed-off-by: Richard Genoud <richard.genoud@gmail.com> >> --- >> .../bindings/display/panel/winstar,wf35ltiacd | 7 ++++++ >> drivers/gpu/drm/panel/panel-simple.c | 28 ++++++++++++++++++++++ >> 2 files changed, 35 insertions(+) >> create mode 100644 Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacd >> >> diff --git a/Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacd b/Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacd >> new file mode 100644 >> index 000000000000..68408adf239f >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/display/panel/winstar,wf35ltiacd >> @@ -0,0 +1,7 @@ >> +Winstar Display Corporation 3.5" QVGA (320x240) TFT LCD panel >> + >> +Required properties: >> +- compatible: should be "winstar,wf35ltiacd" >> + >> +This binding is compatible with the simple-panel binding, which is specified >> +in simple-panel.txt in this directory. > > Please specify the power supply(ies). I know a lot of bindings haven't, > but many panels have more than 1 supply and just relying on simple panel > doesn't distinguish whether the panel has 1 supply or you didn't check > and it has more than 1. > > Rob > Ok, I'll specify the power supply. And I'll add an example, it's always nice to have one. Thanks. Richard.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web