Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933387AbbGHUXQ (ORCPT ); Wed, 8 Jul 2015 16:23:16 -0400 Received: from mail-qk0-f169.google.com ([209.85.220.169]:34165 "EHLO mail-qk0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754548AbbGHUWE (ORCPT ); Wed, 8 Jul 2015 16:22:04 -0400 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 Cc: stefan@agner.ch, linux@arm.linux.org.uk, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mtd@lists.infradead.org, andrew@lunn.ch, Cory Tusar 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> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2081 Lines: 77 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"; -- 2.3.6 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/