From bc0be15e8df63a628c9e2a86759862eaaa4a9ead Mon Sep 17 00:00:00 2001 From: Shiji Yang Date: Mon, 19 May 2025 07:25:27 +0800 Subject: [PATCH] mediatek: filogic: fix flash node name dtc warnings Correct dts node name based on reg property to fix the following dtc warnings: mt7981-rfb-spim-nand.dtso:20.25-67.6: Warning (spi_bus_reg): /fragment@1/__overlay__/spi_nand@0: SPI bus unit address format error, expected "1" mt7986a-rfb-spim-nand.dts:41.23-76.4: Warning (spi_bus_reg): /soc/spi@1100a000/spi_nand@0: SPI bus unit address format error, expected "1" ../dts/mt7981a-comfast-cf-e393ax.dts:135.23-206.4: Warning (spi_bus_reg): /soc/spi@1100a000/spi_nand@0: SPI bus unit address format error, expected "1" ../dts/mt7981b-openwrt-one.dts:305.10-342.4: Warning (spi_bus_reg): /soc/spi@1100a000/flash@0: SPI bus unit address format error, expected "1" ../dts/mt7986a-zyxel-ex5601-t0-common.dtsi:166.30-180.4: Warning (spi_bus_reg): /soc/spi@1100a000/spi_nand@0: SPI bus unit address format error, expected "1" Signed-off-by: Shiji Yang --- target/linux/mediatek/dts/mt7981a-comfast-cf-e393ax.dts | 2 +- target/linux/mediatek/dts/mt7981b-openwrt-one.dts | 2 +- target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-common.dtsi | 2 +- .../arch/arm64/boot/dts/mediatek/mt7981-rfb-spim-nand.dtso | 2 +- .../arch/arm64/boot/dts/mediatek/mt7986a-rfb-spim-nand.dts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/target/linux/mediatek/dts/mt7981a-comfast-cf-e393ax.dts b/target/linux/mediatek/dts/mt7981a-comfast-cf-e393ax.dts index 6ff061b1e9c..22e48259e3a 100644 --- a/target/linux/mediatek/dts/mt7981a-comfast-cf-e393ax.dts +++ b/target/linux/mediatek/dts/mt7981a-comfast-cf-e393ax.dts @@ -132,7 +132,7 @@ #address-cells = <1>; #size-cells = <0>; - spi_nand: spi_nand@0 { + spi_nand: spi_nand@1 { #address-cells = <1>; #size-cells = <1>; compatible = "spi-nand"; diff --git a/target/linux/mediatek/dts/mt7981b-openwrt-one.dts b/target/linux/mediatek/dts/mt7981b-openwrt-one.dts index 584b4821792..77de6775a98 100644 --- a/target/linux/mediatek/dts/mt7981b-openwrt-one.dts +++ b/target/linux/mediatek/dts/mt7981b-openwrt-one.dts @@ -302,7 +302,7 @@ #size-cells = <0>; status = "okay"; - flash@0 { + flash@1 { #address-cells = <1>; #size-cells = <1>; compatible = "spi-nand"; diff --git a/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-common.dtsi b/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-common.dtsi index 682cf66e835..f714509f503 100644 --- a/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-common.dtsi +++ b/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-common.dtsi @@ -163,7 +163,7 @@ #size-cells = <0>; status = "okay"; - spi_nand: spi_nand@0 { + spi_nand: spi_nand@1 { #address-cells = <1>; #size-cells = <1>; compatible = "spi-nand"; diff --git a/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7981-rfb-spim-nand.dtso b/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7981-rfb-spim-nand.dtso index ab53f96cde8..af4845ec6cf 100644 --- a/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7981-rfb-spim-nand.dtso +++ b/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7981-rfb-spim-nand.dtso @@ -17,7 +17,7 @@ #address-cells = <1>; #size-cells = <0>; - spi_nand: spi_nand@0 { + spi_nand: spi_nand@1 { #address-cells = <1>; #size-cells = <1>; compatible = "spi-nand"; diff --git a/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7986a-rfb-spim-nand.dts b/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7986a-rfb-spim-nand.dts index ce007099d2b..479a5ca2fc4 100644 --- a/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7986a-rfb-spim-nand.dts +++ b/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7986a-rfb-spim-nand.dts @@ -9,7 +9,7 @@ &spi0 { status = "okay"; - spi_nand: spi_nand@0 { + spi_nand: spi_nand@1 { #address-cells = <1>; #size-cells = <1>; compatible = "spi-nand";