Browse Source

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 <[email protected]>
Shiji Yang 7 months ago
parent
commit
bc0be15e8d

+ 1 - 1
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";

+ 1 - 1
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";

+ 1 - 1
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";

+ 1 - 1
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";

+ 1 - 1
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";