openwrt/target/linux
David Bentham d33f4f8565 ramips: reduce spi-max-frequency for Xiaomi MI Router 4AG
Reduce spi-max-frequency for Xiaomi MI Router 4AG model

Xiaomi MI Router 4AG MTD uses two flash chips (no specific on router versions when produced from factory) - GD25Q128C and W25Q128BV.

These flash chips are capable of high frequency, but due to poor board design or manufacture process.

We are seeing the following errors in the linux kernel bootup:

`spi-nor spi0.0: unrecognized JEDEC id bytes: cc 60 1c cc 60 1c
 spi-nor: probe of spi0.0 failed with error -2`

This causes the partitions not to be detected

`VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6`

Then creates a bootloop and a bricked router.

The solution to limit this race condition is to reduce the frequency from 80 mhz to 50 mhz.

Signed-off-by: David Bentham <db260179@gmail.com>
(cherry picked from commit 17e690017d)
2021-04-18 12:04:38 +02:00
..
apm821xx kernel: bump 5.4 to 5.4.108 2021-03-27 16:26:56 +01:00
arc770 target: use SPDX license identifiers on scripts 2021-02-10 15:47:23 +01:00
archs38 archs38: Add CONFIG_HZ=100 2021-03-19 18:01:55 +01:00
armvirt kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
at91 at91: use SPDX license identifiers on DTS files 2021-02-10 15:47:23 +01:00
ath25 target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
ath79 ath79: mikrotik: enable 2nd USB on RouterBOARD 922UAGS-5HPacD 2021-04-12 13:20:48 +02:00
bcm27xx kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
bcm47xx bcm47xx: make WGT634U NVRAM patch apply again 2021-03-17 23:38:46 +01:00
bcm53xx bcm53xx: add pending TRX patch for "firmware" partition 2021-04-16 16:19:12 +02:00
bcm63xx bcm63xx: AD1018-nor: add NAND flash 2021-03-08 12:46:46 +01:00
bcm4908 kernel: bump 5.4 to 5.4.111 2021-04-11 17:35:12 +02:00
gemini gemini,layerscape,oxnas: don't disable option CONFIG_BPF_SYSCALL 2021-04-16 11:42:42 +01:00
generic kernel: bump 5.4 to 5.4.111 2021-04-11 17:35:12 +02:00
imx6 kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
ipq40xx kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
ipq806x kernel: bump 5.4 to 5.4.111 2021-04-11 17:35:12 +02:00
kirkwood kernel: backport 5.13 mtd partitioning changes 2021-04-08 11:25:41 +02:00
lantiq kernel: 5.4: import wireguard backport 2021-04-10 14:21:32 +02:00
layerscape gemini,layerscape,oxnas: don't disable option CONFIG_BPF_SYSCALL 2021-04-16 11:42:42 +01:00
malta target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
mediatek kernel: bump 5.4 to 5.4.111 2021-04-11 17:35:12 +02:00
mpc85xx mpc85xx: p2020: fix cfi-nor detection 2021-03-01 21:49:55 +01:00
mvebu mvebu: armada 370: dts: fix the crypto engine 2021-04-18 12:04:33 +02:00
mxs target: use SPDX license identifiers on scripts 2021-02-10 15:47:23 +01:00
octeon kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
octeontx kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
omap kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
oxnas gemini,layerscape,oxnas: don't disable option CONFIG_BPF_SYSCALL 2021-04-16 11:42:42 +01:00
pistachio kernel: add pending mtd patches adding NVMEM support 2021-03-17 21:24:22 +01:00
ramips ramips: reduce spi-max-frequency for Xiaomi MI Router 4AG 2021-04-18 12:04:38 +02:00
realtek kernel: bump 5.4 to 5.4.102 2021-03-06 15:51:54 +01:00
rockchip kernel: bump 5.4 to 5.4.111 2021-04-11 17:35:12 +02:00
sunxi sunxi: disable LPAE on cortexa8 2021-04-11 00:00:49 +02:00
tegra kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
uml target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
x86 kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
zynq kernel: move some disabled symbols to generic 2021-04-11 16:54:22 +02:00
Makefile target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00