* [PATCH 0/2] ARM: dts: exynos: Fix port nodes names for Snow and Peach Pit DTS
@ 2016-06-06 20:24 Javier Martinez Canillas
2016-06-06 20:24 ` [PATCH 1/2] ARM: dts: exynos: Fix port nodes names for Exynos5250 Snow board Javier Martinez Canillas
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Javier Martinez Canillas @ 2016-06-06 20:24 UTC (permalink / raw)
To: linux-kernel
Cc: Marc Zyngier, Javier Martinez Canillas, devicetree, Kukjin Kim,
linux-samsung-soc, Krzysztof Kozlowski, Rob Herring,
Mark Rutland, Russell King, linux-arm-kernel
Hello Krzysztof,
This small series fixes the lookup for the lvds-to-eDP bridge found in
the Exynos5250 Snow and Exynos5420 Peach Pit Chromebooks. The problem
was introduced by the commits that fixed the recent DTC warnings and
it was that the OF graph logic expects the nodes to always be called
'port'.
So the correct fix for the DTC warnings is to add a '#address-cells',
'#size-cells' and 'reg' properties when there is more than one port.
Best regards,
Javier
Javier Martinez Canillas (2):
ARM: dts: exynos: Fix port nodes names for Exynos5250 Snow board
ARM: dts: exynos: Fix port nodes names for Exynos5420 Peach Pit board
arch/arm/boot/dts/exynos5250-snow-common.dtsi | 13 ++++++++++---
arch/arm/boot/dts/exynos5420-peach-pit.dts | 13 ++++++++++---
2 files changed, 20 insertions(+), 6 deletions(-)
--
2.5.5
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] ARM: dts: exynos: Fix port nodes names for Exynos5250 Snow board
2016-06-06 20:24 [PATCH 0/2] ARM: dts: exynos: Fix port nodes names for Snow and Peach Pit DTS Javier Martinez Canillas
@ 2016-06-06 20:24 ` Javier Martinez Canillas
2016-06-07 8:49 ` Marc Zyngier
2016-06-06 20:24 ` [PATCH 2/2] ARM: dts: exynos: Fix port nodes names for Exynos5420 Peach Pit board Javier Martinez Canillas
2016-06-07 6:16 ` [PATCH 0/2] ARM: dts: exynos: Fix port nodes names for Snow and Peach Pit DTS Krzysztof Kozlowski
2 siblings, 1 reply; 5+ messages in thread
From: Javier Martinez Canillas @ 2016-06-06 20:24 UTC (permalink / raw)
To: linux-kernel
Cc: Marc Zyngier, Javier Martinez Canillas, devicetree, Kukjin Kim,
linux-samsung-soc, Krzysztof Kozlowski, Rob Herring,
Mark Rutland, Russell King, linux-arm-kernel
Commit 5c9cbade0629 ("ARM: dts: exynos: Fix DTC unit name warnings in
Exynos5250") fixed all the DTC warnings about mismatchs between unit
names and reg properties in Exynos5250 boards DTS.
But unfortunately it also added a regression on the Exynos5250 Snow
Chromebook when changing the port node names since the OF graph logic
expects the port nodes to be always named 'port'.
The Documentation/devicetree/bindings/graph.txt binding document says
that when there is more than one port, '#address-cells', '#size-cells'
and 'reg' properties should be used to number the port nodes.
Fixes: 5c9cbade0629 ("ARM: dts: exynos: Fix DTC unit name warnings in Exynos5250")
Reported-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
---
arch/arm/boot/dts/exynos5250-snow-common.dtsi | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/arch/arm/boot/dts/exynos5250-snow-common.dtsi b/arch/arm/boot/dts/exynos5250-snow-common.dtsi
index 419d59da1751..fadbea744e1a 100644
--- a/arch/arm/boot/dts/exynos5250-snow-common.dtsi
+++ b/arch/arm/boot/dts/exynos5250-snow-common.dtsi
@@ -242,7 +242,7 @@
hpd-gpios = <&gpx0 7 GPIO_ACTIVE_HIGH>;
ports {
- port0 {
+ port {
dp_out: endpoint {
remote-endpoint = <&bridge_in>;
};
@@ -485,13 +485,20 @@
edid-emulation = <5>;
ports {
- port0 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+
bridge_out: endpoint {
remote-endpoint = <&panel_in>;
};
};
- port1 {
+ port@1 {
+ reg = <1>;
+
bridge_in: endpoint {
remote-endpoint = <&dp_out>;
};
--
2.5.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] ARM: dts: exynos: Fix port nodes names for Exynos5420 Peach Pit board
2016-06-06 20:24 [PATCH 0/2] ARM: dts: exynos: Fix port nodes names for Snow and Peach Pit DTS Javier Martinez Canillas
2016-06-06 20:24 ` [PATCH 1/2] ARM: dts: exynos: Fix port nodes names for Exynos5250 Snow board Javier Martinez Canillas
@ 2016-06-06 20:24 ` Javier Martinez Canillas
2016-06-07 6:16 ` [PATCH 0/2] ARM: dts: exynos: Fix port nodes names for Snow and Peach Pit DTS Krzysztof Kozlowski
2 siblings, 0 replies; 5+ messages in thread
From: Javier Martinez Canillas @ 2016-06-06 20:24 UTC (permalink / raw)
To: linux-kernel
Cc: Marc Zyngier, Javier Martinez Canillas, devicetree, Kukjin Kim,
linux-samsung-soc, Krzysztof Kozlowski, Rob Herring,
Mark Rutland, Russell King, linux-arm-kernel
Commit bea7eef6949c ("ARM: dts: exynos: Fix DTC unit name warnings in
Peach Pit") fixed the DTC warnings about mismatches between unit names
and reg properties in the Exynos5420 Peach Pit DTS.
But unfortunately it also added a regression on the Peach Pit when
changing the port node names since the OF graph logic expects the port
nodes to be always named 'port'.
The Documentation/devicetree/bindings/graph.txt binding document says
that when there is more than one port, '#address-cells', '#size-cells'
and 'reg' properties should be used to number the port nodes.
Fixes: bea7eef6949c ("ARM: dts: exynos: Fix DTC unit name warnings in Peach Pit")
Reported-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
---
arch/arm/boot/dts/exynos5420-peach-pit.dts | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/arch/arm/boot/dts/exynos5420-peach-pit.dts b/arch/arm/boot/dts/exynos5420-peach-pit.dts
index f3078430d866..7279f2a0b43d 100644
--- a/arch/arm/boot/dts/exynos5420-peach-pit.dts
+++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts
@@ -163,7 +163,7 @@
hpd-gpios = <&gpx2 6 GPIO_ACTIVE_HIGH>;
ports {
- port0 {
+ port {
dp_out: endpoint {
remote-endpoint = <&bridge_in>;
};
@@ -625,13 +625,20 @@
use-external-pwm;
ports {
- port0 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+
bridge_out: endpoint {
remote-endpoint = <&panel_in>;
};
};
- port1 {
+ port@1 {
+ reg = <1>;
+
bridge_in: endpoint {
remote-endpoint = <&dp_out>;
};
--
2.5.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 0/2] ARM: dts: exynos: Fix port nodes names for Snow and Peach Pit DTS
2016-06-06 20:24 [PATCH 0/2] ARM: dts: exynos: Fix port nodes names for Snow and Peach Pit DTS Javier Martinez Canillas
2016-06-06 20:24 ` [PATCH 1/2] ARM: dts: exynos: Fix port nodes names for Exynos5250 Snow board Javier Martinez Canillas
2016-06-06 20:24 ` [PATCH 2/2] ARM: dts: exynos: Fix port nodes names for Exynos5420 Peach Pit board Javier Martinez Canillas
@ 2016-06-07 6:16 ` Krzysztof Kozlowski
2 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2016-06-07 6:16 UTC (permalink / raw)
To: Javier Martinez Canillas, linux-kernel
Cc: Marc Zyngier, devicetree, Kukjin Kim, linux-samsung-soc,
Rob Herring, Mark Rutland, Russell King, linux-arm-kernel
On 06/06/2016 10:24 PM, Javier Martinez Canillas wrote:
> Hello Krzysztof,
>
> This small series fixes the lookup for the lvds-to-eDP bridge found in
> the Exynos5250 Snow and Exynos5420 Peach Pit Chromebooks. The problem
> was introduced by the commits that fixed the recent DTC warnings and
> it was that the OF graph logic expects the nodes to always be called
> 'port'.
>
> So the correct fix for the DTC warnings is to add a '#address-cells',
> '#size-cells' and 'reg' properties when there is more than one port.
>
> Best regards,
> Javier
>
>
> Javier Martinez Canillas (2):
> ARM: dts: exynos: Fix port nodes names for Exynos5250 Snow board
> ARM: dts: exynos: Fix port nodes names for Exynos5420 Peach Pit board
>
> arch/arm/boot/dts/exynos5250-snow-common.dtsi | 13 ++++++++++---
> arch/arm/boot/dts/exynos5420-peach-pit.dts | 13 ++++++++++---
> 2 files changed, 20 insertions(+), 6 deletions(-)
Thanks for fixes. Applied both for v4.7.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] ARM: dts: exynos: Fix port nodes names for Exynos5250 Snow board
2016-06-06 20:24 ` [PATCH 1/2] ARM: dts: exynos: Fix port nodes names for Exynos5250 Snow board Javier Martinez Canillas
@ 2016-06-07 8:49 ` Marc Zyngier
0 siblings, 0 replies; 5+ messages in thread
From: Marc Zyngier @ 2016-06-07 8:49 UTC (permalink / raw)
To: Javier Martinez Canillas, linux-kernel
Cc: devicetree, Kukjin Kim, linux-samsung-soc, Krzysztof Kozlowski,
Rob Herring, Mark Rutland, Russell King, linux-arm-kernel
On 06/06/16 21:24, Javier Martinez Canillas wrote:
> Commit 5c9cbade0629 ("ARM: dts: exynos: Fix DTC unit name warnings in
> Exynos5250") fixed all the DTC warnings about mismatchs between unit
> names and reg properties in Exynos5250 boards DTS.
>
> But unfortunately it also added a regression on the Exynos5250 Snow
> Chromebook when changing the port node names since the OF graph logic
> expects the port nodes to be always named 'port'.
>
> The Documentation/devicetree/bindings/graph.txt binding document says
> that when there is more than one port, '#address-cells', '#size-cells'
> and 'reg' properties should be used to number the port nodes.
>
> Fixes: 5c9cbade0629 ("ARM: dts: exynos: Fix DTC unit name warnings in Exynos5250")
> Reported-by: Marc Zyngier <marc.zyngier@arm.com>
> Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
I've tested this on top of -rc1, and it indeed fixes the display
initialization I was seeing. It then dies in a horrible way, but that's
a separate bug.
So for this patch:
Tested-by: Marc Zyngier <marc.zyngier@arm.com>
Thanks,
M.
--
Jazz is not dead. It just smells funny...
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-06-07 8:49 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-06 20:24 [PATCH 0/2] ARM: dts: exynos: Fix port nodes names for Snow and Peach Pit DTS Javier Martinez Canillas
2016-06-06 20:24 ` [PATCH 1/2] ARM: dts: exynos: Fix port nodes names for Exynos5250 Snow board Javier Martinez Canillas
2016-06-07 8:49 ` Marc Zyngier
2016-06-06 20:24 ` [PATCH 2/2] ARM: dts: exynos: Fix port nodes names for Exynos5420 Peach Pit board Javier Martinez Canillas
2016-06-07 6:16 ` [PATCH 0/2] ARM: dts: exynos: Fix port nodes names for Snow and Peach Pit DTS Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).