2022-08-07 10:06:56 +00:00
|
|
|
From 4c1803cc08b1618d935c1386f43f43a4e9c97697 Mon Sep 17 00:00:00 2001
|
2021-02-20 13:04:38 +00:00
|
|
|
From: Weijie Gao <weijie.gao@mediatek.com>
|
|
|
|
Date: Wed, 3 Mar 2021 10:51:43 +0800
|
2022-08-07 10:06:56 +00:00
|
|
|
Subject: [PATCH 54/71] board: mt7622: use new spi-nand driver
|
2021-02-20 13:04:38 +00:00
|
|
|
|
|
|
|
Enable new spi-nand driver support for mt7622_rfb_defconfig
|
|
|
|
|
|
|
|
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
|
|
|
|
---
|
|
|
|
arch/arm/dts/mt7622-rfb.dts | 7 +++++++
|
|
|
|
arch/arm/dts/mt7622.dtsi | 16 ++++++++++++++++
|
|
|
|
configs/mt7622_rfb_defconfig | 5 +++++
|
|
|
|
3 files changed, 28 insertions(+)
|
|
|
|
|
|
|
|
--- a/arch/arm/dts/mt7622-rfb.dts
|
|
|
|
+++ b/arch/arm/dts/mt7622-rfb.dts
|
2022-08-07 10:06:56 +00:00
|
|
|
@@ -196,6 +196,13 @@
|
2021-02-20 13:04:38 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
+&snand {
|
|
|
|
+ pinctrl-names = "default";
|
|
|
|
+ pinctrl-0 = <&snfi_pins>;
|
|
|
|
+ status = "okay";
|
|
|
|
+ quad-spi;
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
&uart0 {
|
2022-08-07 10:06:56 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
2021-02-20 13:04:38 +00:00
|
|
|
--- a/arch/arm/dts/mt7622.dtsi
|
|
|
|
+++ b/arch/arm/dts/mt7622.dtsi
|
2022-08-07 10:06:56 +00:00
|
|
|
@@ -77,6 +77,22 @@
|
2021-02-20 13:04:38 +00:00
|
|
|
#size-cells = <0>;
|
|
|
|
};
|
|
|
|
|
|
|
|
+ snand: snand@1100d000 {
|
|
|
|
+ compatible = "mediatek,mt7622-snand";
|
|
|
|
+ reg = <0x1100d000 0x1000>,
|
|
|
|
+ <0x1100e000 0x1000>;
|
|
|
|
+ reg-names = "nfi", "ecc";
|
|
|
|
+ clocks = <&pericfg CLK_PERI_NFI_PD>,
|
|
|
|
+ <&pericfg CLK_PERI_SNFI_PD>,
|
|
|
|
+ <&pericfg CLK_PERI_NFIECC_PD>;
|
|
|
|
+ clock-names = "nfi_clk", "pad_clk", "ecc_clk";
|
|
|
|
+ assigned-clocks = <&topckgen CLK_TOP_AXI_SEL>,
|
|
|
|
+ <&topckgen CLK_TOP_NFI_INFRA_SEL>;
|
|
|
|
+ assigned-clock-parents = <&topckgen CLK_TOP_SYSPLL1_D2>,
|
|
|
|
+ <&topckgen CLK_TOP_UNIVPLL2_D8>;
|
|
|
|
+ status = "disabled";
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
snor: snor@11014000 {
|
|
|
|
compatible = "mediatek,mtk-snor";
|
|
|
|
reg = <0x11014000 0x1000>;
|
|
|
|
--- a/configs/mt7622_rfb_defconfig
|
|
|
|
+++ b/configs/mt7622_rfb_defconfig
|
2023-01-13 03:13:24 +00:00
|
|
|
@@ -21,6 +21,7 @@ CONFIG_SYS_MAXARGS=8
|
2022-10-18 13:28:53 +00:00
|
|
|
CONFIG_SYS_PBSIZE=1049
|
2021-02-20 13:04:38 +00:00
|
|
|
CONFIG_CMD_BOOTMENU=y
|
|
|
|
CONFIG_CMD_MMC=y
|
|
|
|
+CONFIG_CMD_MTD=y
|
|
|
|
CONFIG_CMD_PCI=y
|
|
|
|
CONFIG_CMD_SF_TEST=y
|
|
|
|
CONFIG_CMD_PING=y
|
2023-04-11 23:21:22 +00:00
|
|
|
@@ -40,6 +41,10 @@ CONFIG_SYSCON=y
|
2021-08-19 02:57:00 +00:00
|
|
|
CONFIG_CLK=y
|
2021-02-20 13:04:38 +00:00
|
|
|
CONFIG_MMC_HS200_SUPPORT=y
|
|
|
|
CONFIG_MMC_MTK=y
|
|
|
|
+CONFIG_MTD=y
|
|
|
|
+CONFIG_DM_MTD=y
|
|
|
|
+CONFIG_MTK_SPI_NAND=y
|
|
|
|
+CONFIG_MTK_SPI_NAND_MTD=y
|
|
|
|
CONFIG_DM_SPI_FLASH=y
|
|
|
|
CONFIG_SPI_FLASH_EON=y
|
|
|
|
CONFIG_SPI_FLASH_GIGADEVICE=y
|