]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: im8mq-librem5: move dwc3 usb port under ports
authorFrank Li <Frank.Li@nxp.com>
Mon, 24 Feb 2025 19:33:07 +0000 (14:33 -0500)
committerShawn Guo <shawnguo@kernel.org>
Tue, 11 Mar 2025 02:35:46 +0000 (10:35 +0800)
Move port@0 and port@1 under ports to fix below DTB_CHECK warnings.

arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dtb: usb@38100000: port@0:reg:0:0: 0 is less than the minimum of 1
from schema $id: http://devicetree.org/schemas/usb/snps,dwc3.yaml#
arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dtb: usb@38100000: Unevaluated properties are not allowed ('#address-cells', '#size-cells', 'dr_mode', 'phy-names', 'phys', 'port@0', 'port@1', 'snps,parkmode-disable-ss-quirk' were unexpected)
from schema $id: http://devicetree.org/schemas/usb/snps,dwc3.yaml#

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts
arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi

index 9d8e7231b7c6374241fa44b1733fc46e6a216ec9..d9f203c795197a8d02e6bfa831df6eacdefdc4b3 100644 (file)
 };
 
 &usb_dwc3_0 {
-       #address-cells = <1>;
-       #size-cells = <0>;
        dr_mode = "otg";
        status = "okay";
 
-       port@0 {
-               reg = <0>;
+       ports {
+               #address-cells = <1>;
+               #size-cells = <0>;
 
-               typec_hs: endpoint {
-                       remote-endpoint = <&usb_con_hs>;
+               port@0 {
+                       reg = <0>;
+
+                       typec_hs: endpoint {
+                               remote-endpoint = <&usb_con_hs>;
+                       };
                };
-       };
 
-       port@1 {
-               reg = <1>;
+               port@1 {
+                       reg = <1>;
 
-               typec_ss: endpoint {
-                       remote-endpoint = <&usb_con_ss>;
+                       typec_ss: endpoint {
+                               remote-endpoint = <&usb_con_ss>;
+                       };
                };
        };
 };
index c19ffa8e8a79aeea36c6ebb99e43fed24442e09f..9e0e2d7271efbe0c9f2713ad9a05a6d0d7db5edc 100644 (file)
 };
 
 &usb_dwc3_0 {
-       #address-cells = <1>;
-       #size-cells = <0>;
        dr_mode = "otg";
        usb-role-switch;
        status = "okay";
 
-       port@0 {
-               reg = <0>;
+       ports {
+               #address-cells = <1>;
+               #size-cells = <0>;
 
-               typec_hs: endpoint {
-                       remote-endpoint = <&usb_con_hs>;
+               port@0 {
+                       reg = <0>;
+
+                       typec_hs: endpoint {
+                               remote-endpoint = <&usb_con_hs>;
+                       };
                };
-       };
 
-       port@1 {
-               reg = <1>;
+               port@1 {
+                       reg = <1>;
 
-               typec_ss: endpoint {
-                       remote-endpoint = <&usb_con_ss>;
+                       typec_ss: endpoint {
+                               remote-endpoint = <&usb_con_ss>;
+                       };
                };
        };
 };