Skip to contentSkip to conversation

display: panel: Add Tianma tm070rvhg71 display support (800x480)

PATCH Superseded Lukasz Majewski 3 participants 14 messages Oct 20, 2017 – Nov 17, 2017

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

PATCH 1/1 display: panel: Add Tianma tm070rvhg71 display support (800x480)

---
 .../bindings/display/panel/tianma,tm070rvhg71.txt  |  7 ++++++
 drivers/gpu/drm/panel/panel-simple.c               | 27 ++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt
Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt new file +7 -0
new file mode 100644
index 0000000..b84217f
@@ -0,0 +1,7 @@
+Tianma Micro-electronics TM070RVHG71 7.0" WXGA TFT LCD panel
+
+Required properties:
+- compatible: should be "tianma,tm070rvhg71
+
+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 +27 -0
index 3d2cb8b..07188dc 100644
@@ -1831,6 +1831,30 @@ static const struct panel_desc tianma_tm070jdhg30 = {
 	.bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
 };
 
+static const struct display_timing tianma_tm070rvhg71_timing = {
+	.pixelclock = { 27700000, 29200000, 39600000 },
+	.hactive = { 800, 800, 800 },
+	.hfront_porch = { 12, 40, 212 },
+	.hback_porch = { 88, 88, 88 },
+	.hsync_len = { 1, 1, 40 },
+	.vactive = { 480, 480, 480 },
+	.vfront_porch = { 1, 13, 88 },
+	.vback_porch = { 32, 32, 32 },
+	.vsync_len = { 1, 1, 3 },
+	.flags = DISPLAY_FLAGS_DE_HIGH,
+};
+
+static const struct panel_desc tianma_tm070rvhg71 = {
+	.timings = &tianma_tm070rvhg71_timing,
+	.num_timings = 1,
+	.bpc = 8,
+	.size = {
+		.width = 154,
+		.height = 86,
+	},
+	.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+};
+
 static const struct drm_display_mode tpk_f07a_0102_mode = {
 	.clock = 33260,
 	.hdisplay = 800,
@@ -2113,6 +2137,9 @@ static const struct of_device_id platform_of_match[] = {
 		.compatible = "tianma,tm070jdhg30",
 		.data = &tianma_tm070jdhg30,
 	}, {
+		.compatible = "tianma,tm070rvhg71",
+		.data = &tianma_tm070rvhg71,
+	}, {
 		.compatible = "tpk,f07a-0102",
 		.data = &tpk_f07a_0102,
 	}, {
Signature · 6 lines
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
maintainer
#1 lore raw
Quoted 13 lines · Lukasz Majewski
---
 .../bindings/display/panel/tianma,tm070rvhg71.txt  |  7 ++++++
 drivers/gpu/drm/panel/panel-simple.c               | 27 ++++++++++++++++++++++
 2 files changed, 34 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt
Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt new file +0 -0
new file mode 100644
index 0000000..b84217f

Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt line 7

Quoted 7 lines
Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt new file +7 -0
@@ -0,0 +1,7 @@
+Tianma Micro-electronics TM070RVHG71 7.0" WXGA TFT LCD panel
+
+Required properties:
+- compatible: should be "tianma,tm070rvhg71
+
+This binding is compatible with the simple-panel binding, which is specified
+in simple-panel.txt in this directory.

No supplies? Still need to list power-supply here if so, so it is clear that this display has a single supply (or you need to list multiple ones if not).

Rob
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw

Hi Rob,

Quoted 18 lines · Lukasz Majewski
Quoted 17 lines
---
 .../bindings/display/panel/tianma,tm070rvhg71.txt  |  7 ++++++
 drivers/gpu/drm/panel/panel-simple.c               | 27
++++++++++++++++++++++ 2 files changed, 34 insertions(+)
 create mode 100644

Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt

diff --git a/Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt b/Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt new file mode 100644 index 0000000..b84217f --- /dev/null
+++
b/Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt

(quoted diff) +0 -0
@@ -0,0 +1,7 @@ +Tianma Micro-electronics TM070RVHG71 7.0" WXGA TFT

LCD panel +
+Required properties:

Quoted 8 lines
Quoted 4 lines

+- compatible: should be "tianma,tm070rvhg71

(quoted diff) +2 -0
+
+This binding is compatible with the simple-panel binding, which is

specified +in simple-panel.txt in this directory.

No supplies? Still need to list power-supply here if so, so it is clear that this display has a single supply (or you need to list multiple ones if not).

I took the same approach as several other simple panels having description in Documentation/devicetree/bindings/display/panel/* directory (e.g. innolux,g121i1-l01.txt) .

In the description it is stated that this binding is compatible with one documented in the simple-panel.txt, which defines following properties:

Required properties:
- power-supply: regulator to provide the supply voltage

Optional properties:
- ddc-i2c-bus: phandle of an I2C controller used for DDC EDID probing
- enable-gpios: GPIO pin to enable or disable the panel
- backlight: phandle of the backlight device attached to the panel

Do I need to do something more?

Quoted 2 lines

Rob

Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]

#3 lore raw

Hi Rob,

Quoted 40 lines

Hi Rob,

Quoted 18 lines · Lukasz Majewski
Quoted 17 lines
---
 .../bindings/display/panel/tianma,tm070rvhg71.txt  |  7 ++++++
 drivers/gpu/drm/panel/panel-simple.c               | 27
++++++++++++++++++++++ 2 files changed, 34 insertions(+)
 create mode 100644

Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt

diff --git a/Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt b/Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt new file mode 100644 index 0000000..b84217f --- /dev/null
+++
b/Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt

(quoted diff) +0 -0
@@ -0,0 +1,7 @@ +Tianma Micro-electronics TM070RVHG71 7.0" WXGA

TFT LCD panel +
+Required properties:

Quoted 8 lines
Quoted 4 lines

+- compatible: should be "tianma,tm070rvhg71

(quoted diff) +2 -0
+
+This binding is compatible with the simple-panel binding, which

is specified +in simple-panel.txt in this directory.

No supplies? Still need to list power-supply here if so, so it is clear that this display has a single supply (or you need to list multiple ones if not).

I took the same approach as several other simple panels having description in Documentation/devicetree/bindings/display/panel/* directory (e.g. innolux,g121i1-l01.txt) .

In the description it is stated that this binding is compatible with one documented in the simple-panel.txt, which defines following properties:

Required properties:
- power-supply: regulator to provide the supply voltage

Quoted 7 lines

Optional properties:
- ddc-i2c-bus: phandle of an I2C controller used for DDC EDID probing
- enable-gpios: GPIO pin to enable or disable the panel
- backlight: phandle of the backlight device attached to the panel

Do I need to do something more?

Gentle ping...

Quoted 7 lines
Quoted 3 lines

Rob

Best regards,

Quoted 7 lines

Lukasz Majewski

--

DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]

Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]

maintainer
#4 lore raw
In reply to Lukasz Majewski
Quoted 40 lines · Lukasz Majewski

Hi Rob,

Quoted 18 lines · Lukasz Majewski
Quoted 17 lines
---
 .../bindings/display/panel/tianma,tm070rvhg71.txt  |  7 ++++++
 drivers/gpu/drm/panel/panel-simple.c               | 27
++++++++++++++++++++++ 2 files changed, 34 insertions(+)
 create mode 100644

Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt

diff --git a/Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt b/Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt new file mode 100644 index 0000000..b84217f --- /dev/null
+++
b/Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt

(quoted diff) +0 -0
@@ -0,0 +1,7 @@ +Tianma Micro-electronics TM070RVHG71 7.0" WXGA TFT

LCD panel +
+Required properties:

Quoted 8 lines
Quoted 4 lines

+- compatible: should be "tianma,tm070rvhg71

(quoted diff) +2 -0
+
+This binding is compatible with the simple-panel binding, which is

specified +in simple-panel.txt in this directory.

No supplies? Still need to list power-supply here if so, so it is clear that this display has a single supply (or you need to list multiple ones if not).

I took the same approach as several other simple panels having description in Documentation/devicetree/bindings/display/panel/* directory (e.g. innolux,g121i1-l01.txt) .

In the description it is stated that this binding is compatible with one documented in the simple-panel.txt, which defines following properties:

Required properties:
- power-supply: regulator to provide the supply voltage

Quoted 7 lines

Optional properties:
- ddc-i2c-bus: phandle of an I2C controller used for DDC EDID probing
- enable-gpios: GPIO pin to enable or disable the panel
- backlight: phandle of the backlight device attached to the panel

Do I need to do something more?

Yes. How do I know this panel has a single power supply vs. it has multiple supplies and you haven't thought about supplies yet or they aren't s/w controlled on some boards. The latter is frequently the case when I go read the datasheets.

And yes there are examples that don't do this, but we're stricter now.

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

#5 lore raw

PATCH v2 1/1 display: panel: Add Tianma tm070rvhg71 display support (800x480)

---
Changes for v2:
- Provide more detailed ./Documentation/devicetree/bindings/display/panel entry to describe this panel device.

---
 .../bindings/display/panel/tianma,tm070rvhg71.txt  | 29 ++++++++++++++++++++++
 drivers/gpu/drm/panel/panel-simple.c               | 27 ++++++++++++++++++++
 2 files changed, 56 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt
Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt new file +29 -0
new file mode 100644
index 000000000000..02562867444d
@@ -0,0 +1,29 @@
+Tianma Micro-electronics TM070RVHG71 7.0" WXGA TFT LCD panel
+
+Required properties:
+- compatible: should be "tianma,tm070rvhg71
+- power-supply: single regulator to provide the supply voltage
+- backlight: phandle of the backlight device attached to the panel
+
+Required nodes:
+- port: LVDS port mapping to connect this display
+
+This panel needs single power supply voltage. Its backlight is conntrolled
+via PWM signal.
+
+Example:
+--------
+
+Example device-tree definition when connected to iMX6Q based board
+
+	panel: panel-lvds0 {
+		compatible = "tianma,tm070rvhg71";
+		backlight = <&backlight_lvds>;
+		power-supply = <&reg_lvds>;
+
+		port {
+			panel_in_lvds0: endpoint {
+				remote-endpoint = <&lvds0_out>;
+			};
+		};
+	};
drivers/gpu/drm/panel/panel-simple.c +27 -0
index 3d2cb8bc4d94..07188dc084df 100644
@@ -1831,6 +1831,30 @@ static const struct panel_desc tianma_tm070jdhg30 = {
 	.bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
 };
 
+static const struct display_timing tianma_tm070rvhg71_timing = {
+	.pixelclock = { 27700000, 29200000, 39600000 },
+	.hactive = { 800, 800, 800 },
+	.hfront_porch = { 12, 40, 212 },
+	.hback_porch = { 88, 88, 88 },
+	.hsync_len = { 1, 1, 40 },
+	.vactive = { 480, 480, 480 },
+	.vfront_porch = { 1, 13, 88 },
+	.vback_porch = { 32, 32, 32 },
+	.vsync_len = { 1, 1, 3 },
+	.flags = DISPLAY_FLAGS_DE_HIGH,
+};
+
+static const struct panel_desc tianma_tm070rvhg71 = {
+	.timings = &tianma_tm070rvhg71_timing,
+	.num_timings = 1,
+	.bpc = 8,
+	.size = {
+		.width = 154,
+		.height = 86,
+	},
+	.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+};
+
 static const struct drm_display_mode tpk_f07a_0102_mode = {
 	.clock = 33260,
 	.hdisplay = 800,
@@ -2113,6 +2137,9 @@ static const struct of_device_id platform_of_match[] = {
 		.compatible = "tianma,tm070jdhg30",
 		.data = &tianma_tm070jdhg30,
 	}, {
+		.compatible = "tianma,tm070rvhg71",
+		.data = &tianma_tm070rvhg71,
+	}, {
 		.compatible = "tpk,f07a-0102",
 		.data = &tpk_f07a_0102,
 	}, {
Signature · 6 lines
2.11.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
maintainer Acked-by on v2 1/1
#6 lore raw
Quoted 11 lines · Lukasz Majewski

---
Changes for v2:
- Provide more detailed ./Documentation/devicetree/bindings/display/panel entry to describe this panel device.

---
 .../bindings/display/panel/tianma,tm070rvhg71.txt  | 29 ++++++++++++++++++++++
 drivers/gpu/drm/panel/panel-simple.c               | 27 ++++++++++++++++++++
 2 files changed, 56 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw

Dear All,

Quoted 15 lines · Lukasz Majewski
Quoted 7 lines

---
Changes for v2:
- Provide more
detailed ./Documentation/devicetree/bindings/display/panel entry to describe this panel device. ---

Quoted 6 lines
 .../bindings/display/panel/tianma,tm070rvhg71.txt  | 29

++++++++++++++++++++++
drivers/gpu/drm/panel/panel-simple.c | 27
++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt

Quoted 1 line

Is there a chance that this patch will find its way to v4.15-rc1 ?

Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]

#12 lore raw
In reply to Lukasz Majewski
Quoted 11 lines · Lukasz Majewski

---
Changes for v2:
- Provide more detailed ./Documentation/devicetree/bindings/display/panel entry to describe this panel device.

---
 .../bindings/display/panel/tianma,tm070rvhg71.txt  | 29 ++++++++++++++++++++++
 drivers/gpu/drm/panel/panel-simple.c               | 27 ++++++++++++++++++++
 2 files changed, 56 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt

I've applied this, though I had to make a few modifications. First, I added a commit message. Commits should always have one.

Also, please send DT bindings and driver changes as separate patches in the future.

Device tree bindings should have a subject prefixed with any of these:

dt-bindings:
dt-bindings: display:
dt-bindings: display: panel:

Though the latter two are fairly long by themselves, so you don't have a lot of room for the important bits.

Please also prefix the subject of panel driver patches with a:

drm/panel:

Which makes it easier to identify relevant patches among loads and loads of other email.

Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt line 4

Quoted 11 lines
Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt new file +4 -0
new file mode 100644
index 000000000000..02562867444d
@@ -0,0 +1,29 @@
+Tianma Micro-electronics TM070RVHG71 7.0" WXGA TFT LCD panel
+
+Required properties:
+- compatible: should be "tianma,tm070rvhg71

Added a missing " at the end here.

Quoted 61 lines
Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt new file +25 -0
+- power-supply: single regulator to provide the supply voltage
+- backlight: phandle of the backlight device attached to the panel
+
+Required nodes:
+- port: LVDS port mapping to connect this display
+
+This panel needs single power supply voltage. Its backlight is conntrolled
+via PWM signal.
+
+Example:
+--------
+
+Example device-tree definition when connected to iMX6Q based board
+
+	panel: panel-lvds0 {
+		compatible = "tianma,tm070rvhg71";
+		backlight = <&backlight_lvds>;
+		power-supply = <&reg_lvds>;
+
+		port {
+			panel_in_lvds0: endpoint {
+				remote-endpoint = <&lvds0_out>;
+			};
+		};
+	};
drivers/gpu/drm/panel/panel-simple.c +24 -0
index 3d2cb8bc4d94..07188dc084df 100644
@@ -1831,6 +1831,30 @@ static const struct panel_desc tianma_tm070jdhg30 = {
 	.bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
 };
 
+static const struct display_timing tianma_tm070rvhg71_timing = {
+	.pixelclock = { 27700000, 29200000, 39600000 },
+	.hactive = { 800, 800, 800 },
+	.hfront_porch = { 12, 40, 212 },
+	.hback_porch = { 88, 88, 88 },
+	.hsync_len = { 1, 1, 40 },
+	.vactive = { 480, 480, 480 },
+	.vfront_porch = { 1, 13, 88 },
+	.vback_porch = { 32, 32, 32 },
+	.vsync_len = { 1, 1, 3 },
+	.flags = DISPLAY_FLAGS_DE_HIGH,
+};
+
+static const struct panel_desc tianma_tm070rvhg71 = {
+	.timings = &tianma_tm070rvhg71_timing,
+	.num_timings = 1,
+	.bpc = 8,
+	.size = {
+		.width = 154,
+		.height = 86,
+	},
+	.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+};
+
 static const struct drm_display_mode tpk_f07a_0102_mode = {
 	.clock = 33260,
 	.hdisplay = 800,

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

Quoted 9 lines
drivers/gpu/drm/panel/panel-simple.c +3 -0
@@ -2113,6 +2137,9 @@ static const struct of_device_id platform_of_match[] = {
 		.compatible = "tianma,tm070jdhg30",
 		.data = &tianma_tm070jdhg30,
 	}, {
+		.compatible = "tianma,tm070rvhg71",
+		.data = &tianma_tm070rvhg71,
+	}, {
 		.compatible = "tpk,f07a-0102",
 		.data = &tpk_f07a_0102,
 	}, {

Looks like these are actually sorted correctly in your patch. However, when applying these got added after the Toshiba panel that was recently added, so I resorted again.

Thierry

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

#8 lore raw
In reply to Lukasz Majewski
Quoted 17 lines · Lukasz Majewski

Dear All,

Quoted 15 lines · Lukasz Majewski
Quoted 13 lines

---
Changes for v2:
- Provide more
detailed ./Documentation/devicetree/bindings/display/panel entry to describe this panel device. ---

 .../bindings/display/panel/tianma,tm070rvhg71.txt  | 29

++++++++++++++++++++++
drivers/gpu/drm/panel/panel-simple.c | 27
++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt

Quoted 3 lines
Quoted 1 line

Is there a chance that this patch will find its way to v4.15-rc1 ?

No, that's very unlikely. We're in the middle of the merge window, no new patches are accepted at that point.

If you want to make sure a patch goes into the next release, make sure it is posted and reviewed at least a few days before -rc6 of the prior release. -rc6 is a common cut-off point for subsystems (though not all) in the kernel.

Thierry

#13 lore raw
In reply to Thierry Reding

Hi Thierry,

Quoted 15 lines · Lukasz Majewski
Quoted 7 lines

---
Changes for v2:
- Provide more
detailed ./Documentation/devicetree/bindings/display/panel entry to describe this panel device. ---

Quoted 6 lines
 .../bindings/display/panel/tianma,tm070rvhg71.txt  | 29

++++++++++++++++++++++
drivers/gpu/drm/panel/panel-simple.c | 27
++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt

Quoted 1 line

I've applied this, though I had to make a few modifications.

Thanks :-)

Quoted 15 lines

First, I
added a commit message. Commits should always have one.

Also, please send DT bindings and driver changes as separate patches in the future.

Device tree bindings should have a subject prefixed with any of these:

dt-bindings:
dt-bindings: display:
dt-bindings: display: panel:

Though the latter two are fairly long by themselves, so you don't have a lot of room for the important bits.

Quoted 6 lines

Please also prefix the subject of panel driver patches with a:

drm/panel:

Which makes it easier to identify relevant patches among loads and loads of other email.

Ok. I see. Thanks for explanation.

Quoted 14 lines
Quoted 9 lines

diff --git a/Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt b/Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt new file mode 100644 index 000000000000..02562867444d --- /dev/null
+++
b/Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt

(quoted diff) +0 -0
@@ -0,0 +1,29 @@ +Tianma Micro-electronics TM070RVHG71 7.0" WXGA
Quoted 3 lines

TFT LCD panel +
+Required properties:
+- compatible: should be "tianma,tm070rvhg71

Added a missing " at the end here.

Ok.

Quoted 67 lines
Quoted 67 lines
+- power-supply: single regulator to provide the supply voltage
+- backlight: phandle of the backlight device attached to the panel
Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt new file +5 -0
+
+Required nodes:
+- port: LVDS port mapping to connect this display
+
+This panel needs single power supply voltage. Its backlight is

conntrolled +via PWM signal.

Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt new file +17 -0
+
+Example:
+--------
+
+Example device-tree definition when connected to iMX6Q based board
+
+	panel: panel-lvds0 {
+		compatible = "tianma,tm070rvhg71";
+		backlight = <&backlight_lvds>;
+		power-supply = <&reg_lvds>;
+
+		port {
+			panel_in_lvds0: endpoint {
+				remote-endpoint = <&lvds0_out>;
+			};
+		};
+	};
(quoted diff) +0 -0

b/drivers/gpu/drm/panel/panel-simple.c index 3d2cb8bc4d94..07188dc084df 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1831,6 +1831,30 @@ static const struct panel_desc tianma_tm070jdhg30 = { .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG, };

drivers/gpu/drm/panel/panel-simple.c +26 -0
+static const struct display_timing tianma_tm070rvhg71_timing = {
+	.pixelclock = { 27700000, 29200000, 39600000 },
+	.hactive = { 800, 800, 800 },
+	.hfront_porch = { 12, 40, 212 },
+	.hback_porch = { 88, 88, 88 },
+	.hsync_len = { 1, 1, 40 },
+	.vactive = { 480, 480, 480 },
+	.vfront_porch = { 1, 13, 88 },
+	.vback_porch = { 32, 32, 32 },
+	.vsync_len = { 1, 1, 3 },
+	.flags = DISPLAY_FLAGS_DE_HIGH,
+};
+
+static const struct panel_desc tianma_tm070rvhg71 = {
+	.timings = &tianma_tm070rvhg71_timing,
+	.num_timings = 1,
+	.bpc = 8,
+	.size = {
+		.width = 154,
+		.height = 86,
+	},
+	.bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
+};
+
 static const struct drm_display_mode tpk_f07a_0102_mode = {
 	.clock = 33260,
 	.hdisplay = 800,
@@ -2113,6 +2137,9 @@ static const struct of_device_id
 platform_of_match[] = { .compatible = "tianma,tm070jdhg30",
 		.data = &tianma_tm070jdhg30,
 	}, {
+		.compatible = "tianma,tm070rvhg71",
+		.data = &tianma_tm070rvhg71,
Quoted 8 lines

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

Quoted 4 lines
drivers/gpu/drm/panel/panel-simple.c +1 -0
+	}, {
 		.compatible = "tpk,f07a-0102",
 		.data = &tpk_f07a_0102,
 	}, {  

Looks like these are actually sorted correctly in your patch. However, when applying these got added after the Toshiba panel that was recently added, so I resorted again.

Thanks one more time.

Quoted 2 lines

Thierry

Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]

#9 lore raw
In reply to Thierry Reding

Hi Thierry,

Quoted 18 lines · Lukasz Majewski
Quoted 17 lines

Dear All,

Quoted 15 lines · Lukasz Majewski
Quoted 13 lines

---
Changes for v2:
- Provide more
detailed ./Documentation/devicetree/bindings/display/panel entry to describe this panel device. ---

 .../bindings/display/panel/tianma,tm070rvhg71.txt  | 29

++++++++++++++++++++++
drivers/gpu/drm/panel/panel-simple.c | 27
++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Is there a chance that this patch will find its way to v4.15-rc1 ?

No, that's very unlikely. We're in the middle of the merge window, no new patches are accepted at that point.

Ok. I see. I should have sent the ping earlier.

Quoted 5 lines

If you want to make sure a patch goes into the next release, make sure it is posted and reviewed at least a few days before -rc6 of the prior release. -rc6 is a common cut-off point for subsystems (though not all) in the kernel.

Understood, thanks.

Quoted 2 lines

Thierry

Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]

#10 lore raw
Quoted 20 lines · Lukasz Majewski

Hi Thierry,

Quoted 18 lines · Lukasz Majewski
Quoted 17 lines

Dear All,

Quoted 15 lines · Lukasz Majewski
Quoted 13 lines

---
Changes for v2:
- Provide more
detailed ./Documentation/devicetree/bindings/display/panel entry to describe this panel device. ---

 .../bindings/display/panel/tianma,tm070rvhg71.txt  | 29

++++++++++++++++++++++
drivers/gpu/drm/panel/panel-simple.c | 27
++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Is there a chance that this patch will find its way to v4.15-rc1 ?

No, that's very unlikely. We're in the middle of the merge window, no new patches are accepted at that point.

Ok. I see. I should have sent the ping earlier.

Looking at the timeline of this patch even that wouldn't have been enough. You sent the original patch on October 21, which is one day after the final drm-misc feature pull request was tagged. So this wouldn't have made it into v4.15-rc1 no matter how early you would have pinged. =)

Thierry

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

#11 lore raw
Quoted 30 lines · On Fri, 17 Nov 2017 13:27:13 +0100 Thierry Reding…
Quoted 29 lines · Lukasz Majewski

Hi Thierry,

Quoted 26 lines · Lukasz Majewski
Quoted 18 lines

Dear All,

Quoted 16 lines
Quoted 13 lines · Lukasz Majewski

---
Changes for v2:
- Provide more
detailed ./Documentation/devicetree/bindings/display/panel entry to describe this panel device. ---

 .../bindings/display/panel/tianma,tm070rvhg71.txt  | 29

++++++++++++++++++++++
drivers/gpu/drm/panel/panel-simple.c | 27
++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/tianma,tm070rvhg71.txt

Quoted 4 lines
Quoted 1 line

Is there a chance that this patch will find its way to v4.15-rc1 ?

No, that's very unlikely. We're in the middle of the merge window, no new patches are accepted at that point.

Quoted 7 lines
Quoted 1 line

Ok. I see. I should have sent the ping earlier.

Looking at the timeline of this patch even that wouldn't have been enough. You sent the original patch on October 21, which is one day after the final drm-misc feature pull request was tagged. So this wouldn't have made it into v4.15-rc1 no matter how early you would have pinged. =)

Time's flying :-)

Anyway, thanks for help.

Quoted 2 lines

Thierry

Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]