Fixes for omapdrm on OpenPandora and GTA04
Subsystems (7)
cover Fixes for omapdrm on OpenPandora and GTA04
This patch set fixes vendor names of the panels and fixes a problem on omapdrm with enabling VDD_DSI for OMAP3 which is needed for displaying the Red and Green channel on OMAP3530 (Pandora).
H. Nikolaus Schaller (4):
omapdrm: fix compatible string for td028ttec1
DTS: GTA04: fix panel compatibility string
DTS: Pandora: fix panel compatibility string
omapdss: fix problem enabling VDDS_DSI on OMAP3530 (OpenPandora)
.../display/panel/{toppoly,td028ttec1.txt => tpo,td028ttec1.txt} | 4 ++--
arch/arm/boot/dts/omap3-gta04.dtsi | 2 +-
arch/arm/boot/dts/omap3-pandora-common.dtsi | 2 +-
drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c | 4 ++--
drivers/gpu/drm/omapdrm/dss/dpi.c | 3 +--
drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c | 4 ++--
6 files changed, 9 insertions(+), 10 deletions(-)
rename Documentation/devicetree/bindings/display/panel/{toppoly,td028ttec1.txt => tpo,td028ttec1.txt} (84%)Signature · 1 line
2.12.2
PATCH 1/4 omapdrm: fix compatible string for td028ttec1
The vendor name was "toppoly" but other panels and the vendor list have defined it as "tpo". So let's fix it in driver and bindings.
---
.../display/panel/{toppoly,td028ttec1.txt => tpo,td028ttec1.txt} | 4 ++--
drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c | 4 ++--
drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
rename Documentation/devicetree/bindings/display/panel/{toppoly,td028ttec1.txt => tpo,td028ttec1.txt} (84%)Documentation/devicetree/bindings/display/panel/tpo,td028ttec1.txt renamed from Documentation/devicetree/bindings/display/panel/toppoly,td028ttec1.txt +2 -2
@@ -2,7 +2,7 @@ Toppoly TD028TTEC1 Panel ======================== Required properties: -- compatible: "toppoly,td028ttec1" +- compatible: "tpo,td028ttec1" Optional properties: - label: a symbolic name for the panel
@@ -14,7 +14,7 @@ Example ------- lcd-panel: td028ttec1@0 { - compatible = "toppoly,td028ttec1"; + compatible = "tpo,td028ttec1"; reg = <0>; spi-max-frequency = <100000>; spi-cpol;
drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c +2 -2
@@ -452,7 +452,7 @@ static int td028ttec1_panel_remove(struct spi_device *spi) }static const struct of_device_id td028ttec1_of_match[] = { - { .compatible ="omapdss,toppoly,td028ttec1" , }, + { .compatible ="omapdss,tpo,td028ttec1" , }, {}, };
@@ -471,7 +471,7 @@ static struct spi_driver td028ttec1_spi_driver = {module_spi_driver (td028ttec1_spi_driver); -MODULE_ALIAS ("spi:toppoly,td028ttec1" ); +MODULE_ALIAS ("spi:tpo,td028ttec1" );MODULE_AUTHOR ("H. Nikolaus Schaller <[email protected]>" );MODULE_DESCRIPTION ("Toppoly TD028TTEC1 panel driver" );MODULE_LICENSE ("GPL" );
drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c +2 -2
@@ -455,7 +455,7 @@ static int td028ttec1_panel_remove(struct spi_device *spi) }static const struct of_device_id td028ttec1_of_match[] = { - { .compatible ="omapdss,toppoly,td028ttec1" , }, + { .compatible ="omapdss,tpo,td028ttec1" , }, {}, };
@@ -474,7 +474,7 @@ static struct spi_driver td028ttec1_spi_driver = {module_spi_driver (td028ttec1_spi_driver); -MODULE_ALIAS ("spi:toppoly,td028ttec1" ); +MODULE_ALIAS ("spi:tpo,td028ttec1" );MODULE_AUTHOR ("H. Nikolaus Schaller <[email protected]>" );MODULE_DESCRIPTION ("Toppoly TD028TTEC1 panel driver" );MODULE_LICENSE ("GPL" );
Signature · 1 line
2.12.2
Re: [PATCH 1/4] omapdrm: fix compatible string for td028ttec1
Hi Nikolaus,
Thank you for the patch.
Quoted 48 lines · On Wednesday, 8 November 2017 23:09:29 EET H. Nikolaus Schaller wrote:
The vendor name was "toppoly" but other panels and the vendor list have defined it as "tpo". So let's fix it in driver and bindings.
Signed-off-by H. Nikolaus Schaller <[email protected]>--- .../display/panel/{toppoly,td028ttec1.txt => tpo,td028ttec1.txt} | 4 ++-- drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c | 4 ++-- drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-)rename
Documentation/devicetree/bindings/display/panel/{toppoly,td028ttec1.txt=> tpo,td028ttec1.txt} (84%)diff --git
a/Documentation/devicetree/bindings/display/panel/toppoly,td028ttec1.txtb/Documentation/devicetree/bindings/display/panel/tpo,td028ttec1.txtsimilarity index 84%
rename fromDocumentation/devicetree/bindings/display/panel/toppoly,td028ttec1.txtrename toDocumentation/devicetree/bindings/display/panel/tpo,td028ttec1.txtindex7175dc3740ac..ed34253d9fb1100644Documentation/devicetree/bindings/display/panel/tpo,td028ttec1.txt @@ renamed from Documentation/devicetree/bindings/display/panel/toppoly,td028ttec1.txt +2
-3-2,7 +2,7 @@ Toppoly TD028TTEC1 Panel ======================== Required properties: -- compatible: "toppoly,td028ttec1" +- compatible: "tpo,td028ttec1" Optional properties: - label: a symbolic name for the panel@@ -14,7 +14,7 @@ Example ------- lcd-panel: td028ttec1@0 { - compatible = "toppoly,td028ttec1"; + compatible = "tpo,td028ttec1"; reg = <0>; spi-max-frequency = <100000>; spi-cpol;(quoted diff) +0
-0
b/drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.cindex0a38a0e8c925..2dab491478c2100644
drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c static int td028ttec1_panel_remove(struct spi_device · line 455
Quoted 5 lines
drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c +1
-1@@ -452,7 +452,7 @@ static int td028ttec1_panel_remove(struct spi_device *spi) }static const struct of_device_id td028ttec1_of_match[] = { - { .compatible ="omapdss,toppoly,td028ttec1" , }, + { .compatible ="omapdss,tpo,td028ttec1" , },
Doesn't this break backward compatibility with existing DT ?
Quoted 36 lines
drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c +1
-1{}, };@@ -471,7 +471,7 @@ static struct spi_driver td028ttec1_spi_driver = {module_spi_driver (td028ttec1_spi_driver); -MODULE_ALIAS ("spi:toppoly,td028ttec1" ); +MODULE_ALIAS ("spi:tpo,td028ttec1" );MODULE_AUTHOR ("H. Nikolaus Schaller <[email protected]>" );MODULE_DESCRIPTION ("Toppoly TD028TTEC1 panel driver" );MODULE_LICENSE ("GPL" );diff --git
a/drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.cb/drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.cindex57e9e146ff74..39e1754746d2100644drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c +2
-2@@ -455,7 +455,7 @@ static int td028ttec1_panel_remove(struct spi_device *spi) }static const struct of_device_id td028ttec1_of_match[] = { - { .compatible ="omapdss,toppoly,td028ttec1" , }, + { .compatible ="omapdss,tpo,td028ttec1" , }, {}, };@@ -474,7 +474,7 @@ static struct spi_driver td028ttec1_spi_driver = {module_spi_driver (td028ttec1_spi_driver); -MODULE_ALIAS ("spi:toppoly,td028ttec1" ); +MODULE_ALIAS ("spi:tpo,td028ttec1" );MODULE_AUTHOR ("H. Nikolaus Schaller <[email protected]>" );MODULE_DESCRIPTION ("Toppoly TD028TTEC1 panel driver" );MODULE_LICENSE ("GPL" );
Signature · 3 lines
Regards, Laurent Pinchart
Re: [PATCH 1/4] omapdrm: fix compatible string for td028ttec1
Hi Laurent,
Quoted 57 lines
Am 09.11.2017 um 04:33 schrieb Laurent Pinchart <laurent.pinchart-ryLnwIuWjnjg/[email protected]>:
Hi Nikolaus,
Thank you for the patch.
Quoted 50 lines · On Wednesday, 8 November 2017 23:09:29 EET H. Nikolaus Schaller wrote:
The vendor name was "toppoly" but other panels and the vendor list have defined it as "tpo". So let's fix it in driver and bindings.
Signed-off-by H. Nikolaus Schaller <[email protected]>---
.../display/panel/{toppoly,td028ttec1.txt=> tpo,td028ttec1.txt} | 4 ++--drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c| 4 ++--drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c| 4 ++--3 files changed, 6 insertions(+), 6 deletions(-)rename
Documentation/devicetree/bindings/display/panel/{toppoly,td028ttec1.txt=> tpo,td028ttec1.txt} (84%)diff --git
a/Documentation/devicetree/bindings/display/panel/toppoly,td028ttec1.txtb/Documentation/devicetree/bindings/display/panel/tpo,td028ttec1.txtsimilarity index 84%
rename fromDocumentation/devicetree/bindings/display/panel/toppoly,td028ttec1.txtrename toDocumentation/devicetree/bindings/display/panel/tpo,td028ttec1.txtindex7175dc3740ac..ed34253d9fb1100644Documentation/devicetree/bindings/display/panel/tpo,td028ttec1.txt @@ renamed from Documentation/devicetree/bindings/display/panel/toppoly,td028ttec1.txt +0
-1-2,7 +2,7 @@ Toppoly TD028TTEC1 Panel========================
Required properties:
-- compatible: "toppoly,td028ttec1"
+- compatible: "tpo,td028ttec1"Optional properties:
- label: a symbolic name for the panelDocumentation/devicetree/bindings/display/panel/tpo,td028ttec1.txt @@ renamed from Documentation/devicetree/bindings/display/panel/toppoly,td028ttec1.txt +1
-2@@ -14,7 +14,7 @@ Example ------- lcd-panel: td028ttec1@0 { - compatible = "toppoly,td028ttec1"; + compatible = "tpo,td028ttec1"; reg = <0>; spi-max-frequency = <100000>; spi-cpol;(quoted diff) +0
-0
b/drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.cindex0a38a0e8c925..2dab491478c2100644drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c +0
-0@@ -452,7 +452,7 @@ static int td028ttec1_panel_remove(struct spi_device *spi) }
Quoted 5 lines
drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c static int td028ttec1_panel_remove(struct spi_device *spi) · line 455
Quoted 3 lines
drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c +1
-1static const struct of_device_id td028ttec1_of_match[] = { - { .compatible ="omapdss,toppoly,td028ttec1" , }, + { .compatible ="omapdss,tpo,td028ttec1" , },Doesn't this break backward compatibility with existing DT ?
Yes, it does. But I am only aware of the GTA04 which uses it and there is a separate fix).
Quoted 30 lines
Quoted 30 lines
drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c +1
-1{}, };@@ -471,7 +471,7 @@ static struct spi_driver td028ttec1_spi_driver = {module_spi_driver (td028ttec1_spi_driver); -MODULE_ALIAS ("spi:toppoly,td028ttec1" ); +MODULE_ALIAS ("spi:tpo,td028ttec1" );MODULE_AUTHOR ("H. Nikolaus Schaller <[email protected]>" );MODULE_DESCRIPTION ("Toppoly TD028TTEC1 panel driver" );MODULE_LICENSE ("GPL" );diff --git
a/drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.cb/drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.cindex57e9e146ff74..39e1754746d2100644drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c +1
-1@@ -455,7 +455,7 @@ static int td028ttec1_panel_remove(struct spi_device *spi) }static const struct of_device_id td028ttec1_of_match[] = { - { .compatible ="omapdss,toppoly,td028ttec1" , }, + { .compatible ="omapdss,tpo,td028ttec1" , }, {}, };@@ -474,7 +474,7 @@ static struct spi_driver td028ttec1_spi_driver = {
Quoted 14 lines
Quoted 7 lines
drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c +1
-1module_spi_driver (td028ttec1_spi_driver); -MODULE_ALIAS ("spi:toppoly,td028ttec1" ); +MODULE_ALIAS ("spi:tpo,td028ttec1" );MODULE_AUTHOR ("H. Nikolaus Schaller <[email protected]>" );MODULE_DESCRIPTION ("Toppoly TD028TTEC1 panel driver" );MODULE_LICENSE ("GPL" );Signature · 3 lines
Regards, Laurent Pinchart
--
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
Re: [PATCH 1/4] omapdrm: fix compatible string for td028ttec1
Hi Nikolaus,
Quoted 59 lines · On Thursday, 9 November 2017 08:05:15 EET H. Nikolaus Schaller wrote:
Quoted 59 lines
Am 09.11.2017 um 04:33 schrieb Laurent Pinchart:
Quoted 57 lines · On Wednesday, 8 November 2017 23:09:29 EET H. Nikolaus Schaller wrote:
The vendor name was "toppoly" but other panels and the vendor list have defined it as "tpo". So let's fix it in driver and bindings.
Signed-off-by H. Nikolaus Schaller <[email protected]>---
.../display/panel/{toppoly,td028ttec1.txt=> tpo,td028ttec1.txt} | 4 ++--drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c| 4
++--drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c| 4
++--3 files changed, 6 insertions(+), 6 deletions(-)rename
Documentation/devicetree/bindings/display/panel/{toppoly,td028ttec1.txt=>
tpo,td028ttec1.txt} (84%)diff --git
a/Documentation/devicetree/bindings/display/panel/toppoly,td028ttec1.txtb/Documentation/devicetree/bindings/display/panel/tpo,td028ttec1.txtsimilarity index 84%
rename fromDocumentation/devicetree/bindings/display/panel/toppoly,td028ttec1.txtrename toDocumentation/devicetree/bindings/display/panel/tpo,td028ttec1.txtindex7175dc3740ac..ed34253d9fb1100644
---a/Documentation/devicetree/bindings/display/panel/toppoly,td028ttec1.txt+++b/Documentation/devicetree/bindings/display/panel/tpo,td028ttec1.txt(quoted diff) +0
-0@@ -2,7 +2,7 @@ Toppoly TD028TTEC1 Panel========================
Required properties:
-- compatible: "toppoly,td028ttec1"
+- compatible: "tpo,td028ttec1"Optional properties:
- label: a symbolic name for the panelDocumentation/devicetree/bindings/display/panel/tpo,td028ttec1.txt renamed from Documentation/devicetree/bindings/display/panel/toppoly,td028ttec1.txt +1
-2@@ -14,7 +14,7 @@ Example ------- lcd-panel: td028ttec1@0 { - compatible = "toppoly,td028ttec1"; + compatible = "tpo,td028ttec1"; reg = <0>; spi-max-frequency = <100000>;spi-cpol;(quoted diff) +0
-0
b/drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.cindex0a38a0e8c925..2dab491478c2100644drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c +0
-0@@ -452,7 +452,7 @@ static int td028ttec1_panel_remove(struct spi_device *spi) }
Quoted 8 lines
Quoted 5 lines
drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c static int td028ttec1_panel_remove(struct spi_device *spi) · line 455
Quoted 3 lines
drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c +1
-1static const struct of_device_id td028ttec1_of_match[] = { - { .compatible ="omapdss,toppoly,td028ttec1" , }, + { .compatible ="omapdss,tpo,td028ttec1" , },Doesn't this break backward compatibility with existing DT ?
Yes, it does. But I am only aware of the GTA04 which uses it and there is a separate fix).
DT is supposed to be an ABI. In theory at least, one could boot a GTA04 with an existing DT and a new kernel, and no regression should be noticed. There could also be other devices using this panel that you are not aware of.
For how to apply the theory to real life, I'll defer to Tomi :-)
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c +0
-0{}, };
[snip]
Signature · 3 lines
Regards, Laurent Pinchart
Re: [PATCH 1/4] omapdrm: fix compatible string for td028ttec1
Hi Laurent,
Quoted 70 lines
Am 09.11.2017 um 07:35 schrieb Laurent Pinchart <[email protected]>:
Hi Nikolaus,
Quoted 65 lines · On Thursday, 9 November 2017 08:05:15 EET H. Nikolaus Schaller wrote:
Quoted 64 lines
Am 09.11.2017 um 04:33 schrieb Laurent Pinchart:
Quoted 54 lines · On Wednesday, 8 November 2017 23:09:29 EET H. Nikolaus Schaller wrote:
The vendor name was "toppoly" but other panels and the vendor list have defined it as "tpo". So let's fix it in driver and bindings.
Signed-off-by H. Nikolaus Schaller <[email protected]>---
.../display/panel/{toppoly,td028ttec1.txt=> tpo,td028ttec1.txt} | 4 ++--drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c| 4
++--drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td028ttec1.c| 4
++--3 files changed, 6 insertions(+), 6 deletions(-)rename
Documentation/devicetree/bindings/display/panel/{toppoly,td028ttec1.txt=>
tpo,td028ttec1.txt} (84%)diff --git
a/Documentation/devicetree/bindings/display/panel/toppoly,td028ttec1.txtb/Documentation/devicetree/bindings/display/panel/tpo,td028ttec1.txtsimilarity index 84%
rename fromDocumentation/devicetree/bindings/display/panel/toppoly,td028ttec1.txtrename toDocumentation/devicetree/bindings/display/panel/tpo,td028ttec1.txtindex7175dc3740ac..ed34253d9fb1100644
---a/Documentation/devicetree/bindings/display/panel/toppoly,td028ttec1.txt+++b/Documentation/devicetree/bindings/display/panel/tpo,td028ttec1.txt(quoted diff) +0
-0@@ -2,7 +2,7 @@ Toppoly TD028TTEC1 Panel========================
Required properties:
-- compatible: "toppoly,td028ttec1"
+- compatible: "tpo,td028ttec1"Optional properties:
- label: a symbolic name for the panelDocumentation/devicetree/bindings/display/panel/tpo,td028ttec1.txt renamed from Documentation/devicetree/bindings/display/panel/toppoly,td028ttec1.txt +1
-2@@ -14,7 +14,7 @@ Example ------- lcd-panel: td028ttec1@0 { - compatible = "toppoly,td028ttec1"; + compatible = "tpo,td028ttec1"; reg = <0>; spi-max-frequency = <100000>;spi-cpol;(quoted diff) +0
-0
b/drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.cindex0a38a0e8c925..2dab491478c2100644drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c static int td028ttec1_panel_remove(struct spi_device · line 456
Quoted 6 lines
drivers/gpu/drm/omapdrm/displays/panel-tpo-td028ttec1.c +1
-1@@ -452,7 +452,7 @@ static int td028ttec1_panel_remove(struct spi_device *spi) }static const struct of_device_id td028ttec1_of_match[] = { - { .compatible ="omapdss,toppoly,td028ttec1" , }, + { .compatible ="omapdss,tpo,td028ttec1" , },Doesn't this break backward compatibility with existing DT ?
Quoted 5 lines
Quoted 2 lines
Yes, it does. But I am only aware of the GTA04 which uses it and there is a separate fix).
DT is supposed to be an ABI. In theory at least, one could boot a GTA04 with an existing DT and a new kernel, and no regression should be noticed.
Yes, indeed...
Quoted 4 lines
There
could also be other devices using this panel that you are not aware of.For how to apply the theory to real life, I'll defer to Tomi :-)
Yes, Tomi should decide if we should keep the old compatible string in the driver (in second place so to avoid a speed penalty)...
BR and thanks,
Nikolaus Schaller
PATCH 2/4 DTS: GTA04: fix panel compatibility string
In reply to H. Nikolaus SchallerVendor string is "tpo" and not "toppoly".
--- arch/arm/boot/dts/omap3-gta04.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/omap3-gta04.dtsi +1 -1
@@ -86,7 +86,7 @@ /* lcd panel */ lcd: td028ttec1@0 { - compatible = "toppoly,td028ttec1"; + compatible = "tpo,td028ttec1"; reg = <0>; spi-max-frequency = <100000>; spi-cpol;
Signature · 1 line
2.12.2
PATCH 3/4 DTS: Pandora: fix panel compatibility string
In reply to H. Nikolaus SchallerWe can remove the "omapdss," prefix.
--- arch/arm/boot/dts/omap3-pandora-common.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/omap3-pandora-common.dtsi +1 -1
@@ -626,7 +626,7 @@ lcd: lcd@1 { reg = <1>; /* CS1 */ - compatible = "omapdss,tpo,td043mtea1"; + compatible = "tpo,td043mtea1"; spi-max-frequency = <100000>; spi-cpol; spi-cpha;
Signature · 1 line
2.12.2
Re: [PATCH 3/4] DTS: Pandora: fix panel compatibility string
Hi Nikolaus,
Thank you for the patch.
Quoted 1 line · On Wednesday, 8 November 2017 23:09:31 EET H. Nikolaus Schaller wrote:
We can remove the "omapdss," prefix.
I agree but you should explain why.
Quoted 19 lines
Signed-off-by H. Nikolaus Schaller <[email protected]>--- arch/arm/boot/dts/omap3-pandora-common.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0
b/arch/arm/boot/dts/omap3-pandora-common.dtsiindex53e007abdc71..64d967ec8c58100644arch/arm/boot/dts/omap3-pandora-common.dtsi +1
-1@@ -626,7 +626,7 @@ lcd: lcd@1 { reg = <1>; /* CS1 */ - compatible = "omapdss,tpo,td043mtea1"; + compatible = "tpo,td043mtea1"; spi-max-frequency = <100000>; spi-cpol; spi-cpha;
Signature · 3 lines
Regards, Laurent Pinchart
Re: [PATCH 3/4] DTS: Pandora: fix panel compatibility string
Quoted 11 lines
Am 09.11.2017 um 04:36 schrieb Laurent Pinchart <[email protected]>:
Hi Nikolaus,
Thank you for the patch.
Quoted 1 line · On Wednesday, 8 November 2017 23:09:31 EET H. Nikolaus Schaller wrote:
We can remove the "omapdss," prefix.
I agree but you should explain why.
I can add a sentence if someone helps me to formulate it correctly. Or Tomi, please add when accepting the patch.
Quoted 27 lines
Quoted 20 lines
Signed-off-by H. Nikolaus Schaller <[email protected]>---
arch/arm/boot/dts/omap3-pandora-common.dtsi| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)(quoted diff) +0
-0
b/arch/arm/boot/dts/omap3-pandora-common.dtsiindex53e007abdc71..64d967ec8c58100644arch/arm/boot/dts/omap3-pandora-common.dtsi +1
-1@@ -626,7 +626,7 @@ lcd: lcd@1 { reg = <1>; /* CS1 */ - compatible = "omapdss,tpo,td043mtea1"; + compatible = "tpo,td043mtea1"; spi-max-frequency = <100000>; spi-cpol; spi-cpha;Signature · 3 lines
Regards, Laurent Pinchart
PATCH 4/4 omapdss: fix problem enabling VDDS_DSI on OMAP3530 (OpenPandora)
In reply to H. Nikolaus Schallercommit d178e034d565 ("drm: omapdrm: Move FEAT_DPI_USES_VDDS_DSI feature to dpi code")
introduced a new match table which turned out to be wrong, at least for the 600 MHz OpenPandora using the OMAP3530.
The effect was strange: only the Blue channel of the RGB panel was driven while Red and Green stayed black. So a coloured picture turned into blue/black.
The GTA04 with DM3730 didn't show the effect.
It turned out that VDDS_DSI was not properly initialized on OMAP3530, because the .family string is just "OMAP3" for these processors and not "OMAP3xxx".
Therefore we match the .machine attribute.
--- drivers/gpu/drm/omapdrm/dss/dpi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/omapdrm/dss/dpi.c +1 -2
@@ -566,8 +566,7 @@ static int dpi_verify_pll(struct dss_pll *pll) }static const struct soc_device_attribute dpi_soc_devices[] = { - { .family ="OMAP3[456]*" }, - { .family ="[AD]M37*" }, + { .machine ="OMAP3[456]*" }, {/* sentinel */ } };
Signature · 1 line
2.12.2
Re: [PATCH 4/4] omapdss: fix problem enabling VDDS_DSI on OMAP3530 (OpenPandora)
Hi Nikolaus,
Thank you for the patch.
Quoted 12 lines · On Wednesday, 8 November 2017 23:09:32 EET H. Nikolaus Schaller wrote:
commit
d178e034d565("drm: omapdrm: MoveFEAT_DPI_USES_VDDS_DSIfeature to dpi code")introduced a new match table which turned out to be wrong, at least for the 600 MHz OpenPandora using the OMAP3530.
The effect was strange: only the Blue channel of the RGB panel was driven while Red and Green stayed black. So a coloured picture turned into blue/black.
The GTA04 with DM3730 didn't show the effect.
Quoted 7 lines
It turned out that
VDDS_DSIwas not properly initialized on OMAP3530, because the .family string is just "OMAP3" for these processors and not "OMAP3xxx".Therefore we match the .machine attribute.
Signed-off-by H. Nikolaus Schaller <[email protected]>
I've already submitted a similar patch (but without the problem pointed out below) in the mail thread where we discussed the issue. It is customary to use the first patch posted (unless it is utterly broken of course). Could you thus please include it in this series in replacement of this patch ?
Quoted 9 lines
--- drivers/gpu/drm/omapdrm/dss/dpi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)(quoted diff) +0
-0
b/drivers/gpu/drm/omapdrm/dss/dpi.cindex4ed5fde11313..aae3626910bb100644
drivers/gpu/drm/omapdrm/dss/dpi.c static int dpi_verify_pll(struct dss_pll *pll) · line 569
Quoted 6 lines
drivers/gpu/drm/omapdrm/dss/dpi.c +1
-2@@ -566,8 +566,7 @@ static int dpi_verify_pll(struct dss_pll *pll) }static const struct soc_device_attribute dpi_soc_devices[] = { - { .family ="OMAP3[456]*" }, - { .family ="[AD]M37*" }, + { .machine ="OMAP3[456]*" },
You also need
{ .machine = "[AD]M37*" },otherwise there will be no match for the OMAP3-like AM37xx and DM37xx SoCs.
Another option would be to match on { .family = "OMAP3*" } but there could be spurious matches, even though I haven't identified any.
Quoted 2 lines
drivers/gpu/drm/omapdrm/dss/dpi.c +0
-0{/* sentinel */ } };
Signature · 3 lines
Regards, Laurent Pinchart
Re: [PATCH 4/4] omapdss: fix problem enabling VDDS_DSI on OMAP3530 (OpenPandora)
Hi Laurent,
Quoted 23 lines
Am 09.11.2017 um 04:45 schrieb Laurent Pinchart <[email protected]>:
Hi Nikolaus,
Thank you for the patch.
Quoted 16 lines · On Wednesday, 8 November 2017 23:09:32 EET H. Nikolaus Schaller wrote:
commit
d178e034d565("drm: omapdrm: MoveFEAT_DPI_USES_VDDS_DSIfeature to dpi code")introduced a new match table which turned out to be wrong, at least for the 600 MHz OpenPandora using the OMAP3530.
The effect was strange: only the Blue channel of the RGB panel was driven while Red and Green stayed black. So a coloured picture turned into blue/black.
The GTA04 with DM3730 didn't show the effect.
It turned out that
VDDS_DSIwas not properly initialized on OMAP3530, because the .family string is just "OMAP3" for these processors and not "OMAP3xxx".
Quoted 7 lines
Quoted 3 lines
Therefore we match the .machine attribute.
Signed-off-by H. Nikolaus Schaller <[email protected]>I've already submitted a similar patch (but without the problem pointed out below) in the mail thread where we discussed the issue. It is customary to use the first patch posted (unless it is utterly broken of course).
Ah sorry. My workflow isn't well prepared for that and I already had committed something to my private branch...
Quoted 2 lines
Could you thus
please include it in this series in replacement of this patch ?
Well, you can as well reject my patch (it is just a proposal) and take yours as a replacement. Especially as you better understand all the potential values for .family and .machine than me.
Should be less work for both of us.
Quoted 19 lines
Quoted 10 lines
---
drivers/gpu/drm/omapdrm/dss/dpi.c| 3 +--1 file changed, 1 insertion(+), 2 deletions(-)(quoted diff) +0
-0
b/drivers/gpu/drm/omapdrm/dss/dpi.cindex4ed5fde11313..aae3626910bb100644drivers/gpu/drm/omapdrm/dss/dpi.c static int dpi_verify_pll(struct dss_pll *pll) · line 569
Quoted 6 lines
drivers/gpu/drm/omapdrm/dss/dpi.c +1
-2@@ -566,8 +566,7 @@ static int dpi_verify_pll(struct dss_pll *pll) }static const struct soc_device_attribute dpi_soc_devices[] = { - { .family ="OMAP3[456]*" }, - { .family ="[AD]M37*" }, + { .machine ="OMAP3[456]*" },You also need
Quoted 3 lines
{ .machine = "[AD]M37*" },otherwise there will be no match for the OMAP3-like AM37xx and DM37xx SoCs.
Ah, ok. I wasn't aware that there are some AM37 and DM37 chips with and some without OMAP3 prefix.
Quoted 7 lines
Another option would be to match on { .family = "OMAP3*" } but there could be spurious matches, even though I haven't identified any.
Quoted 2 lines
drivers/gpu/drm/omapdrm/dss/dpi.c +0
-0{/* sentinel */ } };
BR and thanks,
Nikolaus Schaller