[openwrt/openwrt] mediatek: filogic: fix unit name leading 0s dtc warnings

LEDE Commits lede-commits at lists.infradead.org
Mon May 19 07:11:43 PDT 2025


dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/ac5561906eb261d42c17c2b971d7cf6d1e6a0447

commit ac5561906eb261d42c17c2b971d7cf6d1e6a0447
Author: Shiji Yang <yangshiji66 at outlook.com>
AuthorDate: Mon May 19 07:30:58 2025 +0800

    mediatek: filogic: fix unit name leading 0s dtc warnings
    
    Trim unnecessary 0s to fix the following dtc warnings:
    
    ../dts/mt7981b-cudy-re3000-v1.dts:135.20-139.6: Warning (unit_address_format): /soc/spi at 11009000/flash at 0/partitions/partition at 00000: unit name should not have leading 0s
    ../dts/mt7981b-cudy-wr3000-v1.dts:153.20-157.6: Warning (unit_address_format): /soc/spi at 11009000/flash at 0/partitions/partition at 00000: unit name should not have leading 0s
    ../dts/mt7981b-gatonetworks-gdsp.dts:276.20-280.6: Warning (unit_address_format): /soc/spi at 11009000/flash at 0/partitions/partition at 00000: unit name should not have leading 0s
    mt7988a-rfb-spim-nor.dtso:36.21-39.7: Warning (unit_address_format): /fragment at 0/__overlay__/flash at 0/partition at 00000: unit name should not have leading 0s
    ../dts/mt7981a-ubnt-unifi-6-plus.dts:113.28-131.6: Warning (unit_address_format): /soc/spi at 11009000/flash at 0/partitions/partition at 00000: unit name should not have leading 0s
    ../dts/mt7981b-wavlink-wl-wn586x3.dts:147.20-151.6: Warning (unit_address_format): /soc/spi at 11009000/flash at 0/partitions/partition at 00000: unit name should not have leading 0s
    ../dts/mt7981b-wavlink-wl-wn573hx3.dts:102.20-106.6: Warning (unit_address_format): /soc/spi at 11009000/flash at 0/partitions/partition at 00000: unit name should not have leading 0s
    ../dts/mt7981b-yuncore-ax835.dts:161.20-165.6: Warning (unit_address_format): /soc/spi at 11009000/flash at 0/partitions/partition at 00000: unit name should not have leading 0s
    ../dts/mt7986a-zyxel-ex5601-t0-stock.dts:57.39-61.6: Warning (unit_address_format): /soc/spi at 1100a000/spi_nand at 0/partitions/partition at 180000/nvmem-layout/macaddr at 0004: unit name should not have leading 0s
    ../dts/mt7986a-zyxel-ex5601-t0-stock.dts:63.39-67.6: Warning (unit_address_format): /soc/spi at 1100a000/spi_nand at 0/partitions/partition at 180000/nvmem-layout/macaddr at 0024: unit name should not have leading 0s
    ../dts/mt7986a-zyxel-ex5601-t0-stock.dts:69.39-73.6: Warning (unit_address_format): /soc/spi at 1100a000/spi_nand at 0/partitions/partition at 180000/nvmem-layout/macaddr at 002a: unit name should not have leading 0s
    ../dts/mt7986a-zyxel-ex5601-t0-ubootmod.dts:56.39-60.6: Warning (unit_address_format): /soc/spi at 1100a000/spi_nand at 0/partitions/partition at 180000/nvmem-layout/macaddr at 0004: unit name should not have leading 0s
    ../dts/mt7986a-zyxel-ex5601-t0-ubootmod.dts:62.39-66.6: Warning (unit_address_format): /soc/spi at 1100a000/spi_nand at 0/partitions/partition at 180000/nvmem-layout/macaddr at 0024: unit name should not have leading 0s
    ../dts/mt7986a-zyxel-ex5601-t0-ubootmod.dts:68.39-72.6: Warning (unit_address_format): /soc/spi at 1100a000/spi_nand at 0/partitions/partition at 180000/nvmem-layout/macaddr at 002a: unit name should not have leading 0s
    
    Signed-off-by: Shiji Yang <yangshiji66 at outlook.com>
