aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/sunxi/patches-4.14/081-arm64-dts-allwinner-sun50i-a64-Add-spi-flash-node-fo.patch
diff options
context:
space:
mode:
authorOskari Lemmela <oskari@lemmela.net>2019-01-14 19:54:23 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2019-01-26 23:11:49 +0100
commit538127cf981e0f7f71a75b365d95575b0f7263e1 (patch)
tree2f4a14f6cb4e40ae44aa9626c0cb8dda4aa515f1 /target/linux/sunxi/patches-4.14/081-arm64-dts-allwinner-sun50i-a64-Add-spi-flash-node-fo.patch
parent72102b11b819c2b76237376f0688a8bd068afba9 (diff)
downloadupstream-538127cf981e0f7f71a75b365d95575b0f7263e1.tar.gz
upstream-538127cf981e0f7f71a75b365d95575b0f7263e1.tar.bz2
upstream-538127cf981e0f7f71a75b365d95575b0f7263e1.zip
sunxi: spi flash dts changes
Backport A64 SPI flash DTS changes to 4.14 kernel. Add Openwrt specific flash partitions to Sopine. Signed-off-by: Oskari Lemmela <oskari@lemmela.net>
Diffstat (limited to 'target/linux/sunxi/patches-4.14/081-arm64-dts-allwinner-sun50i-a64-Add-spi-flash-node-fo.patch')
-rw-r--r--target/linux/sunxi/patches-4.14/081-arm64-dts-allwinner-sun50i-a64-Add-spi-flash-node-fo.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/target/linux/sunxi/patches-4.14/081-arm64-dts-allwinner-sun50i-a64-Add-spi-flash-node-fo.patch b/target/linux/sunxi/patches-4.14/081-arm64-dts-allwinner-sun50i-a64-Add-spi-flash-node-fo.patch
new file mode 100644
index 0000000000..c975823447
--- /dev/null
+++ b/target/linux/sunxi/patches-4.14/081-arm64-dts-allwinner-sun50i-a64-Add-spi-flash-node-fo.patch
@@ -0,0 +1,41 @@
+From 4661c3afefe900ff7b5004aca0a2c927cfa37f3b Mon Sep 17 00:00:00 2001
+From: Emmanuel Vadot <manu@freebsd.org>
+Date: Mon, 21 May 2018 13:54:13 +0200
+Subject: [PATCH] arm64: dts: allwinner: sun50i: a64: Add spi flash node for
+ sopine
+
+The Sopine and Pine64-LTS have a winbond w25q128 spi flash on spi0.
+Add a node for it.
+
+Signed-off-by: Emmanuel Vadot <manu@freebsd.org>
+Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
+---
+ arch/arm64/boot/dts/allwinner/sun50i-a64-sopine.dtsi | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine.dtsi
+index 43418bd881d8..b94f93c04acb 100644
+--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine.dtsi
++++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine.dtsi
+@@ -66,6 +66,18 @@
+ };
+ };
+
++&spi0 {
++ status = "okay";
++
++ flash@0 {
++ #address-cells = <1>;
++ #size-cells = <1>;
++ compatible = "jedec,spi-nor";
++ reg = <0>;
++ spi-max-frequency = <40000000>;
++ };
++};
++
+ #include "axp803.dtsi"
+
+ &reg_aldo2 {
+--
+2.17.1
+