From patchwork Fri Jan 15 10:35:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Izard X-Patchwork-Id: 568022 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FA40140BFD for ; Fri, 15 Jan 2016 21:37:54 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=zNU7uu5L; dkim-atps=neutral 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 1aK1jv-0004So-Ub; Fri, 15 Jan 2016 10:36:19 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aK1jY-0004BA-3R for linux-mtd@lists.infradead.org; Fri, 15 Jan 2016 10:35:58 +0000 Received: by mail-wm0-x242.google.com with SMTP id f206so2145223wmf.2 for ; Fri, 15 Jan 2016 02:35:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=1/HCeHdQwKzvecfTSqpjY0d2+ItCk2Sa0QNRJEmgLCs=; b=zNU7uu5LuZ1Je/zCqVSZ6HrLSnteBDQOaS0WZS6eTueWrqT/4h9YpEfOLgqJM//LHM kCvcji4IUcAjTX+GqK2Y6UQ2t/sbIZkfBX9fqA/9XE8dyVpZJWSAcqFuDxtycW55ycQU +mJT5ShSaoB9DlMn1BePe4Ivw4pLydKVzPKn7JV1vjqBEWVezLV9s5ZXH29hqSD03Gj1 ylMqcA9pOgUITb3inIMKVciLdnPdElpQW9e6HAkPERiB0+OScxGLY74vR02YSCZzDHlg FRxB0zte+sEt+k5dH6tyT7x5OwbRtLG8448yikSTPl+1dR11B0DotawBFhrGbewil2yU +XkQ== 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=1/HCeHdQwKzvecfTSqpjY0d2+ItCk2Sa0QNRJEmgLCs=; b=GDkEcDed/2efySWuueIpMITWUicf44PyE75g71Rj9Zinfw13/i/ZXYRJ+Hcu1ULnqt iW+4tSDo14/0W1Iq1rvDEwcvZJ45I3AOIhfLGbIEGY3iXE0UJOMmbss8pH6EIdrUtOxL kQCfF9Xwnx5VEXqOGIylnlrlYHIb3dGHhWlhcjOA1GEb1y0dZWTcOczi/Epn53+HeMXJ LQAbbklV9RpsWymej3zamSaYrHAzkkbk3MKwpyjuFLc1WbvJcjaYMTwQdCFnXoN0ePAy kKLd5w31tlLZkIzAJLu5/C7nu0MbMXTZ7LFzu1H3ATGRD9RUfSXxf8VTASIcAiC0G1bW sH7w== X-Gm-Message-State: AG10YOTiG6xxqUYWaWenk+6MOereKrxRHMZ2b0xzLKwB0lZkFLcVBXMsJLMuI2rRKSKTxg== X-Received: by 10.28.5.213 with SMTP id 204mr2501911wmf.20.1452854137373; Fri, 15 Jan 2016 02:35:37 -0800 (PST) Received: from localhost.localdomain (ram94-11-88-187-113-157.fbx.proxad.net. [88.187.113.157]) by smtp.gmail.com with ESMTPSA id w1sm1945189wmd.2.2016.01.15.02.35.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 15 Jan 2016 02:35:36 -0800 (PST) From: Romain Izard To: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH v2 8/8] ARM: at91/dt: sama5d2: add nand0 and nfc0 nodes Date: Fri, 15 Jan 2016 11:35:02 +0100 Message-Id: <1452854102-6125-9-git-send-email-romain.izard.pro@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1452854102-6125-1-git-send-email-romain.izard.pro@gmail.com> References: <1452854102-6125-1-git-send-email-romain.izard.pro@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160115_023556_476935_AB9EA948 X-CRM114-Status: UNSURE ( 9.79 ) 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 [2a00:1450:400c:c09:0:0:0:242 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (romain.izard.pro[at]gmail.com) -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: Josh Wu , Romain Izard , Nicolas Ferre , Yang Wenyou MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Both nodes are required to access NAND Flash memory. Additional settings will be necessary at the board level to use it. Signed-off-by: Romain Izard --- v2: Fix device address, hexadecimal with minuscules arch/arm/boot/dts/sama5d2.dtsi | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi index 4dfca8fc49b3..6715296ba0f7 100644 --- a/arch/arm/boot/dts/sama5d2.dtsi +++ b/arch/arm/boot/dts/sama5d2.dtsi @@ -263,6 +263,44 @@ cache-level = <2>; }; + nand0: nand@80000000 { + compatible = "atmel,sama5d2-nand"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + reg = < /* EBI CS3 */ + 0x80000000 0x08000000 + /* SMC PMECC regs */ + 0xf8014070 0x00000490 + /* SMC PMECC Error Location regs */ + 0xf8014500 0x00000200 + /* ROM Galois tables */ + 0x00040000 0x00018000 + >; + interrupts = <17 IRQ_TYPE_LEVEL_HIGH 6>; + atmel,nand-addr-offset = <21>; + atmel,nand-cmd-offset = <22>; + atmel,nand-has-dma; + atmel,has-pmecc; + atmel,pmecc-lookup-table-offset = <0x0 0x8000>; + status = "disabled"; + + nfc@c0000000 { + compatible = "atmel,sama5d4-nfc"; + #address-cells = <1>; + #size-cells = <1>; + reg = < /* NFC Command Registers */ + 0xc0000000 0x08000000 + /* NFC HSMC regs */ + 0xf8014000 0x00000070 + /* NFC SRAM banks */ + 0x00100000 0x00100000 + >; + clocks = <&hsmc_clk>; + atmel,write-by-sram; + }; + }; + sdmmc0: sdio-host@a0000000 { compatible = "atmel,sama5d2-sdhci"; reg = <0xa0000000 0x300>;