ARM: dts: sunxi: Cleanup DTC warnings
Subsystems (6)
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
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
@@ -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" , ®); -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
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.
Signed-off-by Maxime Ripard <[email protected]>--- drivers/gpu/drm/sun4i/sun4i_backend.c | 34 +++++++++------------------- 1 file changed, 11 insertions(+), 23 deletions(-)drivers/gpu/drm/sun4i/sun4i_backend.c +5
-13@@ -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" , ®); -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
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.
Signed-off-by Maxime Ripard <[email protected]>--- drivers/gpu/drm/sun4i/sun4i_backend.c | 34 +++++++++------------------- 1 file changed, 11 insertions(+), 23 deletions(-)drivers/gpu/drm/sun4i/sun4i_backend.c +5
-17@@ -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" , ®); -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_putfor 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,
Reviewed-by Chen-Yu Tsai <[email protected]>
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
PATCH v2 2/13 drm/sun4i: mixer: Simplify the get_id logic
In reply to Maxime RipardUsing 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
@@ -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" , ®); -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
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.
Signed-off-by Maxime Ripard <[email protected]>--- drivers/gpu/drm/sun4i/sun8i_mixer.c | 39 ++++++++---------------------- 1 file changed, 11 insertions(+), 28 deletions(-)drivers/gpu/drm/sun4i/sun8i_mixer.c +5
-18@@ -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" , ®); -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
PATCH v2 3/13 ARM: dts: sun8i: a83t: Add cross links for the mixers
In reply to Maxime RipardUnlike 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
@@ -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
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.
Signed-off-by Maxime Ripard <[email protected]>
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 4/13 arm64: dts: allwinner: a64: Add cross links for the mixers
In reply to Maxime RipardUnlike 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
@@ -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
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.
Signed-off-by Maxime Ripard <[email protected]>
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 5/13 ARM: dts: sun5i: Fix display pipeline endpoint warnings in DTC
In reply to Maxime RipardSince 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
@@ -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
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.
Signed-off-by Maxime Ripard <[email protected]>
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 6/13 ARM: dts: sun5i: Fix Display Engine DTC warnings
In reply to Maxime RipardOur 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
@@ -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
@@ -53,16 +53,9 @@ power-supply = <®_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
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
Signed-off-by Maxime Ripard <[email protected]>
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 7/13 ARM: dts: sun6i: Fix Display Engine DTC warnings
In reply to Maxime RipardOur 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
@@ -86,31 +86,23 @@ vga-dac { compatible = "dumb-vga-dac"; vdd-supply = <®_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
@@ -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
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
Signed-off-by Maxime Ripard <[email protected]>
PATCH v2 8/13 ARM: dts: sun8i: a23/a33: Fix Display Engine DTC warnings
In reply to Maxime RipardOur 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -54,16 +54,9 @@ backlight = <&backlight>; enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */ power-supply = <®_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 = <®_dldo1>; };
Signature · 5 lines
git-series 0.9.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
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
Signed-off-by Maxime Ripard <[email protected]>--- 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@@ -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@@ -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@@ -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@@ -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@@ -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@@ -54,16 +54,9 @@ backlight = <&backlight>; enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */ power-supply = <®_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 = <®_dldo1>; }; --git-series 0.9.1
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@@ -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
PATCH v2 9/13 ARM: dts: sun8i: v3s: Fix Display Engine DTC warnings
In reply to Maxime RipardOur 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
@@ -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
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
Signed-off-by Maxime Ripard <[email protected]>
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 10/13 ARM: dts: sun8i: a83t: Fix Display Engine DTC warnings
In reply to Maxime RipardOur 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
@@ -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
@@ -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
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
Signed-off-by Maxime Ripard <[email protected]>
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
PATCH v2 11/13 ARM: dts: sun8i: r40: Fix Display Engine DTC warnings
In reply to Maxime RipardOur 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
@@ -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
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
Signed-off-by Maxime Ripard <[email protected]>
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 12/13 ARM: dts: sun9i: Fix Display Engine DTC warnings
In reply to Maxime RipardOur 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
@@ -89,31 +89,23 @@ vga-dac { compatible = "corpro,gm7123", "adi,adv7123", "dumb-vga-dac"; vdd-supply = <®_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
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
Signed-off-by Maxime Ripard <[email protected]>
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 13/13 ARM: dts: sun9i: Add missing unit address
In reply to Maxime RipardThe 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
@@ -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
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.
Signed-off-by Maxime Ripard <[email protected]>--- arch/arm/boot/dts/sun9i-a80.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/boot/dts/sun9i-a80.dtsi +0
-0
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
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.
Signed-off-by Maxime Ripard <[email protected]>--- arch/arm/boot/dts/sun9i-a80.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/boot/dts/sun9i-a80.dtsi +0
-0@@ -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
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.
Signed-off-by Maxime Ripard <[email protected]>--- arch/arm/boot/dts/sun9i-a80.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/boot/dts/sun9i-a80.dtsi +0
-0@@ -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
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.
Signed-off-by Maxime Ripard <[email protected]>--- arch/arm/boot/dts/sun9i-a80.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/boot/dts/sun9i-a80.dtsi +0
-0@@ -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
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.
Signed-off-by Maxime Ripard <[email protected]>--- arch/arm/boot/dts/sun9i-a80.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/boot/dts/sun9i-a80.dtsi +0
-0@@ -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
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.
Signed-off-by Maxime Ripard <[email protected]>--- arch/arm/boot/dts/sun9i-a80.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/boot/dts/sun9i-a80.dtsi +0
-0@@ -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
Maxime Ripard
AppliedQuoted 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