Skip to contentSkip to conversation

drm/panel/simple: add optronics B101XTN01.0

PATCH In review Rob Clark 2 participants 5 messages Aug 6, 2014 – Aug 7, 2014

Subsystems (3)
lore
Share & tools
lore

Rob Clark

author
#0 lore raw

PATCH 1/1 drm/panel/simple: add optronics B101XTN01.0

LVDS panel, make/model described as:

AU Optronics Corporation - B101XTN01.0 (H/W:0A)

See:
http://www.encore-electronic.com/media/B101XTN01.0.pdf

---
 drivers/gpu/drm/panel/panel-simple.c | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
drivers/gpu/drm/panel/panel-simple.c +27 -0
index a251361..16119ba 100644
@@ -447,6 +447,29 @@ static const struct panel_desc samsung_ltn101nt05 = {
 	},
 };
 
+static const struct drm_display_mode optronics_lvds_mode = {
+	.clock = 72000,
+	.hdisplay = 1366,
+	.hsync_start = 1366 + 20,
+	.hsync_end = 1366 + 20 + 70,
+	.htotal = 1366 + 20 + 70,
+	.vdisplay = 768,
+	.vsync_start = 768 + 14,
+	.vsync_end = 768 + 14 + 42,
+	.vtotal = 768 + 14 + 42,
+	.vrefresh = 60,
+	.flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
+};
+
+static const struct panel_desc optronics_lvds = {
+	.modes = &optronics_lvds_mode,
+	.num_modes = 1,
+	.size = {
+		.width = 1366,
+		.height = 768,
+	},
+};
+
 static const struct of_device_id platform_of_match[] = {
 	{
 		.compatible = "auo,b101aw03",
@@ -476,6 +499,10 @@ static const struct of_device_id platform_of_match[] = {
 		.compatible = "samsung,ltn101nt05",
 		.data = &samsung_ltn101nt05,
 	}, {
+		.compatible = "optronics,b101xtn01",
+		.data = &optronics_lvds,
+	}, {
+	}, {
 		.compatible = "simple-panel",
 	}, {
 		/* sentinel */
Signature · 1 line
1.9.3
author
#1 lore raw
Quoted 47 lines · Rob Clark

LVDS panel, make/model described as:

AU Optronics Corporation - B101XTN01.0 (H/W:0A)

See:
http://www.encore-electronic.com/media/B101XTN01.0.pdf

---
 drivers/gpu/drm/panel/panel-simple.c | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
drivers/gpu/drm/panel/panel-simple.c +23 -0
index a251361..16119ba 100644
@@ -447,6 +447,29 @@ static const struct panel_desc samsung_ltn101nt05 = {
        },
 };
 
+static const struct drm_display_mode optronics_lvds_mode = {
+       .clock = 72000,
+       .hdisplay = 1366,
+       .hsync_start = 1366 + 20,
+       .hsync_end = 1366 + 20 + 70,
+       .htotal = 1366 + 20 + 70,
+       .vdisplay = 768,
+       .vsync_start = 768 + 14,
+       .vsync_end = 768 + 14 + 42,
+       .vtotal = 768 + 14 + 42,
+       .vrefresh = 60,
+       .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
+};
+
+static const struct panel_desc optronics_lvds = {
+       .modes = &optronics_lvds_mode,
+       .num_modes = 1,
+       .size = {
+               .width = 1366,
+               .height = 768,
+       },
+};
+
 static const struct of_device_id platform_of_match[] = {
        {
                .compatible = "auo,b101aw03",

drivers/gpu/drm/panel/panel-simple.c static const struct of_device_id platform_of_match[] = { · line 505

Quoted 7 lines
drivers/gpu/drm/panel/panel-simple.c +4 -0
@@ -476,6 +499,10 @@ static const struct of_device_id platform_of_match[] = {
                .compatible = "samsung,ltn101nt05",
                .data = &samsung_ltn101nt05,
        }, {
+               .compatible = "optronics,b101xtn01",
+               .data = &optronics_lvds,
+       }, {
+       }, {

erm, ignore the duplicate '}, {'.. opps..

BR,
-R

Quoted 6 lines
drivers/gpu/drm/panel/panel-simple.c +0 -1
                .compatible = "simple-panel",
        }, {
                /* sentinel */
--

1.9.3

#2 lore raw
In reply to Rob Clark
Quoted 6 lines · Rob Clark

LVDS panel, make/model described as:

AU Optronics Corporation - B101XTN01.0 (H/W:0A)

See:
http://www.encore-electronic.com/media/B101XTN01.0.pdf

I've made it a custom to mention which board a panel is used on in the commit message and I've requested others to do the same. The idea was that it would give some kind of indication where to find the hardware if somebody wanted to test or look at for reference.

Quoted 5 lines
---
 drivers/gpu/drm/panel/panel-simple.c | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

This is missing device tree binding documentation.

drivers/gpu/drm/panel/panel-simple.c static const struct panel_desc samsung_ltn101nt05 = { · line 450

Quoted 10 lines
drivers/gpu/drm/panel/panel-simple.c +1 -0
index a251361..16119ba 100644
@@ -447,6 +447,29 @@ static const struct panel_desc samsung_ltn101nt05 = {
 	},
 };
 
+static const struct drm_display_mode optronics_lvds_mode = {

Can you please name this according to the model for consistency with other panels?

Quoted 9 lines
drivers/gpu/drm/panel/panel-simple.c +9 -0
+	.clock = 72000,
+	.hdisplay = 1366,
+	.hsync_start = 1366 + 20,
+	.hsync_end = 1366 + 20 + 70,
+	.htotal = 1366 + 20 + 70,
+	.vdisplay = 768,
+	.vsync_start = 768 + 14,
+	.vsync_end = 768 + 14 + 42,
+	.vtotal = 768 + 14 + 42,

drivers/gpu/drm/panel/panel-simple.c static const struct panel_desc samsung_ltn101nt05 = { · line 469

Quoted 10 lines
drivers/gpu/drm/panel/panel-simple.c +10 -0
+	.vrefresh = 60,
+	.flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
+};
+
+static const struct panel_desc optronics_lvds = {
+	.modes = &optronics_lvds_mode,
+	.num_modes = 1,
+	.size = {
+		.width = 1366,
+		.height = 768,

This needs to be the physical dimension in mm.

drivers/gpu/drm/panel/panel-simple.c static const struct panel_desc samsung_ltn101nt05 = { · line 471

Quoted 2 lines
drivers/gpu/drm/panel/panel-simple.c +2 -0
+	},
+};

There's now also a new field called .bpc which contains the number of bits per color (usually 6 or 8). Can you provide that as well? According to the datasheet you linked to it should be 6.

drivers/gpu/drm/panel/panel-simple.c static const struct of_device_id platform_of_match[] = { · line 502

Quoted 9 lines
drivers/gpu/drm/panel/panel-simple.c +2 -0
+
 static const struct of_device_id platform_of_match[] = {
 	{
 		.compatible = "auo,b101aw03",
@@ -476,6 +499,10 @@ static const struct of_device_id platform_of_match[] = {
 		.compatible = "samsung,ltn101nt05",
 		.data = &samsung_ltn101nt05,
 	}, {
+		.compatible = "optronics,b101xtn01",

From the commit message this panel is from AU Optronics, so it should use the auo vendor prefix.

Thierry

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

author
#3 lore raw
Quoted 5 lines · Thierry Reding
Quoted 4 lines · Rob Clark

LVDS panel, make/model described as:

AU Optronics Corporation - B101XTN01.0 (H/W:0A)

Quoted 7 lines
Quoted 2 lines

See:
http://www.encore-electronic.com/media/B101XTN01.0.pdf

I've made it a custom to mention which board a panel is used on in the commit message and I've requested others to do the same. The idea was that it would give some kind of indication where to find the hardware if somebody wanted to test or look at for reference.

It's just a free-standing panel, which (in this case) can be plugged to an ifc6410 (and I think various other inforce boards..) looks like a standard(ish) 41 pin connector.

Quoted 7 lines
Quoted 5 lines
---
 drivers/gpu/drm/panel/panel-simple.c | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

This is missing device tree binding documentation.

there is nothing new, so I assume you just mean adding the compatible string to a list?

Quoted 36 lines

drivers/gpu/drm/panel/panel-simple.c static const struct panel_desc samsung_ltn101nt05 = { · line 450

Quoted 10 lines
drivers/gpu/drm/panel/panel-simple.c +1 -0
index a251361..16119ba 100644
@@ -447,6 +447,29 @@ static const struct panel_desc samsung_ltn101nt05 = {
      },
 };
 
+static const struct drm_display_mode optronics_lvds_mode = {

Can you please name this according to the model for consistency with other panels?

Quoted 9 lines
drivers/gpu/drm/panel/panel-simple.c +9 -0
+     .clock = 72000,
+     .hdisplay = 1366,
+     .hsync_start = 1366 + 20,
+     .hsync_end = 1366 + 20 + 70,
+     .htotal = 1366 + 20 + 70,
+     .vdisplay = 768,
+     .vsync_start = 768 + 14,
+     .vsync_end = 768 + 14 + 42,
+     .vtotal = 768 + 14 + 42,

drivers/gpu/drm/panel/panel-simple.c static const struct panel_desc samsung_ltn101nt05 = { · line 469

Quoted 10 lines
drivers/gpu/drm/panel/panel-simple.c +10 -0
+     .vrefresh = 60,
+     .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
+};
+
+static const struct panel_desc optronics_lvds = {
+     .modes = &optronics_lvds_mode,
+     .num_modes = 1,
+     .size = {
+             .width = 1366,
+             .height = 768,

This needs to be the physical dimension in mm.

Quoted 6 lines

drivers/gpu/drm/panel/panel-simple.c static const struct panel_desc samsung_ltn101nt05 = { · line 471

Quoted 2 lines
drivers/gpu/drm/panel/panel-simple.c +2 -0
+     },
+};

There's now also a new field called .bpc which contains the number of bits per color (usually 6 or 8). Can you provide that as well? According to the datasheet you linked to it should be 6.

well, that was a follow-on question I had as soon as I find a different 8bpc panel.. but ok, nice that this was added.

Quoted 4 lines
Quoted 4 lines
drivers/gpu/drm/panel/panel-simple.c +1 -0
+
 static const struct of_device_id platform_of_match[] = {
      {
              .compatible = "auo,b101aw03",
Quoted 8 lines

drivers/gpu/drm/panel/panel-simple.c static const struct of_device_id platform_of_match[] = { · line 502

Quoted 5 lines
drivers/gpu/drm/panel/panel-simple.c +1 -0
@@ -476,6 +499,10 @@ static const struct of_device_id platform_of_match[] = {
              .compatible = "samsung,ltn101nt05",
              .data = &samsung_ltn101nt05,
      }, {
+             .compatible = "optronics,b101xtn01",

From the commit message this panel is from AU Optronics, so it should use the auo vendor prefix.

so, "auo,b101xtn01" works for everyone?

BR,
-R

Quoted 1 line

Thierry

#4 lore raw
Quoted 9 lines · Rob Clark
Quoted 8 lines · Thierry Reding
Quoted 6 lines · Rob Clark

LVDS panel, make/model described as:

AU Optronics Corporation - B101XTN01.0 (H/W:0A)

See:
http://www.encore-electronic.com/media/B101XTN01.0.pdf

Quoted 8 lines
Quoted 4 lines

I've made it a custom to mention which board a panel is used on in the commit message and I've requested others to do the same. The idea was that it would give some kind of indication where to find the hardware if somebody wanted to test or look at for reference.

It's just a free-standing panel, which (in this case) can be plugged to an ifc6410 (and I think various other inforce boards..) looks like a standard(ish) 41 pin connector.

Well, it certainly doesn't have to be exclusively used on a board. I guess if it isn't shipped with the IFC6410 as standard, maybe you could simply mention that it's been tested on an IFC6410.

What I like to avoid is that people submit panel patches that are not tested on real hardware.

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
---
 drivers/gpu/drm/panel/panel-simple.c | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

This is missing device tree binding documentation.

there is nothing new, so I assume you just mean adding the compatible string to a list?

There's no such list. You should add a new file, named after the compatible string and stick it along with all the others into Documentation/devicetree/bindings/panel. You can simply use one of the other bindings that are derived from simple-panel as template and adjust for the panel-specifics. There are a couple from AUO in that directory already, so it should be easy.

Quoted 12 lines
Quoted 11 lines

drivers/gpu/drm/panel/panel-simple.c static const struct of_device_id platform_of_match[] = { · line 502

Quoted 8 lines
 static const struct of_device_id platform_of_match[] = {
      {
              .compatible = "auo,b101aw03",
drivers/gpu/drm/panel/panel-simple.c +1 -0
@@ -476,6 +499,10 @@ static const struct of_device_id platform_of_match[] = {
              .compatible = "samsung,ltn101nt05",
              .data = &samsung_ltn101nt05,
      }, {
+             .compatible = "optronics,b101xtn01",

From the commit message this panel is from AU Optronics, so it should use the auo vendor prefix.

Quoted 1 line

so, "auo,b101xtn01" works for everyone?

Yeah, that's consistent with the other ones from AUO, so looking good to me.

Thierry

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