mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 16:31:13 +00:00
2e4fe289ce
For some reason LS1012A and LS1046A devboards don't work well with Spansion SPI NOR flash. It cause read and write errors like: [ 27.285887] jffs2: Newly-erased block contained word 0xc20031985 at offset 0x025ae000 [ 27.468922] jffs2: Newly-erased block contained word 0x0 at offset 0x02573000 [ 27.502615] jffs2: Newly-erased block contained word 0xe723f41e5823f110 at offset 0x02572000 [ 27.541550] jffs2: Newly-erased block contained word 0x1a7d266ee6 at offset 0x02571000 [ 27.577195] jffs2: Newly-erased block contained word 0x5d000bae8d52fec6 at offset 0x02570000 [ 27.611800] jffs2: Newly-erased block contained word 0x63515aee63515a4b at offset 0x0256f000 [ 27.651749] jffs2: Newly-erased block contained word 0xc20031985 at offset 0x0256e000 [ 27.825593] jffs2: Newly-erased block contained word 0xc20031985 at offset 0x0252e000 NXP have found workarround and applied in their vendor kernel version. They force 1x tx and 1x rx lines in qspi. That method fix issues. This patch ports patches from NXP LSDK tree. Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
35 lines
1002 B
Diff
35 lines
1002 B
Diff
From 38093ebbf25eb60a1aa863f46118a68a0300c56e Mon Sep 17 00:00:00 2001
|
|
From: Kuldeep Singh <kuldeep.singh@nxp.com>
|
|
Date: Fri, 3 Jan 2020 14:49:07 +0530
|
|
Subject: [PATCH] arm64: dts: ls1046a-rdb: Update qspi spi-rx-bus-width to 1
|
|
|
|
Update rx width from quad mode to single mode as a workaround.
|
|
|
|
[Leo: Local workaround ]
|
|
|
|
Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com>
|
|
---
|
|
arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
--- a/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts
|
|
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a-rdb.dts
|
|
@@ -101,7 +101,7 @@
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
spi-max-frequency = <50000000>;
|
|
- spi-rx-bus-width = <4>;
|
|
+ spi-rx-bus-width = <1>;
|
|
spi-tx-bus-width = <1>;
|
|
reg = <0>;
|
|
};
|
|
@@ -111,7 +111,7 @@
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
spi-max-frequency = <50000000>;
|
|
- spi-rx-bus-width = <4>;
|
|
+ spi-rx-bus-width = <1>;
|
|
spi-tx-bus-width = <1>;
|
|
reg = <1>;
|
|
};
|