From patchwork Wed Jul 8 20:21:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cory Tusar X-Patchwork-Id: 6751091 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 48166C05AC for ; Wed, 8 Jul 2015 20:25:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6B84B20670 for ; Wed, 8 Jul 2015 20:25:03 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8E29A20668 for ; Wed, 8 Jul 2015 20:25:02 +0000 (UTC) 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 1ZCvsB-0002ip-Gg; Wed, 08 Jul 2015 20:23:15 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZCvrQ-00020T-J0 for linux-arm-kernel@bombadil.infradead.org; Wed, 08 Jul 2015 20:22:28 +0000 Received: from mail-qg0-f46.google.com ([209.85.192.46]) by merlin.infradead.org with esmtps (Exim 4.85 #2 (Red Hat Linux)) id 1ZCvrP-0005iQ-A2 for linux-arm-kernel@lists.infradead.org; Wed, 08 Jul 2015 20:22:27 +0000 Received: by qgef3 with SMTP id f3so55982982qge.0 for ; Wed, 08 Jul 2015 13:22:03 -0700 (PDT) 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=fYbFeyGfyQhsz+qF+9kypdNv2ufUH6vmRg4wtC9SFbc=; b=QNljTdjvtpWwb+H7kMCkUcl75txOyH9OEFa59MOI3ROD57lHDRVEPTHtl27b+EwF6J lCuhoHBnZ1tXLM5ovIECPI75KVKteAZjpc78RWkTedgwSwXNTwEQualdCOY0/bsI5IP5 iAHfF/LMHGvetsg4iYiI+CeVh0F9Nxu6BzweZdvZ8FYY/1m6WC75FZycZvdtFq46kzx0 EZNkZt5DtNmUO8VyzKOlwDuOuX2bHIXPGUw3xdgI70FrvUnL0fTLdF4FpPgTAN/hURKv KdhwrkDUNzI8mZy0WSXwfTL3oLqhhqjRmtiV8/l66udob8OaudocXZE8oiAoHCYaYJJX H7nA== X-Gm-Message-State: ALoCoQntPy9j8Jr9OZ/qha1Eoc+Un8PRO9CPToffc8zoxHi+sQ3N8JW//EU9cTTTTKx8d555ej7A X-Received: by 10.140.218.198 with SMTP id o189mr19848422qhb.47.1436386923575; Wed, 08 Jul 2015 13:22:03 -0700 (PDT) Received: from ctusar.lan (c-71-58-209-198.hsd1.pa.comcast.net. [71.58.209.198]) by smtp.gmail.com with ESMTPSA id q22sm1803184qkh.35.2015.07.08.13.22.01 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 08 Jul 2015 13:22:02 -0700 (PDT) From: Cory Tusar To: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, shawnguo@kernel.org, kernel@pengutronix.de, han.xu@freescale.com, dwmw2@infradead.org, computersforpeace@gmail.com Subject: [PATCH v1 7/7] ARM: dts: vf610-twr: Enable QSPI and map flash devices. Date: Wed, 8 Jul 2015 16:21:21 -0400 Message-Id: <1436386881-28088-8-git-send-email-cory.tusar@pid1solutions.com> X-Mailer: git-send-email 2.3.6 In-Reply-To: <1436386881-28088-1-git-send-email-cory.tusar@pid1solutions.com> References: <1436386881-28088-1-git-send-email-cory.tusar@pid1solutions.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150708_162227_421239_3760375F X-CRM114-Status: GOOD ( 11.81 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux@arm.linux.org.uk, andrew@lunn.ch, linux-kernel@vger.kernel.org, stefan@agner.ch, linux-mtd@lists.infradead.org, Cory Tusar , linux-arm-kernel@lists.infradead.org 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.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, 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 This commit enables the qspi0 functional block, and maps the two flash devices connected to QSPI0_A_CS0 and QSPI0_B_CS0 to individual MTD devices. Tested using mtd_readtest, mtd_speedtest, and mtd_stresstest on a Rev. H TWR board. Signed-off-by: Cory Tusar --- arch/arm/boot/dts/vf610-twr.dts | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm/boot/dts/vf610-twr.dts b/arch/arm/boot/dts/vf610-twr.dts index 375ab23..6ae2e7c 100644 --- a/arch/arm/boot/dts/vf610-twr.dts +++ b/arch/arm/boot/dts/vf610-twr.dts @@ -246,6 +246,23 @@ >; }; + pinctrl_qspi0: qspi0grp { + fsl,pins = < + VF610_PAD_PTD0__QSPI0_A_QSCK 0x31e2 + VF610_PAD_PTD1__QSPI0_A_CS0 0x31e2 + VF610_PAD_PTD2__QSPI0_A_DATA3 0x31e3 + VF610_PAD_PTD3__QSPI0_A_DATA2 0x31e3 + VF610_PAD_PTD4__QSPI0_A_DATA1 0x31e3 + VF610_PAD_PTD5__QSPI0_A_DATA0 0x31e3 + VF610_PAD_PTD7__QSPI0_B_QSCK 0x31e2 + VF610_PAD_PTD8__QSPI0_B_CS0 0x31e2 + VF610_PAD_PTD9__QSPI0_B_DATA3 0x31e3 + VF610_PAD_PTD10__QSPI0_B_DATA2 0x31e3 + VF610_PAD_PTD11__QSPI0_B_DATA1 0x31e3 + VF610_PAD_PTD12__QSPI0_B_DATA0 0x31e3 + >; + }; + pinctrl_sai2: sai2grp { fsl,pins = < VF610_PAD_PTA16__SAI2_TX_BCLK 0x02ed @@ -280,6 +297,28 @@ status = "okay"; }; +&qspi0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_qspi0>; + status = "okay"; + + flash0: s25fl128s@0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "spansion,s25fl128s"; + spi-max-frequency = <66000000>; + reg = <0>; + }; + + flash1: s25fl128s@2 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "spansion,s25fl128s"; + spi-max-frequency = <66000000>; + reg = <2>; + }; +}; + &sai2 { #sound-dai-cells = <0>; pinctrl-names = "default";