From patchwork Wed Jul 1 20:20:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cory Tusar X-Patchwork-Id: 6706581 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id EE10A9F38C for ; Wed, 1 Jul 2015 20:25:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 191EF20796 for ; Wed, 1 Jul 2015 20:25:20 +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 416B620793 for ; Wed, 1 Jul 2015 20:25:19 +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 1ZAOXb-0004vl-BL; Wed, 01 Jul 2015 20:23:31 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZAOX1-0004MX-Rb for linux-arm-kernel@bombadil.infradead.org; Wed, 01 Jul 2015 20:22:56 +0000 Received: from mail-qk0-f169.google.com ([209.85.220.169]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZAOWy-0003eB-G8 for linux-arm-kernel@lists.infradead.org; Wed, 01 Jul 2015 20:22:54 +0000 Received: by qkbp125 with SMTP id p125so38052616qkb.2 for ; Wed, 01 Jul 2015 13:22:31 -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=MIOz6jy0N2ukBfOgk1W7aTz0OczH3JroeLBUkS7IrYCydmdZAqhkRFe5v1wAS9pfnX Q+c+iucvkZgi0jlr4kyrXWSlm9lmEBvdCTrU+PW7CyzaP96gghEQuV8+vW4AsNnW0YyT p3L+VJcMBcA3LFYXSLBf1R8EST2WmbJAGyvZg7Q0AMmIn10X8JFQtSbWFQBo0K7/tx4b qDKzpGqrojKJoIxBTrgkmIBd+AU9c1iMffcHGGweZPncWHz59jvC4fK3O8H8oBuyvsb+ k+jUHhHWBESq0RFHComD5oT/lGT+wI/ZPWBnHK8Cbt0F3Z2BkeLZb8k7Jq3+vE4C4SB1 8SKw== X-Gm-Message-State: ALoCoQnk21cSReX9oairIT4xj106PmMU12mUHzyJ4r2CNpvw7QQgJw5QRZBxe2J8LB428EZvgg5U X-Received: by 10.140.51.106 with SMTP id t97mr36804624qga.44.1435782150968; Wed, 01 Jul 2015 13:22:30 -0700 (PDT) Received: from ctusar.lan (c-71-58-209-198.hsd1.pa.comcast.net. [71.58.209.198]) by mx.google.com with ESMTPSA id y11sm1592506qky.42.2015.07.01.13.22.28 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Jul 2015 13:22:30 -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: [RFC PATCH 7/7] ARM: dts: vf610-twr: Enable QSPI and map flash devices. Date: Wed, 1 Jul 2015 16:20:10 -0400 Message-Id: <1435782010-9809-9-git-send-email-cory.tusar@pid1solutions.com> X-Mailer: git-send-email 2.3.6 In-Reply-To: <1435782010-9809-1-git-send-email-cory.tusar@pid1solutions.com> References: <1435782010-9809-1-git-send-email-cory.tusar@pid1solutions.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150701_212252_643060_BAF507E7 X-CRM114-Status: GOOD ( 12.35 ) 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.8 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";