Received: by 10.223.185.116 with SMTP id b49csp2110445wrg; Sat, 17 Feb 2018 12:28:41 -0800 (PST) X-Google-Smtp-Source: AH8x226iRft81q0etlSFkG72RETkSNdTaRzKLPr/W5xRa/8L7OTZU/+NtjNxoqmQtqteqoXeGglV X-Received: by 2002:a17:902:684a:: with SMTP id f10-v6mr5529146pln.129.1518899321162; Sat, 17 Feb 2018 12:28:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518899321; cv=none; d=google.com; s=arc-20160816; b=jmiFaV7yoFIxOTp2q0mY5RiNkKkEvsStaGv6PB03QsyaELI4iKJV1yzCP8FCp7C492 SP486yyRyrGplWx0wN4njkBm6W3z7bNKnT7uG1nBpZjrl8JTPdr9zA2PG6MUYDp4+5di sFhJtifxXGlSAZV3RKA/gfJaXFuclKs7F7bpewbbRbIDisvxj9Rnh+iC1IwEKUDpi1W9 cg3S1Q8UahY7rjb5e7H4dGL0Q3oswC71tsImvpYVVFj0sX8o+I5udyPa2spQ6R4NH/dk wMHCiCUmldeYvZkoHqRKic5lvR+sZsmTKQzQEL242gczk2vz2PSFFzqKj03rX0vBtx6b xjCw== 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=bwTcpaWLRJPSRs4Ww7pPpKqpLMPrSaigIGimGNid6+U=; b=YrMHYktcja2sfRkmmeFrMPejRTGAVf00zY3+qfBgwzwt7KOWUR5yJ7a0rXJvRMkuz0 EUooQM9VCbPeO9vLFAZ+VeQGaT7btDsaZodLGUvm2t/AUZAZBMG2p+mp+N2RJbOhw0Dc YNShhF9oYoQesurvAAsnnUPwvtmhialTJfHH2ZdGLVIHQPo4cC3uUTgwy/f1JIeWA43f OSmBV+Bcl+8zrVAXqKTu4tETOJeVajTdrpUCsVo8OHTIMNEqZFxnpw8QlURGMUGKX5Be oIp8zPwmf9tjoEH6DbIY85ldO0Yk0gg05sU2y8vqCUdW4G1H3lyPEnq+YeyT7msd7AjR 5+aA== 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 33-v6si3527189plg.227.2018.02.17.12.28.12; Sat, 17 Feb 2018 12:28:41 -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 S1751338AbeBQTzL (ORCPT + 99 others); Sat, 17 Feb 2018 14:55:11 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:12839 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751262AbeBQTzH (ORCPT ); Sat, 17 Feb 2018 14:55:07 -0500 X-UUID: 6cbca4c73a3742d29940b2bfc2b1b734-20180218 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 932947591; Sun, 18 Feb 2018 03:55:03 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Sun, 18 Feb 2018 03:55:02 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Sun, 18 Feb 2018 03:55:02 +0800 From: To: , , , , CC: , , Sean Wang , RogerCC Lin , Guochun Mao Subject: [PATCH v3 09/15] arm64: dts: mt7622: add flash related device nodes Date: Sun, 18 Feb 2018 03:54:44 +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 ba6a79c..48c5ba4 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 448cd36..d287d75 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi @@ -468,6 +468,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