apm821xx: dts: explicitly set the partition reg size for Netgear WNDR4700
authorShiji Yang <[email protected]>
Mon, 19 May 2025 13:56:58 +0000 (21:56 +0800)
committerHauke Mehrtens <[email protected]>
Sun, 19 Oct 2025 19:55:33 +0000 (21:55 +0200)
Correct the mtd partition reg property size to address the following
dtc warnings:

../dts/netgear-wndr4700.dts:191.6-33: Warning (reg_format): /plb/opb/ebc/ndfc@1,0/nand/partitions/partition@0/partition@40000:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)

Signed-off-by: Shiji Yang <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/18242
Signed-off-by: Hauke Mehrtens <[email protected]>
target/linux/apm821xx/dts/netgear-wndr4700.dts

index 89d8bf5dd92e216fd7c76131371f0a2500d9421e..6f4463fea4b68f8f5db183c868d3bff3e34867c9 100644 (file)
                        #size-cells = <1>;
 
                        partition@0 {
+                               compatible = "fixed-partitions";
+                               #address-cells = <1>;
+                               #size-cells = <1>;
                                label = "uboot";
                                reg = <0x00000000 0x00180000>;
-                               compatible = "fixed-partitions";
                                read-only;
 
                                partition@40000 {