---
 target/linux/mediatek/dts/mt7981a-ubnt-unifi-6-plus.dts             | 2 +-
 target/linux/mediatek/dts/mt7981b-cudy-re3000-v1.dts                | 2 +-
 target/linux/mediatek/dts/mt7981b-cudy-wr3000-v1.dts                | 2 +-
 target/linux/mediatek/dts/mt7981b-gatonetworks-gdsp.dts             | 2 +-
 target/linux/mediatek/dts/mt7981b-wavlink-wl-wn573hx3.dts           | 2 +-
 target/linux/mediatek/dts/mt7981b-wavlink-wl-wn586x3.dts            | 2 +-
 target/linux/mediatek/dts/mt7981b-yuncore-ax835.dts                 | 2 +-
 target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-stock.dts         | 6 +++---
 target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-ubootmod.dts      | 6 +++---
 .../arch/arm64/boot/dts/mediatek/mt7988a-rfb-spim-nor.dtso          | 2 +-
 10 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/target/linux/mediatek/dts/mt7981a-ubnt-unifi-6-plus.dts b/target/linux/mediatek/dts/mt7981a-ubnt-unifi-6-plus.dts
index 48fe2f2fc0..0e6e0cd964 100644
--- a/target/linux/mediatek/dts/mt7981a-ubnt-unifi-6-plus.dts
+++ b/target/linux/mediatek/dts/mt7981a-ubnt-unifi-6-plus.dts
@@ -110,7 +110,7 @@
 			#address-cells = <1>;
 			#size-cells = <1>;
 
