[openwrt/openwrt] mediatek: dts: fix some minor dtc warnings

LEDE Commits lede-commits at lists.infradead.org
Sun Aug 24 04:58:36 PDT 2025


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

commit bb94280942c1663f398d80ed0f3cb1a67f14e5d9
Author: Shiji Yang <yangshiji66 at outlook.com>
AuthorDate: Sat Aug 9 10:05:52 2025 +0800

    mediatek: dts: fix some minor dtc warnings
    
    This patch fixes the following dtc warnings for the recently added
    boards:
    
    ../dts/mt7981b-zbtlink-zbt-z8102ax-v2.dts:329.35-331.4: Warning (unit_address_format): /soc/spi at 1100a000/spi_nand at 0/partitions/partition at 180000/macaddr at 004: unit name should not have leading 0s
    ../dts/mt7981b-zbtlink-zbt-z8102ax-v2.dts:332.35-334.4: Warning (unit_address_format): /soc/spi at 1100a000/spi_nand at 0/partitions/partition at 180000/macaddr at 02a: unit name should not have leading 0s
    ../dts/mt7981b-iptime-ax3000q.dts:267.3-13: Warning (reg_format): /soc/wifi at 18000000/band at 0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
    ../dts/mt7981b-iptime-ax3000q.dts:273.3-13: Warning (reg_format): /soc/wifi at 18000000/band at 1:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
    ../dts/mt7981b-iptime-ax3000sm.dts:269.3-13: Warning (reg_format): /soc/wifi at 18000000/band at 0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
    ../dts/mt7981b-iptime-ax3000sm.dts:275.3-13: Warning (reg_format): /soc/wifi at 18000000/band at 1:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
    ../dts/mt7981b-snr-snr-cpe-ax2.dts:330.3-13: Warning (reg_format): /soc/wifi at 18000000/band at 0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
    ../dts/mt7981b-snr-snr-cpe-ax2.dts:336.3-13: Warning (reg_format): /soc/wifi at 18000000/band at 1:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
    ../dts/mt7981b-gatonetworks-gdsp-sd-boot.dtso:14.5-15: Warning (reg_format): /fragment at 1/__overlay__/card at 0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
    mt7988a-rfb-emmc.dtso:34.5-15: Warning (reg_format): /fragment at 0/__overlay__/card at 0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
    mt7988a-rfb-snfi-nand.dtso:29.7-33: Warning (reg_format): /fragment at 0/__overlay__/flash at 0/partitions/partition at 0:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
    mt7988a-rfb-snfi-nand.dtso:35.7-35: Warning (reg_format): /fragment at 0/__overlay__/flash at 0/partitions/partition at 200000:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
    mt7988a-rfb-sd.dtso:32.5-15: Warning (reg_format): /fragment at 0/__overlay__/card at 0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
    
    Signed-off-by: Shiji Yang <yangshiji66 at outlook.com>
    Link: https://github.com/openwrt/openwrt/pull/19741
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 .../mediatek/dts/mt7981b-gatonetworks-gdsp-sd-boot.dtso    |  2 ++
 target/linux/mediatek/dts/mt7981b-iptime-ax3000q.dts       |  2 ++
 target/linux/mediatek/dts/mt7981b-iptime-ax3000sm.dts      |  2 ++
 target/linux/mediatek/dts/mt7981b-snr-snr-cpe-ax2.dts      |  2 ++
 .../linux/mediatek/dts/mt7981b-zbtlink-zbt-z8102ax-v2.dts  |  8 ++++----
 ...64-dts-mediatek-add-MT7988A-reference-board-devic.patch | 14 +++++++++++---
 6 files changed, 23 insertions(+), 7 deletions(-)

