[openwrt/openwrt] ramips: dts: explicitly set the partition reg size for Ruijie RG-EW1200G

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


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

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

    ramips: dts: explicitly set the partition reg size for Ruijie RG-EW1200G
    
    Correct the mtd partition reg property size to address the following
    dtc warnings:
    
    ../dts/mt7621_ruijie_rg-ew1200g-pro-v1.1.dts:60.5-30: Warning (reg_format): /palmbus at 1e000000/spi at b00/flash at 0/partitions/partition at 0:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
    ../dts/mt7621_ruijie_rg-ew1200g-pro-v1.1.dts:66.5-29: Warning (reg_format): /palmbus at 1e000000/spi at b00/flash at 0/partitions/partition at 50000:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
    ../dts/mt7621_ruijie_rg-ew1200g-pro-v1.1.dts:72.5-29: Warning (reg_format): /palmbus at 1e000000/spi at b00/flash at 0/partitions/partition at 60000:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
    ../dts/mt7621_ruijie_rg-ew1200g-pro-v1.1.dts:88.5-29: Warning (reg_format): /palmbus at 1e000000/spi at b00/flash at 0/partitions/partition at 70000:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
    ../dts/mt7621_ruijie_rg-ew1200g-pro-v1.1.dts:94.5-29: Warning (reg_format): /palmbus at 1e000000/spi at b00/flash at 0/partitions/partition at 80000:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
    ../dts/mt7621_ruijie_rg-ew1200g-pro-v1.1.dts:101.5-30: Warning (reg_format): /palmbus at 1e000000/spi at b00/flash at 0/partitions/partition at 90000: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>
---
 target/linux/ramips/dts/mt7621_ruijie_rg-ew1200g-pro-v1.1.dts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/target/linux/ramips/dts/mt7621_ruijie_rg-ew1200g-pro-v1.1.dts b/target/linux/ramips/dts/mt7621_ruijie_rg-ew1200g-pro-v1.1.dts
index 0223ece164..ad30679746 100644
--- a/target/linux/ramips/dts/mt7621_ruijie_rg-ew1200g-pro-v1.1.dts
+++ b/target/linux/ramips/dts/mt7621_ruijie_rg-ew1200g-pro-v1.1.dts
@@ -54,6 +54,8 @@
 
 		partitions {
 			compatible = "fixed-partitions";
+			#address-cells = <1>;
+			#size-cells = <1>;
 
 			partition at 0 {
 				label = "u-boot";




More information about the lede-commits mailing list