mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-14 02:19:06 +04:00
Currently, sysupgrade silently fails to erase or write to the SPI-NAND flash on the JioRouter AX6000. This is caused by the SPI pinctrl group mistakenly using `bias-disable`, which leaves the flash chip's hardware HOLD and Write Protect (#WP) pins floating. When combined with an upstream kernel regression that accidentally arms the #HOLD function on Winbond W25N0xKV chips, these floating pins drop low (often exacerbated by UART noise). This pauses the chip and causes all flash operations to silently fail while returning success. Fix this by properly configuring `bias-pull-up = <MTK_PUPD_SET_R1R0_11>` for `SPI2_CS`, `SPI2_HOLD`, and `SPI2_WP`, ensuring the flash chip remains electrically unpaused and unlocked. Additionally, apply `bias-pull-down` to the clock and data lines to match MediaTek reference designs. Signed-off-by: Sheikh Faisal <sheikhfaisal713@gmail.com> Link: https://github.com/openwrt/openwrt/pull/25122 Signed-off-by: Jonas Jelonek <jonas@jonasjelonek.de>