From: Akash Gajjar <gajjar04akash@gmail.com>
To: icenowy@aosc.xyz
Cc: Akash Gajjar <Akash_Gajjar@mentor.com>,
Maxime Ripard <maxime.ripard@bootlin.com>,
Chen-Yu Tsai <wens@csie.org>, Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will.deacon@arm.com>,
linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH] arm64: activate spi flash on pine64 LTS board
Date: Sun, 22 Jul 2018 21:16:49 +0530 [thread overview]
Message-ID: <1532274409-9921-1-git-send-email-Akash_Gajjar@mentor.com> (raw)
In-Reply-To: <Akash_Gajjar@mentor.com>
This board has a 128M SPI flash. add spi flash support in device tree.
Tested on pine64 LTS.
Signed-off-by: Akash Gajjar <Akash_Gajjar@mentor.com>
---
.../dts/allwinner/sun50i-a64-sopine-baseboard.dts | 23 ++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts
index abe179d..d54637d 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts
@@ -134,6 +134,29 @@
regulator-name = "vcc-wifi";
};
+&spi0 {
+ status = "okay";
+
+ m25p80@0 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "w25q128";
+ reg = <0x0>;
+ linux,modalias = "m25p80", "w25q128";
+ spi-max-frequency = <40000000>;
+
+ uboot@0 {
+ label = "uboot";
+ reg = <0x0 0x100000>;
+ };
+
+ rootfs@0 {
+ label = "rootfs";
+ reg = <0x100000 0x7F00000>;
+ };
+ };
+};
+
&uart0 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_pins_a>;
--
2.7.4
next reply other threads:[~2018-07-22 15:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-22 15:46 Akash Gajjar [this message]
2018-07-24 12:51 ` [PATCH] arm64: activate spi flash on pine64 LTS board Maxime Ripard
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=1532274409-9921-1-git-send-email-Akash_Gajjar@mentor.com \
--to=gajjar04akash@gmail.com \
--cc=Akash_Gajjar@mentor.com \
--cc=catalin.marinas@arm.com \
--cc=devicetree@vger.kernel.org \
--cc=icenowy@aosc.xyz \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=maxime.ripard@bootlin.com \
--cc=robh+dt@kernel.org \
--cc=wens@csie.org \
--cc=will.deacon@arm.com \
/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).