diff --git a/target/linux/mediatek/dts/mt7981b-gatonetworks-gdsp-sd-boot.dtso b/target/linux/mediatek/dts/mt7981b-gatonetworks-gdsp-sd-boot.dtso
index 46a07cf683..98b00217b9 100644
--- a/target/linux/mediatek/dts/mt7981b-gatonetworks-gdsp-sd-boot.dtso
+++ b/target/linux/mediatek/dts/mt7981b-gatonetworks-gdsp-sd-boot.dtso
@@ -9,6 +9,8 @@
 	fragment at 1 {
 		target = <&mmc0>;
 		__overlay__ {
+			#address-cells = <1>;
+			#size-cells = <0>;
 			card at 0 {
 				compatible = "mmc-card";
 				reg = <0>;
diff --git a/target/linux/mediatek/dts/mt7981b-iptime-ax3000q.dts b/target/linux/mediatek/dts/mt7981b-iptime-ax3000q.dts
index 89b797666e..d3bb26d398 100644
--- a/target/linux/mediatek/dts/mt7981b-iptime-ax3000q.dts
+++ b/target/linux/mediatek/dts/mt7981b-iptime-ax3000q.dts
@@ -260,6 +260,8 @@
 
 &wifi {
 	status = "okay";
+	#address-cells = <1>;
+	#size-cells = <0>;
 	nvmem-cell-names = "eeprom";
 	nvmem-cells = <&eeprom_factory_0>;
 
diff --git a/target/linux/mediatek/dts/mt7981b-iptime-ax3000sm.dts b/target/linux/mediatek/dts/mt7981b-iptime-ax3000sm.dts
index 1b1ba3deda..3cf854a9d8 100644
--- a/target/linux/mediatek/dts/mt7981b-iptime-ax3000sm.dts
+++ b/target/linux/mediatek/dts/mt7981b-iptime-ax3000sm.dts
@@ -262,6 +262,8 @@
 
 &wifi {
 	status = "okay";
+	#address-cells = <1>;
+	#size-cells = <0>;
 	nvmem-cell-names = "eeprom";
 	nvmem-cells = <&eeprom_factory_0>;
 
diff --git a/target/linux/mediatek/dts/mt7981b-snr-snr-cpe-ax2.dts b/target/linux/mediatek/dts/mt7981b-snr-snr-cpe-ax2.dts
index 48e29d3a6e..c25359bdee 100644
--- a/target/linux/mediatek/dts/mt7981b-snr-snr-cpe-ax2.dts
+++ b/target/linux/mediatek/dts/mt7981b-snr-snr-cpe-ax2.dts
@@ -323,6 +323,8 @@
 
 &wifi {
 	status = "okay";
+	#address-cells = <1>;
+	#size-cells = <0>;
 	nvmem-cell-names = "eeprom";
 	nvmem-cells = <&eeprom_factory_0>;
 
diff --git a/target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8102ax-v2.dts b/target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8102ax-v2.dts
index 0d886e7a98..fae0cfbb41 100644
--- a/target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8102ax-v2.dts
+++ b/target/linux/mediatek/dts/mt7981b-zbtlink-zbt-z8102ax-v2.dts
@@ -326,11 +326,11 @@
 	#address-cells = <1>;
 	#size-cells = <1>;
 
-	macaddr_factory_004: macaddr at 004 {
-		reg = <0x004 0x6>;
+	macaddr_factory_004: macaddr at 4 {
+		reg = <0x4 0x6>;
 	};
-	macaddr_factory_02a: macaddr at 02a {
-		reg = <0x02a 0x6>;
+	macaddr_factory_02a: macaddr at 2a {
+		reg = <0x2a 0x6>;
 	};
         eeprom_factory: eeprom at 0 {
 		reg = <0x0 0x1000>;
diff --git a/target/linux/mediatek/patches-6.12/188-arm64-dts-mediatek-add-MT7988A-reference-board-devic.patch b/target/linux/mediatek/patches-6.12/188-arm64-dts-mediatek-add-MT7988A-reference-board-devic.patch
index f968ac15cf..0e0236c5fc 100644
--- a/target/linux/mediatek/patches-6.12/188-arm64-dts-mediatek-add-MT7988A-reference-board-devic.patch
+++ b/target/linux/mediatek/patches-6.12/188-arm64-dts-mediatek-add-MT7988A-reference-board-devic.patch
@@ -56,7 +56,7 @@ Signed-off-by: Daniel Golle <daniel at makrotopia.org>
  dtb-$(CONFIG_ARCH_MEDIATEK) += mt8173-elm-hana.dtb
 --- /dev/null
 +++ b/arch/arm64/boot/dts/mediatek/mt7988a-rfb-emmc.dtso
-@@ -0,0 +1,60 @@
+@@ -0,0 +1,62 @@
 +// SPDX-License-Identifier: (GPL-2.0 OR MIT)
 +/*
 + * Copyright (C) 2021 MediaTek Inc.
@@ -72,6 +72,8 @@ Signed-off-by: Daniel Golle <daniel at makrotopia.org>
 +	fragment at 0 {
 +		target = <&mmc0>;
 +		__overlay__ {
++			#address-cells = <1>;
++			#size-cells = <0>;
 +			pinctrl-names = "default", "state_uhs";
 +			pinctrl-0 = <&mmc0_pins_emmc_51>;
 +			pinctrl-1 = <&mmc0_pins_emmc_51>;
@@ -424,7 +426,7 @@ Signed-off-by: Daniel Golle <daniel at makrotopia.org>
 +};
 --- /dev/null
 +++ b/arch/arm64/boot/dts/mediatek/mt7988a-rfb-sd.dtso
-@@ -0,0 +1,58 @@
+@@ -0,0 +1,60 @@
 +// SPDX-License-Identifier: (GPL-2.0 OR MIT)
 +/*
 + * Copyright (C) 2023 MediaTek Inc.
@@ -442,6 +444,8 @@ Signed-off-by: Daniel Golle <daniel at makrotopia.org>
 +	fragment at 0 {
 +		target-path = <&mmc0>;
 +		__overlay__ {
++			#address-cells = <1>;
++			#size-cells = <0>;
 +			pinctrl-names = "default", "state_uhs";
 +			pinctrl-0 = <&mmc0_pins_sdcard>;
 +			pinctrl-1 = <&mmc0_pins_sdcard>;
@@ -485,7 +489,7 @@ Signed-off-by: Daniel Golle <daniel at makrotopia.org>
 +};
 --- /dev/null
 +++ b/arch/arm64/boot/dts/mediatek/mt7988a-rfb-snfi-nand.dtso
-@@ -0,0 +1,81 @@
+@@ -0,0 +1,85 @@
 +// SPDX-License-Identifier: (GPL-2.0 OR MIT)
 +/*
 + * Copyright (C) 2022 MediaTek Inc.
@@ -512,6 +516,10 @@ Signed-off-by: Daniel Golle <daniel at makrotopia.org>
 +				spi-rx-bus-width = <4>;
 +
 +				partitions {
++					compatible = "fixed-partitions";
++					#address-cells = <1>;
++					#size-cells = <1>;
++
 +					partition at 0 {
 +						label = "BL2";
 +						reg = <0x00000 0x0200000>;




More information about the lede-commits mailing list