From 73b198869abfc869fa2ba5c1238a0c468b063b83 Mon Sep 17 00:00:00 2001 From: Shiji Yang Date: Mon, 19 May 2025 21:56:58 +0800 Subject: [PATCH] apm821xx: dts: explicitly set the partition reg size for Netgear WNDR4700 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 Link: https://github.com/openwrt/openwrt/pull/18242 Signed-off-by: Hauke Mehrtens --- target/linux/apm821xx/dts/netgear-wndr4700.dts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/target/linux/apm821xx/dts/netgear-wndr4700.dts b/target/linux/apm821xx/dts/netgear-wndr4700.dts index 89d8bf5dd9..6f4463fea4 100644 --- a/target/linux/apm821xx/dts/netgear-wndr4700.dts +++ b/target/linux/apm821xx/dts/netgear-wndr4700.dts @@ -181,9 +181,11 @@ #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 { -- 2.30.2