summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShiji Yang2025-05-19 00:26:37 +0000
committerShiji Yang2025-05-19 12:01:00 +0000
commit6854b19202f672cc2dafc28aeeb5c1fb12e8cc09 (patch)
tree286ee0ebc2e111d2fb2cfcd7cf7ad31032a3ecdd
parent5bead4a0b26b65187caae896c8da7a5d8c62d0a7 (diff)
downloadopenwrt-6854b19202f672cc2dafc28aeeb5c1fb12e8cc09.tar.gz
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@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>
-rw-r--r--target/linux/mediatek/dts/mt7622-dlink-eagle-pro-ai-ax3200-a1.dtsi21
1 files 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@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@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>;
@@ -296,11 +303,13 @@
};
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>;