diff mbox series

[v6,5/5] arm64: dts: mediatek: add mtk-snfi for mt7622

Message ID 20220424032527.673605-6-gch981213@gmail.com (mailing list archive)
State New, archived
Headers show
Series spi: add support for Mediatek SPI-NAND controller | expand

Commit Message

Chuanhong Guo April 24, 2022, 3:25 a.m. UTC
This patch adds a device-tree node for the MTK SPI-NAND Flash Interface
for MT7622 device tree.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
---
Changes since v1:
  1. use the newly introduced nand-ecc-engine instead
  2. reword commit message
Change in v2-v6: none

 arch/arm64/boot/dts/mediatek/mt7622.dtsi | 12 ++++++++++++
 1 file changed, 12 insertions(+)

Comments

Matthias Brugger April 29, 2022, 2:07 p.m. UTC | #1
On 24/04/2022 05:25, Chuanhong Guo wrote:
> This patch adds a device-tree node for the MTK SPI-NAND Flash Interface
> for MT7622 device tree.
> 
> Signed-off-by: Chuanhong Guo <gch981213@gmail.com>

Applied, thanks!

> ---
> Changes since v1:
>    1. use the newly introduced nand-ecc-engine instead
>    2. reword commit message
> Change in v2-v6: none
> 
>   arch/arm64/boot/dts/mediatek/mt7622.dtsi | 12 ++++++++++++
>   1 file changed, 12 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
> index f232f8baf4e8..8c2563a3919a 100644
> --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
> @@ -545,6 +545,18 @@ nandc: nfi@1100d000 {
>   		status = "disabled";
>   	};
>   
> +	snfi: spi@1100d000 {
> +		compatible = "mediatek,mt7622-snand";
> +		reg = <0 0x1100d000 0 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@1100e000 {
>   		compatible = "mediatek,mt7622-ecc";
>   		reg = <0 0x1100e000 0 0x1000>;
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
index f232f8baf4e8..8c2563a3919a 100644
--- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
@@ -545,6 +545,18 @@  nandc: nfi@1100d000 {
 		status = "disabled";
 	};
 
+	snfi: spi@1100d000 {
+		compatible = "mediatek,mt7622-snand";
+		reg = <0 0x1100d000 0 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@1100e000 {
 		compatible = "mediatek,mt7622-ecc";
 		reg = <0 0x1100e000 0 0x1000>;