From ac5561906eb261d42c17c2b971d7cf6d1e6a0447 Mon Sep 17 00:00:00 2001 From: Shiji Yang Date: Mon, 19 May 2025 07:30:58 +0800 Subject: [PATCH] mediatek: filogic: fix unit name leading 0s dtc warnings Trim unnecessary 0s to fix the following dtc warnings: ../dts/mt7981b-cudy-re3000-v1.dts:135.20-139.6: Warning (unit_address_format): /soc/spi@11009000/flash@0/partitions/partition@00000: unit name should not have leading 0s ../dts/mt7981b-cudy-wr3000-v1.dts:153.20-157.6: Warning (unit_address_format): /soc/spi@11009000/flash@0/partitions/partition@00000: unit name should not have leading 0s ../dts/mt7981b-gatonetworks-gdsp.dts:276.20-280.6: Warning (unit_address_format): /soc/spi@11009000/flash@0/partitions/partition@00000: unit name should not have leading 0s mt7988a-rfb-spim-nor.dtso:36.21-39.7: Warning (unit_address_format): /fragment@0/__overlay__/flash@0/partition@00000: unit name should not have leading 0s ../dts/mt7981a-ubnt-unifi-6-plus.dts:113.28-131.6: Warning (unit_address_format): /soc/spi@11009000/flash@0/partitions/partition@00000: unit name should not have leading 0s ../dts/mt7981b-wavlink-wl-wn586x3.dts:147.20-151.6: Warning (unit_address_format): /soc/spi@11009000/flash@0/partitions/partition@00000: unit name should not have leading 0s ../dts/mt7981b-wavlink-wl-wn573hx3.dts:102.20-106.6: Warning (unit_address_format): /soc/spi@11009000/flash@0/partitions/partition@00000: unit name should not have leading 0s ../dts/mt7981b-yuncore-ax835.dts:161.20-165.6: Warning (unit_address_format): /soc/spi@11009000/flash@0/partitions/partition@00000: unit name should not have leading 0s ../dts/mt7986a-zyxel-ex5601-t0-stock.dts:57.39-61.6: Warning (unit_address_format): /soc/spi@1100a000/spi_nand@0/partitions/partition@180000/nvmem-layout/macaddr@0004: unit name should not have leading 0s ../dts/mt7986a-zyxel-ex5601-t0-stock.dts:63.39-67.6: Warning (unit_address_format): /soc/spi@1100a000/spi_nand@0/partitions/partition@180000/nvmem-layout/macaddr@0024: unit name should not have leading 0s ../dts/mt7986a-zyxel-ex5601-t0-stock.dts:69.39-73.6: Warning (unit_address_format): /soc/spi@1100a000/spi_nand@0/partitions/partition@180000/nvmem-layout/macaddr@002a: unit name should not have leading 0s ../dts/mt7986a-zyxel-ex5601-t0-ubootmod.dts:56.39-60.6: Warning (unit_address_format): /soc/spi@1100a000/spi_nand@0/partitions/partition@180000/nvmem-layout/macaddr@0004: unit name should not have leading 0s ../dts/mt7986a-zyxel-ex5601-t0-ubootmod.dts:62.39-66.6: Warning (unit_address_format): /soc/spi@1100a000/spi_nand@0/partitions/partition@180000/nvmem-layout/macaddr@0024: unit name should not have leading 0s ../dts/mt7986a-zyxel-ex5601-t0-ubootmod.dts:68.39-72.6: Warning (unit_address_format): /soc/spi@1100a000/spi_nand@0/partitions/partition@180000/nvmem-layout/macaddr@002a: unit name should not have leading 0s Signed-off-by: Shiji Yang --- target/linux/mediatek/dts/mt7981a-ubnt-unifi-6-plus.dts | 2 +- target/linux/mediatek/dts/mt7981b-cudy-re3000-v1.dts | 2 +- target/linux/mediatek/dts/mt7981b-cudy-wr3000-v1.dts | 2 +- target/linux/mediatek/dts/mt7981b-gatonetworks-gdsp.dts | 2 +- target/linux/mediatek/dts/mt7981b-wavlink-wl-wn573hx3.dts | 2 +- target/linux/mediatek/dts/mt7981b-wavlink-wl-wn586x3.dts | 2 +- target/linux/mediatek/dts/mt7981b-yuncore-ax835.dts | 2 +- target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-stock.dts | 6 +++--- .../linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-ubootmod.dts | 6 +++--- .../arch/arm64/boot/dts/mediatek/mt7988a-rfb-spim-nor.dtso | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/target/linux/mediatek/dts/mt7981a-ubnt-unifi-6-plus.dts b/target/linux/mediatek/dts/mt7981a-ubnt-unifi-6-plus.dts index 48fe2f2fc0e..0e6e0cd9644 100644 --- a/target/linux/mediatek/dts/mt7981a-ubnt-unifi-6-plus.dts +++ b/target/linux/mediatek/dts/mt7981a-ubnt-unifi-6-plus.dts @@ -110,7 +110,7 @@ #address-cells = <1>; #size-cells = <1>; - eeprom: partition@00000 { + eeprom: partition@0 { label = "EEPROM"; reg = <0x00000 0x10000>; read-only; diff --git a/target/linux/mediatek/dts/mt7981b-cudy-re3000-v1.dts b/target/linux/mediatek/dts/mt7981b-cudy-re3000-v1.dts index be0aa2e2f40..2ced26e2957 100644 --- a/target/linux/mediatek/dts/mt7981b-cudy-re3000-v1.dts +++ b/target/linux/mediatek/dts/mt7981b-cudy-re3000-v1.dts @@ -132,7 +132,7 @@ #address-cells = <1>; #size-cells = <1>; - partition@00000 { + partition@0 { label = "BL2"; reg = <0x00000 0x40000>; read-only; diff --git a/target/linux/mediatek/dts/mt7981b-cudy-wr3000-v1.dts b/target/linux/mediatek/dts/mt7981b-cudy-wr3000-v1.dts index ad53f15eb42..0f33223bb73 100644 --- a/target/linux/mediatek/dts/mt7981b-cudy-wr3000-v1.dts +++ b/target/linux/mediatek/dts/mt7981b-cudy-wr3000-v1.dts @@ -150,7 +150,7 @@ #address-cells = <1>; #size-cells = <1>; - partition@00000 { + partition@0 { label = "BL2"; reg = <0x00000 0x40000>; read-only; diff --git a/target/linux/mediatek/dts/mt7981b-gatonetworks-gdsp.dts b/target/linux/mediatek/dts/mt7981b-gatonetworks-gdsp.dts index fd9fdca1240..50ae12b9638 100644 --- a/target/linux/mediatek/dts/mt7981b-gatonetworks-gdsp.dts +++ b/target/linux/mediatek/dts/mt7981b-gatonetworks-gdsp.dts @@ -273,7 +273,7 @@ #address-cells = <1>; #size-cells = <1>; - partition@00000 { + partition@0 { label = "BL2"; reg = <0x00000 0x0040000>; read-only; diff --git a/target/linux/mediatek/dts/mt7981b-wavlink-wl-wn573hx3.dts b/target/linux/mediatek/dts/mt7981b-wavlink-wl-wn573hx3.dts index ff222247a6a..64e577887af 100644 --- a/target/linux/mediatek/dts/mt7981b-wavlink-wl-wn573hx3.dts +++ b/target/linux/mediatek/dts/mt7981b-wavlink-wl-wn573hx3.dts @@ -99,7 +99,7 @@ #address-cells = <1>; #size-cells = <1>; - partition@00000 { + partition@0 { label = "bl2"; reg = <0x00000 0x40000>; read-only; diff --git a/target/linux/mediatek/dts/mt7981b-wavlink-wl-wn586x3.dts b/target/linux/mediatek/dts/mt7981b-wavlink-wl-wn586x3.dts index 62be0faa4af..d6d9a9fee6f 100644 --- a/target/linux/mediatek/dts/mt7981b-wavlink-wl-wn586x3.dts +++ b/target/linux/mediatek/dts/mt7981b-wavlink-wl-wn586x3.dts @@ -144,7 +144,7 @@ #address-cells = <1>; #size-cells = <1>; - partition@00000 { + partition@0 { label = "bl2"; reg = <0x00000 0x40000>; read-only; diff --git a/target/linux/mediatek/dts/mt7981b-yuncore-ax835.dts b/target/linux/mediatek/dts/mt7981b-yuncore-ax835.dts index b5de1c34b44..485b8dbd367 100644 --- a/target/linux/mediatek/dts/mt7981b-yuncore-ax835.dts +++ b/target/linux/mediatek/dts/mt7981b-yuncore-ax835.dts @@ -158,7 +158,7 @@ #address-cells = <1>; #size-cells = <1>; - partition@00000 { + partition@0 { label = "BL2"; reg = <0x00000 0x40000>; read-only; diff --git a/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-stock.dts b/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-stock.dts index b5553a83598..e92d9dc6698 100644 --- a/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-stock.dts +++ b/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-stock.dts @@ -54,19 +54,19 @@ reg = <0x0 0x1000>; }; - macaddr_factory_0004: macaddr@0004 { + macaddr_factory_0004: macaddr@4 { compatible = "mac-base"; reg = <0x0004 0x6>; #nvmem-cell-cells = <1>; }; - macaddr_factory_0024: macaddr@0024 { + macaddr_factory_0024: macaddr@24 { compatible = "mac-base"; reg = <0x0024 0x6>; #nvmem-cell-cells = <1>; }; - macaddr_factory_002a: macaddr@002a { + macaddr_factory_002a: macaddr@2a { compatible = "mac-base"; reg = <0x002a 0x6>; #nvmem-cell-cells = <1>; diff --git a/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-ubootmod.dts b/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-ubootmod.dts index d5622439701..a1f4a73f2f8 100644 --- a/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-ubootmod.dts +++ b/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-ubootmod.dts @@ -53,19 +53,19 @@ reg = <0x0 0x1000>; }; - macaddr_factory_0004: macaddr@0004 { + macaddr_factory_0004: macaddr@4 { compatible = "mac-base"; reg = <0x0004 0x6>; #nvmem-cell-cells = <1>; }; - macaddr_factory_0024: macaddr@0024 { + macaddr_factory_0024: macaddr@24 { compatible = "mac-base"; reg = <0x0024 0x6>; #nvmem-cell-cells = <1>; }; - macaddr_factory_002a: macaddr@002a { + macaddr_factory_002a: macaddr@2a { compatible = "mac-base"; reg = <0x002a 0x6>; #nvmem-cell-cells = <1>; diff --git a/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7988a-rfb-spim-nor.dtso b/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7988a-rfb-spim-nor.dtso index 33bd57b3fb6..08d67cfc8b6 100644 --- a/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7988a-rfb-spim-nor.dtso +++ b/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7988a-rfb-spim-nor.dtso @@ -33,7 +33,7 @@ spi-tx-bus-width = <4>; spi-rx-bus-width = <4>; - partition@00000 { + partition@0 { label = "BL2"; reg = <0x00000 0x0040000>; };