]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
mediatek: mt7622: various dtc warning fixes for D-Link EAGLE PRO AI
authorShiji Yang <yangshiji66@outlook.com>
Mon, 19 May 2025 00:26:37 +0000 (08:26 +0800)
committerShiji Yang <yangshiji66@outlook.com>
Mon, 19 May 2025 12:01:00 +0000 (20:01 +0800)
- 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@1100d000/flash@0/partitions/partition@180000/nvmem-layout/macaddr@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@1100d000/flash@0/partitions/partition@2C0000/partition@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@1100d000/flash@0/partitions/partition@2C0000/partition@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@1100d000/flash@0/partitions/partition@2FC0000/partition@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@1100d000/flash@0/partitions/partition@2FC0000/partition@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@1b100000/mdio-bus/switch@1f/ports/port@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@1b100000/mdio-bus/switch@1f/ports/port@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@1b100000/mdio-bus/switch@1f/ports/port@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@1b100000/mdio-bus/switch@1f/ports/port@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@1b100000/mdio-bus/switch@1f/ports/port@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@1b100000/mdio-bus/switch@1f/ports/port@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@1b100000/mdio-bus/switch@1f/ports/port@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@1b100000/mdio-bus/switch@1f/ports/port@3:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
target/linux/mediatek/dts/mt7622-dlink-eagle-pro-ai-ax3200-a1.dtsi

index 896185ae146bf19cea4c2c93a42c33c2ecc958df..8bd58bfe851f4a9848276b7b693477273ddcd4f8 100644 (file)
@@ -86,6 +86,9 @@
                        reset-gpios = <&pio 54 0>;
 
                        ports {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
                                wan: port@4 {
                                        reg = <4>;
                                        label = "wan";
                                read-only;
                                odm_partition: nvmem-layout {
                                        compatible = "fixed-layout";
+                                       #address-cells = <1>;
+                                       #size-cells = <1>;
                                };
                        };
 
                        };
 
                        partition@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@0 {
                                        label = "kernel";
                                        reg = <0x00000000 0x00800000>;
                        };
 
                        partition@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@0 {
                                        label = "kernel";
                                        reg = <0x00000000 0x00800000>;