From 10f27c6f00ecfe75fa5a0a5817f3d66f15f847ea Mon Sep 17 00:00:00 2001 From: DENG Qingfang Date: Wed, 1 Apr 2020 11:19:12 +0800 Subject: ramips: mt7621: add new NAND driver Add new NAND driver for MT7621 Signed-off-by: DENG Qingfang --- target/linux/ramips/dts/mt7621.dtsi | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'target/linux/ramips/dts') diff --git a/target/linux/ramips/dts/mt7621.dtsi b/target/linux/ramips/dts/mt7621.dtsi index cc387519e4..63befa1fdc 100644 --- a/target/linux/ramips/dts/mt7621.dtsi +++ b/target/linux/ramips/dts/mt7621.dtsi @@ -414,13 +414,23 @@ }; }; + nficlock: nficlock { + #clock-cells = <0>; + compatible = "fixed-clock"; + + clock-frequency = <125000000>; + }; + nand: nand@1e003000 { status = "disabled"; - compatible = "mtk,mt7621-nand"; - bank-width = <2>; + compatible = "mediatek,mt7621-nfc"; reg = <0x1e003000 0x800 0x1e003800 0x800>; + reg-names = "nfi", "ecc"; + + clocks = <&nficlock>; + clock-names = "nfi_clk"; }; ethsys: syscon@1e000000 { -- cgit v1.2.3