Skip to contentSkip to conversation

arm: zynq: dts: add spi flash node to zedboard

PATCH New Luis Araneda 2 participants 2 messages Jul 27, 2018 – Jul 30, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: zynq: dts: add spi flash node to zedboard

Add a flash node to fix the detection of the memory IC. With the changes introduced with commit 8fee8845e754 ("enf_sf: reuse setup_flash_device instead of open coding it") the SPI speed is now read from device-tree or a default value is applied. This replaced the old behavior of setting the SPI speed to CONFIG_ENV_SPI_MAX_HZ.

As this board didn't have a flash node, the default value was applied to the SPI speed, producing an error when probing the flash memory (speed too slow).

---
 arch/arm/dts/zynq-zed.dts | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/dts/zynq-zed.dts +7 -0
index 24eccf1633..9c505fb7b8 100644
@@ -51,6 +51,13 @@
 &qspi {
 	u-boot,dm-pre-reloc;
 	status = "okay";
+	num-cs = <1>;
+	flash at 0 {
+		compatible = "spansion,s25fl256s", "spi-flash";
+		reg = <0>;
+		spi-max-frequency = <30000000>;
+		m25p,fast-read;
+	};
 };
 
 &sdhci0 {
Signature · 1 line
2.18.0
Applied
#1 lore raw

PATCH 1/1 arm: zynq: dts: add spi flash node to zedboard

Quoted 25 lines · Luis Araneda

Add a flash node to fix the detection of the memory IC. With the changes introduced with commit 8fee8845e754 ("enf_sf: reuse setup_flash_device instead of open coding it") the SPI speed is now read from device-tree or a default value is applied. This replaced the old behavior of setting the SPI speed to CONFIG_ENV_SPI_MAX_HZ.

As this board didn't have a flash node, the default value was applied to the SPI speed, producing an error when probing the flash memory (speed too slow).

---
 arch/arm/dts/zynq-zed.dts | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/dts/zynq-zed.dts +0 -0
index 24eccf1633..9c505fb7b8 100644
@@ -51,6 +51,13 @@
 &qspi {
 	u-boot,dm-pre-reloc;
 	status = "okay";

arch/arm/dts/zynq-zed.dts line 63

Quoted 10 lines
arch/arm/dts/zynq-zed.dts +7 -0
+	num-cs = <1>;
+	flash at 0 {
+		compatible = "spansion,s25fl256s", "spi-flash";
+		reg = <0>;
+		spi-max-frequency = <30000000>;
+		m25p,fast-read;
+	};
 };
 
 &sdhci0 {

Applied.
M