* [PATCH] drm/panel: Add support for AUO b101ean01 panel
@ 2015-01-09 1:47 huang lin
2015-01-09 2:02 ` Daniel Kurtz
0 siblings, 1 reply; 2+ messages in thread
From: huang lin @ 2015-01-09 1:47 UTC (permalink / raw)
To: djkurtz
Cc: dianders, linux-rockchip, huang lin, Thierry Reding,
David Airlie, dri-devel, linux-kernel
The AUO b101ean01 panel is a 10.1" 1280x800 panel,
which can be supported by the simple panel driver.
Signed-off-by: huang lin <hl@rock-chips.com>
---
drivers/gpu/drm/panel/panel-simple.c | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
index e95385b..4f2baee 100644
--- a/drivers/gpu/drm/panel/panel-simple.c
+++ b/drivers/gpu/drm/panel/panel-simple.c
@@ -392,6 +392,29 @@ static const struct panel_desc auo_b116xw03 = {
},
};
+static const struct drm_display_mode auo_b101ean01_mode = {
+ .clock = 72500,
+ .hdisplay = 1280,
+ .hsync_start = 1280 + 200,
+ .hsync_end = 1280 + 200 + 147,
+ .htotal = 1280 + 200 + 147 + 32,
+ .vdisplay = 800,
+ .vsync_start = 800 + 16,
+ .vsync_end = 800 + 16 + 4,
+ .vtotal = 800 + 16 + 4 + 4,
+ .vrefresh = 60,
+};
+
+static const struct panel_desc auo_b101ean01 = {
+ .modes = &auo_b101ean01_mode,
+ .num_modes = 1,
+ .bpc = 6,
+ .size = {
+ .width = 228,
+ .height = 148,
+ },
+};
+
static const struct drm_display_mode auo_b133xtn01_mode = {
.clock = 69500,
.hdisplay = 1366,
@@ -727,6 +750,9 @@ static const struct of_device_id platform_of_match[] = {
.compatible = "auo,b101aw03",
.data = &auo_b101aw03,
}, {
+ .compatible = "auo,b101ean01",
+ .data = &auo_b101ean01,
+ }, {
.compatible = "auo,b101xtn01",
.data = &auo_b101xtn01,
}, {
--
1.9.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/panel: Add support for AUO b101ean01 panel
2015-01-09 1:47 [PATCH] drm/panel: Add support for AUO b101ean01 panel huang lin
@ 2015-01-09 2:02 ` Daniel Kurtz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Kurtz @ 2015-01-09 2:02 UTC (permalink / raw)
To: huang lin
Cc: Douglas Anderson, open list:ARM/Rockchip SoC...,
Thierry Reding, David Airlie, dri-devel, linux-kernel
Hi hl,
Thanks for submitting this patch.
On Fri, Jan 9, 2015 at 9:47 AM, huang lin <hl@rock-chips.com> wrote:
>
> The AUO b101ean01 panel is a 10.1" 1280x800 panel,
> which can be supported by the simple panel driver.
>
> Signed-off-by: huang lin <hl@rock-chips.com>
>
> ---
>
> drivers/gpu/drm/panel/panel-simple.c | 26 ++++++++++++++++++++++++++
> 1 file changed, 26 insertions(+)
>
> diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c
> index e95385b..4f2baee 100644
> --- a/drivers/gpu/drm/panel/panel-simple.c
> +++ b/drivers/gpu/drm/panel/panel-simple.c
> @@ -392,6 +392,29 @@ static const struct panel_desc auo_b116xw03 = {
> },
> };
>
nit: I think this hunk should go after auo_b101aw03, to match the
(alphabetical) ordering of platform_of_match[].
> +static const struct drm_display_mode auo_b101ean01_mode = {
> + .clock = 72500,
> + .hdisplay = 1280,
> + .hsync_start = 1280 + 200,
> + .hsync_end = 1280 + 200 + 147,
> + .htotal = 1280 + 200 + 147 + 32,
> + .vdisplay = 800,
> + .vsync_start = 800 + 16,
> + .vsync_end = 800 + 16 + 4,
> + .vtotal = 800 + 16 + 4 + 4,
> + .vrefresh = 60,
> +};
> +
> +static const struct panel_desc auo_b101ean01 = {
> + .modes = &auo_b101ean01_mode,
> + .num_modes = 1,
> + .bpc = 6,
> + .size = {
> + .width = 228,
> + .height = 148,
> + },
> +};
> +
> static const struct drm_display_mode auo_b133xtn01_mode = {
> .clock = 69500,
> .hdisplay = 1366,
> @@ -727,6 +750,9 @@ static const struct of_device_id platform_of_match[] = {
> .compatible = "auo,b101aw03",
> .data = &auo_b101aw03,
> }, {
> + .compatible = "auo,b101ean01",
> + .data = &auo_b101ean01,
> + }, {
> .compatible = "auo,b101xtn01",
> .data = &auo_b101xtn01,
> }, {
> --
> 1.9.1
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-09 2:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-09 1:47 [PATCH] drm/panel: Add support for AUO b101ean01 panel huang lin
2015-01-09 2:02 ` Daniel Kurtz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®