From: Geert Uytterhoeven <geert@linux-m68k.org>
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 4/7] ARM: shmobile: lager dts: Add QSPI nodes
Date: Mon, 10 Feb 2014 10:47:30 +0000 [thread overview]
Message-ID: <1392029254-15400-5-git-send-email-geert@linux-m68k.org> (raw)
In-Reply-To: <1392029254-15400-1-git-send-email-geert@linux-m68k.org>
From: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
Add pinctrl and SPI devices for QSPI on Lager.
Add Spansion s25fl512s SPI FLASH and MTD partitions.
Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
Cc: devicetree@vger.kernel.org
Cc: linux-spi@vger.kernel.org
---
arch/arm/boot/dts/r8a7790-lager.dts | 36 +++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts
index 1081c5e91ac4..adff2dc4012d 100644
--- a/arch/arm/boot/dts/r8a7790-lager.dts
+++ b/arch/arm/boot/dts/r8a7790-lager.dts
@@ -80,6 +80,11 @@
renesas,groups = "mmc1_data8", "mmc1_ctrl";
renesas,function = "mmc1";
};
+
+ qspi_pins: spi {
+ renesas,groups = "qspi_ctrl", "qspi_data4";
+ renesas,function = "qspi";
+ };
};
&mmcif1 {
@@ -95,3 +100,34 @@
&sata1 {
status = "okay";
};
+
+&spi {
+ pinctrl-0 = <&qspi_pins>;
+ pinctrl-names = "default";
+
+ status = "okay";
+
+ flash: flash@0 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "spansion,s25fl512s";
+ reg = <0>;
+ spi-max-frequency = <30000000>;
+ m25p,fast-read;
+
+ partition@0 {
+ label = "loader";
+ reg = <0x00000000 0x00040000>;
+ read-only;
+ };
+ partition@40000 {
+ label = "user";
+ reg = <0x00040000 0x00400000>;
+ read-only;
+ };
+ partition@440000 {
+ label = "flash";
+ reg = <0x00440000 0x03bc0000>;
+ };
+ };
+};
--
1.7.9.5
next prev parent reply other threads:[~2014-02-10 10:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-10 10:47 [PATCH 0/7] ARM: shmobile: r8a7790/Lager QSPI SoC/board integration Geert Uytterhoeven
2014-02-10 10:47 ` [PATCH 1/7] pinctrl: sh-pfc: r8a7790: Add QSPI pin groups Geert Uytterhoeven
2014-02-10 12:48 ` Laurent Pinchart
2014-02-10 12:58 ` Geert Uytterhoeven
2014-02-10 10:47 ` [PATCH 2/7] ARM: shmobile: lager legacy: Add QSPI pinmux Geert Uytterhoeven
2014-02-10 10:47 ` [PATCH 3/7] ARM: shmobile: r8a7790 dtsi: Add QSPI node Geert Uytterhoeven
2014-02-10 10:47 ` Geert Uytterhoeven [this message]
2014-02-10 10:47 ` [PATCH 5/7] ARM: shmobile: lager defconfig: Enable RSPI and MTD_M25P80 Geert Uytterhoeven
2014-02-10 10:47 ` [PATCH 6/7] ARM: shmobile: lager legacy: Enable Quad SPI transfers for the SPI FLASH Geert Uytterhoeven
2014-02-10 10:47 ` [PATCH 7/7] ARM: shmobile: lager dts: " Geert Uytterhoeven
2014-02-12 5:01 ` [PATCH 0/7] ARM: shmobile: r8a7790/Lager QSPI SoC/board integration Magnus Damm
2014-02-13 5:34 ` Simon Horman
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=1392029254-15400-5-git-send-email-geert@linux-m68k.org \
--to=geert@linux-m68k.org \
--cc=linux-arm-kernel@lists.infradead.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).