-			eeprom: partition at 00000 {
+			eeprom: partition at 0 {
 				label = "EEPROM";
 				reg = <0x00000 0x10000>;
 				read-only;
diff --git a/target/linux/mediatek/dts/mt7981b-cudy-re3000-v1.dts b/target/linux/mediatek/dts/mt7981b-cudy-re3000-v1.dts
index be0aa2e2f4..2ced26e295 100644
--- a/target/linux/mediatek/dts/mt7981b-cudy-re3000-v1.dts
+++ b/target/linux/mediatek/dts/mt7981b-cudy-re3000-v1.dts
@@ -132,7 +132,7 @@
 			#address-cells = <1>;
 			#size-cells = <1>;
 
-			partition at 00000 {
+			partition at 0 {
 				label = "BL2";
 				reg = <0x00000 0x40000>;
 				read-only;
diff --git a/target/linux/mediatek/dts/mt7981b-cudy-wr3000-v1.dts b/target/linux/mediatek/dts/mt7981b-cudy-wr3000-v1.dts
index ad53f15eb4..0f33223bb7 100644
--- a/target/linux/mediatek/dts/mt7981b-cudy-wr3000-v1.dts
+++ b/target/linux/mediatek/dts/mt7981b-cudy-wr3000-v1.dts
@@ -150,7 +150,7 @@
 			#address-cells = <1>;
 			#size-cells = <1>;
 
-			partition at 00000 {
+			partition at 0 {
 				label = "BL2";
 				reg = <0x00000 0x40000>;
 				read-only;
diff --git a/target/linux/mediatek/dts/mt7981b-gatonetworks-gdsp.dts b/target/linux/mediatek/dts/mt7981b-gatonetworks-gdsp.dts
index fd9fdca124..50ae12b963 100644
--- a/target/linux/mediatek/dts/mt7981b-gatonetworks-gdsp.dts
+++ b/target/linux/mediatek/dts/mt7981b-gatonetworks-gdsp.dts
@@ -273,7 +273,7 @@
 			#address-cells = <1>;
 			#size-cells = <1>;
 
-			partition at 00000 {
+			partition at 0 {
 				label = "BL2";
 				reg = <0x00000 0x0040000>;
 				read-only;
diff --git a/target/linux/mediatek/dts/mt7981b-wavlink-wl-wn573hx3.dts b/target/linux/mediatek/dts/mt7981b-wavlink-wl-wn573hx3.dts
index ff222247a6..64e577887a 100644
--- a/target/linux/mediatek/dts/mt7981b-wavlink-wl-wn573hx3.dts
+++ b/target/linux/mediatek/dts/mt7981b-wavlink-wl-wn573hx3.dts
@@ -99,7 +99,7 @@
 			#address-cells = <1>;
 			#size-cells = <1>;
 
-			partition at 00000 {
+			partition at 0 {
 				label = "bl2";
 				reg = <0x00000 0x40000>;
 				read-only;
diff --git a/target/linux/mediatek/dts/mt7981b-wavlink-wl-wn586x3.dts b/target/linux/mediatek/dts/mt7981b-wavlink-wl-wn586x3.dts
index 62be0faa4a..d6d9a9fee6 100644
--- a/target/linux/mediatek/dts/mt7981b-wavlink-wl-wn586x3.dts
+++ b/target/linux/mediatek/dts/mt7981b-wavlink-wl-wn586x3.dts
@@ -144,7 +144,7 @@
 			#address-cells = <1>;
 			#size-cells = <1>;
 
-			partition at 00000 {
+			partition at 0 {
 				label = "bl2";
 				reg = <0x00000 0x40000>;
 				read-only;
diff --git a/target/linux/mediatek/dts/mt7981b-yuncore-ax835.dts b/target/linux/mediatek/dts/mt7981b-yuncore-ax835.dts
index b5de1c34b4..485b8dbd36 100644
--- a/target/linux/mediatek/dts/mt7981b-yuncore-ax835.dts
+++ b/target/linux/mediatek/dts/mt7981b-yuncore-ax835.dts
@@ -158,7 +158,7 @@
 			#address-cells = <1>;
 			#size-cells = <1>;
 
-			partition at 00000 {
+			partition at 0 {
 				label = "BL2";
 				reg = <0x00000 0x40000>;
 				read-only;
diff --git a/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-stock.dts b/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-stock.dts
index b5553a8359..e92d9dc669 100644
--- a/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-stock.dts
+++ b/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-stock.dts
@@ -54,19 +54,19 @@
 				reg = <0x0 0x1000>;
 			};
 
-			macaddr_factory_0004: macaddr at 0004 {
+			macaddr_factory_0004: macaddr at 4 {
 				compatible = "mac-base";
 				reg = <0x0004 0x6>;
 				#nvmem-cell-cells = <1>;
 			};
 
-			macaddr_factory_0024: macaddr at 0024 {
+			macaddr_factory_0024: macaddr at 24 {
 				compatible = "mac-base";
 				reg = <0x0024 0x6>;
 				#nvmem-cell-cells = <1>;
 			};
 
-			macaddr_factory_002a: macaddr at 002a {
+			macaddr_factory_002a: macaddr at 2a {
 				compatible = "mac-base";
 				reg = <0x002a 0x6>;
 				#nvmem-cell-cells = <1>;
diff --git a/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-ubootmod.dts b/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-ubootmod.dts
index d562243970..a1f4a73f2f 100644
--- a/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-ubootmod.dts
+++ b/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-ubootmod.dts
@@ -53,19 +53,19 @@
 				reg = <0x0 0x1000>;
 			};
 
-			macaddr_factory_0004: macaddr at 0004 {
+			macaddr_factory_0004: macaddr at 4 {
 				compatible = "mac-base";
 				reg = <0x0004 0x6>;
 				#nvmem-cell-cells = <1>;
 			};
 
-			macaddr_factory_0024: macaddr at 0024 {
+			macaddr_factory_0024: macaddr at 24 {
 				compatible = "mac-base";
 				reg = <0x0024 0x6>;
 				#nvmem-cell-cells = <1>;
 			};
 
-			macaddr_factory_002a: macaddr at 002a {
+			macaddr_factory_002a: macaddr at 2a {
 				compatible = "mac-base";
 				reg = <0x002a 0x6>;
 				#nvmem-cell-cells = <1>;
diff --git a/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7988a-rfb-spim-nor.dtso b/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7988a-rfb-spim-nor.dtso
index 33bd57b3fb..08d67cfc8b 100644
--- a/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7988a-rfb-spim-nor.dtso
+++ b/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7988a-rfb-spim-nor.dtso
@@ -33,7 +33,7 @@
 				spi-tx-bus-width = <4>;
 				spi-rx-bus-width = <4>;
 
-				partition at 00000 {
+				partition at 0 {
 					label = "BL2";
 					reg = <0x00000 0x0040000>;
 				};




More information about the lede-commits mailing list