Skip to contentSkip to conversation

imx: imx6ul: kontron-sl-mx6ul: Disable CONFIG_FSL_QSPI_AHB_FULL_MAP to fix SPI NAND read access

PATCH In review Frieder Schrempf 4 participants 5 messages Nov 14, 2022 – Jan 31, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 imx: imx6ul: kontron-sl-mx6ul: Disable CONFIG_FSL_QSPI_AHB_FULL_MAP to fix SPI NAND read access

From: Frieder Schrempf <[email protected]>

The introduction of CONFIG_FSL_QSPI_AHB_FULL_MAP as default in:

def88bce094e ("spi: fsl_qspi: Support to use full AHB space on i.MX")

broke the SPI NAND read access on the Kontron SL i.MX6UL/ULL boards. Reading data from the flash returns garbage instead of the actual content. Fix this for now by disabling the introduced option.

In the long run this should be fixed globally.

Fixes def88bce094e ("spi: fsl_qspi: Support to use full AHB space on i.MX")
---
 configs/kontron-sl-mx6ul_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/kontron-sl-mx6ul_defconfig +1 -0
index aa789fc6e5e..db4b684690f 100644
@@ -95,6 +95,7 @@ CONFIG_MXC_UART=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_FSL_QSPI=y
+# CONFIG_FSL_QSPI_AHB_FULL_MAP is not set
 CONFIG_MXC_SPI=y
 CONFIG_IMX_THERMAL=y
 CONFIG_USB=y
Signature · 1 line
2.38.1
Reviewed-by on v1 1/1
#1 lore raw

Hi Frieder,

Quoted 5 lines · Frieder Schrempf

From: Frieder Schrempf <[email protected]>

The introduction of CONFIG_FSL_QSPI_AHB_FULL_MAP as default in:

Quoted 7 lines

def88bce094e ("spi: fsl_qspi: Support to use full AHB space on i.MX")

broke the SPI NAND read access on the Kontron SL i.MX6UL/ULL boards. Reading data from the flash returns garbage instead of the actual content. Fix this for now by disabling the introduced option.

In the long run this should be fixed globally.

Yes, most likely more boards have the same problem.

#2 lore raw
In reply to Frieder Schrempf

Hi Stefano,

Quoted 6 lines · Frieder Schrempf

From: Frieder Schrempf <[email protected]>

The introduction of CONFIG_FSL_QSPI_AHB_FULL_MAP as default in:

def88bce094e ("spi: fsl_qspi: Support to use full AHB space on i.MX")

Quoted 8 lines

broke the SPI NAND read access on the Kontron SL i.MX6UL/ULL boards. Reading data from the flash returns garbage instead of the actual content. Fix this for now by disabling the introduced option.

In the long run this should be fixed globally.

Fixes def88bce094e ("spi: fsl_qspi: Support to use full AHB space on i.MX")

Can you pick up this patch, please?

Thanks
Frieder

#3 lore raw
Quoted 13 lines · Frieder Schrempf

Hi Stefano,

Quoted 10 lines · Frieder Schrempf

From: Frieder Schrempf <[email protected]>

The introduction of CONFIG_FSL_QSPI_AHB_FULL_MAP as default in:

def88bce094e ("spi: fsl_qspi: Support to use full AHB space on i.MX")

broke the SPI NAND read access on the Kontron SL i.MX6UL/ULL boards. Reading data from the flash returns garbage instead of the actual content. Fix this for now by disabling the introduced option.

Quoted 6 lines
Quoted 4 lines

In the long run this should be fixed globally.

Fixes def88bce094e ("spi: fsl_qspi: Support to use full AHB space on i.MX")

Can you pick up this patch, please?

Yes, it is already marked for the next CI run.

Regards,
Stefano

Quoted 3 lines

Thanks
Frieder

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,        Managing Director: Erika Unter
HRB 165235 Munich,   Office: Kirchenstr.5, 82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected]
=====================================================================
#4 lore raw

PATCH 1/1 imx: imx6ul: kontron-sl-mx6ul: Disable CONFIG_FSL_QSPI_AHB_FULL_MAP to fix SPI NAND read access

In reply to Frieder Schrempf
Quoted 10 lines

From: Frieder Schrempf <[email protected]>
The introduction of CONFIG_FSL_QSPI_AHB_FULL_MAP as default in:
def88bce094e ("spi: fsl_qspi: Support to use full AHB space on i.MX") broke the SPI NAND read access on the Kontron SL i.MX6UL/ULL boards. Reading data from the flash returns garbage instead of the actual content. Fix this for now by disabling the introduced option. In the long run this should be fixed globally.

Fixes def88bce094e ("spi: fsl_qspi: Support to use full AHB space on i.MX")

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,        Managing Director: Erika Unter  
HRB 165235 Munich,   Office: Kirchenstr.5, 82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected]
=====================================================================