[openwrt/openwrt] mediatek: mt7622: various dtc warning fixes for D-Link EAGLE PRO AI

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


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

commit 6854b19202f672cc2dafc28aeeb5c1fb12e8cc09
Author: Shiji Yang <yangshiji66 at outlook.com>
AuthorDate: Mon May 19 08:26:37 2025 +0800

    mediatek: mt7622: various dtc warning fixes for D-Link EAGLE PRO AI
    
    - Add missing #address-cells and #size-cells to the partition nodes.
    - Add missing #address-cells and #size-cells to the switch ports nodes.
    
    This patch fixes the following dtc warnings:
    
    ../dts/mt7622-dlink-eagle-pro-ai-r32-a1.dts:74.3-20: Warning (reg_format): /spi at 1100d000/flash at 0/partitions/partition at 180000/nvmem-layout/macaddr at 81:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
    ../dts/mt7622-dlink-eagle-pro-ai-ax3200-a1.dtsi:289.6-36: Warning (reg_format): /spi at 1100d000/flash at 0/partitions/partition at 2C0000/partition at 0:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
    ../dts/mt7622-dlink-eagle-pro-ai-ax3200-a1.dtsi:294.6-36: Warning (reg_format): /spi at 1100d000/flash at 0/partitions/partition at 2C0000/partition at 800000:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
    ../dts/mt7622-dlink-eagle-pro-ai-ax3200-a1.dtsi:306.6-36: Warning (reg_format): /spi at 1100d000/flash at 0/partitions/partition at 2FC0000/partition at 0:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
    ../dts/mt7622-dlink-eagle-pro-ai-ax3200-a1.dtsi:311.6-36: Warning (reg_format): /spi at 1100d000/flash at 0/partitions/partition at 2FC0000/partition at 800000:reg: property has invalid length (8 bytes) (#address-cells == 2, #size-cells == 1)
    ../dts/mt7622-dlink-eagle-pro-ai-ax3200-a1.dtsi:90.6-16: Warning (reg_format): /ethernet at 1b100000/mdio-bus/switch at 1f/ports/port at 4:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
    ../dts/mt7622-dlink-eagle-pro-ai-ax3200-a1.dtsi:97.6-16: Warning (reg_format): /ethernet at 1b100000/mdio-bus/switch at 1f/ports/port at 6:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
    ../dts/mt7622-dlink-eagle-pro-ai-r32-a1.dts:50.4-14: Warning (reg_format): /ethernet at 1b100000/mdio-bus/switch at 1f/ports/port at 0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
    ../dts/mt7622-dlink-eagle-pro-ai-r32-a1.dts:55.4-14: Warning (reg_format): /ethernet at 1b100000/mdio-bus/switch at 1f/ports/port at 1:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
    ../dts/mt7622-dlink-eagle-pro-ai-m32-a1.dts:45.4-14: Warning (reg_format): /ethernet at 1b100000/mdio-bus/switch at 1f/ports/port at 2:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
    ../dts/mt7622-dlink-eagle-pro-ai-m32-a1.dts:50.4-14: Warning (reg_format): /ethernet at 1b100000/mdio-bus/switch at 1f/ports/port at 3:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
    ../dts/mt7622-dlink-eagle-pro-ai-r32-a1.dts:60.4-14: Warning (reg_format): /ethernet at 1b100000/mdio-bus/switch at 1f/ports/port at 2:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
    ../dts/mt7622-dlink-eagle-pro-ai-r32-a1.dts:65.4-14: Warning (reg_format): /ethernet at 1b100000/mdio-bus/switch at 1f/ports/port at 3:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
    
    Signed-off-by: Shiji Yang <yangshiji66 at outlook.com>
---
 .../dts/mt7622-dlink-eagle-pro-ai-ax3200-a1.dtsi    | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

diff --git a/target/linux/mediatek/dts/mt7622-dlink-eagle-pro-ai-ax3200-a1.dtsi b/target/linux/mediatek/dts/mt7622-dlink-eagle-pro-ai-ax3200-a1.dtsi
index 896185ae14..8bd58bfe85 100644
--- a/target/linux/mediatek/dts/mt7622-dlink-eagle-pro-ai-ax3200-a1.dtsi
+++ b/target/linux/mediatek/dts/mt7622-dlink-eagle-pro-ai-ax3200-a1.dtsi
@@ -86,6 +86,9 @@
 			reset-gpios = <&pio 54 0>;
 
 			ports {
+				#address-cells = <1>;
+				#size-cells = <0>;
+
 				wan: port at 4 {
 					reg = <4>;
 					label = "wan";
@@ -263,6 +266,8 @@
 				read-only;
 				odm_partition: nvmem-layout {
 					compatible = "fixed-layout";
+					#address-cells = <1>;
+					#size-cells = <1>;
 				};
 			};
 
@@ -279,11 +284,13 @@
 			};
 
 			partition at 2C0000 {
-				label = "Kernel1";
-				reg = <0x002C0000 0x02D00000>;
-
 				compatible = "denx,fit";
+				reg = <0x002C0000 0x02D00000>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				label = "Kernel1";
 				openwrt,cmdline-match = "boot_part=Kernel1";
+
 				partition at 0 {
 					label = "kernel";
 					reg = <0x00000000 0x00800000>;
@@ -296,11 +303,13 @@
 			};
 
 			partition at 2FC0000 {
-				label = "Kernel2";
-				reg = <0x02FC0000 0x02D00000>;
-
 				compatible = "denx,fit";
+				reg = <0x02FC0000 0x02D00000>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				label = "Kernel2";
 				openwrt,cmdline-match = "boot_part=Kernel2";
+
 				partition at 0 {
 					label = "kernel";
 					reg = <0x00000000 0x00800000>;




More information about the lede-commits mailing list