From 49d5fc505ffb0346f68ce91cb37109899af6b373 Mon Sep 17 00:00:00 2001 From: Shiji Yang Date: Mon, 19 May 2025 07:46:59 +0800 Subject: [PATCH] mediatek: filogic: fix WiFi MAC address invalid length dtc warnings Add missing #address-cells and #size-cells to fix the following dtc warnings: ../dts/mt7988a-smartrg-mt-stuart.dtsi:558.5-15: Warning (reg_format): /soc/pcie@11300000/pcie@0,0/mt7996@0,0/band@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7988a-smartrg-mt-stuart.dtsi:565.5-15: Warning (reg_format): /soc/pcie@11300000/pcie@0,0/mt7996@0,0/band@1:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7988a-smartrg-mt-stuart.dtsi:572.5-15: Warning (reg_format): /soc/pcie@11300000/pcie@0,0/mt7996@0,0/band@2:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7988d-asus-zenwifi-bt8.dts:78.3-13: Warning (reg_format): /soc/pcie@11300000/pcie@0,0/mt7996@0,0/band@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7988d-asus-zenwifi-bt8.dts:85.3-13: Warning (reg_format): /soc/pcie@11300000/pcie@0,0/mt7996@0,0/band@1:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7988d-asus-zenwifi-bt8.dts:92.3-13: Warning (reg_format): /soc/pcie@11300000/pcie@0,0/mt7996@0,0/band@2:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7988d-asus-zenwifi-bt8-ubootmod.dts:82.3-13: Warning (reg_format): /soc/pcie@11300000/pcie@0,0/mt7996@0,0/band@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7988d-asus-zenwifi-bt8-ubootmod.dts:89.3-13: Warning (reg_format): /soc/pcie@11300000/pcie@0,0/mt7996@0,0/band@1:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7988d-asus-zenwifi-bt8-ubootmod.dts:96.3-13: Warning (reg_format): /soc/pcie@11300000/pcie@0,0/mt7996@0,0/band@2:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7981b-cmcc-a10.dtsi:250.3-13: Warning (reg_format): /soc/wifi@18000000/band@1:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7986a-dlink-aquila-pro-ai-m60-a1.dts:324.3-13: Warning (reg_format): /soc/wifi@18000000/band@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7986a-dlink-aquila-pro-ai-m60-a1.dts:330.3-13: Warning (reg_format): /soc/wifi@18000000/band@1:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7981b-gatonetworks-gdsp.dts:247.3-13: Warning (reg_format): /soc/wifi@18000000/band@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7981b-gatonetworks-gdsp.dts:253.3-13: Warning (reg_format): /soc/wifi@18000000/band@1:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7981b-huasifei-wh3000.dts:182.3-13: Warning (reg_format): /soc/wifi@18000000/band@1:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7986b-mercusys-mr90x-v1-ubi.dts:114.3-13: Warning (reg_format): /soc/wifi@18000000/band@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7986b-mercusys-mr90x-v1-ubi.dts:120.3-13: Warning (reg_format): /soc/wifi@18000000/band@1:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7981b-openembed-som7981.dts:287.3-13: Warning (reg_format): /soc/wifi@18000000/band@1:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7981b-openwrt-one.dts:446.3-13: Warning (reg_format): /soc/wifi@18000000/band@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7981b-openwrt-one.dts:452.3-13: Warning (reg_format): /soc/wifi@18000000/band@1:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7981b-routerich-ax3000-v1.dts:323.3-13: Warning (reg_format): /soc/wifi@18000000/band@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) ../dts/mt7981b-routerich-ax3000-v1.dts:329.3-13: Warning (reg_format): /soc/wifi@18000000/band@1:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) Signed-off-by: Shiji Yang --- target/linux/mediatek/dts/mt7981b-cmcc-a10.dtsi | 2 ++ target/linux/mediatek/dts/mt7981b-gatonetworks-gdsp.dts | 2 ++ target/linux/mediatek/dts/mt7981b-huasifei-wh3000.dts | 2 ++ target/linux/mediatek/dts/mt7981b-openembed-som7981.dts | 2 ++ target/linux/mediatek/dts/mt7981b-openwrt-one.dts | 2 ++ target/linux/mediatek/dts/mt7981b-routerich-ax3000-v1.dts | 2 ++ .../linux/mediatek/dts/mt7986a-dlink-aquila-pro-ai-m60-a1.dts | 2 ++ target/linux/mediatek/dts/mt7986b-mercusys-mr90x-v1-ubi.dts | 2 ++ target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi | 2 ++ target/linux/mediatek/dts/mt7988d-asus-zenwifi-bt8-ubootmod.dts | 2 ++ target/linux/mediatek/dts/mt7988d-asus-zenwifi-bt8.dts | 2 ++ 11 files changed, 22 insertions(+) diff --git a/target/linux/mediatek/dts/mt7981b-cmcc-a10.dtsi b/target/linux/mediatek/dts/mt7981b-cmcc-a10.dtsi index fe132aa66a1..06d829e0874 100644 --- a/target/linux/mediatek/dts/mt7981b-cmcc-a10.dtsi +++ b/target/linux/mediatek/dts/mt7981b-cmcc-a10.dtsi @@ -242,6 +242,8 @@ }; &wifi { + #address-cells = <1>; + #size-cells = <0>; nvmem-cells = <&eeprom_factory_0>; nvmem-cell-names = "eeprom"; status = "okay"; diff --git a/target/linux/mediatek/dts/mt7981b-gatonetworks-gdsp.dts b/target/linux/mediatek/dts/mt7981b-gatonetworks-gdsp.dts index 50ae12b9638..219fd899347 100644 --- a/target/linux/mediatek/dts/mt7981b-gatonetworks-gdsp.dts +++ b/target/linux/mediatek/dts/mt7981b-gatonetworks-gdsp.dts @@ -240,6 +240,8 @@ }; &wifi { + #address-cells = <1>; + #size-cells = <0>; mediatek,mtd-eeprom = <&factory 0x0>; status = "okay"; diff --git a/target/linux/mediatek/dts/mt7981b-huasifei-wh3000.dts b/target/linux/mediatek/dts/mt7981b-huasifei-wh3000.dts index 47a6ef254dd..7dd2f79f8af 100644 --- a/target/linux/mediatek/dts/mt7981b-huasifei-wh3000.dts +++ b/target/linux/mediatek/dts/mt7981b-huasifei-wh3000.dts @@ -176,6 +176,8 @@ }; &wifi { + #address-cells = <1>; + #size-cells = <0>; nvmem-cells = <&eeprom_factory_0>; nvmem-cell-names = "eeprom"; status = "okay"; diff --git a/target/linux/mediatek/dts/mt7981b-openembed-som7981.dts b/target/linux/mediatek/dts/mt7981b-openembed-som7981.dts index d2cca4ee95f..348b83d0365 100644 --- a/target/linux/mediatek/dts/mt7981b-openembed-som7981.dts +++ b/target/linux/mediatek/dts/mt7981b-openembed-som7981.dts @@ -279,6 +279,8 @@ }; &wifi { + #address-cells = <1>; + #size-cells = <0>; nvmem-cells = <&eeprom_factory_0>; nvmem-cell-names = "eeprom"; status = "okay"; diff --git a/target/linux/mediatek/dts/mt7981b-openwrt-one.dts b/target/linux/mediatek/dts/mt7981b-openwrt-one.dts index 77de6775a98..ad08525807d 100644 --- a/target/linux/mediatek/dts/mt7981b-openwrt-one.dts +++ b/target/linux/mediatek/dts/mt7981b-openwrt-one.dts @@ -438,6 +438,8 @@ }; &wifi { + #address-cells = <1>; + #size-cells = <0>; nvmem-cells = <&eeprom_factory_0>; nvmem-cell-names = "eeprom"; status = "okay"; diff --git a/target/linux/mediatek/dts/mt7981b-routerich-ax3000-v1.dts b/target/linux/mediatek/dts/mt7981b-routerich-ax3000-v1.dts index 09c555b73c0..ba70fc807b7 100644 --- a/target/linux/mediatek/dts/mt7981b-routerich-ax3000-v1.dts +++ b/target/linux/mediatek/dts/mt7981b-routerich-ax3000-v1.dts @@ -314,6 +314,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/mt7986a-dlink-aquila-pro-ai-m60-a1.dts b/target/linux/mediatek/dts/mt7986a-dlink-aquila-pro-ai-m60-a1.dts index 80c4c143672..10c53596e50 100644 --- a/target/linux/mediatek/dts/mt7986a-dlink-aquila-pro-ai-m60-a1.dts +++ b/target/linux/mediatek/dts/mt7986a-dlink-aquila-pro-ai-m60-a1.dts @@ -311,6 +311,8 @@ }; &wifi { + #address-cells = <1>; + #size-cells = <0>; status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&wf_2g_5g_pins>; diff --git a/target/linux/mediatek/dts/mt7986b-mercusys-mr90x-v1-ubi.dts b/target/linux/mediatek/dts/mt7986b-mercusys-mr90x-v1-ubi.dts index cfa195034d6..b2e4ab91f9e 100644 --- a/target/linux/mediatek/dts/mt7986b-mercusys-mr90x-v1-ubi.dts +++ b/target/linux/mediatek/dts/mt7986b-mercusys-mr90x-v1-ubi.dts @@ -107,6 +107,8 @@ }; &wifi { + #address-cells = <1>; + #size-cells = <0>; nvmem-cells = <&eeprom_factory_0>; nvmem-cell-names = "eeprom"; diff --git a/target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi b/target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi index cf3f3a0cc52..92ebc3a864c 100644 --- a/target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi +++ b/target/linux/mediatek/dts/mt7988a-smartrg-mt-stuart.dtsi @@ -551,6 +551,8 @@ mt7996@0,0 { reg = <0x0000 0 0 0 0>; + #address-cells = <1>; + #size-cells = <0>; nvmem-cells = <&eeprom_factory_0>; nvmem-cell-names = "eeprom"; ieee80211-freq-limit = <2400000 2500000>, <5170000 5835000>, <5945000 7125000>; diff --git a/target/linux/mediatek/dts/mt7988d-asus-zenwifi-bt8-ubootmod.dts b/target/linux/mediatek/dts/mt7988d-asus-zenwifi-bt8-ubootmod.dts index bee997f3db3..7cf84d99bd7 100644 --- a/target/linux/mediatek/dts/mt7988d-asus-zenwifi-bt8-ubootmod.dts +++ b/target/linux/mediatek/dts/mt7988d-asus-zenwifi-bt8-ubootmod.dts @@ -74,6 +74,8 @@ }; &mt7996_wifi { + #address-cells = <1>; + #size-cells = <0>; nvmem-cells = <&eeprom_factory_0>; nvmem-cell-names = "eeprom"; diff --git a/target/linux/mediatek/dts/mt7988d-asus-zenwifi-bt8.dts b/target/linux/mediatek/dts/mt7988d-asus-zenwifi-bt8.dts index b2cb1ceb726..02c1be1457e 100644 --- a/target/linux/mediatek/dts/mt7988d-asus-zenwifi-bt8.dts +++ b/target/linux/mediatek/dts/mt7988d-asus-zenwifi-bt8.dts @@ -70,6 +70,8 @@ }; &mt7996_wifi { + #address-cells = <1>; + #size-cells = <0>; nvmem-cells = <&eeprom_factory_0>; nvmem-cell-names = "eeprom";