kirkwood: dts: explicitly set the partition reg size for Blackarmor NAS220
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:

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 <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/18242
Signed-off-by: Hauke Mehrtens <[email protected]>
target/linux/kirkwood/patches-6.12/203-blackarmor-nas220.patch
target/linux/kirkwood/patches-6.6/203-blackarmor-nas220.patch

index 6365aed9cd20420dc45495ae6010e29f907b94a4..07656702e0b1216351318c0f9aee8ae039cac6c3 100644 (file)
        };
  
        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";
index 8ceac179cb25ceb27e74e03258ee913aae20258b..ab596ce75f4536d0835656c8296cf8d8a9cb5315 100644 (file)
        };
  
        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";