]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: ti: k3-am62p5-sk: fix graph_child_address warnings
authorDhruva Gole <d-gole@ti.com>
Wed, 26 Jun 2024 10:15:19 +0000 (15:45 +0530)
committerVignesh Raghavendra <vigneshr@ti.com>
Mon, 1 Jul 2024 16:06:07 +0000 (21:36 +0530)
Fix the following warnings that are thrown when building dtbs with W=1:

../arch/arm64/boot/dts/ti/k3-am62p5-sk.dts:367.10-376.6: Warning (graph_child_address): /bus@f0000/i2c@20000000/usb-power-controller@3f/connector/ports: graph node has single child node 'port@0', #address-cells/#size-cells are not necessary
../arch/arm64/boot/dts/ti/k3-am62p-j722s-common-main.dtsi:647.22-657.5: Warning (graph_child_address): /bus@f0000/usb@f900000/usb@31000000: graph node has single child node 'port@0', #address-cells/#size-cells are not necessary
  also defined at ../arch/arm64/boot/dts/ti/k3-am62p5-sk.dts:517.7-528.3

Cc: Roger Quadros <rogerq@kernel.org>
Signed-off-by: Dhruva Gole <d-gole@ti.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Link: https://lore.kernel.org/r/20240626101520.1782320-2-d-gole@ti.com
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
arch/arm64/boot/dts/ti/k3-am62p5-sk.dts

index fb980d46e304162e84d476a2be78d31d9b04c061..ff65955551a32853fa66ba4880d776f2aeae3229 100644 (file)
                        self-powered;
                        data-role = "dual";
                        power-role = "sink";
-                       ports {
-                               #address-cells = <1>;
-                               #size-cells = <0>;
-                               port@0 {
-                                       reg = <0>;
-                                       usb_con_hs: endpoint {
-                                               remote-endpoint = <&usb0_hs_ep>;
-                                       };
+                       port {
+                               usb_con_hs: endpoint {
+                               remote-endpoint = <&usb0_hs_ep>;
                                };
                        };
                };
 
 &usb0 {
        usb-role-switch;
-       #address-cells = <1>;
-       #size-cells = <0>;
 
-       port@0 {
-               reg = <0>;
+       port {
                usb0_hs_ep: endpoint {
                        remote-endpoint = <&usb_con_hs>;
                };