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 v2 2/2] ARM: dts: orange-pi-zero: add node for SPI NOR
Date: Thu, 25 May 2017 00:24:33 +0300 [thread overview]
Message-ID: <20170524212433.14386-3-geomatsi@gmail.com> (raw)
In-Reply-To: <20170524212433.14386-1-geomatsi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
SPI NOR flash was optional in the first production batch in Dec 2016.
In later batches flash chip was pre-populated. However there should
be quite a few boards around which do not have flash chip.
Add node for SPI NOR flash on orange-pi-zero board. Disable this node
by default and leave it to users to enable it if their board has
SPI NOR flash chip populated.
Signed-off-by: Sergey Matyukevich <geomatsi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts | 13 +++++++++++++
1 file changed, 13 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 e97dfd1775d1..bbbd8c656914 100644
--- a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
+++ b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
@@ -138,6 +138,19 @@
bias-pull-up;
};
+&spi0 {
+ /* Disable SPI NOR by default: it optional on Orange Pi Zero boards */
+ status = "disabled";
+
+ flash@0 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "mxicy,mx25l1606e", "winbond,w25q128";
+ reg = <0>;
+ spi-max-frequency = <40000000>;
+ };
+};
+
&ohci0 {
status = "okay";
};
--
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-24 21:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-24 21:24 [PATCH v2 0/2] orange-pi-zero: minor updates for peripherals Sergey Matyukevich
[not found] ` <20170524212433.14386-1-geomatsi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-05-24 21:24 ` [PATCH v2 1/2] ARM: dts: orange-pi-zero: specify wifi interrupts Sergey Matyukevich
[not found] ` <20170524212433.14386-2-geomatsi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-05-25 2:57 ` Chen-Yu Tsai
[not found] ` <CAGb2v647GTQW9-ZYrkWS7RoeYTu_7oTm8v4PDs0YD1pZ8oUohQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-05-25 7:10 ` Sergey Matyukevich
[not found] ` <20170525071055.xdd4sbpnzlkg7wa2-tVm4GcgtBpsfMUw/CLfKLg@public.gmane.org>
2017-05-25 7:21 ` Chen-Yu Tsai
[not found] ` <CAGb2v671hWDaTqCAJiN0JAuiPynW+=XtN+Xr5WiyTPDSkk9-FQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-05-25 8:16 ` Icenowy Zheng
2017-05-25 8:38 ` Sergey Matyukevich
2017-05-25 8:31 ` Sergey Matyukevich
2017-05-24 21:24 ` Sergey Matyukevich [this message]
[not found] ` <20170524212433.14386-3-geomatsi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-05-25 2:53 ` [PATCH v2 2/2] ARM: dts: orange-pi-zero: add node for SPI NOR Chen-Yu Tsai
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=20170524212433.14386-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).