Skip to contentSkip to conversation

dt-bindings: display: Add BOE nv101wxmn51 panel binding

PATCH Superseded Caesar Wang 2 participants 4 messages Dec 8, 2016 – Dec 14, 2016

Subsystems (5)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 dt-bindings: display: Add BOE nv101wxmn51 panel binding

The BOE 10.1" NV101WXMN51 panel is an WXGA TFT LCD panel.

---

Changes in v2: None

 .../devicetree/bindings/display/panel/boe,nv101wxmn51.txt          | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/panel/boe,nv101wxmn51.txt
Documentation/devicetree/bindings/display/panel/boe,nv101wxmn51.txt new file +7 -0
new file mode 100644
index 0000000..b258d6a
@@ -0,0 +1,7 @@
+BOE OPTOELECTRONICS TECHNOLOGY 10.1" WXGA TFT LCD panel
+
+Required properties:
+- compatible: should be "boe,nv101wxmn51"
+
+This binding is compatible with the simple-panel binding, which is specified
+in simple-panel.txt in this directory.
Signature · 6 lines
2.7.4

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

PATCH v2 2/2 drm/panel: simple: Add support BOE nv101wxmn51

10.1WXGA is a color active matrix TFT LCD module using amorphous silicon TFT's as an active switching devices. It can be supported by the simple-panel driver.

Read the panel edid information;

EDID MODE DETAILS

                name = <NULL>
                pixel_clock = 71900
                lvds_dual_channel = 0
                refresh = 0
                ha = 1280
                hbl = 160
                hso = 48
                hspw = 32
                hborder = 0
                va = 800
                vbl = 32
                vso = 3
                vspw = 5
                vborder = 0
                phsync = +
                pvsync = -
                x_mm = 0
                y_mm = 0
drm_display_mode
                .hdisplay = 1280
                .hsync_start = 1328
                .hsync_end = 1360
                .htotal = 1440
                .vdisplay = 800
                .vsync_start = 803
                .vsync_end = 808
                .vtotal = 832

---

Changes in v2:
- fix the vsync_start and vsync_end from the edid.
- change the commit.

 drivers/gpu/drm/panel/panel-simple.c | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
drivers/gpu/drm/panel/panel-simple.c +31 -0
index 06aaf79..7c90f16 100644
@@ -668,6 +668,34 @@ static const struct panel_desc avic_tm070ddh03 = {
 	},
 };
 
