[PATCH] arm: dts: mediatek: add mtk-snfi for mt7629

Chuanhong Guo gch981213 at gmail.com
Sat Apr 30 09:34:52 PDT 2022


This patch adds device-tree nodes for the MTK SPI-NAND Flash Interface
to mt7629 device tree.

Signed-off-by: Chuanhong Guo <gch981213 at gmail.com>
---
 arch/arm/boot/dts/mt7629.dtsi | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/arch/arm/boot/dts/mt7629.dtsi b/arch/arm/boot/dts/mt7629.dtsi
index 46fc236e1b89..6f231e2ed68f 100644
--- a/arch/arm/boot/dts/mt7629.dtsi
+++ b/arch/arm/boot/dts/mt7629.dtsi
@@ -286,6 +286,27 @@ spi: spi at 1100a000 {
 			status = "disabled";
 		};
 
+		snfi: spi at 1100d000 {
+			compatible = "mediatek,mt7629-snand";
+			reg = <0x1100d000 0x1000>;
+			interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_LOW>;
+			clocks = <&pericfg CLK_PERI_NFI_PD>, <&pericfg CLK_PERI_SNFI_PD>;
+			clock-names = "nfi_clk", "pad_clk";
+			nand-ecc-engine = <&bch>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		bch: ecc at 1100e000 {
+			compatible = "mediatek,mt7622-ecc";
+			reg = <0x1100e000 0x1000>;
+			interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_LOW>;
+			clocks = <&pericfg CLK_PERI_NFIECC_PD>;
+			clock-names = "nfiecc_clk";
+			status = "disabled";
+		};
+
 		qspi: spi at 11014000 {
 			compatible = "mediatek,mt7629-nor",
 				     "mediatek,mt8173-nor";
-- 
2.35.1




More information about the Linux-mediatek mailing list