Received: by 10.223.176.5 with SMTP id f5csp467138wra; Tue, 6 Feb 2018 01:59:06 -0800 (PST) X-Google-Smtp-Source: AH8x227qTwz2X/6jyIlSVQdpy9ABaV90UZgtaksW4u7q7F+N63S+EdOkx+C2OGRAdDrI0405zv2L X-Received: by 10.98.30.1 with SMTP id e1mr1876253pfe.37.1517911146484; Tue, 06 Feb 2018 01:59:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517911146; cv=none; d=google.com; s=arc-20160816; b=xp55t7hNkbPqqMu3Vt/TxbPAiMKSTvneS8K+qKjeum3rlZnV5122Z0VfMZ0OzmdTAp QaB2vVPnGPDsfhanx2M5VN1mMmgT3sIwq1xowAJljo2SgGXxJ24qQimUe9HbNU5fOFZn /OuTqSg+w3SVrulDCAJio1oquC+dk18pWJ8ZvzQFbhNHGU61TVGtvNVwcu38oiExNj3F Hi50XfQm8vBUBxJirHbeYAMw6ticPCxvp27N5gYF0lXLS+kiLBkwC869gMtjvLay9N5l 57x0EXNOezguBxmRUuqXWcER4DLqJBk/k+N5/gn97T2ikEBoxgMFLG23JzcGToMk3+wt tTFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=KEGvayvtgLY1jdWeoh0jtT3DuYV/ujmU4gT1VNgA+YE=; b=eTxNpWj8bBQAWcA89wopCnwRtYhC/npOztKgWIt7sL7o2+RGSSaTR04J6MzaTFwuaI IezJMV0F4WIf+vzBWwrBVffUyKBpwfK3CLbagnNIxW8nju6YozAlD7lvxt9aSXNWYHEO +enm9hcSvFh7m98RQqL0nzIqxuNCzlxj9kK6Ta3MiGKTSa+ot7N39hOeJFpOJGvVtB3v FZYxa6+52/BxGu5ujGvcNH6RpDwKHMVGKcFMWAj6nIvW1XJk8q0pZqlrjrwZQIjPkINZ ZALbL2y9PPIeV9+DqQAWo8Qc9dOkB5qx5Xf9S5scurUS1vsr7fklFHmQpndNJ3wyvdZ3 8Wrw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b84si962957pfj.183.2018.02.06.01.58.51; Tue, 06 Feb 2018 01:59:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752772AbeBFJz6 (ORCPT + 99 others); Tue, 6 Feb 2018 04:55:58 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:27950 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752678AbeBFJx0 (ORCPT ); Tue, 6 Feb 2018 04:53:26 -0500 X-UUID: 230c5455847341a687e34d13c47706fd-20180206 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 930671048; Tue, 06 Feb 2018 17:53:23 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 6 Feb 2018 17:53:22 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Tue, 6 Feb 2018 17:53:22 +0800 From: To: , , , , CC: , , Sean Wang , RogerCC Lin , Guochun Mao Subject: [PATCH v2 09/16] arm64: dts: mt7622: add flash related device nodes Date: Tue, 6 Feb 2018 17:52:58 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sean Wang add nodes for NOR flash, parallel Nand flash with error correction code support. Signed-off-by: Sean Wang Cc: RogerCC Lin Cc: Guochun Mao --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 21 +++++++++++++++++ arch/arm64/boot/dts/mediatek/mt7622.dtsi | 34 ++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts index 2a2247b..59a9c36 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts +++ b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts @@ -235,6 +235,10 @@ }; }; +&bch { + status = "disabled"; +}; + &btif { status = "okay"; }; @@ -257,6 +261,23 @@ status = "okay"; }; +&nandc { + pinctrl-names = "default"; + pinctrl-0 = <¶llel_nand_pins>; + status = "disabled"; +}; + +&nor_flash { + pinctrl-names = "default"; + pinctrl-0 = <&spi_nor_pins>; + status = "disabled"; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + }; +}; + &pwm { pinctrl-names = "default"; pinctrl-0 = <&pwm7_pins>; diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi index 2330ddc..9e11baf 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi @@ -395,6 +395,40 @@ status = "disabled"; }; + nandc: nfi@1100d000 { + compatible = "mediatek,mt7622-nfc"; + reg = <0 0x1100D000 0 0x1000>; + interrupts = ; + clocks = <&pericfg CLK_PERI_NFI_PD>, + <&pericfg CLK_PERI_SNFI_PD>; + clock-names = "nfi_clk", "pad_clk"; + ecc-engine = <&bch>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + bch: ecc@1100e000 { + compatible = "mediatek,mt7622-ecc"; + reg = <0 0x1100e000 0 0x1000>; + interrupts = ; + clocks = <&pericfg CLK_PERI_NFIECC_PD>; + clock-names = "nfiecc_clk"; + status = "disabled"; + }; + + nor_flash: spi@11014000 { + compatible = "mediatek,mt7622-nor", + "mediatek,mt8173-nor"; + reg = <0 0x11014000 0 0xe0>; + clocks = <&pericfg CLK_PERI_FLASH_PD>, + <&topckgen CLK_TOP_FLASH_SEL>; + clock-names = "spi", "sf"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + spi1: spi@11016000 { compatible = "mediatek,mt7622-spi"; reg = <0 0x11016000 0 0x100>; -- 2.7.4