From patchwork Wed Feb 10 09:56:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Izard X-Patchwork-Id: 581366 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 4D89014090A for ; Wed, 10 Feb 2016 20:59:05 +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=eE6YyxA9; 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 1aTRWd-0004uq-K4; Wed, 10 Feb 2016 09:57:31 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aTRWA-0004Pw-3c for linux-mtd@lists.infradead.org; Wed, 10 Feb 2016 09:57:05 +0000 Received: by mail-wm0-x243.google.com with SMTP id p63so3081018wmp.1 for ; Wed, 10 Feb 2016 01:56:41 -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=ErcgN3PQsFEXP5Z+KV7PyF1uE4H0s+u5hw4CnUWmtKM=; b=eE6YyxA9WRuYX+CYyPRPkv9Xq1db0YL2LY9GQJPXoYjVr10uch42ncYpPc8L81xDi4 8XSMc+Ihg75EJRmFanuwGOU1bWtT9L4uvl9Ycqf5VxEoc9mpcdI5WyRFmu+5x2GQg3H1 atnwH0kaO2s4TZLLnhb5Ne+ta3SYahAoFRKZU8Okan0rry9ouYGrRiDTTlNEnJIbIXo7 XsrfY0tjuksoJzEE0nrLERuOvCuF568++Yf7AHF5T7861hd04RK/EJJIWzfnzt27ttno +tw7+tYWri7zHRef+i1IGPzOXsWXWdttCIcArojeI0K+uI/0gqn1OcX3UoJ7c35y8uUy bOVA== 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=ErcgN3PQsFEXP5Z+KV7PyF1uE4H0s+u5hw4CnUWmtKM=; b=b7eplNzT4k+bX8OqD8BEZ5kXQYbUATPN198Nw1kyO7jTdZg3isrzFWsQ/J5R0odt8N XSbdChLGKytQtwmJfsXqTRiaFb/Ga5XPs8dSCxs+ratRy7Yk/E5X52lASQI0NXYSrpJY SYqhbKG7/C+qRMWoLEedSWQuSv6r/1Ojz9f2ukPegtRbVvssGI1lMUtsdpuwIVMDSukC phfy3FfRfa3UqtH9JqjYrqOdcuNHCyOODe7CHZhlzqek0UMQYfJBTZsrfjQP4SO6NYQc Vy18v45jnj1iZDqycJ4ZPL7hPtyktYqYA+MU1JcPrL5n2gMtceCRWw+Ww3dA1Xx0HqmF Z3ng== X-Gm-Message-State: AG10YORQ0KGQpry1AAwch+bo6y4kVz9q5H35ulZI4OnX30mfwEl+4VyaLy/g2XM466MaTA== X-Received: by 10.194.91.233 with SMTP id ch9mr24080991wjb.121.1455098200702; Wed, 10 Feb 2016 01:56:40 -0800 (PST) Received: from localhost.localdomain (146.187.3.109.rev.sfr.net. [109.3.187.146]) by smtp.gmail.com with ESMTPSA id c185sm21577602wma.5.2016.02.10.01.56.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Feb 2016 01:56:39 -0800 (PST) From: Romain Izard To: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, Brian Norris Subject: [PATCH v4 5/5] ARM: at91/dt: sama5d2: add nand0 and nfc0 nodes Date: Wed, 10 Feb 2016 10:56:27 +0100 Message-Id: <1455098187-9442-6-git-send-email-romain.izard.pro@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1455098187-9442-1-git-send-email-romain.izard.pro@gmail.com> References: <1455098187-9442-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-20160210_015702_655917_C55F8E41 X-CRM114-Status: UNSURE ( 9.59 ) 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:243 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 Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 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: Rob Herring , Boris Brezillon , Josh Wu , Nicolas Ferre , Yang Wenyou , Romain Izard 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. Tested-by: Wenyou Yang Reviewed-by: Boris Brezillon Signed-off-by: Romain Izard Acked-by: Nicolas Ferre --- v4: collect Tested-by and Reviewed-by tags v3: no change 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 3f750f6170f2..484bd8ea6602 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>;