From 96adba2768fe953f903e4ace1d20fef069ab8a89 Mon Sep 17 00:00:00 2001 From: Shiji Yang Date: Mon, 19 May 2025 08:12:56 +0800 Subject: [PATCH] mediatek: filogic: fix SPI node reg size dtc warnings Add missing #address-cells and #size-cells to fix the following dtc warnings: ../dts/mt7981b-cmcc-rax3000m-nand.dtso:67.5-15: Warning (reg_format): /fragment@4/__overlay__/spi_nand@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) mt7988a-rfb-snfi-nand.dtso:20.5-15: Warning (reg_format): /fragment@0/__overlay__/flash@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) mt7988a-rfb-spim-nand.dtso:22.5-15: Warning (reg_format): /fragment@0/__overlay__/flash@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) mt7988a-rfb-spim-nor.dtso:31.5-15: Warning (reg_format): /fragment@0/__overlay__/flash@0:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) Signed-off-by: Shiji Yang --- target/linux/mediatek/dts/mt7981b-cmcc-rax3000m-nand.dtso | 2 ++ .../arch/arm64/boot/dts/mediatek/mt7988a-rfb-snfi-nand.dtso | 2 ++ .../arch/arm64/boot/dts/mediatek/mt7988a-rfb-spim-nand.dtso | 2 ++ .../arch/arm64/boot/dts/mediatek/mt7988a-rfb-spim-nor.dtso | 2 ++ 4 files changed, 8 insertions(+) diff --git a/target/linux/mediatek/dts/mt7981b-cmcc-rax3000m-nand.dtso b/target/linux/mediatek/dts/mt7981b-cmcc-rax3000m-nand.dtso index fded878332e..de9ab0e6ff9 100644 --- a/target/linux/mediatek/dts/mt7981b-cmcc-rax3000m-nand.dtso +++ b/target/linux/mediatek/dts/mt7981b-cmcc-rax3000m-nand.dtso @@ -56,6 +56,8 @@ fragment@4 { target = <&spi0>; __overlay__ { + #address-cells = <1>; + #size-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&spi0_flash_pins>; status = "okay"; diff --git a/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7988a-rfb-snfi-nand.dtso b/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7988a-rfb-snfi-nand.dtso index 86b0042f647..428f9c2e92c 100644 --- a/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7988a-rfb-snfi-nand.dtso +++ b/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7988a-rfb-snfi-nand.dtso @@ -13,6 +13,8 @@ fragment@0 { target = <&snand>; __overlay__ { + #address-cells = <1>; + #size-cells = <0>; status = "okay"; flash@0 { diff --git a/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7988a-rfb-spim-nand.dtso b/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7988a-rfb-spim-nand.dtso index 02ecedda72e..ba083b63176 100644 --- a/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7988a-rfb-spim-nand.dtso +++ b/target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7988a-rfb-spim-nand.dtso @@ -13,6 +13,8 @@ fragment@0 { target = <&spi0>; __overlay__ { + #address-cells = <1>; + #size-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&spi0_flash_pins>; status = "okay"; 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 08d67cfc8b6..702502b52e4 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 @@ -13,6 +13,8 @@ fragment@0 { target = <&spi2>; __overlay__ { + #address-cells = <1>; + #size-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&spi2_flash_pins>; status = "okay";