]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mvebu: fix usb node dtc warnings for Ctera C200 V2
authorShiji Yang <yangshiji66@outlook.com>
Mon, 19 May 2025 13:56:58 +0000 (21:56 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 19 Oct 2025 19:55:34 +0000 (21:55 +0200)
Correct #address-cells and #size-cells based on child node reg
property structure to fix the following dtc warnings:

armada-370-c200-v2.dts:342.6-16: Warning (reg_format): /soc/pcie@82000000/pcie@1,0/bridge@0,1/usb@1,0/port@1:reg: property has invalid length (4 bytes) (#address-cells == 3, #size-cells == 2)
armada-370-c200-v2.dts:347.6-16: Warning (reg_format): /soc/pcie@82000000/pcie@1,0/bridge@0,1/usb@1,0/port@2:reg: property has invalid length (4 bytes) (#address-cells == 3, #size-cells == 2)

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18242
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/mvebu/patches-6.12/325-arm-dts-marvell-add-LED-aliases-and-USB-ports-to-Cte.patch

index eaa206255d7fc04d6cc92af935e4e3afb79ac4ea..0fd602726f57b4f87e41316e1e7b07792f759f8d 100644 (file)
@@ -102,8 +102,8 @@ Signed-off-by: Stefan Kalscheuer <stefan@stklcode.de>
 +                              /* Renesas uPD720202 */
 +                              compatible = "pci1912,0015";
 +                              reg = <0x1000 0 0 0 0>;
-+                              #address-cells = <3>;
-+                              #size-cells = <2>;
++                              #address-cells = <1>;
++                              #size-cells = <0>;
 +
 +                              usb1_port: port@1 {
 +                                      reg = <1>;