From: Sourav Poddar <sourav.poddar-l0cyMroinI0@public.gmane.org>
To: computersforpeace-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: balbi-l0cyMroinI0@public.gmane.org,
linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
bcousson-rdvid1DuHRBWk0Htik3J/w@public.gmane.org,
Sourav Poddar <sourav.poddar-l0cyMroinI0@public.gmane.org>
Subject: [PATCH 15/17] arm: dts: dra7: Add qspi device.
Date: Tue, 26 Nov 2013 13:05:11 +0530 [thread overview]
Message-ID: <1385451313-1875-16-git-send-email-sourav.poddar@ti.com> (raw)
In-Reply-To: <1385451313-1875-1-git-send-email-sourav.poddar-l0cyMroinI0@public.gmane.org>
These add device tree entry for qspi controller driver on dra7.
Signed-off-by: Sourav Poddar <sourav.poddar-l0cyMroinI0@public.gmane.org>
---
arch/arm/boot/dts/dra7-evm.dts | 32 ++++++++++++++++++++++++++++++++
arch/arm/boot/dts/dra7.dtsi | 13 +++++++++++++
2 files changed, 45 insertions(+), 0 deletions(-)
diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts/dra7-evm.dts
index 5babba0..2c8753a 100644
--- a/arch/arm/boot/dts/dra7-evm.dts
+++ b/arch/arm/boot/dts/dra7-evm.dts
@@ -93,6 +93,21 @@
0x24c (PIN_INPUT_SLEW | MUX_MODE0) /* uart3_txd */
>;
};
+
+ qspi1_pins: pinmux_qspi1_pins {
+ pinctrl-single,pins = <
+ 0x4c 0x40001 /* gpmc_a3.qspi1_cs2 */
+ 0x50 0x40001 /* gpmc_a4.qspi1_cs3 */
+ 0x74 0x40001 /* gpmc_a13.qspi1_rtclk */
+ 0x78 0x40001 /* gpmc_a14.qspi1_d3 */
+ 0x7c 0x40001 /* gpmc_a15.qspi1_d2 */
+ 0x80 0x40001 /* gpmc_a16.qspi1_d1 */
+ 0x84 0x40001 /* gpmc_a17.qspi1_d0 */
+ 0x88 0x40001 /* qpmc_a18.qspi1_sclk */
+ 0xb8 0x60001 /* gpmc_cs2.qspi1_cs0 */
+ 0xbc 0x60001 /* gpmc_cs3.qspi1_cs1 */
+ >;
+ };
};
&i2c1 {
@@ -273,3 +288,20 @@
&cpu0 {
cpu0-supply = <&smps123_reg>;
};
+
+&qspi {
+ status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&qspi1_pins>;
+
+ spi-max-frequency = <48000000>;
+ m25p80@0 {
+ compatible = "s25fl256s1";
+ spi-max-frequency = <48000000>;
+ reg = <0>;
+ spi-tx-bus-width = <1>;
+ spi-rx-bus-width = <4>;
+ spi-cpol;
+ spi-cpha;
+ };
+};
diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi
index 67275c8..b06d899 100644
--- a/arch/arm/boot/dts/dra7.dtsi
+++ b/arch/arm/boot/dts/dra7.dtsi
@@ -582,6 +582,19 @@
dma-names = "tx0", "rx0";
status = "disabled";
};
+
+ qspi: qspi@4b300000 {
+ compatible = "ti,dra7xxx-qspi";
+ reg = <0x4b300000 0x100>, <0x4a002558 0x4>,
+ <0x5c000000 0x3ffffff>;
+ reg-names = "qspi_base", "qspi_ctrlmod", "qspi_mmap";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ ti,hwmods = "qspi";
+ num-cs = <4>;
+ interrupts = <0 124 0x4>;
+ status = "disabled";
+ };
};
clocks {
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2013-11-26 7:35 UTC|newest]
Thread overview: 55+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-26 7:34 [PATCH 00/17] Add memory mapped support for ti qspi, m25p80 serial flash Sourav Poddar
2013-11-26 7:34 ` [PATCH 03/17] spi/qspi: parse register by name Sourav Poddar
2013-11-26 10:30 ` Mark Brown
[not found] ` <20131126103029.GY14725-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-11-26 11:17 ` Sourav Poddar
2013-11-26 12:24 ` Mark Brown
2013-11-28 4:45 ` Sourav Poddar
[not found] ` <5296CA5A.90304-l0cyMroinI0@public.gmane.org>
2013-11-28 10:54 ` Mark Brown
[not found] ` <20131128105423.GL14725-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-11-28 10:58 ` Sourav Poddar
[not found] ` <529721BF.4010902-l0cyMroinI0@public.gmane.org>
2013-11-28 11:11 ` Mark Brown
[not found] ` <20131128111152.GN14725-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-11-28 11:19 ` Sourav Poddar
2013-11-26 7:35 ` [PATCH 07/17] spi/qspi: configure set up register for memory map Sourav Poddar
[not found] ` <1385451313-1875-1-git-send-email-sourav.poddar-l0cyMroinI0@public.gmane.org>
2013-11-26 7:34 ` [PATCH 01/17] spi/spi.h: Add get_buf/put_buf support in spi master Sourav Poddar
[not found] ` <1385451313-1875-2-git-send-email-sourav.poddar-l0cyMroinI0@public.gmane.org>
2013-11-26 12:38 ` Mark Brown
2013-11-26 7:34 ` [PATCH 02/17] spi/spi.h: Add configure from slave support Sourav Poddar
[not found] ` <1385451313-1875-3-git-send-email-sourav.poddar-l0cyMroinI0@public.gmane.org>
2013-11-26 10:29 ` Mark Brown
[not found] ` <20131126102951.GX14725-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-11-26 11:21 ` Sourav Poddar
[not found] ` <52948451.3060706-l0cyMroinI0@public.gmane.org>
2013-11-26 12:21 ` Mark Brown
2013-11-28 4:47 ` Sourav Poddar
[not found] ` <5296CAEA.3030002-l0cyMroinI0@public.gmane.org>
2013-11-28 10:55 ` Mark Brown
2013-11-26 7:35 ` [PATCH 04/17] spi/qspi: parse control module register Sourav Poddar
2013-11-26 10:31 ` Mark Brown
[not found] ` <20131126103104.GZ14725-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-11-26 11:18 ` Sourav Poddar
[not found] ` <529483A2.3080000-l0cyMroinI0@public.gmane.org>
2013-11-26 12:25 ` Mark Brown
[not found] ` <20131126122512.GD14725-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-11-26 12:38 ` Sourav Poddar
2013-11-26 12:55 ` Mark Brown
2013-11-26 13:00 ` Sourav Poddar
2013-11-26 13:19 ` Mark Brown
[not found] ` <20131126131927.GN14725-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-11-26 13:20 ` Sourav Poddar
2013-11-26 7:35 ` [PATCH 05/17] spi/qspi: parse memory map register Sourav Poddar
2013-11-26 7:35 ` [PATCH 06/17] spi/qspi: Add support to switc to memory mapped operation Sourav Poddar
2013-11-26 12:57 ` Mark Brown
2013-11-28 4:39 ` Sourav Poddar
2013-11-26 7:35 ` [PATCH 08/17] spi/qspi: Add api for get_buf/put_buf Sourav Poddar
2013-11-26 7:35 ` [PATCH 09/17] spi/spi.h: Add "mem" variable in spi master Sourav Poddar
2013-11-26 13:01 ` Mark Brown
[not found] ` <20131126130119.GH14725-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-11-26 13:05 ` Sourav Poddar
[not found] ` <52949C9F.10008-l0cyMroinI0@public.gmane.org>
2013-11-26 13:20 ` Mark Brown
[not found] ` <20131126132051.GO14725-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-11-28 4:38 ` Sourav Poddar
2013-11-26 7:35 ` [PATCH 12/17] spi/qspi: convert driver to enable/disable memory mapped Sourav Poddar
2013-11-26 13:11 ` Mark Brown
2013-11-28 5:24 ` Sourav Poddar
2013-11-28 10:49 ` Mark Brown
[not found] ` <20131128104922.GK14725-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-11-28 11:08 ` Sourav Poddar
[not found] ` <5297242B.3040807-l0cyMroinI0@public.gmane.org>
2013-11-28 11:59 ` Mark Brown
2013-11-28 12:02 ` Sourav Poddar
2013-11-26 7:35 ` [PATCH 13/17] drivers: mtd: m25p80: Add api to configure master register Sourav Poddar
2013-11-26 7:35 ` [PATCH 14/17] drivers: mtd: m25p80: Adapt driver to support memory mapped read Sourav Poddar
2013-11-26 7:35 ` Sourav Poddar [this message]
2013-11-26 7:35 ` [PATCH 17/17] Documentation: bindings: ti-qspi: update binding information Sourav Poddar
2013-11-26 7:35 ` [PATCH 10/17] spi/spi.h: Add mmap flag in spi master Sourav Poddar
2013-11-26 7:35 ` [PATCH 11/17] spi/qspi: set "mmap" flag to true Sourav Poddar
[not found] ` <1385451313-1875-12-git-send-email-sourav.poddar-l0cyMroinI0@public.gmane.org>
2013-11-26 13:10 ` Mark Brown
[not found] ` <20131126131029.GI14725-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-11-26 13:11 ` Sourav Poddar
2013-11-26 7:35 ` [PATCH 16/17] arm: dts: am43x-epos: Add qspi device Sourav Poddar
2013-12-05 9:09 ` [PATCH 00/17] Add memory mapped support for ti qspi, m25p80 serial flash Sourav Poddar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1385451313-1875-16-git-send-email-sourav.poddar@ti.com \
--to=sourav.poddar-l0cymroini0@public.gmane.org \
--cc=balbi-l0cyMroinI0@public.gmane.org \
--cc=bcousson-rdvid1DuHRBWk0Htik3J/w@public.gmane.org \
--cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=computersforpeace-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).