]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
lantiq: dts: correct the size of PCIe reg property
authorShiji Yang <yangshiji66@outlook.com>
Mon, 19 May 2025 11:07:17 +0000 (19:07 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 5 Apr 2026 22:39:47 +0000 (00:39 +0200)
Correct PCIe node #address-cells and #size-cells properties to
fix the following dtc warnings:

vr9_avm_fritz3390.dts:297.4-22: Warning (reg_format): /fpi@10000000/pcie@d900000/pcie@0/wifi@0,0:reg: property has invalid length (20 bytes) (#address-cells == 2, #size-cells == 1)
vr9_avm_fritz3390.dts:288.9-300.4: Warning (pci_bridge): /fpi@10000000/pcie@d900000/pcie@0: incorrect #address-cells for PCI bridge
vr9_avm_fritz3390.dts:288.9-300.4: Warning (pci_bridge): /fpi@10000000/pcie@d900000/pcie@0: incorrect #size-cells for PCI bridge
vr9_avm_fritz736x.dtsi:168.4-22: Warning (reg_format): /fpi@10000000/pcie@d900000/pcie@0/wifi@0,0:reg: property has invalid length (20 bytes) (#address-cells == 2, #size-cells == 1)
vr9_avm_fritz736x.dtsi:160.9-170.4: Warning (pci_bridge): /fpi@10000000/pcie@d900000/pcie@0: incorrect #address-cells for PCI bridge
vr9_avm_fritz736x.dtsi:160.9-170.4: Warning (pci_bridge): /fpi@10000000/pcie@d900000/pcie@0: incorrect #size-cells for PCI bridge

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18843
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz3390.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz7362sl.dts
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_avm_fritz736x.dtsi

index dc81f81ca479603cd43aab6043e6072f9747c40f..657c765a9da97a8a839dfaf37d88ebdc65ec7d63 100644 (file)
        pcie@0 {
                reg = <0 0 0 0 0>;
                #interrupt-cells = <1>;
-               #size-cells = <1>;
-               #address-cells = <2>;
+               #address-cells = <3>;
+               #size-cells = <2>;
                device_type = "pci";
 
                wifi@0,0 {
index 118f155290efb72f2bd727e02841a3b95c4a5362..1f7546c70974b5306b1d0c0dabcab21362430d45 100644 (file)
 
 &pcie0 {
        gpio-reset = <&gpio 21 GPIO_ACTIVE_LOW>;
-
-       pcie@0 {
-               #size-cells = <1>;
-               #address-cells = <2>;
-       };
 };
 
 &eth0 {
index 795585bc0741fcf2b01e674433f6b0923c1de9c7..3e9ce70bb93b114ec58dcca78529a4f56027a67d 100644 (file)
        pcie@0 {
                reg = <0 0 0 0 0>;
                #interrupt-cells = <1>;
-               #size-cells = <1>;
-               #address-cells = <2>;
+               #address-cells = <3>;
+               #size-cells = <2>;
                device_type = "pci";
 
                wifi: wifi@0,0 {