Skip to contentSkip to conversation

ARM: k2g: Add pinmux data for QSPI on K2G ICE

PATCH New Vignesh R 2 participants 4 messages Jan 31, 2018 – Feb 8, 2018 Arm (32-bit)

lore
Share & tools
lore

Vignesh R

author
#0 lore raw

PATCH 1/2 ARM: k2g: Add pinmux data for QSPI on K2G ICE

Add pinmux for QSPI pins on K2G ICE board.

---
 board/ti/ks2_evm/mux-k2g.h | 9 +++++++++
 1 file changed, 9 insertions(+)
board/ti/ks2_evm/mux-k2g.h +9 -0
index 9e3fa1100331..f7d36d132ec8 100644
@@ -338,6 +338,15 @@ struct pin_cfg k2g_ice_evm_pin_cfg[] = {
 	/* I2C 0 */
 	{ 223,  MODE(0) },		/* SOC_I2C0_SCL */
 	{ 224,  MODE(0) },		/* SOC_I2C0_SDA */
+
+	/* QSPI */
+	{ 129,	MODE(0) },	/* SOC_QSPI_CLK */
+	{ 130,	MODE(0) },	/* SOC_QSPI_RTCLK */
+	{ 131,	MODE(0) },	/* SOC_QSPI_D0 */
+	{ 132,	MODE(0) },	/* SOC_QSPI_D1 */
+	{ 133,	MODE(0) },	/* SOC_QSPI_D2 */
+	{ 134,	MODE(0) },	/* SOC_QSPI_D3 */
+	{ 135,	MODE(0) },	/* SOC_QSPI_CSN0 */
 	{ MAX_PIN_N, }
 };
 
Signature · 1 line
2.16.1
author
#1 lore raw

PATCH 2/2 ARM: dts: keystone-k2g-ice: Add support for QSPI

K2G ICE has a s25fl256s1 QSPI NOR flash connected to QSPI at CS0. Add DT entries for the same.

---

Ported from linux-next.

 arch/arm/dts/keystone-k2g-ice.dts | 48 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)
arch/arm/dts/keystone-k2g-ice.dts +48 -0
index be63782c97d9..610baf83fa49 100644
@@ -34,3 +34,51 @@
 &i2c1 {
 	status = "okay";
 };
+
+&qspi {
+	status = "okay";
+
+	flash0: m25p80 at 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 at 0 {
+			label = "QSPI.u-boot";
+			reg = <0x00000000 0x00100000>;
+		};
+		partition at 1 {
+			label = "QSPI.u-boot-env";
+			reg = <0x00100000 0x00040000>;
+		};
+		partition at 2 {
+			label = "QSPI.skern";
+			reg = <0x00140000 0x0040000>;
+		};
+		partition at 3 {
+			label = "QSPI.pmmc-firmware";
+			reg = <0x00180000 0x0040000>;
+		};
+		partition at 4 {
+			label = "QSPI.kernel";
+			reg = <0x001c0000 0x0800000>;
+		};
+		partition at 5 {
+			label = "QSPI.u-boot-spl-os";
+			reg = <0x009c0000 0x0040000>;
+		};
+		partition at 6 {
+			label = "QSPI.file-system";
+			reg = <0x00a00000 0x1600000>;
+		};
+	};
+};
Signature · 1 line
2.16.1
#2 lore raw

PATCH 2/2 ARM: dts: keystone-k2g-ice: Add support for QSPI

Quoted 4 lines · Vignesh R

K2G ICE has a s25fl256s1 QSPI NOR flash connected to QSPI at CS0. Add DT entries for the same.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180208/e9ec50ac/attachment.sig>
#3 lore raw

PATCH 1/2 ARM: k2g: Add pinmux data for QSPI on K2G ICE

In reply to Vignesh R
Quoted 3 lines · Vignesh R

Add pinmux for QSPI pins on K2G ICE board.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180208/a5fdb1cc/attachment.sig>