From patchwork Wed Jan 29 14:34:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris BREZILLON X-Patchwork-Id: 3551771 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 50A21C02DC for ; Wed, 29 Jan 2014 14:44:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6C72320155 for ; Wed, 29 Jan 2014 14:44:33 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A8BAB2015A for ; Wed, 29 Jan 2014 14:44:28 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W8WK0-0005Ot-EU; Wed, 29 Jan 2014 14:41:04 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W8WHX-0005Ul-Hj; Wed, 29 Jan 2014 14:38:23 +0000 Received: from mail-ee0-f45.google.com ([74.125.83.45]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W8WEV-0004yg-6y; Wed, 29 Jan 2014 14:35:21 +0000 Received: by mail-ee0-f45.google.com with SMTP id b15so936820eek.32 for ; Wed, 29 Jan 2014 06:34:53 -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=77QvxRbKqEoBs21d+OO7ZYSatbnDkmhXF01sq8NWzm4=; b=KC8+tNUiJvpjkrywTadt4rpZS9rWFtgKzczqi16fXTVglWofSa5lBRP4QPuj9e9Ta4 MVv4wQ/h3bjHkkRdUAs3bCvHmr0HtERg1J06LPTbJd2MsVTo1K/MX3X0q7/n0vkz6Auv r3EJkuLsGyL+lWZsItoFv9wLZA71jP1HI+uPMQnNG6EjR0vCDCng4H0lqrwKQ1R5N/T+ Ey2MPKfN6bVFtu+E7EWpaMMqB4X46Xhi7pMJMQY3dNCqHaJWFe40vkElmDuZCg+X9INz NbNkD88M2mNYcGwRc8WUBwoJvn2iGCUMlPAXZQ5l3k469eBolJwznb4LBWr95msmKfBX uT+Q== X-Received: by 10.14.220.193 with SMTP id o41mr10189437eep.22.1391006093244; Wed, 29 Jan 2014 06:34:53 -0800 (PST) Received: from bbrezillon-laptop.int.overkiz.com ([80.245.18.66]) by mx.google.com with ESMTPSA id o43sm9435426eef.12.2014.01.29.06.34.51 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 29 Jan 2014 06:34:52 -0800 (PST) From: Boris BREZILLON To: Maxime Ripard , Rob Landley , Russell King , David Woodhouse , Grant Likely , Brian Norris , Jason Gunthorpe , Arnd Bergmann Subject: [RFC PATCH v2 12/14] ARM: sunxi/dt: enable NAND on cubietruck board Date: Wed, 29 Jan 2014 15:34:22 +0100 Message-Id: <1391006064-28890-13-git-send-email-b.brezillon.dev@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1391006064-28890-1-git-send-email-b.brezillon.dev@gmail.com> References: <1391006064-28890-1-git-send-email-b.brezillon.dev@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140129_093515_434351_E22D4F9E X-CRM114-Status: UNSURE ( 9.85 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) Cc: devicetree@vger.kernel.org, Boris BREZILLON , linux-doc@vger.kernel.org, dev@linux-sunxi.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Enable the NFC and describe the NAND flash connected to this controller. Signed-off-by: Boris BREZILLON --- arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts index 8a1009d..031de97 100644 --- a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts +++ b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts @@ -19,6 +19,37 @@ compatible = "cubietech,cubietruck", "allwinner,sun7i-a20"; soc@01c00000 { + nfc: nand@01c03000 { + pinctrl-names = "default"; + pinctrl-0 = <&nand_pins_a &nand_cs0_pins_a &nand_rb0_pins_a>; + status = "okay"; + + nand@0 { + #address-cells = <1>; + #size-cells = <1>; + reg = <0>; + allwinner,rb = <0>; + nand-ecc-mode = "soft_bch"; + + /* nand timings */ + tCLS-min = <6>; + tCLH-min = <3>; + tCS-min = <20>; + tCH-min = <5>; + tWP-min = <8>; + tWH-min = <6>; + tALS-min = <6>; + tDS-min = <6>; + tDH-min = <2>; + tRR-min = <20>; + tALH-min = <3>; + tRP-min = <8>; + tREH-min = <6>; + tRC-min = <16>; + tWC-min = <16>; + }; + }; + pinctrl@01c20800 { led_pins_cubietruck: led_pins@0 { allwinner,pins = "PH7", "PH11", "PH20", "PH21";