Skip to contentSkip to conversation

ARM: dts: sunxi: Cleanup DTC warnings

PATCH Applied Maxime Ripard 3 participants 35 messages Mar 14, 2019 – Mar 15, 2019

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

v2 cover ARM: dts: sunxi: Cleanup DTC warnings

Here is the rest of the series that fixes most of our DTC warnings. The number of warnings when compiled with W=1 after applying this series is now reduced to 2.

The two remaining one are on the A80 and would require some change in the clock driver. Given how little activity there is on the A80, we can expect it to not happen in a near future, but I can live with two warnings.

Let me know what you think,
Maxime

Changes from v1:
- Rebased on current tree
- Added some code in the DRM driver to deal with the endpoints
- Fixed the DTS pipeline for the A83t and A64

Maxime Ripard (13):
drm/sun4i: backend: Simplify the get_id logic drm/sun4i: mixer: Simplify the get_id logic
ARM: dts: sun8i: a83t: Add cross links for the mixers
arm64: dts: allwinner: a64: Add cross links for the mixers
ARM: dts: sun5i: Fix display pipeline endpoint warnings in DTC
ARM: dts: sun5i: Fix Display Engine DTC warnings
ARM: dts: sun6i: Fix Display Engine DTC warnings
ARM: dts: sun8i: a23/a33: Fix Display Engine DTC warnings
ARM: dts: sun8i: v3s: Fix Display Engine DTC warnings
ARM: dts: sun8i: a83t: Fix Display Engine DTC warnings
ARM: dts: sun8i: r40: Fix Display Engine DTC warnings
ARM: dts: sun9i: Fix Display Engine DTC warnings
ARM: dts: sun9i: Add missing unit address

 arch/arm/boot/dts/sun5i-a13-olinuxino.dts      |  2 +-
 arch/arm/boot/dts/sun5i-a13-q8-tablet.dts      | 11 +---
 arch/arm/boot/dts/sun5i.dtsi                   | 25 +------
 arch/arm/boot/dts/sun6i-a31-hummingbird.dts    | 12 +---
 arch/arm/boot/dts/sun6i-a31.dtsi               | 12 +---
 arch/arm/boot/dts/sun8i-a23-a33.dtsi           | 32 +--------
 arch/arm/boot/dts/sun8i-a23-q8-tablet.dts      |  6 ++-
 arch/arm/boot/dts/sun8i-a33-q8-tablet.dts      |  7 ++-
 arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts | 11 +---
 arch/arm/boot/dts/sun8i-a33.dtsi               | 18 +----
 arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts      |  3 +-
 arch/arm/boot/dts/sun8i-a83t.dtsi              | 32 +++++++--
 arch/arm/boot/dts/sun8i-q8-common.dtsi         | 18 +-----
 arch/arm/boot/dts/sun8i-r40.dtsi               |  5 +-
 arch/arm/boot/dts/sun8i-v3s.dtsi               | 10 +---
 arch/arm/boot/dts/sun9i-a80-cubieboard4.dts    | 15 +----
 arch/arm/boot/dts/sun9i-a80.dtsi               | 66 +++----------------
 arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi  | 33 +++++++++-
 drivers/gpu/drm/sun4i/sun4i_backend.c          | 34 +++-------
 drivers/gpu/drm/sun4i/sun8i_mixer.c            | 39 +++--------
 20 files changed, 140 insertions(+), 251 deletions(-)

base-commit: cf08baa29613dd899954089e7cc7dba1d478b365

Signature · 5 lines
git-series 0.9.1
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

PATCH v2 1/13 drm/sun4i: backend: Simplify the get_id logic

Using the new helpers introduced since we wrote that code, we can simplify the code to retrieve the backend ID significantly.

The new code will also allow us to deal nicely with endpoints that don't have a reg property, as expected in the case where there's a single endpoint for a given port.

---
 drivers/gpu/drm/sun4i/sun4i_backend.c | 34 +++++++++-------------------
 1 file changed, 11 insertions(+), 23 deletions(-)
