[openwrt/openwrt] mvebu: fix partition node dtc warnings for Synology DS213j

LEDE Commits lede-commits at lists.infradead.org
Sun Oct 19 12:56:53 PDT 2025


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/902507231798d9c2da3694a982da510c752b43b6

commit 902507231798d9c2da3694a982da510c752b43b6
Author: Shiji Yang <yangshiji66 at outlook.com>
AuthorDate: Mon May 19 21:56:58 2025 +0800

    mvebu: fix partition node dtc warnings for Synology DS213j
    
    Add missing #address-cells and #size-cells to fix the
    following dtc warnings:
    
    armada-370-synology-ds213j.dts:288.5-35: Warning (reg_format): /soc/spi at 10600/flash at 0/partitions/partition at 0:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
    armada-370-synology-ds213j.dts:294.5-35: Warning (reg_format): /soc/spi at 10600/flash at 0/partitions/partition at c0000:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
    armada-370-synology-ds213j.dts:299.5-35: Warning (reg_format): /soc/spi at 10600/flash at 0/partitions/partition at 100000:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
    armada-370-synology-ds213j.dts:304.5-35: Warning (reg_format): /soc/spi at 10600/flash at 0/partitions/partition at 110000:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
    armada-370-synology-ds213j.dts:308.5-35: Warning (reg_format): /soc/spi at 10600/flash at 0/partitions/partition at 7d0000:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
    armada-370-synology-ds213j.dts:327.5-35: Warning (reg_format): /soc/spi at 10600/flash at 0/partitions/partition at 7e0000:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
    
    Signed-off-by: Shiji Yang <yangshiji66 at outlook.com>
    Link: https://github.com/openwrt/openwrt/pull/18242
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 ...-dts-armada-370-synology-ds213j-mtd-parts.patch | 40 ++++++++++++----------
 1 file changed, 21 insertions(+), 19 deletions(-)

diff --git a/target/linux/mvebu/patches-6.12/320-arm-dts-armada-370-synology-ds213j-mtd-parts.patch b/target/linux/mvebu/patches-6.12/320-arm-dts-armada-370-synology-ds213j-mtd-parts.patch
index 135952ee5f..83193fa7df 100644
--- a/target/linux/mvebu/patches-6.12/320-arm-dts-armada-370-synology-ds213j-mtd-parts.patch
+++ b/target/linux/mvebu/patches-6.12/320-arm-dts-armada-370-synology-ds213j-mtd-parts.patch
@@ -42,7 +42,7 @@
  };
  
  &pinctrl {
-@@ -259,48 +280,50 @@
+@@ -259,48 +280,52 @@
  		reg = <0>; /* Chip select 0 */
  		spi-max-frequency = <20000000>;
  
@@ -66,47 +66,46 @@
 -		};
 +		partitions {
 +			compatible = "fixed-partitions";
- 
--		partition at c0000 { /* uImage */
--			label = "zImage";
--			reg = <0x000c0000 0x002d0000>; /* 2880KB */
--		};
++			#address-cells = <1>;
++			#size-cells = <1>;
++
 +			partition at 0 { /* u-boot */
 +				label = "u-boot";
 +				reg = <0x00000000 0x000c0000>; /* 768KB */
 +				read-only;
 +			};
  
--		partition at 390000 { /* uInitramfs */
--			label = "rd.gz";
--			reg = <0x00390000 0x00440000>; /* 4250KB */
+-		partition at c0000 { /* uImage */
+-			label = "zImage";
+-			reg = <0x000c0000 0x002d0000>; /* 2880KB */
 -		};
 +			mtd_gap: partition at c0000 { /* gap */
 +				label = "gap";
 +				reg = <0x000c0000 0x00040000>; /* 256KB */
 +			};
  
--		partition at 7d0000 { /* MAC address and serial number */
--			label = "vendor";
--			reg = <0x007d0000 0x00010000>; /* 64KB */
+-		partition at 390000 { /* uInitramfs */
+-			label = "rd.gz";
+-			reg = <0x00390000 0x00440000>; /* 4250KB */
 -		};
 +			partition at 100000 { /* u-boot-env */
 +				label = "u-boot-env";
 +				reg = <0x00100000 0x00010000>; /* 64KB */
 +			};
  
--		partition at 7e0000 {
--			label = "RedBoot config";
--			reg = <0x007e0000 0x00010000>; /* 64KB */
+-		partition at 7d0000 { /* MAC address and serial number */
+-			label = "vendor";
+-			reg = <0x007d0000 0x00010000>; /* 64KB */
 -		};
 +			mtd_kernel: partition at 110000 {
 +				label = "kernel";
 +				reg = <0x00110000 0x006c0000>; /* 6912KB */
 +			};
  
--		partition at 7f0000 {
--			label = "FIS directory";
--			reg = <0x007f0000 0x00010000>; /* 64KB */
+-		partition at 7e0000 {
+-			label = "RedBoot config";
+-			reg = <0x007e0000 0x00010000>; /* 64KB */
+-		};
 +			partition at 7d0000 { /* MAC address and serial number */
 +				reg = <0x007d0000 0x00010000>; /* 64KB */
 +				label = "vendor";
@@ -122,7 +121,10 @@
 +					};
 +				};
 +			};
-+
+ 
+-		partition at 7f0000 {
+-			label = "FIS directory";
+-			reg = <0x007f0000 0x00010000>; /* 64KB */
 +			mtd_gap2: partition at 7e0000 {
 +				label = "gap2";
 +				reg = <0x007e0000 0x00020000>; /* 128KB */




More information about the lede-commits mailing list