diff mbox series

[U-Boot,2/2] ARM: dts: keystone-k2g-ice: Add support for QSPI

Message ID 20180131153827.1011-2-vigneshr@ti.com
State Accepted
Commit 492322992be31f535dd825b3f0475f05df21256b
Delegated to: Tom Rini
Headers show
Series [U-Boot,1/2] ARM: k2g: Add pinmux data for QSPI on K2G ICE | expand

Commit Message

Raghavendra, Vignesh Jan. 31, 2018, 3:38 p.m. UTC
K2G ICE has a s25fl256s1 QSPI NOR flash connected to QSPI at CS0. Add DT
entries for the same.

Signed-off-by: Vignesh R <vigneshr@ti.com>
---

Ported from linux-next.

 arch/arm/dts/keystone-k2g-ice.dts | 48 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

Comments

Tom Rini Feb. 8, 2018, 12:27 p.m. UTC | #1
On Wed, Jan 31, 2018 at 09:08:27PM +0530, Vignesh R wrote:

> K2G ICE has a s25fl256s1 QSPI NOR flash connected to QSPI at CS0. Add DT
> entries for the same.
> 
> Signed-off-by: Vignesh R <vigneshr@ti.com>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/arch/arm/dts/keystone-k2g-ice.dts b/arch/arm/dts/keystone-k2g-ice.dts
index be63782c97d9..610baf83fa49 100644
--- a/arch/arm/dts/keystone-k2g-ice.dts
+++ b/arch/arm/dts/keystone-k2g-ice.dts
@@ -34,3 +34,51 @@ 
 &i2c1 {
 	status = "okay";
 };
+
+&qspi {
+	status = "okay";
+
+	flash0: m25p80@0 {
+		compatible = "s25fl256s1", "spi-flash";
+		reg = <0>;
+		spi-tx-bus-width = <1>;
+		spi-rx-bus-width = <4>;
+		spi-max-frequency = <96000000>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+		cdns,read-delay = <5>;
+		cdns,tshsl-ns = <500>;
+		cdns,tsd2d-ns = <500>;
+		cdns,tchsh-ns = <119>;
+		cdns,tslch-ns = <119>;
+
+		partition@0 {
+			label = "QSPI.u-boot";
+			reg = <0x00000000 0x00100000>;
+		};
+		partition@1 {
+			label = "QSPI.u-boot-env";
+			reg = <0x00100000 0x00040000>;
+		};
+		partition@2 {
+			label = "QSPI.skern";
+			reg = <0x00140000 0x0040000>;
+		};
+		partition@3 {
+			label = "QSPI.pmmc-firmware";
+			reg = <0x00180000 0x0040000>;
+		};
+		partition@4 {
+			label = "QSPI.kernel";
+			reg = <0x001c0000 0x0800000>;
+		};
+		partition@5 {
+			label = "QSPI.u-boot-spl-os";
+			reg = <0x009c0000 0x0040000>;
+		};
+		partition@6 {
+			label = "QSPI.file-system";
+			reg = <0x00a00000 0x1600000>;
+		};
+	};
+};