drivers/gpu/drm/sun4i/sun4i_backend.c +11 -23
index 4c0d51f73237..02ef8e455db8 100644
@@ -720,33 +720,21 @@ static int sun4i_backend_free_sat(struct device *dev) {
  */
 static int sun4i_backend_of_get_id(struct device_node *node)
 {
-	struct device_node *port, *ep;
-	int ret = -EINVAL;
+	struct device_node *ep, *remote;
+	struct of_endpoint of_ep;
 
-	/* input is port 0 */
-	port = of_graph_get_port_by_id(node, 0);
-	if (!port)
+	/* Input port is 0, and we want the first endpoint. */
+	ep = of_graph_get_endpoint_by_regs(node, 0, -1);
+	if (!ep)
 		return -EINVAL;
 
-	/* try finding an upstream endpoint */
-	for_each_available_child_of_node(port, ep) {
-		struct device_node *remote;
-		u32 reg;
-
-		remote = of_graph_get_remote_endpoint(ep);
-		if (!remote)
-			continue;
-
-		ret = of_property_read_u32(remote, "reg", &reg);
-		if (ret)
-			continue;
-
-		ret = reg;
-	}
-
-	of_node_put(port);
+	remote = of_graph_get_remote_endpoint(ep);
+	if (!remote)
+		return -EINVAL;
 
-	return ret;
+	of_graph_parse_endpoint(remote, &of_ep);
+	of_node_put(remote);
+	return of_ep.id;
 }
 
 /* TODO: This needs to take multiple pipelines into account */
Signature · 5 lines
git-series 0.9.1
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v2 1/13
#2 lore raw

Re: [PATCH v2 01/13] drm/sun4i: backend: Simplify the get_id logic

Quoted 42 lines · Maxime Ripard

Using the new helpers introduced since we wrote that code, we can simplify the code to retrieve the backend ID significantly.

The new code will also allow us to deal nicely with endpoints that don't have a reg property, as expected in the case where there's a single endpoint for a given port.

---
 drivers/gpu/drm/sun4i/sun4i_backend.c | 34 +++++++++-------------------
 1 file changed, 11 insertions(+), 23 deletions(-)
drivers/gpu/drm/sun4i/sun4i_backend.c +5 -13
index 4c0d51f73237..02ef8e455db8 100644
@@ -720,33 +720,21 @@ static int sun4i_backend_free_sat(struct device *dev) {
  */
 static int sun4i_backend_of_get_id(struct device_node *node)
 {
-       struct device_node *port, *ep;
-       int ret = -EINVAL;
+       struct device_node *ep, *remote;
+       struct of_endpoint of_ep;
 
-       /* input is port 0 */
-       port = of_graph_get_port_by_id(node, 0);
-       if (!port)
+       /* Input port is 0, and we want the first endpoint. */
+       ep = of_graph_get_endpoint_by_regs(node, 0, -1);
+       if (!ep)
                return -EINVAL;
 
-       /* try finding an upstream endpoint */
-       for_each_available_child_of_node(port, ep) {
-               struct device_node *remote;
-               u32 reg;
-
-               remote = of_graph_get_remote_endpoint(ep);
-               if (!remote)
-                       continue;

drivers/gpu/drm/sun4i/sun4i_backend.c static int sun4i_backend_free_sat(struct device *dev) { · line 731

Quoted 10 lines
drivers/gpu/drm/sun4i/sun4i_backend.c +1 -9
-
-               ret = of_property_read_u32(remote, "reg", &reg);
-               if (ret)
-                       continue;
-
-               ret = reg;
-       }
-
-       of_node_put(port);
+       remote = of_graph_get_remote_endpoint(ep);

I believe you also need to call of_node_put for ep?

Otherwise,

Quoted 11 lines
drivers/gpu/drm/sun4i/sun4i_backend.c +5 -2
+       if (!remote)
+               return -EINVAL;
 
-       return ret;
+       of_graph_parse_endpoint(remote, &of_ep);
+       of_node_put(remote);
+       return of_ep.id;
 }
 
 /* TODO: This needs to take multiple pipelines into account */
--
Quoted 1 line

git-series 0.9.1

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

#3 lore raw

Re: [PATCH v2 01/13] drm/sun4i: backend: Simplify the get_id logic

Quoted 47 lines · Chen-Yu Tsai
Quoted 46 lines · Maxime Ripard

Using the new helpers introduced since we wrote that code, we can simplify the code to retrieve the backend ID significantly.

The new code will also allow us to deal nicely with endpoints that don't have a reg property, as expected in the case where there's a single endpoint for a given port.

---
 drivers/gpu/drm/sun4i/sun4i_backend.c | 34 +++++++++-------------------
 1 file changed, 11 insertions(+), 23 deletions(-)
drivers/gpu/drm/sun4i/sun4i_backend.c +5 -17
index 4c0d51f73237..02ef8e455db8 100644
@@ -720,33 +720,21 @@ static int sun4i_backend_free_sat(struct device *dev) {
  */
 static int sun4i_backend_of_get_id(struct device_node *node)
 {
-       struct device_node *port, *ep;
-       int ret = -EINVAL;
+       struct device_node *ep, *remote;
+       struct of_endpoint of_ep;
 
-       /* input is port 0 */
-       port = of_graph_get_port_by_id(node, 0);
-       if (!port)
+       /* Input port is 0, and we want the first endpoint. */
+       ep = of_graph_get_endpoint_by_regs(node, 0, -1);
+       if (!ep)
                return -EINVAL;
 
-       /* try finding an upstream endpoint */
-       for_each_available_child_of_node(port, ep) {
-               struct device_node *remote;
-               u32 reg;
-
-               remote = of_graph_get_remote_endpoint(ep);
-               if (!remote)
-                       continue;
-
-               ret = of_property_read_u32(remote, "reg", &reg);
-               if (ret)
-                       continue;
Quoted 8 lines

drivers/gpu/drm/sun4i/sun4i_backend.c static int sun4i_backend_free_sat(struct device *dev) { · line 731

Quoted 6 lines
drivers/gpu/drm/sun4i/sun4i_backend.c +1 -5
-
-               ret = reg;
-       }
-
-       of_node_put(port);
+       remote = of_graph_get_remote_endpoint(ep);

I believe you also need to call of_node_put for ep?

Ah, right. It wasn't mentionned in the doc, but you definitely need it. I'll send a patch for that.

Quoted 3 lines

Otherwise,

Thanks!

I've applied this on and the next and added the of_node_put in the process.

Maxime

Signature · 3 lines
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

#4 lore raw

PATCH v2 2/13 drm/sun4i: mixer: Simplify the get_id logic

In reply to Maxime Ripard

Using the new helpers introduced since we wrote that code, we can simplify the code to retrieve the mixer ID significantly.

The new code will also allow us to deal nicely with endpoints that don't have a reg property, as expected in the case where there's a single endpoint for a given port.

---
 drivers/gpu/drm/sun4i/sun8i_mixer.c | 39 ++++++++----------------------
 1 file changed, 11 insertions(+), 28 deletions(-)
drivers/gpu/drm/sun4i/sun8i_mixer.c +11 -28
index 30a2eff55687..bf44a601a653 100644
@@ -325,38 +325,21 @@ static struct regmap_config sun8i_mixer_regmap_config = {
 
 static int sun8i_mixer_of_get_id(struct device_node *node)
 {
-	struct device_node *port, *ep;
-	int ret = -EINVAL;
+	struct device_node *ep, *remote;
+	struct of_endpoint of_ep;
 
-	/* output is port 1 */
-	port = of_graph_get_port_by_id(node, 1);
-	if (!port)
+	/* Output port is 1, and we want the first endpoint. */
+	ep = of_graph_get_endpoint_by_regs(node, 1, -1);
+	if (!ep)
 		return -EINVAL;
 
-	/* try to find downstream endpoint */
-	for_each_available_child_of_node(port, ep) {
-		struct device_node *remote;
-		u32 reg;
-
-		remote = of_graph_get_remote_endpoint(ep);
-		if (!remote)
-			continue;
-
-		ret = of_property_read_u32(remote, "reg", &reg);
-		if (!ret) {
-			of_node_put(remote);
-			of_node_put(ep);
-			of_node_put(port);
-
-			return reg;
-		}
-
-		of_node_put(remote);
-	}
-
-	of_node_put(port);
+	remote = of_graph_get_remote_endpoint(ep);
+	if (!remote)
+		return -EINVAL;
 
-	return ret;
+	of_graph_parse_endpoint(remote, &of_ep);
+	of_node_put(remote);
+	return of_ep.id;
 }
 
 static int sun8i_mixer_bind(struct device *dev, struct device *master,
Signature · 5 lines
git-series 0.9.1
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v2 2/13
#5 lore raw

Re: [PATCH v2 02/13] drm/sun4i: mixer: Simplify the get_id logic

Quoted 47 lines · Maxime Ripard

Using the new helpers introduced since we wrote that code, we can simplify the code to retrieve the mixer ID significantly.

The new code will also allow us to deal nicely with endpoints that don't have a reg property, as expected in the case where there's a single endpoint for a given port.

---
 drivers/gpu/drm/sun4i/sun8i_mixer.c | 39 ++++++++----------------------
 1 file changed, 11 insertions(+), 28 deletions(-)
drivers/gpu/drm/sun4i/sun8i_mixer.c +5 -18
index 30a2eff55687..bf44a601a653 100644
@@ -325,38 +325,21 @@ static struct regmap_config sun8i_mixer_regmap_config = {
 
 static int sun8i_mixer_of_get_id(struct device_node *node)
 {
-       struct device_node *port, *ep;
-       int ret = -EINVAL;
+       struct device_node *ep, *remote;
+       struct of_endpoint of_ep;
 
-       /* output is port 1 */
-       port = of_graph_get_port_by_id(node, 1);
-       if (!port)
+       /* Output port is 1, and we want the first endpoint. */
+       ep = of_graph_get_endpoint_by_regs(node, 1, -1);
+       if (!ep)
                return -EINVAL;
 
-       /* try to find downstream endpoint */
-       for_each_available_child_of_node(port, ep) {
-               struct device_node *remote;
-               u32 reg;
-
-               remote = of_graph_get_remote_endpoint(ep);
-               if (!remote)
-                       continue;
-
-               ret = of_property_read_u32(remote, "reg", &reg);
-               if (!ret) {
-                       of_node_put(remote);
-                       of_node_put(ep);

drivers/gpu/drm/sun4i/sun8i_mixer.c static struct regmap_config sun8i_mixer_regmap_config = { · line 336

Quoted 10 lines
drivers/gpu/drm/sun4i/sun8i_mixer.c +1 -9
-                       of_node_put(port);
-
-                       return reg;
-               }
-
-               of_node_put(remote);
-       }
-
-       of_node_put(port);
+       remote = of_graph_get_remote_endpoint(ep);

Same comment as the previous patch.

once fixed.

Quoted 11 lines
drivers/gpu/drm/sun4i/sun8i_mixer.c +5 -2
+       if (!remote)
+               return -EINVAL;
 
-       return ret;
+       of_graph_parse_endpoint(remote, &of_ep);
+       of_node_put(remote);
+       return of_ep.id;
 }
 
 static int sun8i_mixer_bind(struct device *dev, struct device *master,
--
Quoted 1 line

git-series 0.9.1

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

#6 lore raw

PATCH v2 3/13 ARM: dts: sun8i: a83t: Add cross links for the mixers

In reply to Maxime Ripard

Unlike what the binding for multiple pipeline documents, the A83t doesn't have the cross links between the TCON and the mixers.

Let's add them.

---
 arch/arm/boot/dts/sun8i-a83t.dtsi | 30 ++++++++++++++++++++++++++++--
 1 file changed, 28 insertions(+), 2 deletions(-)
arch/arm/boot/dts/sun8i-a83t.dtsi +28 -2
index b099d2fbb5cd..7651b6dcfd0f 100644
@@ -333,6 +333,11 @@
 						reg = <0>;
 						remote-endpoint = <&tcon0_in_mixer0>;
 					};
+
+					mixer0_out_tcon1: endpoint@1 {
+						reg = <1>;
+						remote-endpoint = <&tcon1_in_mixer0>;
+					};
 				};
 			};
 		};
@@ -351,9 +356,17 @@
 				#size-cells = <0>;
 
 				mixer1_out: port@1 {
+					#address-cells = <1>;
+					#size-cells = <0>;
 					reg = <1>;
 
-					mixer1_out_tcon1: endpoint {
+					mixer1_out_tcon0: endpoint@0 {
+						reg = <0>;
+						remote-endpoint = <&tcon0_in_mixer1>;
+					};
+
+					mixer1_out_tcon1: endpoint@1 {
+						reg = <1>;
 						remote-endpoint = <&tcon1_in_mixer1>;
 					};
 				};
@@ -436,6 +449,11 @@
 						reg = <0>;
 						remote-endpoint = <&mixer0_out_tcon0>;
 					};
+
+					tcon0_in_mixer1: endpoint@1 {
+						reg = <1>;
+						remote-endpoint = <&mixer1_out_tcon0>;
+					};
 				};
 
 				tcon0_out: port@1 {
@@ -460,9 +478,17 @@
 				#size-cells = <0>;
 
 				tcon1_in: port@0 {
+					#address-cells = <1>;
+					#size-cells = <0>;
 					reg = <0>;
 
-					tcon1_in_mixer1: endpoint {
+					tcon1_in_mixer0: endpoint@0 {
+						reg = <0>;
+						remote-endpoint = <&mixer0_out_tcon1>;
+					};
+
+					tcon1_in_mixer1: endpoint@1 {
+						reg = <1>;
 						remote-endpoint = <&mixer1_out_tcon1>;
 					};
 				};
Signature · 5 lines
git-series 0.9.1
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Acked-by on v2 3/13
#7 lore raw

Re: [PATCH v2 03/13] ARM: dts: sun8i: a83t: Add cross links for the mixers

Quoted 7 lines · Maxime Ripard

Unlike what the binding for multiple pipeline documents, the A83t doesn't have the cross links between the TCON and the mixers.

Let's add them.

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

#8 lore raw

PATCH v2 4/13 arm64: dts: allwinner: a64: Add cross links for the mixers

In reply to Maxime Ripard

Unlike what the binding for multiple pipeline documents, the A64 doesn't have the cross links between the TCON and the mixers.

Let's add them.

---
 arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 33 ++++++++++++++++++--
 1 file changed, 30 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +30 -3
index e628d063931b..ccd143d82aea 100644
@@ -251,11 +251,19 @@
 					#size-cells = <0>;
 
 					mixer0_out: port@1 {
+						#address-cells = <1>;
+						#size-cells = <0>;
 						reg = <1>;
 
-						mixer0_out_tcon0: endpoint {
+						mixer0_out_tcon0: endpoint@0 {
+							reg = <0>;
 							remote-endpoint = <&tcon0_in_mixer0>;
 						};
+
+						mixer0_out_tcon1: endpoint@1 {
+							reg = <1>;
+							remote-endpoint = <&tcon1_in_mixer0>;
+						};
 					};
 				};
 			};
@@ -276,7 +284,13 @@
 					mixer1_out: port@1 {
 						reg = <1>;
 
-						mixer1_out_tcon1: endpoint {
+						mixer1_out_tcon0: endpoint@0 {
+							reg = <0>;
+							remote-endpoint = <&tcon0_in_mixer1>;
+						};
+
+						mixer1_out_tcon1: endpoint@1 {
+							reg = <1>;
 							remote-endpoint = <&tcon1_in_mixer1>;
 						};
 					};
@@ -354,6 +368,11 @@
 						reg = <0>;
 						remote-endpoint = <&mixer0_out_tcon0>;
 					};
+
+					tcon0_in_mixer1: endpoint@1 {
+						reg = <1>;
+						remote-endpoint = <&mixer1_out_tcon1>;
+					};
 				};
 
 				tcon0_out: port@1 {
@@ -379,9 +398,17 @@
 				#size-cells = <0>;
 
 				tcon1_in: port@0 {
+					#address-cells = <1>;
+					#size-cells = <0>;
 					reg = <0>;
 
-					tcon1_in_mixer1: endpoint {
+					tcon1_in_mixer0: endpoint@0 {
+						reg = <0>;
+						remote-endpoint = <&mixer0_out_tcon1>;
+					};
+
+					tcon1_in_mixer1: endpoint@1 {
+						reg = <1>;
 						remote-endpoint = <&mixer1_out_tcon1>;
 					};
 				};
Signature · 5 lines
git-series 0.9.1
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Acked-by on v2 4/13
#9 lore raw

Re: [PATCH v2 04/13] arm64: dts: allwinner: a64: Add cross links for the mixers

Quoted 7 lines · Maxime Ripard

Unlike what the binding for multiple pipeline documents, the A64 doesn't have the cross links between the TCON and the mixers.

Let's add them.

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

#10 lore raw

PATCH v2 5/13 ARM: dts: sun5i: Fix display pipeline endpoint warnings in DTC

In reply to Maxime Ripard

Since most of the display IPs have a single endpoint, having a reg property, a unit-address and #address-cells and #size-cells will emit a warning.

Let's remove those.

---
 arch/arm/boot/dts/sun5i.dtsi | 25 +++++--------------------
 1 file changed, 5 insertions(+), 20 deletions(-)
arch/arm/boot/dts/sun5i.dtsi +5 -20
index 5497d985c54a..ccd793795e58 100644
@@ -238,11 +238,8 @@
 			status = "disabled";
 
 			port {
-				#address-cells = <1>;
-				#size-cells = <0>;
 
-				tve0_in_tcon0: endpoint@0 {
-					reg = <0>;
+				tve0_in_tcon0: endpoint {
 					remote-endpoint = <&tcon0_out_tve0>;
 				};
 			};
@@ -285,12 +282,9 @@
 				#size-cells = <0>;
 
 				tcon0_in: port@0 {
-					#address-cells = <1>;
-					#size-cells = <0>;
 					reg = <0>;
 
-					tcon0_in_be0: endpoint@0 {
-						reg = <0>;
+					tcon0_in_be0: endpoint {
 						remote-endpoint = <&be0_out_tcon0>;
 					};
 				};
@@ -734,12 +728,9 @@
 				#size-cells = <0>;
 
 				fe0_out: port@1 {
-					#address-cells = <1>;
-					#size-cells = <0>;
 					reg = <1>;
 
-					fe0_out_be0: endpoint@0 {
-						reg = <0>;
+					fe0_out_be0: endpoint {
 						remote-endpoint = <&be0_in_fe0>;
 					};
 				};
@@ -765,23 +756,17 @@
 				#size-cells = <0>;
 
 				be0_in: port@0 {
-					#address-cells = <1>;
-					#size-cells = <0>;
 					reg = <0>;
 
-					be0_in_fe0: endpoint@0 {
-						reg = <0>;
+					be0_in_fe0: endpoint {
 						remote-endpoint = <&fe0_out_be0>;
 					};
 				};
 
 				be0_out: port@1 {
-					#address-cells = <1>;
-					#size-cells = <0>;
 					reg = <1>;
 
-					be0_out_tcon0: endpoint@0 {
-						reg = <0>;
+					be0_out_tcon0: endpoint {
 						remote-endpoint = <&tcon0_in_be0>;
 					};
 				};
Signature · 5 lines
git-series 0.9.1
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
maintainer Acked-by on v2 5/13
#11 lore raw

Re: [PATCH v2 05/13] ARM: dts: sun5i: Fix display pipeline endpoint warnings in DTC

Quoted 8 lines · Maxime Ripard

Since most of the display IPs have a single endpoint, having a reg property, a unit-address and #address-cells and #size-cells will emit a warning.

Let's remove those.

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

#12 lore raw

PATCH v2 6/13 ARM: dts: sun5i: Fix Display Engine DTC warnings

In reply to Maxime Ripard

Our display engine endpoints trigger some DTC warnings due to the fact that we're having a single endpoint that doesn't need any reg property, and since we don't have a reg property, we don't need the address-cells and size-cells properties anymore.

Fix those

---
 arch/arm/boot/dts/sun5i-a13-olinuxino.dts |  2 --
 arch/arm/boot/dts/sun5i-a13-q8-tablet.dts | 11 ++---------
 2 files changed, 2 insertions(+), 11 deletions(-)
arch/arm/boot/dts/sun5i-a13-olinuxino.dts +0 -2
index 9409c232d48a..54ca140fc258 100644
@@ -74,8 +74,6 @@
 
 	bridge {
 		compatible = "dumb-vga-dac";
-		#address-cells = <1>;
-		#size-cells = <0>;
 
 		ports {
 			#address-cells = <1>;
arch/arm/boot/dts/sun5i-a13-q8-tablet.dts +2 -9
index 7257f39b31ce..fde559a8b61e 100644
@@ -53,16 +53,9 @@
 		power-supply = <&reg_vcc3v3>;
 		enable-gpios = <&axp_gpio 0 GPIO_ACTIVE_HIGH>; /* AXP GPIO0 */
 		backlight = <&backlight>;
-		#address-cells = <1>;
-		#size-cells = <0>;
 
-		port@0 {
-			reg = <0>;
-			#address-cells = <1>;
-			#size-cells = <0>;
-
-			panel_input: endpoint@0 {
-				reg = <0>;
+		port {
+			panel_input: endpoint {
 				remote-endpoint = <&tcon0_out_lcd>;
 			};
 		};
Signature · 5 lines
git-series 0.9.1
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
maintainer Acked-by on v2 6/13
#13 lore raw

Re: [PATCH v2 06/13] ARM: dts: sun5i: Fix Display Engine DTC warnings

Quoted 9 lines · Maxime Ripard

Our display engine endpoints trigger some DTC warnings due to the fact that we're having a single endpoint that doesn't need any reg property, and since we don't have a reg property, we don't need the address-cells and size-cells properties anymore.

Fix those

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

#14 lore raw

PATCH v2 7/13 ARM: dts: sun6i: Fix Display Engine DTC warnings

In reply to Maxime Ripard

Our display engine endpoints trigger some DTC warnings due to the fact that we're having a single endpoint that doesn't need any reg property, and since we don't have a reg property, we don't need the address-cells and size-cells properties anymore.

Fix those

---
 arch/arm/boot/dts/sun6i-a31-hummingbird.dts | 12 ++----------
 arch/arm/boot/dts/sun6i-a31.dtsi            | 12 ++----------
 2 files changed, 4 insertions(+), 20 deletions(-)
arch/arm/boot/dts/sun6i-a31-hummingbird.dts +2 -10
index e17a65b3561e..63b84327f4e9 100644
@@ -86,31 +86,23 @@
 	vga-dac {
 		compatible = "dumb-vga-dac";
 		vdd-supply = <&reg_vga_3v3>;
-		#address-cells = <1>;
-		#size-cells = <0>;
 
 		ports {
 			#address-cells = <1>;
 			#size-cells = <0>;
 
 			port@0 {
-				#address-cells = <1>;
-				#size-cells = <0>;
 				reg = <0>;
 
-				vga_dac_in: endpoint@0 {
-					reg = <0>;
+				vga_dac_in: endpoint {
 					remote-endpoint = <&tcon0_out_vga>;
 				};
 			};
 
 			port@1 {
-				#address-cells = <1>;
-				#size-cells = <0>;
 				reg = <1>;
 
-				vga_dac_out: endpoint@0 {
-					reg = <0>;
+				vga_dac_out: endpoint {
 					remote-endpoint = <&vga_con_in>;
 				};
 			};
arch/arm/boot/dts/sun6i-a31.dtsi +2 -10
index 13304b8c5139..2445b51dec14 100644
@@ -491,8 +491,6 @@
 				};
 
 				hdmi_out: port@1 {
-					#address-cells = <1>;
-					#size-cells = <0>;
 					reg = <1>;
 				};
 			};
@@ -1229,12 +1227,9 @@
 				};
 
 				be0_out: port@1 {
-					#address-cells = <1>;
-					#size-cells = <0>;
 					reg = <1>;
 
-					be0_out_drc0: endpoint@0 {
-						reg = <0>;
+					be0_out_drc0: endpoint {
 						remote-endpoint = <&drc0_in_be0>;
 					};
 				};
@@ -1259,12 +1254,9 @@
 				#size-cells = <0>;
 
 				drc0_in: port@0 {
-					#address-cells = <1>;
-					#size-cells = <0>;
 					reg = <0>;
 
-					drc0_in_be0: endpoint@0 {
-						reg = <0>;
+					drc0_in_be0: endpoint {
 						remote-endpoint = <&be0_out_drc0>;
 					};
 				};
Signature · 5 lines
git-series 0.9.1
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Acked-by on v2 7/13
#15 lore raw

Re: [PATCH v2 07/13] ARM: dts: sun6i: Fix Display Engine DTC warnings

Quoted 9 lines · Maxime Ripard

Our display engine endpoints trigger some DTC warnings due to the fact that we're having a single endpoint that doesn't need any reg property, and since we don't have a reg property, we don't need the address-cells and size-cells properties anymore.

Fix those

#16 lore raw

PATCH v2 8/13 ARM: dts: sun8i: a23/a33: Fix Display Engine DTC warnings

In reply to Maxime Ripard

Our display engine endpoints trigger some DTC warnings due to the fact that we're having a single endpoint that doesn't need any reg property, and since we don't have a reg property, we don't need the address-cells and size-cells properties anymore.

Fix those

---
 arch/arm/boot/dts/sun8i-a23-a33.dtsi           | 32 +++----------------
 arch/arm/boot/dts/sun8i-a23-q8-tablet.dts      |  6 ++++-
 arch/arm/boot/dts/sun8i-a33-q8-tablet.dts      |  7 ++++-
 arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts | 11 +------
 arch/arm/boot/dts/sun8i-a33.dtsi               | 18 +++--------
 arch/arm/boot/dts/sun8i-q8-common.dtsi         | 18 +----------
 6 files changed, 29 insertions(+), 63 deletions(-)
arch/arm/boot/dts/sun8i-a23-a33.dtsi +6 -26
index 43fe215e83ea..6d2625a90a09 100644
@@ -192,19 +192,14 @@
 				#size-cells = <0>;
 
 				tcon0_in: port@0 {
-					#address-cells = <1>;
-					#size-cells = <0>;
 					reg = <0>;
 
-					tcon0_in_drc0: endpoint@0 {
-						reg = <0>;
+					tcon0_in_drc0: endpoint {
 						remote-endpoint = <&drc0_out_tcon0>;
 					};
 				};
 
 				tcon0_out: port@1 {
-					#address-cells = <1>;
-					#size-cells = <0>;
 					reg = <1>;
 				};
 			};
@@ -627,12 +622,9 @@
 				#size-cells = <0>;
 
 				fe0_out: port@1 {
-					#address-cells = <1>;
-					#size-cells = <0>;
 					reg = <1>;
 
-					fe0_out_be0: endpoint@0 {
-						reg = <0>;
+					fe0_out_be0: endpoint {
 						remote-endpoint = <&be0_in_fe0>;
 					};
 				};
@@ -654,23 +646,17 @@
 				#size-cells = <0>;
 
 				be0_in: port@0 {
-					#address-cells = <1>;
-					#size-cells = <0>;
 					reg = <0>;
 
-					be0_in_fe0: endpoint@0 {
-						reg = <0>;
+					be0_in_fe0: endpoint {
 						remote-endpoint = <&fe0_out_be0>;
 					};
 				};
 
 				be0_out: port@1 {
-					#address-cells = <1>;
-					#size-cells = <0>;
 					reg = <1>;
 
-					be0_out_drc0: endpoint@0 {
-						reg = <0>;
+					be0_out_drc0: endpoint {
 						remote-endpoint = <&drc0_in_be0>;
 					};
 				};
@@ -694,23 +680,17 @@
 				#size-cells = <0>;
 
 				drc0_in: port@0 {
-					#address-cells = <1>;
-					#size-cells = <0>;
 					reg = <0>;
 
-					drc0_in_be0: endpoint@0 {
-						reg = <0>;
+					drc0_in_be0: endpoint {
 						remote-endpoint = <&be0_out_drc0>;
 					};
 				};
 
 				drc0_out: port@1 {
-					#address-cells = <1>;
-					#size-cells = <0>;
 					reg = <1>;
 
-					drc0_out_tcon0: endpoint@0 {
-						reg = <0>;
+					drc0_out_tcon0: endpoint {
 						remote-endpoint = <&tcon0_in_drc0>;
 					};
 				};
arch/arm/boot/dts/sun8i-a23-q8-tablet.dts +6 -0
index d4dab7c28398..5659c63d7d77 100644
@@ -65,3 +65,9 @@
 &panel {
 	compatible = "bananapi,s070wv20-ct16", "simple-panel";
 };
+
+&tcon0_out {
+	tcon0_out_lcd: endpoint {
+		remote-endpoint = <&panel_input>;
+	};
+};
arch/arm/boot/dts/sun8i-a33-q8-tablet.dts +7 -0
index b0bc2360f8c4..9c5750c25613 100644
@@ -48,3 +48,10 @@
 	model = "Q8 A33 Tablet";
 	compatible = "allwinner,q8-a33", "allwinner,sun8i-a33";
 };
+
+&tcon0_out {
+	tcon0_out_lcd: endpoint@0 {
+		reg = <0>;
+		remote-endpoint = <&panel_input>;
+	};
+};
arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts +2 -9
index f3667268adde..785798e3a104 100644
@@ -63,16 +63,9 @@
 
 	panel {
 		compatible = "netron-dy,e231732";
-		#address-cells = <1>;
-		#size-cells = <0>;
 
-		port@0 {
-			reg = <0>;
-			#address-cells = <1>;
-			#size-cells = <0>;
-
-			panel_input: endpoint@0 {
-				reg = <0>;
+		port {
+			panel_input: endpoint {
 				remote-endpoint = <&tcon0_out_panel>;
 			};
 		};
arch/arm/boot/dts/sun8i-a33.dtsi +6 -12
index 1111a6498102..4484d76c88b5 100644
@@ -266,18 +266,9 @@
 			phy-names = "dphy";
 			status = "disabled";
 
-			ports {
-				#address-cells = <1>;
-				#size-cells = <0>;
-
-				port@0 {
-					#address-cells = <1>;
-					#size-cells = <0>;
-					reg = <0>;
-
-					dsi_in_tcon0: endpoint {
-						remote-endpoint = <&tcon0_out_dsi>;
-					};
+			port {
+				dsi_in_tcon0: endpoint {
+					remote-endpoint = <&tcon0_out_dsi>;
 				};
 			};
 		};
@@ -420,6 +411,9 @@
 };
 
 &tcon0_out {
+	#address-cells = <1>;
+	#size-cells = <0>;
+
 	tcon0_out_dsi: endpoint@1 {
 		reg = <1>;
 		remote-endpoint = <&dsi_in_tcon0>;
arch/arm/boot/dts/sun8i-q8-common.dtsi +2 -16
index 53104f4ccacc..3d9a1524e17e 100644
@@ -54,16 +54,9 @@
 		backlight = <&backlight>;
 		enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */
 		power-supply = <&reg_dc1sw>;
-		#address-cells = <1>;
-		#size-cells = <0>;
 
-		port@0 {
-			reg = <0>;
-			#address-cells = <1>;
-			#size-cells = <0>;
-
-			panel_input: endpoint@0 {
-				reg = <0>;
+		port {
+			panel_input: endpoint {
 				remote-endpoint = <&tcon0_out_lcd>;
 			};
 		};
@@ -120,13 +113,6 @@
 	status = "okay";
 };
 
-&tcon0_out {
-	tcon0_out_lcd: endpoint@0 {
-		reg = <0>;
-		remote-endpoint = <&panel_input>;
-	};
-};
-
 &usbphy {
 	usb1_vbus-supply = <&reg_dldo1>;
 };
Signature · 5 lines
git-series 0.9.1
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
maintainer Acked-by on v2 8/13
#17 lore raw

Re: [PATCH v2 08/13] ARM: dts: sun8i: a23/a33: Fix Display Engine DTC warnings

Quoted 174 lines · Maxime Ripard

Our display engine endpoints trigger some DTC warnings due to the fact that we're having a single endpoint that doesn't need any reg property, and since we don't have a reg property, we don't need the address-cells and size-cells properties anymore.

Fix those

---
 arch/arm/boot/dts/sun8i-a23-a33.dtsi           | 32 +++----------------
 arch/arm/boot/dts/sun8i-a23-q8-tablet.dts      |  6 ++++-
 arch/arm/boot/dts/sun8i-a33-q8-tablet.dts      |  7 ++++-
 arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts | 11 +------
 arch/arm/boot/dts/sun8i-a33.dtsi               | 18 +++--------
 arch/arm/boot/dts/sun8i-q8-common.dtsi         | 18 +----------
 6 files changed, 29 insertions(+), 63 deletions(-)
arch/arm/boot/dts/sun8i-a23-a33.dtsi +6 -26
index 43fe215e83ea..6d2625a90a09 100644
@@ -192,19 +192,14 @@
                                #size-cells = <0>;
 
                                tcon0_in: port@0 {
-                                       #address-cells = <1>;
-                                       #size-cells = <0>;
                                        reg = <0>;
 
-                                       tcon0_in_drc0: endpoint@0 {
-                                               reg = <0>;
+                                       tcon0_in_drc0: endpoint {
                                                remote-endpoint = <&drc0_out_tcon0>;
                                        };
                                };
 
                                tcon0_out: port@1 {
-                                       #address-cells = <1>;
-                                       #size-cells = <0>;
                                        reg = <1>;
                                };
                        };
@@ -627,12 +622,9 @@
                                #size-cells = <0>;
 
                                fe0_out: port@1 {
-                                       #address-cells = <1>;
-                                       #size-cells = <0>;
                                        reg = <1>;
 
-                                       fe0_out_be0: endpoint@0 {
-                                               reg = <0>;
+                                       fe0_out_be0: endpoint {
                                                remote-endpoint = <&be0_in_fe0>;
                                        };
                                };
@@ -654,23 +646,17 @@
                                #size-cells = <0>;
 
                                be0_in: port@0 {
-                                       #address-cells = <1>;
-                                       #size-cells = <0>;
                                        reg = <0>;
 
-                                       be0_in_fe0: endpoint@0 {
-                                               reg = <0>;
+                                       be0_in_fe0: endpoint {
                                                remote-endpoint = <&fe0_out_be0>;
                                        };
                                };
 
                                be0_out: port@1 {
-                                       #address-cells = <1>;
-                                       #size-cells = <0>;
                                        reg = <1>;
 
-                                       be0_out_drc0: endpoint@0 {
-                                               reg = <0>;
+                                       be0_out_drc0: endpoint {
                                                remote-endpoint = <&drc0_in_be0>;
                                        };
                                };
@@ -694,23 +680,17 @@
                                #size-cells = <0>;
 
                                drc0_in: port@0 {
-                                       #address-cells = <1>;
-                                       #size-cells = <0>;
                                        reg = <0>;
 
-                                       drc0_in_be0: endpoint@0 {
-                                               reg = <0>;
+                                       drc0_in_be0: endpoint {
                                                remote-endpoint = <&be0_out_drc0>;
                                        };
                                };
 
                                drc0_out: port@1 {
-                                       #address-cells = <1>;
-                                       #size-cells = <0>;
                                        reg = <1>;
 
-                                       drc0_out_tcon0: endpoint@0 {
-                                               reg = <0>;
+                                       drc0_out_tcon0: endpoint {
                                                remote-endpoint = <&tcon0_in_drc0>;
                                        };
                                };
arch/arm/boot/dts/sun8i-a23-q8-tablet.dts +6 -0
index d4dab7c28398..5659c63d7d77 100644
@@ -65,3 +65,9 @@
 &panel {
        compatible = "bananapi,s070wv20-ct16", "simple-panel";
 };
+
+&tcon0_out {
+       tcon0_out_lcd: endpoint {
+               remote-endpoint = <&panel_input>;
+       };
+};
arch/arm/boot/dts/sun8i-a33-q8-tablet.dts +7 -0
index b0bc2360f8c4..9c5750c25613 100644
@@ -48,3 +48,10 @@
        model = "Q8 A33 Tablet";
        compatible = "allwinner,q8-a33", "allwinner,sun8i-a33";
 };
+
+&tcon0_out {
+       tcon0_out_lcd: endpoint@0 {
+               reg = <0>;
+               remote-endpoint = <&panel_input>;
+       };
+};
arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dts +2 -9
index f3667268adde..785798e3a104 100644
@@ -63,16 +63,9 @@
 
        panel {
                compatible = "netron-dy,e231732";
-               #address-cells = <1>;
-               #size-cells = <0>;
 
-               port@0 {
-                       reg = <0>;
-                       #address-cells = <1>;
-                       #size-cells = <0>;
-
-                       panel_input: endpoint@0 {
-                               reg = <0>;
+               port {
+                       panel_input: endpoint {
                                remote-endpoint = <&tcon0_out_panel>;
                        };
                };
arch/arm/boot/dts/sun8i-a33.dtsi +0 -5
index 1111a6498102..4484d76c88b5 100644
@@ -266,18 +266,9 @@
                        phy-names = "dphy";
                        status = "disabled";
 
-                       ports {
-                               #address-cells = <1>;
-                               #size-cells = <0>;
-
-                               port@0 {

arch/arm/boot/dts/sun8i-a33.dtsi line 271

Quoted 10 lines
arch/arm/boot/dts/sun8i-a33.dtsi +3 -7
-                                       #address-cells = <1>;
-                                       #size-cells = <0>;
-                                       reg = <0>;
-
-                                       dsi_in_tcon0: endpoint {
-                                               remote-endpoint = <&tcon0_out_dsi>;
-                                       };
+                       port {
+                               dsi_in_tcon0: endpoint {
+                                       remote-endpoint = <&tcon0_out_dsi>;

Shouldn't we expect to see an output port as well?

Quoted 37 lines
arch/arm/boot/dts/sun8i-a33.dtsi +3 -0
                                };
                        };
                };
@@ -420,6 +411,9 @@
 };
 
 &tcon0_out {
+       #address-cells = <1>;
+       #size-cells = <0>;
+
        tcon0_out_dsi: endpoint@1 {
                reg = <1>;
                remote-endpoint = <&dsi_in_tcon0>;
arch/arm/boot/dts/sun8i-q8-common.dtsi +2 -9
index 53104f4ccacc..3d9a1524e17e 100644
@@ -54,16 +54,9 @@
                backlight = <&backlight>;
                enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */
                power-supply = <&reg_dc1sw>;
-               #address-cells = <1>;
-               #size-cells = <0>;
 
-               port@0 {
-                       reg = <0>;
-                       #address-cells = <1>;
-                       #size-cells = <0>;
-
-                       panel_input: endpoint@0 {
-                               reg = <0>;
+               port {
+                       panel_input: endpoint {
                                remote-endpoint = <&tcon0_out_lcd>;
                        };
                };

arch/arm/boot/dts/sun8i-q8-common.dtsi line 129

Quoted 10 lines
arch/arm/boot/dts/sun8i-q8-common.dtsi +0 -7
@@ -120,13 +113,6 @@
        status = "okay";
 };
 
-&tcon0_out {
-       tcon0_out_lcd: endpoint@0 {
-               reg = <0>;
-               remote-endpoint = <&panel_input>;
-       };
-};
-

The rest looks fine.

once the DSI output port is sorted out.

Quoted 5 lines
arch/arm/boot/dts/sun8i-q8-common.dtsi +0 -1
 &usbphy {
        usb1_vbus-supply = <&reg_dldo1>;
 };
--

git-series 0.9.1

#18 lore raw

Re: [PATCH v2 08/13] ARM: dts: sun8i: a23/a33: Fix Display Engine DTC warnings

Hi,

Quoted 17 lines · Chen-Yu Tsai
Quoted 17 lines
arch/arm/boot/dts/sun8i-a33.dtsi +0 -9
index 1111a6498102..4484d76c88b5 100644
@@ -266,18 +266,9 @@
                        phy-names = "dphy";
                        status = "disabled";
 
-                       ports {
-                               #address-cells = <1>;
-                               #size-cells = <0>;
-
-                               port@0 {
-                                       #address-cells = <1>;
-                                       #size-cells = <0>;
-                                       reg = <0>;
-
Quoted 8 lines

arch/arm/boot/dts/sun8i-a33.dtsi line 271

Quoted 6 lines
arch/arm/boot/dts/sun8i-a33.dtsi +3 -3
-                                       dsi_in_tcon0: endpoint {
-                                               remote-endpoint = <&tcon0_out_dsi>;
-                                       };
+                       port {
+                               dsi_in_tcon0: endpoint {
+                                       remote-endpoint = <&tcon0_out_dsi>;

Shouldn't we expect to see an output port as well?

DSI panels are not using the OF Graph, but are subnodes of the DSI controller itself. It's kind of odd when we have to mix the two, but that means we'll never get an output endpoint for the DSI node.

Maxime

Signature · 3 lines
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#19 lore raw

PATCH v2 9/13 ARM: dts: sun8i: v3s: Fix Display Engine DTC warnings

In reply to Maxime Ripard

Our display engine endpoints trigger some DTC warnings due to the fact that we're having a single endpoint that doesn't need any reg property, and since we don't have a reg property, we don't need the address-cells and size-cells properties anymore.

Fix those

---
 arch/arm/boot/dts/sun8i-v3s.dtsi | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)
arch/arm/boot/dts/sun8i-v3s.dtsi +2 -8
index 21e1806ca509..7918064e0940 100644
@@ -129,12 +129,9 @@
 				#size-cells = <0>;
 
 				mixer0_out: port@1 {
-					#address-cells = <1>;
-					#size-cells = <0>;
 					reg = <1>;
 
-					mixer0_out_tcon0: endpoint@0 {
-						reg = <0>;
+					mixer0_out_tcon0: endpoint {
 						remote-endpoint = <&tcon0_in_mixer0>;
 					};
 				};
@@ -159,12 +156,9 @@
 				#size-cells = <0>;
 
 				tcon0_in: port@0 {
-					#address-cells = <1>;
-					#size-cells = <0>;
 					reg = <0>;
 
-					tcon0_in_mixer0: endpoint@0 {
-						reg = <0>;
+					tcon0_in_mixer0: endpoint {
 						remote-endpoint = <&mixer0_out_tcon0>;
 					};
 				};
Signature · 5 lines
git-series 0.9.1
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Acked-by on v2 9/13
#20 lore raw

Re: [PATCH v2 09/13] ARM: dts: sun8i: v3s: Fix Display Engine DTC warnings

Quoted 9 lines · Maxime Ripard

Our display engine endpoints trigger some DTC warnings due to the fact that we're having a single endpoint that doesn't need any reg property, and since we don't have a reg property, we don't need the address-cells and size-cells properties anymore.

Fix those

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

#21 lore raw

PATCH v2 10/13 ARM: dts: sun8i: a83t: Fix Display Engine DTC warnings

In reply to Maxime Ripard

Our display engine endpoints trigger some DTC warnings due to the fact that we're having a single endpoint that doesn't need any reg property, and since we don't have a reg property, we don't need the address-cells and size-cells properties anymore.

Fix those

---
 arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 3 +--
 arch/arm/boot/dts/sun8i-a83t.dtsi         | 2 --
 2 files changed, 1 insertion(+), 4 deletions(-)
arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts +1 -2
index 98e8cea26dbe..4bda2f9372cb 100644
@@ -391,8 +391,7 @@
 };
 
 &tcon0_out {
-	tcon0_out_lcd: endpoint@0 {
-		reg = <0>;
+	tcon0_out_lcd: endpoint {
 		remote-endpoint = <&panel_input>;
 	};
 };
arch/arm/boot/dts/sun8i-a83t.dtsi +0 -2
index 7651b6dcfd0f..7340b01c1994 100644
@@ -457,8 +457,6 @@
 				};
 
 				tcon0_out: port@1 {
-					#address-cells = <1>;
-					#size-cells = <0>;
 					reg = <1>;
 				};
 			};
Signature · 5 lines
git-series 0.9.1
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Acked-by on v2 10/13
#22 lore raw

Re: [PATCH v2 10/13] ARM: dts: sun8i: a83t: Fix Display Engine DTC warnings

Quoted 9 lines · Maxime Ripard

Our display engine endpoints trigger some DTC warnings due to the fact that we're having a single endpoint that doesn't need any reg property, and since we don't have a reg property, we don't need the address-cells and size-cells properties anymore.

Fix those

but we're going to end up adding it back if DSI gets added.
_______________________________________________
dri-devel mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#23 lore raw

PATCH v2 11/13 ARM: dts: sun8i: r40: Fix Display Engine DTC warnings

In reply to Maxime Ripard

Our display engine endpoints trigger some DTC warnings due to the fact that we're having a single endpoint that doesn't need any reg property, and since we don't have a reg property, we don't need the address-cells and size-cells properties anymore.

Fix those

---
 arch/arm/boot/dts/sun8i-r40.dtsi | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
arch/arm/boot/dts/sun8i-r40.dtsi +1 -4
index 06b685869f52..1061d46efafd 100644
@@ -614,12 +614,9 @@
 				#size-cells = <0>;
 
 				tcon_top_mixer0_in: port@0 {
-					#address-cells = <1>;
-					#size-cells = <0>;
 					reg = <0>;
 
-					tcon_top_mixer0_in_mixer0: endpoint@0 {
-						reg = <0>;
+					tcon_top_mixer0_in_mixer0: endpoint {
 						remote-endpoint = <&mixer0_out_tcon_top>;
 					};
 				};
Signature · 5 lines
git-series 0.9.1
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Acked-by on v2 11/13
#24 lore raw

Re: [PATCH v2 11/13] ARM: dts: sun8i: r40: Fix Display Engine DTC warnings

Quoted 9 lines · Maxime Ripard

Our display engine endpoints trigger some DTC warnings due to the fact that we're having a single endpoint that doesn't need any reg property, and since we don't have a reg property, we don't need the address-cells and size-cells properties anymore.

Fix those

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

#25 lore raw

PATCH v2 12/13 ARM: dts: sun9i: Fix Display Engine DTC warnings

In reply to Maxime Ripard

Our display engine endpoints trigger some DTC warnings due to the fact that we're having a single endpoint that doesn't need any reg property, and since we don't have a reg property, we don't need the address-cells and size-cells properties anymore.

Fix those

---
 arch/arm/boot/dts/sun9i-a80-cubieboard4.dts | 15 +----
 arch/arm/boot/dts/sun9i-a80.dtsi            | 64 ++++------------------
 2 files changed, 15 insertions(+), 64 deletions(-)
arch/arm/boot/dts/sun9i-a80-cubieboard4.dts +3 -12
index 28c034928d67..18156ffa3ce9 100644
@@ -89,31 +89,23 @@
 	vga-dac {
 		compatible = "corpro,gm7123", "adi,adv7123", "dumb-vga-dac";
 		vdd-supply = <&reg_dcdc1>;
-		#address-cells = <1>;
-		#size-cells = <0>;
 
 		ports {
 			#address-cells = <1>;
 			#size-cells = <0>;
 
 			port@0 {
-				#address-cells = <1>;
-				#size-cells = <0>;
 				reg = <0>;
 
-				vga_dac_in: endpoint@0 {
-					reg = <0>;
+				vga_dac_in: endpoint {
 					remote-endpoint = <&tcon0_out_vga>;
 				};
 			};
 
 			port@1 {
-				#address-cells = <1>;
-				#size-cells = <0>;
 				reg = <1>;
 
-				vga_dac_out: endpoint@0 {
-					reg = <0>;
+				vga_dac_out: endpoint {
 					remote-endpoint = <&vga_con_in>;
 				};
 			};
@@ -502,8 +494,7 @@
 };
 
 &tcon0_out {
-	tcon0_out_vga: endpoint@0 {
-		reg = <0>;
+	tcon0_out_vga: endpoint {
 		remote-endpoint = <&vga_dac_in>;
 	};
 };
arch/arm/boot/dts/sun9i-a80.dtsi +12 -52

168 lines not on this page · raw message

Signature · 5 lines
git-series 0.9.1
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Acked-by on v2 12/13
#26 lore raw

Re: [PATCH v2 12/13] ARM: dts: sun9i: Fix Display Engine DTC warnings

Quoted 9 lines · Maxime Ripard

Our display engine endpoints trigger some DTC warnings due to the fact that we're having a single endpoint that doesn't need any reg property, and since we don't have a reg property, we don't need the address-cells and size-cells properties anymore.

Fix those

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

#27 lore raw

PATCH v2 13/13 ARM: dts: sun9i: Add missing unit address

In reply to Maxime Ripard

The soc node in the A80 DTSI has a ranges property, but no matching unit address, which results in a DTC warning. Add the unit address to remove that warning.

---
 arch/arm/boot/dts/sun9i-a80.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/sun9i-a80.dtsi +1 -1
index 9b15f272e5f5..7a495c84ab65 100644
@@ -289,7 +289,7 @@
 		status = "disabled";
 	};
 
-	soc {
+	soc@20000 {
 		compatible = "simple-bus";
 		#address-cells = <1>;
 		#size-cells = <1>;
Signature · 5 lines
git-series 0.9.1
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#28 lore raw

Re: [PATCH v2 13/13] ARM: dts: sun9i: Add missing unit address

Quoted 15 lines · Maxime Ripard

The soc node in the A80 DTSI has a ranges property, but no matching unit address, which results in a DTC warning. Add the unit address to remove that warning.

---
 arch/arm/boot/dts/sun9i-a80.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/sun9i-a80.dtsi +0 -0
index 9b15f272e5f5..7a495c84ab65 100644

arch/arm/boot/dts/sun9i-a80.dtsi line 292

Quoted 5 lines
arch/arm/boot/dts/sun9i-a80.dtsi +1 -1
@@ -289,7 +289,7 @@
                status = "disabled";
        };
 
-       soc {
+       soc@20000 {

I thought we didn't like the soc node having an address?

Maybe we just bite the bullet and use 64-bit addresses and sizes for the A80?

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

#29 lore raw

Re: [PATCH v2 13/13] ARM: dts: sun9i: Add missing unit address

Quoted 19 lines · Chen-Yu Tsai
Quoted 18 lines · Maxime Ripard

The soc node in the A80 DTSI has a ranges property, but no matching unit address, which results in a DTC warning. Add the unit address to remove that warning.

---
 arch/arm/boot/dts/sun9i-a80.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/sun9i-a80.dtsi +0 -0
index 9b15f272e5f5..7a495c84ab65 100644
@@ -289,7 +289,7 @@
                status = "disabled";
        };
 
Quoted 4 lines

arch/arm/boot/dts/sun9i-a80.dtsi line 292

Quoted 2 lines
arch/arm/boot/dts/sun9i-a80.dtsi +1 -1
-       soc {
+       soc@20000 {

I thought we didn't like the soc node having an address?

In general, yes, but in general we also don't have a ranges property.

Quoted 2 lines

Maybe we just bite the bullet and use 64-bit addresses and sizes for the A80?

I'd rather not, the current layout of the DT is pretty nice.

But now I'm thinking, do you remember why we need to do that mapping in the first place? It's a 32bits SoCs, so why do we need to care about 64 bits addresses?

Maxime

Signature · 3 lines
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

#30 lore raw

Re: [PATCH v2 13/13] ARM: dts: sun9i: Add missing unit address

Quoted 28 lines · Maxime Ripard
Quoted 19 lines · Chen-Yu Tsai
Quoted 18 lines · Maxime Ripard

The soc node in the A80 DTSI has a ranges property, but no matching unit address, which results in a DTC warning. Add the unit address to remove that warning.

---
 arch/arm/boot/dts/sun9i-a80.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/sun9i-a80.dtsi +0 -0
index 9b15f272e5f5..7a495c84ab65 100644
@@ -289,7 +289,7 @@
                status = "disabled";
        };
 
Quoted 4 lines

arch/arm/boot/dts/sun9i-a80.dtsi line 292

Quoted 2 lines
arch/arm/boot/dts/sun9i-a80.dtsi +1 -1
-       soc {
+       soc@20000 {

I thought we didn't like the soc node having an address?

In general, yes, but in general we also don't have a ranges property.

Quoted 8 lines
Quoted 2 lines

Maybe we just bite the bullet and use 64-bit addresses and sizes for the A80?

I'd rather not, the current layout of the DT is pretty nice.

But now I'm thinking, do you remember why we need to do that mapping in the first place? It's a 32bits SoCs, so why do we need to care about 64 bits addresses?

It supports LPAE, addressing up to 8GB of RAM. Not that I've seen a board sporting that much RAM though. Theobroma Systems might have had such a board though, as their product page says "up to 8GB RAM".

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

#31 lore raw

Re: [PATCH v2 13/13] ARM: dts: sun9i: Add missing unit address

Quoted 34 lines · Chen-Yu Tsai
Quoted 33 lines · Maxime Ripard
Quoted 19 lines · Chen-Yu Tsai
Quoted 18 lines · Maxime Ripard

The soc node in the A80 DTSI has a ranges property, but no matching unit address, which results in a DTC warning. Add the unit address to remove that warning.

---
 arch/arm/boot/dts/sun9i-a80.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/sun9i-a80.dtsi +0 -0
index 9b15f272e5f5..7a495c84ab65 100644
@@ -289,7 +289,7 @@
                status = "disabled";
        };
 
Quoted 4 lines

arch/arm/boot/dts/sun9i-a80.dtsi line 292

Quoted 2 lines
arch/arm/boot/dts/sun9i-a80.dtsi +1 -1
-       soc {
+       soc@20000 {

I thought we didn't like the soc node having an address?

In general, yes, but in general we also don't have a ranges property.

Quoted 2 lines

Maybe we just bite the bullet and use 64-bit addresses and sizes for the A80?

I'd rather not, the current layout of the DT is pretty nice.

Quoted 7 lines
Quoted 3 lines

But now I'm thinking, do you remember why we need to do that mapping in the first place? It's a 32bits SoCs, so why do we need to care about 64 bits addresses?

It supports LPAE, addressing up to 8GB of RAM. Not that I've seen a board sporting that much RAM though. Theobroma Systems might have had such a board though, as their product page says "up to 8GB RAM".

Ah, right. What should we do about this patch then?

Maxime

Signature · 3 lines
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

#32 lore raw

Re: [PATCH v2 13/13] ARM: dts: sun9i: Add missing unit address

Quoted 40 lines · Maxime Ripard
Quoted 38 lines · Chen-Yu Tsai
Quoted 36 lines · Maxime Ripard
Quoted 19 lines · Chen-Yu Tsai
Quoted 18 lines · Maxime Ripard

The soc node in the A80 DTSI has a ranges property, but no matching unit address, which results in a DTC warning. Add the unit address to remove that warning.

---
 arch/arm/boot/dts/sun9i-a80.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/sun9i-a80.dtsi +0 -0
index 9b15f272e5f5..7a495c84ab65 100644
@@ -289,7 +289,7 @@
                status = "disabled";
        };
 
Quoted 4 lines

arch/arm/boot/dts/sun9i-a80.dtsi line 292

Quoted 2 lines
arch/arm/boot/dts/sun9i-a80.dtsi +1 -1
-       soc {
+       soc@20000 {

I thought we didn't like the soc node having an address?

In general, yes, but in general we also don't have a ranges property.

Quoted 2 lines

Maybe we just bite the bullet and use 64-bit addresses and sizes for the A80?

I'd rather not, the current layout of the DT is pretty nice.

But now I'm thinking, do you remember why we need to do that mapping in the first place? It's a 32bits SoCs, so why do we need to care about 64 bits addresses?

Quoted 5 lines
Quoted 3 lines

It supports LPAE, addressing up to 8GB of RAM. Not that I've seen a board sporting that much RAM though. Theobroma Systems might have had such a board though, as their product page says "up to 8GB RAM".

Ah, right. What should we do about this patch then?

I'm OK with it I suppose. AFAICT only sysfs paths and overlays (which should use labels instead) are affected.

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

#33 lore raw

Re: [PATCH v2 13/13] ARM: dts: sun9i: Add missing unit address

Quoted 41 lines · Chen-Yu Tsai
Quoted 40 lines · Maxime Ripard
Quoted 38 lines · Chen-Yu Tsai
Quoted 36 lines · Maxime Ripard
Quoted 19 lines · Chen-Yu Tsai
Quoted 18 lines · Maxime Ripard

The soc node in the A80 DTSI has a ranges property, but no matching unit address, which results in a DTC warning. Add the unit address to remove that warning.

---
 arch/arm/boot/dts/sun9i-a80.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/sun9i-a80.dtsi +0 -0
index 9b15f272e5f5..7a495c84ab65 100644
@@ -289,7 +289,7 @@
                status = "disabled";
        };
 
Quoted 4 lines

arch/arm/boot/dts/sun9i-a80.dtsi line 292

Quoted 2 lines
arch/arm/boot/dts/sun9i-a80.dtsi +1 -1
-       soc {
+       soc@20000 {

I thought we didn't like the soc node having an address?

In general, yes, but in general we also don't have a ranges property.

Quoted 2 lines

Maybe we just bite the bullet and use 64-bit addresses and sizes for the A80?

I'd rather not, the current layout of the DT is pretty nice.

But now I'm thinking, do you remember why we need to do that mapping in the first place? It's a 32bits SoCs, so why do we need to care about 64 bits addresses?

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

It supports LPAE, addressing up to 8GB of RAM. Not that I've seen a board sporting that much RAM though. Theobroma Systems might have had such a board though, as their product page says "up to 8GB RAM".

Ah, right. What should we do about this patch then?

I'm OK with it I suppose. AFAICT only sysfs paths and overlays (which should use labels instead) are affected.

We can always revert it if there's any fallouts, but we did it already on a number of other SoCs (well, the opposite actually, dropping the unit address), and it wasn't an issue.

Maxime

Signature · 3 lines
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

author Applied
#34 lore raw
In reply to Maxime Ripard
Quoted 11 lines · Maxime Ripard

Here is the rest of the series that fixes most of our DTC warnings. The number of warnings when compiled with W=1 after applying this series is now reduced to 2.

The two remaining one are on the A80 and would require some change in the clock driver. Given how little activity there is on the A80, we can expect it to not happen in a near future, but I can live with two warnings.

Let me know what you think,
Maxime

Queued the patches 1-2 to drm-misc-next, and the patches 3-12 to the sunxi tree.

Patch 13 is on hold for now.

Maxime

Signature · 3 lines
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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