From: Sergey Matyukevich <geomatsi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Maxime Ripard
<maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>,
Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>
Cc: Icenowy Zheng <icenowy-h8G6r0blFSE@public.gmane.org>,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
Sergey Matyukevich
<geomatsi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: [PATCH 2/2] ARM: dts: orange-pi-zero: enable SPI NOR
Date: Sat, 20 May 2017 00:35:50 +0300 [thread overview]
Message-ID: <20170519213550.8434-3-geomatsi@gmail.com> (raw)
In-Reply-To: <20170519213550.8434-1-geomatsi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Enable SPI NOR on orange-pi-zero board.
For more information see:
- http://linux-sunxi.org/Orange_Pi_Zero#SPI_NOR_flash
Signed-off-by: Sergey Matyukevich <geomatsi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
index 34e4a5a80136..fe39e96cee65 100644
--- a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
+++ b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
@@ -177,3 +177,19 @@
status = "okay";
usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
};
+
+&spi0 {
+ status = "okay";
+
+ flash@0 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "mxicy,mx25l1606e", "winbond,w25q128";
+ reg = <0>;
+ spi-max-frequency = <40000000>;
+
+ partition@00000000 {
+ reg = <0x00000000 0x200000>; /* 2Mb */
+ };
+ };
+};
--
2.11.0
--
To unsubscribe from this list: send the line "unsubscribe devicetree" 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:[~2017-05-19 21:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-19 21:35 [PATCH 0/2] orange-pi-zero: minor updates for board peripherals Sergey Matyukevich
[not found] ` <20170519213550.8434-1-geomatsi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-05-19 21:35 ` [PATCH 1/2] ARM: dts: orange-pi-zero: interrupt triggering for XR819 WiFi chip Sergey Matyukevich
[not found] ` <20170519213550.8434-2-geomatsi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-05-22 7:49 ` Maxime Ripard
[not found] ` <20170522074917.msy3sypver3kai5p-ZC1Zs529Oq4@public.gmane.org>
2017-05-22 19:49 ` Sergey Matyukevich
2017-05-19 21:35 ` Sergey Matyukevich [this message]
[not found] ` <20170519213550.8434-3-geomatsi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-05-22 9:29 ` [PATCH 2/2] ARM: dts: orange-pi-zero: enable SPI NOR Maxime Ripard
[not found] ` <20170522092900.7v2mg5zkbt6eclhr-ZC1Zs529Oq4@public.gmane.org>
2017-05-22 20:30 ` Sergey Matyukevich
[not found] ` <20170522203012.k2f2kizp5jkiliq7-tVm4GcgtBpsfMUw/CLfKLg@public.gmane.org>
2017-05-24 6:35 ` 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=20170519213550.8434-3-geomatsi@gmail.com \
--to=geomatsi-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=icenowy-h8G6r0blFSE@public.gmane.org \
--cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
--cc=maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org \
--cc=wens-jdAy2FN1RRM@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).