[PATCH v4 0/3] spi: airoha: add support of en7523 SoC (for 6.19)

Mikhail Kshevetskiy
2025-11-25T02:11:07Z

Airoha EN7523 snfi controller almost identical to AN7581 one, so the same
driver can be used. The only known difference appears in the very specific
boot conditions, when attached serial console force EN7523 SoC boots
in undocumented (reserved) mode. In this mode dma reading of the flash
works incorrectly.

This patch series:
* add support of EN7523 SoC
* add spinand node to en7523 dts (so spinand flash finally becomes usable)
* updates dt-bindings to mark driver as compatible with en7523
* disable dma usage to prevent possible data damage if booting in
reserved mode was detected.

This patch series was a part of a bigger series:

https://lore.kernel.org/lkml/20251012121707.2296160-1-mikhail.kshevetskiy@iopsys.eu/

All patches of the bigger series (except these patches) was already accepted
to linux-next.

Changes v2:
* small improvement proposed by Lorenzo Bianconi

Changes v3:
* split multi-line print on a series of single line prints as suggested by
Mark Brown

Changes v4:
* improve description of Airoha en7523 SoC specific issue that may
lead to flash data damaging.
* add fixes tag

Mikhail Kshevetskiy (3):
spi: airoha-snfi: en7523: workaround flash damaging if UART_TXD was
short to GND
dt-bindings: spi: airoha: add compatible for EN7523
arm: dts: airoha: en7523: add SNAND node

.../bindings/spi/airoha,en7581-snand.yaml | 7 +++-
arch/arm/boot/dts/airoha/en7523.dtsi | 20 +++++++++++
drivers/spi/spi-airoha-snfi.c | 34 ++++++++++++++++---
3 files changed, 56 insertions(+), 5 deletions(-)

--
2.51.0