From: Kuldeep Singh <kuldeep.singh@nxp•com>
To: "shawnguo@kernel•org" <shawnguo@kernel•org>,
"devicetree@vger•kernel.org" <devicetree@vger•kernel.org>,
"linux-arm-kernel@lists•infradead.org"
<linux-arm-kernel@lists•infradead.org>,
"linux-mtd@lists•infradead.org" <linux-mtd@lists•infradead.org>
Cc: Kuldeep Singh <kuldeep.singh@nxp•com>,
"broonie@kernel•org" <broonie@kernel•org>,
Ashish Kumar <ashish.kumar@nxp•com>,
"bbrezillon@kernel•org" <bbrezillon@kernel•org>
Subject: [PATCH] arm64: dts: ls1012a: Add QSPI support for ls1012a
Date: Thu, 16 May 2019 11:47:04 +0000 [thread overview]
Message-ID: <20190516114807.30817-1-kuldeep.singh@nxp.com> (raw)
QSPI support is added for kernel version greater than 5.0 and supports
quad mode defined by
TX-WIDTH = <4>, RX-WIDTH = <4>
RDB/QDS has one 64MB flash from SPANSION(s25fs512s)
Signed-off-by: Ashish Kumar <ashish.kumar@nxp•com>
Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp•com>
---
Dependency on https://patchwork.ozlabs.org/patch/1100471/
Dependency on https://patchwork.ozlabs.org/patch/1100472/
.../arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts | 15 +++++++++++++++
.../arm64/boot/dts/freescale/fsl-ls1012a-frwy.dts | 15 +++++++++++++++
arch/arm64/boot/dts/freescale/fsl-ls1012a-qds.dts | 15 +++++++++++++++
arch/arm64/boot/dts/freescale/fsl-ls1012a-rdb.dts | 15 +++++++++++++++
arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 15 +++++++++++++++
5 files changed, 75 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts b/arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts
index f90c040fd5e8..8826278b37bf 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts
@@ -61,6 +61,21 @@
status = "okay";
};
+&qspi {
+ status = "okay";
+
+ qflash0: flash@0 {
+ compatible = "spansion,m25p80", "jedec,spi-nor";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ m25p,fast-read;
+ spi-max-frequency = <20000000>;
+ spi-rx-bus-width = <4>;
+ spi-tx-bus-width = <4>;
+ reg = <0>;
+ };
+};
+
&i2c0 {
status = "okay";
diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1012a-frwy.dts b/arch/arm64/boot/dts/freescale/fsl-ls1012a-frwy.dts
index 8749634c55ee..0246e8c97628 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1012a-frwy.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a-frwy.dts
@@ -20,6 +20,21 @@
status = "okay";
};
+&qspi {
+ status = "okay";
+
+ qflash0: flash@0 {
+ compatible = "spansion,m25p80", "jedec,spi-nor";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ m25p,fast-read;
+ spi-max-frequency = <20000000>;
+ spi-rx-bus-width = <4>;
+ spi-tx-bus-width = <4>;
+ reg = <0>;
+ };
+};
+
&i2c0 {
status = "okay";
};
diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1012a-qds.dts b/arch/arm64/boot/dts/freescale/fsl-ls1012a-qds.dts
index 2fb1cb1f7d8f..c304fa20c1c9 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1012a-qds.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a-qds.dts
@@ -90,6 +90,21 @@
};
};
+&qspi {
+ status = "okay";
+
+ qflash0: flash@0 {
+ compatible = "spansion,m25p80", "jedec,spi-nor";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ m25p,fast-read;
+ spi-max-frequency = <20000000>;
+ spi-rx-bus-width = <4>;
+ spi-tx-bus-width = <4>;
+ reg = <0>;
+ };
+};
+
&duart0 {
status = "okay";
};
diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1012a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1012a-rdb.dts
index 5edb1e137a52..6017e9cfe40a 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1012a-rdb.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a-rdb.dts
@@ -38,3 +38,18 @@
&sata {
status = "okay";
};
+
+&qspi {
+ status = "okay";
+
+ qflash0: flash@0 {
+ compatible = "spansion,m25p80", "jedec,spi-nor";
+ #address-cells = <1>;
+ #size-cells = <1>;
+ m25p,fast-read;
+ spi-max-frequency = <20000000>;
+ spi-rx-bus-width = <4>;
+ spi-tx-bus-width = <4>;
+ reg = <0>;
+ };
+};
diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi
index ec6257a5b251..268268c6a149 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi
@@ -350,6 +350,21 @@
status = "disabled";
};
+ qspi: spi@1550000 {
+ compatible = "fsl,ls1021a-qspi", "fsl,ls1012a-qspi";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <0x0 0x1550000 0x0 0x10000>,
+ <0x0 0x40000000 0x0 0x10000000>;
+ reg-names = "QuadSPI", "QuadSPI-memory";
+ interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
+ clock-names = "qspi_en", "qspi";
+ clocks = <&clockgen 4 1>, <&clockgen 4 1>;
+ big-endian;
+ fsl,qspi-has-second-chip;
+ status = "disabled";
+ };
+
duart0: serial@21c0500 {
compatible = "fsl,ns16550", "ns16550a";
reg = <0x00 0x21c0500 0x0 0x100>;
--
2.17.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists•infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2019-05-16 11:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-16 11:47 Kuldeep Singh [this message]
2019-05-16 11:47 ` [PATCH] arm64: dts: ls1046a: Fast read m25p60 Kuldeep Singh
2019-05-23 8:47 ` Shawn Guo
2019-05-16 11:47 ` [PATCH] arm64: dts: ls1088a: Add QSPI support Kuldeep Singh
2019-05-23 8:48 ` Shawn Guo
2019-05-16 11:47 ` [PATCH] arm64: dts: ls208x: Remove non-compatible driver device from qspi node Kuldeep Singh
2019-05-23 8:43 ` [PATCH] arm64: dts: ls1012a: Add QSPI support for ls1012a Shawn Guo
2019-05-23 9:01 ` Schrempf Frieder
2019-05-23 9:19 ` [EXT] " Kuldeep Singh
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=20190516114807.30817-1-kuldeep.singh@nxp.com \
--to=kuldeep.singh@nxp$(echo .)com \
--cc=ashish.kumar@nxp$(echo .)com \
--cc=bbrezillon@kernel$(echo .)org \
--cc=broonie@kernel$(echo .)org \
--cc=devicetree@vger$(echo .)kernel.org \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
--cc=linux-mtd@lists$(echo .)infradead.org \
--cc=shawnguo@kernel$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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