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

../arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi:343.10-353.6: Warning (graph_child_address): /bus@f0000/i2c@20000000/tps6598x@3f/connector/ports: graph node has single child node 'port@0', #address-cells/#size-cells are not necessary
../arch/arm64/boot/dts/ti/k3-am62-main.dtsi:633.22-643.5: Warning (graph_child_address): /bus@f0000/dwc3-usb@f900000/usb@31000000: graph node has single child node 'port@0', #address-cells/#size-cells are not necessary

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

index ce7ab338f46850499b21e58386beba4831dda7d2..465743d6cc216c6b0b6e13a77a6cb8e0c27a5160 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 {
        bootph-all;
-       #address-cells = <1>;
-       #size-cells = <0>;
        usb-role-switch;
 
-       port@0 {
-               reg = <0>;
+       port {
                usb0_hs_ep: endpoint {
                    remote-endpoint = <&usb_con_hs>;
               };