+static const struct drm_display_mode boe_nv101wxmn51_mode = {
+	.clock = 71900,
+	.hdisplay = 1280,
+	.hsync_start = 1280 + 48,
+	.hsync_end = 1280 + 48 + 32,
+	.htotal = 1280 + 48 + 32 + 80,
+	.vdisplay = 800,
+	.vsync_start = 800 + 3,
+	.vsync_end = 800 + 3 + 5,
+	.vtotal = 800 + 3 + 5 + 24,
+	.vrefresh = 60,
+};
+
+static const struct panel_desc boe_nv101wxmn51 = {
+	.modes = &boe_nv101wxmn51_mode,
+	.num_modes = 1,
+	.bpc = 8,
+	.size = {
+		.width = 217,
+		.height = 136,
+	},
+	.delay = {
+		.prepare = 210,
+		.enable = 50,
+		.unprepare = 160,
+	},
+};
+
 static const struct drm_display_mode chunghwa_claa070wp03xg_mode = {
 	.clock = 66770,
 	.hdisplay = 800,
@@ -1748,6 +1776,9 @@ static const struct of_device_id platform_of_match[] = {
 		.compatible = "avic,tm070ddh03",
 		.data = &avic_tm070ddh03,
 	}, {
+		.compatible = "boe,nv101wxmn51",
+		.data = &boe_nv101wxmn51,
+	}, {
 		.compatible = "chunghwa,claa070wp03xg",
 		.data = &chunghwa_claa070wp03xg,
 	}, {
Signature · 6 lines
2.7.4

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw

Re: [PATCH v2 2/2] drm/panel: simple: Add support BOE nv101wxmn51

Quoted 59 lines · Caesar Wang

10.1WXGA is a color active matrix TFT LCD module using amorphous silicon TFT's as an active switching devices. It can be supported by the simple-panel driver.

Read the panel edid information;

EDID MODE DETAILS

                name = <NULL>
                pixel_clock = 71900
                lvds_dual_channel = 0
                refresh = 0
                ha = 1280
                hbl = 160
                hso = 48
                hspw = 32
                hborder = 0
                va = 800
                vbl = 32
                vso = 3
                vspw = 5
                vborder = 0
                phsync = +
                pvsync = -
                x_mm = 0
                y_mm = 0
drm_display_mode
                .hdisplay = 1280
                .hsync_start = 1328
                .hsync_end = 1360
                .htotal = 1440
                .vdisplay = 800
                .vsync_start = 803
                .vsync_end = 808
                .vtotal = 832

---

Changes in v2:
- fix the vsync_start and vsync_end from the edid.
- change the commit.

 drivers/gpu/drm/panel/panel-simple.c | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
drivers/gpu/drm/panel/panel-simple.c +6 -0
index 06aaf79..7c90f16 100644
@@ -668,6 +668,34 @@ static const struct panel_desc avic_tm070ddh03 = {
        },
 };
 
+static const struct drm_display_mode boe_nv101wxmn51_mode = {
+       .clock = 71900,
+       .hdisplay = 1280,
+       .hsync_start = 1280 + 48,
+       .hsync_end = 1280 + 48 + 32,
+       .htotal = 1280 + 48 + 32 + 80,

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

Quoted 10 lines
drivers/gpu/drm/panel/panel-simple.c +10 -0
+       .vdisplay = 800,
+       .vsync_start = 800 + 3,
+       .vsync_end = 800 + 3 + 5,
+       .vtotal = 800 + 3 + 5 + 24,
+       .vrefresh = 60,
+};
+
+static const struct panel_desc boe_nv101wxmn51 = {
+       .modes = &boe_nv101wxmn51_mode,
+       .num_modes = 1,

There are two modes in the EDID (there is a downclock one). Can you add both modes?

Stéphane

Quoted 32 lines
drivers/gpu/drm/panel/panel-simple.c +15 -1
+       .bpc = 8,
+       .size = {
+               .width = 217,
+               .height = 136,
+       },
+       .delay = {
+               .prepare = 210,
+               .enable = 50,
+               .unprepare = 160,
+       },
+};
+
 static const struct drm_display_mode chunghwa_claa070wp03xg_mode = {
        .clock = 66770,
        .hdisplay = 800,
@@ -1748,6 +1776,9 @@ static const struct of_device_id platform_of_match[] = {
                .compatible = "avic,tm070ddh03",
                .data = &avic_tm070ddh03,
        }, {
+               .compatible = "boe,nv101wxmn51",
+               .data = &boe_nv101wxmn51,
+       }, {
                .compatible = "chunghwa,claa070wp03xg",
                .data = &chunghwa_claa070wp03xg,
        }, {
--

2.7.4

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

#3 lore raw

Re: [PATCH v2 2/2] drm/panel: simple: Add support BOE nv101wxmn51

Quoted 64 lines · Stéphane Marchesin
Quoted 63 lines · Caesar Wang

10.1WXGA is a color active matrix TFT LCD module using amorphous silicon TFT's as an active switching devices. It can be supported by the simple-panel driver.

Read the panel edid information;

EDID MODE DETAILS

                 name = <NULL>
                 pixel_clock = 71900
                 lvds_dual_channel = 0
                 refresh = 0
                 ha = 1280
                 hbl = 160
                 hso = 48
                 hspw = 32
                 hborder = 0
                 va = 800
                 vbl = 32
                 vso = 3
                 vspw = 5
                 vborder = 0
                 phsync = +
                 pvsync = -
                 x_mm = 0
                 y_mm = 0
drm_display_mode
                 .hdisplay = 1280
                 .hsync_start = 1328
                 .hsync_end = 1360
                 .htotal = 1440
                 .vdisplay = 800
                 .vsync_start = 803
                 .vsync_end = 808
                 .vtotal = 832

---

Changes in v2:
- fix the vsync_start and vsync_end from the edid.
- change the commit.

  drivers/gpu/drm/panel/panel-simple.c | 31 +++++++++++++++++++++++++++++++
  1 file changed, 31 insertions(+)
drivers/gpu/drm/panel/panel-simple.c +10 -0
index 06aaf79..7c90f16 100644
@@ -668,6 +668,34 @@ static const struct panel_desc avic_tm070ddh03 = {
         },
  };
 
+static const struct drm_display_mode boe_nv101wxmn51_mode = {
+       .clock = 71900,
+       .hdisplay = 1280,
+       .hsync_start = 1280 + 48,
+       .hsync_end = 1280 + 48 + 32,
+       .htotal = 1280 + 48 + 32 + 80,
+       .vdisplay = 800,
+       .vsync_start = 800 + 3,
+       .vsync_end = 800 + 3 + 5,
+       .vtotal = 800 + 3 + 5 + 24,
Quoted 8 lines

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

Quoted 6 lines
drivers/gpu/drm/panel/panel-simple.c +6 -0
+       .vrefresh = 60,
+};
+
+static const struct panel_desc boe_nv101wxmn51 = {
+       .modes = &boe_nv101wxmn51_mode,
+       .num_modes = 1,

There are two modes in the EDID (there is a downclock one). Can you add both modes?

Yup, I will add them for next version.
Thanks.

-Caesar

Quoted 31 lines

Stéphane

Quoted 28 lines
drivers/gpu/drm/panel/panel-simple.c +15 -1
+       .bpc = 8,
+       .size = {
+               .width = 217,
+               .height = 136,
+       },
+       .delay = {
+               .prepare = 210,
+               .enable = 50,
+               .unprepare = 160,
+       },
+};
+
  static const struct drm_display_mode chunghwa_claa070wp03xg_mode = {
         .clock = 66770,
         .hdisplay = 800,
@@ -1748,6 +1776,9 @@ static const struct of_device_id platform_of_match[] = {
                 .compatible = "avic,tm070ddh03",
                 .data = &avic_tm070ddh03,
         }, {
+               .compatible = "boe,nv101wxmn51",
+               .data = &boe_nv101wxmn51,
+       }, {
                 .compatible = "chunghwa,claa070wp03xg",
                 .data = &chunghwa_claa070wp03xg,
         }, {
--

2.7.4

Quoted 8 lines
Quoted 4 lines

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

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip

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