All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: n900: Add aliases for lcd and tvout displays
@ 2018-01-02 22:17 ` Ivaylo Dimitrov
  0 siblings, 0 replies; 5+ messages in thread
From: Ivaylo Dimitrov @ 2018-01-02 22:17 UTC (permalink / raw)
  To: tony, bcousson
  Cc: robh+dt, mark.rutland, linux-omap, devicetree, linux-arm-kernel,
	linux-kernel, Ivaylo Dimitrov

When both lcd and tv are enabled, the order in which they will be probed is
unknown, so it might happen (and it happens in reality) that tv is
configured as display0 and lcd as display1, which results in nothing
displayed on lcd, as display1 is disabled by default.

Fix that by providing correct aliases for lcd and tv

Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
---
 arch/arm/boot/dts/omap3-n900.dts | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts
index 669c51c..4b9c3a7 100644
--- a/arch/arm/boot/dts/omap3-n900.dts
+++ b/arch/arm/boot/dts/omap3-n900.dts
@@ -35,6 +35,8 @@
 		i2c1 = &i2c1;
 		i2c2 = &i2c2;
 		i2c3 = &i2c3;
+		display0 = &lcd;
+		display1 = &tv;
 	};
 
 	cpus {
@@ -965,7 +967,7 @@
 		ti,esd-recovery-timeout-ms = <8000>;
 	};
 
-	acx565akm@2 {
+	lcd: acx565akm@2 {
 		compatible = "sony,acx565akm";
 		spi-max-frequency = <6000000>;
 		reg = <2>;
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH] ARM: dts: n900: Add aliases for lcd and tvout displays
@ 2018-01-02 22:17 ` Ivaylo Dimitrov
  0 siblings, 0 replies; 5+ messages in thread
From: Ivaylo Dimitrov @ 2018-01-02 22:17 UTC (permalink / raw)
  To: linux-arm-kernel

When both lcd and tv are enabled, the order in which they will be probed is
unknown, so it might happen (and it happens in reality) that tv is
configured as display0 and lcd as display1, which results in nothing
displayed on lcd, as display1 is disabled by default.

Fix that by providing correct aliases for lcd and tv

Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
---
 arch/arm/boot/dts/omap3-n900.dts | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts
index 669c51c..4b9c3a7 100644
--- a/arch/arm/boot/dts/omap3-n900.dts
+++ b/arch/arm/boot/dts/omap3-n900.dts
@@ -35,6 +35,8 @@
 		i2c1 = &i2c1;
 		i2c2 = &i2c2;
 		i2c3 = &i2c3;
+		display0 = &lcd;
+		display1 = &tv;
 	};
 
 	cpus {
@@ -965,7 +967,7 @@
 		ti,esd-recovery-timeout-ms = <8000>;
 	};
 
-	acx565akm at 2 {
+	lcd: acx565akm at 2 {
 		compatible = "sony,acx565akm";
 		spi-max-frequency = <6000000>;
 		reg = <2>;
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] ARM: dts: n900: Add aliases for lcd and tvout displays
  2018-01-02 22:17 ` Ivaylo Dimitrov
  (?)
@ 2018-01-12 23:34     ` Tony Lindgren
  -1 siblings, 0 replies; 5+ messages in thread
From: Tony Lindgren @ 2018-01-12 23:34 UTC (permalink / raw)
  To: Ivaylo Dimitrov
  Cc: bcousson-rdvid1DuHRBWk0Htik3J/w, robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
	mark.rutland-5wv7dgnIgG8, linux-omap-u79uwXL29TY76Z2rM5mHXA,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA

* Ivaylo Dimitrov <ivo.g.dimitrov.75-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> [180102 14:20]:
> When both lcd and tv are enabled, the order in which they will be probed is
> unknown, so it might happen (and it happens in reality) that tv is
> configured as display0 and lcd as display1, which results in nothing
> displayed on lcd, as display1 is disabled by default.
> 
> Fix that by providing correct aliases for lcd and tv

Applying into omap-for-v4.16/dt-clk thanks.

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH] ARM: dts: n900: Add aliases for lcd and tvout displays
@ 2018-01-12 23:34     ` Tony Lindgren
  0 siblings, 0 replies; 5+ messages in thread
From: Tony Lindgren @ 2018-01-12 23:34 UTC (permalink / raw)
  To: linux-arm-kernel

* Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> [180102 14:20]:
> When both lcd and tv are enabled, the order in which they will be probed is
> unknown, so it might happen (and it happens in reality) that tv is
> configured as display0 and lcd as display1, which results in nothing
> displayed on lcd, as display1 is disabled by default.
> 
> Fix that by providing correct aliases for lcd and tv

Applying into omap-for-v4.16/dt-clk thanks.

Regards,

Tony

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] ARM: dts: n900: Add aliases for lcd and tvout displays
@ 2018-01-12 23:34     ` Tony Lindgren
  0 siblings, 0 replies; 5+ messages in thread
From: Tony Lindgren @ 2018-01-12 23:34 UTC (permalink / raw)
  To: Ivaylo Dimitrov
  Cc: bcousson, robh+dt, mark.rutland, linux-omap, devicetree,
	linux-arm-kernel, linux-kernel

* Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> [180102 14:20]:
> When both lcd and tv are enabled, the order in which they will be probed is
> unknown, so it might happen (and it happens in reality) that tv is
> configured as display0 and lcd as display1, which results in nothing
> displayed on lcd, as display1 is disabled by default.
> 
> Fix that by providing correct aliases for lcd and tv

Applying into omap-for-v4.16/dt-clk thanks.

Regards,

Tony

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-01-12 23:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-02 22:17 [PATCH] ARM: dts: n900: Add aliases for lcd and tvout displays Ivaylo Dimitrov
2018-01-02 22:17 ` Ivaylo Dimitrov
     [not found] ` <1514931434-13192-1-git-send-email-ivo.g.dimitrov.75-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2018-01-12 23:34   ` Tony Lindgren
2018-01-12 23:34     ` Tony Lindgren
2018-01-12 23:34     ` Tony Lindgren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.