From patchwork Wed Mar 2 17:00:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 63403 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp2491127lbc; Wed, 2 Mar 2016 09:01:41 -0800 (PST) X-Received: by 10.66.62.169 with SMTP id z9mr39639530par.139.1456938101296; Wed, 02 Mar 2016 09:01:41 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id 89si8939103pfp.25.2016.03.02.09.01.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Mar 2016 09:01:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1abA91-0003UU-ME; Wed, 02 Mar 2016 17:01:03 +0000 Received: from mail-io0-x22e.google.com ([2607:f8b0:4001:c06::22e]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1abA8w-0003Iv-1f for linux-mtd@lists.infradead.org; Wed, 02 Mar 2016 17:00:59 +0000 Received: by mail-io0-x22e.google.com with SMTP id n190so62966923iof.0 for ; Wed, 02 Mar 2016 09:00:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=gnzbBMCE/aIzvND2vnZv692Xi6g7QLHHqAdclONLOLw=; b=Y1TWUGKBhNGPaFQJS7xj+D8tjKKG+ok4oEntLCQD5o6taf9BrlYb0qzaLwulxWt7KU iEfdklt0k3GSgQkSO5Y5C5SSnJ3bAu6iddH+vtFkrZz22qeOFAGdDD0T1UbfI7P5aLxW lkACfSMCD/JsKPA9dD3U81SR5Es/yhqDlWfT4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=gnzbBMCE/aIzvND2vnZv692Xi6g7QLHHqAdclONLOLw=; b=jB98l5y4s9/vDK1S8BlQQMuafRMYwF+eCZnFda+YVoktWEsx+MC+FaB/s2d/JPfvjT 19hP3KiK37mBD63uwfaxQ9mUVs/Y/bB9SNhkzXtEGH1qw2H7iS2AthyvHE7x8cBMP4Xa 8EXS+bAiWsAZBs6lst4z+wv62URn/SqhnpQ7la5isP0M5Pp/FkWh7ssP3uFkPF8oRTOR Hrei7I1kg0Dk+BU6KX5AUJskTGutpUZvjFII0325JOAXBTbkHMq7nds69ZioJ0pSE9+o NSSozAjauOs9Digjiyn6mLyl0ebiQYQJ4YiUky0qOiUwL5zoJlUcYnSVBjJv7GaMwGRu dFXA== X-Gm-Message-State: AG10YOQRkTH4ueGq6Z+e/F6rbs/LeA4/hKUqoFabyhK3QmB51Ze9XjfqS59CYEuKZU1LgeC6 X-Received: by 10.107.132.12 with SMTP id g12mr31986439iod.145.1456938036963; Wed, 02 Mar 2016 09:00:36 -0800 (PST) Received: from localhost.localdomain (cpe-67-253-128-196.rochester.res.rr.com. [67.253.128.196]) by smtp.gmail.com with ESMTPSA id m32sm14969255ioi.41.2016.03.02.09.00.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Mar 2016 09:00:36 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez-ortiz@linaro.org, dwmw2@infradead.org, computersforpeace@gmail.com, matthias.bgg@gmail.com, robh@kernel.org Subject: [PATCH 3/3] mtd: mediatek: device tree enable NAND in MTK's 2701 evb Date: Wed, 2 Mar 2016 12:00:13 -0500 Message-Id: <1456938013-8819-4-git-send-email-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1456938013-8819-1-git-send-email-jorge.ramirez-ortiz@linaro.org> References: <1456938013-8819-1-git-send-email-jorge.ramirez-ortiz@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160302_090058_220447_15709692 X-CRM114-Status: UNSURE ( 8.70 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:4001:c06:0:0:0:22e listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: boris.brezillon@free-electrons.com, daniel.thompson@linaro.org, linux-mtd@lists.infradead.org, xiaolei.li@mediatek.com MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org MTK's SoC 2701 implements a Smart Device Gen1 type of NAND controller. Signed-off-by: Jorge Ramirez-Ortiz --- arch/arm/boot/dts/mt2701-evb.dts | 4 ++++ arch/arm/boot/dts/mt2701.dtsi | 12 ++++++++++++ 2 files changed, 16 insertions(+) -- 2.1.4 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/arch/arm/boot/dts/mt2701-evb.dts b/arch/arm/boot/dts/mt2701-evb.dts index 082ca88..296e148 100644 --- a/arch/arm/boot/dts/mt2701-evb.dts +++ b/arch/arm/boot/dts/mt2701-evb.dts @@ -27,3 +27,7 @@ &uart0 { status = "okay"; }; + +&nand { + status = "okay"; +}; diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi index 3766904..6191c75 100644 --- a/arch/arm/boot/dts/mt2701.dtsi +++ b/arch/arm/boot/dts/mt2701.dtsi @@ -143,4 +143,16 @@ clocks = <&uart_clk>; status = "disabled"; }; + + nand: nfi@1100d000 { + compatible = "mediatek,mt2701-nfc"; + reg = <0 0x1100d000 0 0x1000>, <0 0x1100e000 0 0x1000>; + interrupts = , + ; + clocks = <&pericfg CLK_PERI_NFI>, <&pericfg CLK_PERI_NFI_ECC>, + <&pericfg CLK_PERI_NFI_PAD>; + clock-names = "nfi_clk", "nfiecc_clk", "pad_clk"; + nand-on-flash-bbt; + status = "disabled"; + }; };