From 9fa076aa3336f884e9cc65384cfa28503c96c601 Mon Sep 17 00:00:00 2001 From: Shiji Yang Date: Mon, 19 May 2025 21:56:58 +0800 Subject: [PATCH] kirkwood: dts: explicitly set the partition reg size for Blackarmor NAS220 Correct the mtd partition reg property size to address the following dtc warnings: kirkwood-blackarmor-nas220.dts:185.4-24: Warning (reg_format): /mbus@f1000000/nand@12f/partitions/partition@0:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1) kirkwood-blackarmor-nas220.dts:191.4-28: Warning (reg_format): /mbus@f1000000/nand@12f/partitions/partition@a0000:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1) kirkwood-blackarmor-nas220.dts:197.4-28: Warning (reg_format): /mbus@f1000000/nand@12f/partitions/partition@b0000:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1) kirkwood-blackarmor-nas220.dts:203.4-30: Warning (reg_format): /mbus@f1000000/nand@12f/partitions/partition@c0000: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 --- .../linux/kirkwood/patches-6.12/203-blackarmor-nas220.patch | 4 +++- target/linux/kirkwood/patches-6.6/203-blackarmor-nas220.patch | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/target/linux/kirkwood/patches-6.12/203-blackarmor-nas220.patch b/target/linux/kirkwood/patches-6.12/203-blackarmor-nas220.patch index 6365aed9cd..07656702e0 100644 --- a/target/linux/kirkwood/patches-6.12/203-blackarmor-nas220.patch +++ b/target/linux/kirkwood/patches-6.12/203-blackarmor-nas220.patch @@ -62,13 +62,15 @@ }; regulators { -@@ -153,6 +176,33 @@ +@@ -153,6 +176,35 @@ &nand { status = "okay"; + + partitions { + compatible = "fixed-partitions"; ++ #address-cells = <1>; ++ #size-cells = <1>; + + partition@0 { + label = "uboot"; diff --git a/target/linux/kirkwood/patches-6.6/203-blackarmor-nas220.patch b/target/linux/kirkwood/patches-6.6/203-blackarmor-nas220.patch index 8ceac179cb..ab596ce75f 100644 --- a/target/linux/kirkwood/patches-6.6/203-blackarmor-nas220.patch +++ b/target/linux/kirkwood/patches-6.6/203-blackarmor-nas220.patch @@ -63,13 +63,15 @@ }; regulators { -@@ -153,6 +176,33 @@ +@@ -153,6 +176,35 @@ &nand { status = "okay"; + + partitions { + compatible = "fixed-partitions"; ++ #address-cells = <1>; ++ #size-cells = <1>; + + partition@0 { + label = "uboot"; -- 2.30.2