Skip to contentSkip to conversation

drm/panel: Add support for AUO b101ean01 panel

PATCH Superseded huang lin 2 participants 3 messages Jan 16, 2015

Subsystems (3)

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore

huang lin

author
#0 lore raw

PATCH v3 1/1 drm/panel: Add support for AUO b101ean01 panel

The AUO b101ean01 panel is a 10.1" 1280x800 panel, which can be supported by the simple panel driver.

---

Changes in v3:
- changed moving auo_b101ean01 definitions under auo_b101aw03

 drivers/gpu/drm/panel/panel-simple.c | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
drivers/gpu/drm/panel/panel-simple.c +26 -0
index e95385b..24828e0 100644
@@ -345,6 +345,29 @@ static const struct panel_desc auo_b101aw03 = {
 	},
 };
 
+static const struct drm_display_mode auo_b101ean01_mode = {
+	.clock = 72500,
+	.hdisplay = 1280,
+	.hsync_start = 1280 + 147,
+	.hsync_end = 1280 + 147 + 32,
+	.htotal = 1280 + 147 + 32 + 21,
+	.vdisplay = 800,
+	.vsync_start = 800 + 4,
+	.vsync_end = 800 + 4 + 4,
+	.vtotal = 800 + 4 + 4 + 8,
+	.vrefresh = 60,
+};
+
+static const struct panel_desc auo_b101ean01 = {
+	.modes = &auo_b101ean01_mode,
+	.num_modes = 1,
+	.bpc = 6,
+	.size = {
+		.width = 217,
+		.height = 136,
+	},
+};
+
 static const struct drm_display_mode auo_b101xtn01_mode = {
 	.clock = 72000,
 	.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,
 	}, {
Signature · 1 line
1.9.1
Reviewed-by on v3 1/1
#1 lore raw
Quoted 4 lines · huang lin

The AUO b101ean01 panel is a 10.1" 1280x800 panel, which can be supported by the simple panel driver.

Quoted 57 lines

---

Changes in v3:
- changed moving auo_b101ean01 definitions under auo_b101aw03

 drivers/gpu/drm/panel/panel-simple.c | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
drivers/gpu/drm/panel/panel-simple.c +26 -1
index e95385b..24828e0 100644
@@ -345,6 +345,29 @@ static const struct panel_desc auo_b101aw03 = {
        },
 };
 
+static const struct drm_display_mode auo_b101ean01_mode = {
+       .clock = 72500,
+       .hdisplay = 1280,
+       .hsync_start = 1280 + 147,
+       .hsync_end = 1280 + 147 + 32,
+       .htotal = 1280 + 147 + 32 + 21,
+       .vdisplay = 800,
+       .vsync_start = 800 + 4,
+       .vsync_end = 800 + 4 + 4,
+       .vtotal = 800 + 4 + 4 + 8,
+       .vrefresh = 60,
+};
+
+static const struct panel_desc auo_b101ean01 = {
+       .modes = &auo_b101ean01_mode,
+       .num_modes = 1,
+       .bpc = 6,
+       .size = {
+               .width = 217,
+               .height = 136,
+       },
+};
+
 static const struct drm_display_mode auo_b101xtn01_mode = {
        .clock = 72000,
        .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

#2 lore raw
Quoted 7 lines · Daniel Kurtz
Quoted 4 lines · huang lin

The AUO b101ean01 panel is a 10.1" 1280x800 panel, which can be supported by the simple panel driver.

Thierry is going to point out that this patch is missing devicetree documentation, so I'll beat him to the punch :-).
Please add an "auo,b101ean01" entry to:
Documentation/devicetree/bindings/panel/

With the above documentation this is:

Quoted 50 lines
Quoted 50 lines

---

Changes in v3:
- changed moving auo_b101ean01 definitions under auo_b101aw03

 drivers/gpu/drm/panel/panel-simple.c | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
drivers/gpu/drm/panel/panel-simple.c +25 -0
index e95385b..24828e0 100644
@@ -345,6 +345,29 @@ static const struct panel_desc auo_b101aw03 = {
        },
 };
 
+static const struct drm_display_mode auo_b101ean01_mode = {
+       .clock = 72500,
+       .hdisplay = 1280,
+       .hsync_start = 1280 + 147,
+       .hsync_end = 1280 + 147 + 32,
+       .htotal = 1280 + 147 + 32 + 21,
+       .vdisplay = 800,
+       .vsync_start = 800 + 4,
+       .vsync_end = 800 + 4 + 4,
+       .vtotal = 800 + 4 + 4 + 8,
+       .vrefresh = 60,
+};
+
+static const struct panel_desc auo_b101ean01 = {
+       .modes = &auo_b101ean01_mode,
+       .num_modes = 1,
+       .bpc = 6,
+       .size = {
+               .width = 217,
+               .height = 136,
+       },
+};
+
 static const struct drm_display_mode auo_b101xtn01_mode = {
        .clock = 72000,
        .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,
Quoted 8 lines
Quoted 8 lines
drivers/gpu/drm/panel/panel-simple.c +1 -1
+       }, {
                .compatible = "auo,b101xtn01",
                .data = &auo_b101xtn01,
        }, {
--

1.9.1

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel