openwrt/target/linux/mediatek
Sky Huang 058bd6c9d3 mediatek: filogic: mt7986: fix SPI driving for NAND and increase to 52MHz on ZyXEL EX5601
8mA driving will cause overshoot issue on SPI NAND. Change it to 4mA.
- Reference:
003744197a

On Linux mainline (mt7986.dtsi), spi's source clock is: clocks = <&topckgen CLK_TOP_MPLL_D2>, which is
208MHz. Usable clock division will be:
- 208/4=52MHz
- 208/6~=35MHz
- 208/8=26MHz
and so on

If we specify 50MHz for spi-max-frequency, it will actually run under about 35MHz. Most SPI NAND & NOR
flashes are capable of running with more than 52MHz, include Micorn MT29F4G01ABAFDWB on ZyXEL EX5601.
[Ref: #18752] To reach highest performance on mt7986, use spi-max-frequency = <520000000>. Basically,
this setting should work on all mt7986 PCBs since most mt7986 boards follow reference design. However,
other boards needs further test to guarantee stability.

Signed-off-by: Sky Huang <SkyLake.Huang@mediatek.com>
Tested-by: Aleksander Jan Bajkowski <olek2@wp.pl>
Link: https://github.com/openwrt/openwrt/pull/18813
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-07-13 17:04:06 +02:00
..
base-files mediatek: add support for Cudy TR3000 256MB v1 flash version 2025-06-22 19:17:25 +02:00
dts mediatek: filogic: mt7986: fix SPI driving for NAND and increase to 52MHz on ZyXEL EX5601 2025-07-13 17:04:06 +02:00
files/drivers mediatek: mt7622: prepare legacy rtl8367c driver for Linux 6.12 2025-05-26 16:58:03 +01:00
files-6.6 mediatek: cleanup device tree for mt7988 devices 2025-06-13 11:15:08 +02:00
files-6.12 kernel/mediatek: 6.12: replace downstream files by patches 2025-05-26 16:58:04 +01:00
filogic generic: 6.12: add new config symbols 2025-07-13 15:27:54 +02:00
image mediatek: add support for Zyxel NWA90AX PRO 2025-07-12 23:03:34 +02:00
mt7622 generic: 6.12: add new config symbols 2025-07-13 15:27:54 +02:00
mt7623 mediatek: mt7623: update config-6.12 2025-05-26 16:58:04 +01:00
mt7629 mediatek: mt7629: add the missing symbol CONFIG_LEDS_SMARTRG_LED 2025-05-29 23:05:02 +02:00
patches-6.6 kernel: bump 6.6 to 6.6.97 2025-07-12 16:47:58 +02:00
patches-6.12 kernel: bump 6.12 to 6.12.37 2025-07-12 16:47:58 +02:00
Makefile mediatek: enable testing kernel 6.12 2025-05-26 16:58:04 +01:00
modules.mk kernel: kmod-btmtk: Extract btmtk.ko into own package 2025-02-26 23:31:36 +01:00