[openwrt/openwrt] mvebu: dts: fix unit name leading 0s warnings

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


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

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

    mvebu: dts: fix unit name leading 0s warnings
    
    Trim unnecessary 0s from the node name to fix the dtc warnings:
    
    cn9131-puzzle-m901.dts:43.18-46.4: Warning (unit_address_format): /memory at 00000000: unit name should not have leading 0s
    cn9130-clearfog-pro.dts:33.18-36.4: Warning (unit_address_format): /memory at 00000000: unit name should not have leading 0s
    cn9132-puzzle-m902.dts:50.18-53.4: Warning (unit_address_format): /memory at 00000000: unit name should not have leading 0s
    armada-385-wd_cloud-mirror-gen2.dts:148.26-152.9: Warning (unit_address_format): /soc/internal-regs/nand-controller at d0000/nand at 0/partitions/partition at 00000000: unit name should not have leading 0s
    armada-385-wd_cloud-mirror-gen2.dts:154.26-157.9: Warning (unit_address_format): /soc/internal-regs/nand-controller at d0000/nand at 0/partitions/partition at 00500000: unit name should not have leading 0s
    armada-385-wd_cloud-mirror-gen2.dts:159.26-163.9: Warning (unit_address_format): /soc/internal-regs/nand-controller at d0000/nand at 0/partitions/partition at 00a00000: unit name should not have leading 0s
    armada-385-wd_cloud-mirror-gen2.dts:165.26-168.9: Warning (unit_address_format): /soc/internal-regs/nand-controller at d0000/nand at 0/partitions/partition at 00f00000: unit name should not have leading 0s
    
    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>
---
 .../arch/arm/boot/dts/marvell/armada-385-wd_cloud-mirror-gen2.dts | 8 ++++----
 .../files/arch/arm64/boot/dts/marvell/cn9130-clearfog-pro.dts     | 2 +-
 .../files/arch/arm64/boot/dts/marvell/cn9131-puzzle-m901.dts      | 2 +-
 .../files/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts      | 2 +-
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/target/linux/mvebu/files/arch/arm/boot/dts/marvell/armada-385-wd_cloud-mirror-gen2.dts b/target/linux/mvebu/files/arch/arm/boot/dts/marvell/armada-385-wd_cloud-mirror-gen2.dts
index 95a33b7e7a..97edc4ca46 100644
--- a/target/linux/mvebu/files/arch/arm/boot/dts/marvell/armada-385-wd_cloud-mirror-gen2.dts
+++ b/target/linux/mvebu/files/arch/arm/boot/dts/marvell/armada-385-wd_cloud-mirror-gen2.dts
@@ -145,24 +145,24 @@
 						#address-cells = <1>;
 						#size-cells = <1>;
 
-						partition at 00000000 {
+						partition at 0 {
 							label = "U-Boot";
 							reg = <0x00000000 0x00500000>;    /*   5 MB */
 							read-only;
 						};
 
-						partition at 00500000 {
+						partition at 500000 {
 							label = "kernel";
 							reg = <0x00500000 0x00500000>;    /*   5 MB */
 						};
 
-						partition at 00a00000 {
+						partition at a00000 {
 							label = "uRamdisk";
 							reg = <0x00a00000 0x00500000>;    /*   5 MB */
 							read-only;
 						};
 
-						partition at 00f00000 {
+						partition at f00000 {
 							label = "ubi";
 							reg = <0x00f00000 0x0b900000>;    /* 185 MB */
 						};
diff --git a/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9130-clearfog-pro.dts b/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9130-clearfog-pro.dts
index 15e19fb932..0b9007c151 100644
--- a/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9130-clearfog-pro.dts
+++ b/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9130-clearfog-pro.dts
@@ -30,7 +30,7 @@
 		spi1 = &cp0_spi1;
 	};
 
-	memory at 00000000 {
+	memory at 0 {
 		reg = <0x0 0x0 0x1 0x0>;
 		device_type = "memory";
 	};
diff --git a/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9131-puzzle-m901.dts b/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9131-puzzle-m901.dts
index 90d6e855be..43af31f1d8 100644
--- a/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9131-puzzle-m901.dts
+++ b/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9131-puzzle-m901.dts
@@ -40,7 +40,7 @@
 		led-upgrade = &led_info;
 	};
 
-	memory at 00000000 {
+	memory at 0 {
 		device_type = "memory";
 		reg = <0x0 0x0 0x0 0x80000000>;
 	};
diff --git a/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts b/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts
index 0c042f12de..b4eb501162 100644
--- a/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts
+++ b/target/linux/mvebu/files/arch/arm64/boot/dts/marvell/cn9132-puzzle-m902.dts
@@ -47,7 +47,7 @@
 		led-upgrade = &led_info;
 	};
 
-	memory at 00000000 {
+	memory at 0 {
 		device_type = "memory";
 		reg = <0x0 0x0 0x0 0x80000000>;
 	};




More information about the lede-commits mailing list