Skip to contentSkip to conversation

Support for LG-LH500WX1-SD03 and LG-LD070WX3-SL01 panels

PATCH New Alexandre Courbot 1 participant 3 messages Jan 21, 2014

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

cover Support for LG-LH500WX1-SD03 and LG-LD070WX3-SL01 panels

These patches add support for the panels used on the NVIDIA SHIELD and Tegra Note 7 using the simple-panel driver, as both platforms are to be proposed for inclusion into mainline soon.

Alexandre Courbot (2):
drm/panel: add support for LG LH500WX1-SD03 panel drm/panel: add support for LG LD070WX3-SL01 panel

 .../devicetree/bindings/panel/lg,ld070wx3-sl01.txt |  7 +++
 .../devicetree/bindings/panel/lg,lh500wx1-sd03.txt |  7 +++
 drivers/gpu/drm/panel/panel-simple.c               | 56 ++++++++++++++++++++++
 3 files changed, 70 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/panel/lg,ld070wx3-sl01.txt
 create mode 100644 Documentation/devicetree/bindings/panel/lg,lh500wx1-sd03.txt
Signature · 1 line
1.8.5.3
#1 lore raw

PATCH 1/2 drm/panel: add support for LG LH500WX1-SD03 panel

This panel is used by the NVIDIA SHIELD and supported by the simple-panel driver.

---
 .../devicetree/bindings/panel/lg,lh500wx1-sd03.txt |  7 ++++++
 drivers/gpu/drm/panel/panel-simple.c               | 28 ++++++++++++++++++++++
 2 files changed, 35 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/panel/lg,lh500wx1-sd03.txt
Documentation/devicetree/bindings/panel/lg,lh500wx1-sd03.txt new file +7 -0
new file mode 100644
index 000000000000..a04fd2b2e73d
@@ -0,0 +1,7 @@
+LG Corporation 5" HD TFT LCD panel
+
+Required properties:
+- compatible: should be "lg,lh500wx1-sd03"
+
+This binding is compatible with the simple-panel binding, which is specified
+in simple-panel.txt in this directory.
drivers/gpu/drm/panel/panel-simple.c +28 -0
index 59d52ca2c67f..410bb83ae2f0 100644
@@ -383,6 +383,28 @@ static const struct panel_desc samsung_ltn101nt05 = {
 	},
 };
 
+static const struct drm_display_mode lg_lh500wx1_sd03_mode = {
+	.clock = 58000,
+	.hdisplay = 720,
+	.hsync_start = 720 + 12,
+	.hsync_end = 720 + 12 + 4,
+	.htotal = 720 + 12 + 4 + 112,
+	.vdisplay = 1280,
+	.vsync_start = 1280 + 8,
+	.vsync_end = 1280 + 8 + 4,
+	.vtotal = 1280 + 8 + 4 + 12,
+	.vrefresh = 60,
+};
+
+static const struct panel_desc lg_lh500wx1_sd03 = {
+	.modes = &lg_lh500wx1_sd03_mode,
+	.num_modes = 1,
+	.size = {
+		.width = 62,
+		.height = 110,
+	},
+};
+
 static const struct of_device_id platform_of_match[] = {
 	{
 		.compatible = "auo,b101aw03",
@@ -397,6 +419,9 @@ static const struct of_device_id platform_of_match[] = {
 		.compatible = "samsung,ltn101nt05",
 		.data = &samsung_ltn101nt05,
 	}, {
+		.compatible = "lg,lh500wx1-sd03",
+		.data = &lg_lh500wx1_sd03
+	}, {
 		.compatible = "simple-panel",
 	}, {
 		/* sentinel */
@@ -468,6 +493,9 @@ static const struct of_device_id dsi_of_match[] = {
 		.compatible = "panasonic,vvx10f004b00",
 		.data = &panasonic_vvx10f004b00
 	}, {
+		.compatible = "lg,lh500wx1-sd03",
+		.data = &lg_lh500wx1_sd03
+	}, {
 		/* sentinel */
 	}
 };
Signature · 1 line
1.8.5.3
#2 lore raw

PATCH 2/2 drm/panel: add support for LG LD070WX3-SL01 panel

In reply to Alexandre Courbot

This panel is used by Tegra Note 7 and supported by the simple-panel driver.

---
 .../devicetree/bindings/panel/lg,ld070wx3-sl01.txt |  7 ++++++
 drivers/gpu/drm/panel/panel-simple.c               | 28 ++++++++++++++++++++++
 2 files changed, 35 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/panel/lg,ld070wx3-sl01.txt
Documentation/devicetree/bindings/panel/lg,ld070wx3-sl01.txt new file +7 -0
new file mode 100644
index 000000000000..5e649cb9aa1a
@@ -0,0 +1,7 @@
+LG Corporation 7" WXGA TFT LCD panel
+
+Required properties:
+- compatible: should be "lg,ld070wx3-sl01"
+
+This binding is compatible with the simple-panel binding, which is specified
+in simple-panel.txt in this directory.
drivers/gpu/drm/panel/panel-simple.c +28 -0
index 410bb83ae2f0..a2defc0eb36f 100644
@@ -405,6 +405,28 @@ static const struct panel_desc lg_lh500wx1_sd03 = {
 	},
 };
 
+static const struct drm_display_mode lg_ld070wx3_sl01_mode = {
+	.clock = 65000,
+	.hdisplay = 800,
+	.hsync_start = 800 + 32,
+	.hsync_end = 800 + 32 + 1,
+	.htotal = 800 + 32 + 1 + 57,
+	.vdisplay = 1280,
+	.vsync_start = 1280 + 28,
+	.vsync_end = 1280 + 28 + 1,
+	.vtotal = 1280 + 28 + 1 + 14,
+	.vrefresh = 60,
+};
+
+static const struct panel_desc lg_ld070wx3_sl01 = {
+	.modes = &lg_ld070wx3_sl01_mode,
+	.num_modes = 1,
+	.size = {
+		.width = 62,
+		.height = 110,
+	},
+};
+
 static const struct of_device_id platform_of_match[] = {
 	{
 		.compatible = "auo,b101aw03",
@@ -422,6 +444,9 @@ static const struct of_device_id platform_of_match[] = {
 		.compatible = "lg,lh500wx1-sd03",
 		.data = &lg_lh500wx1_sd03
 	}, {
+		.compatible = "lg,ld070wx3-sl01",
+		.data = &lg_ld070wx3_sl01,
+	}, {
 		.compatible = "simple-panel",
 	}, {
 		/* sentinel */
@@ -496,6 +521,9 @@ static const struct of_device_id dsi_of_match[] = {
 		.compatible = "lg,lh500wx1-sd03",
 		.data = &lg_lh500wx1_sd03
 	}, {
+		.compatible = "lg,ld070wx3-sl01",
+		.data = &lg_ld070wx3_sl01
+	}, {
 		/* sentinel */
 	}
 };
Signature · 1 line
1.8.5.3