ipq40xx: dts: reduce the maximum SPI clock frequency to 24MHz

The IPQ4019 datasheet indicates that the maximum supported SPI
frequency is 25 MHz. My experiment on SKSpruce WIA3300-20 shows
that exceeding this threshold can lead to instability of SPI
peripheral. Limit the SPI clock frequency to the QSDK recommended
value 24MHz to enhance stability.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19744
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit 3ff8a3dca8)
Link: https://github.com/openwrt/openwrt/pull/19796
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Shiji Yang
2025-08-21 22:57:20 +02:00
committed by Hauke Mehrtens
parent 191d738469
commit e627539601
10 changed files with 12 additions and 12 deletions
@@ -160,7 +160,7 @@
flash@0 {
reg = <0>;
compatible = "jedec,spi-nor";
spi-max-frequency = <40000000>;
spi-max-frequency = <24000000>;
partitions {
compatible = "fixed-partitions";
@@ -150,7 +150,7 @@
#size-cells = <0>;
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <50000000>;
spi-max-frequency = <24000000>;
m25p,fast-read;
partitions {
@@ -190,7 +190,7 @@
mx25l12805d@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <45000000>;
spi-max-frequency = <24000000>;
partitions {
compatible = "fixed-partitions";
@@ -155,7 +155,7 @@
flash@0 {
reg = <0>;
compatible = "jedec,spi-nor";
spi-max-frequency = <40000000>;
spi-max-frequency = <24000000>;
partitions {
compatible = "fixed-partitions";
@@ -170,7 +170,7 @@
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <50000000>;
spi-max-frequency = <24000000>;
status = "okay";
m25p,fast-read;
@@ -182,7 +182,7 @@
compatible = "jedec,spi-nor";
reg = <0>;
linux,modalias = "m25p80", "mx25l1606e", "n25q128a11";
spi-max-frequency = <30000000>;
spi-max-frequency = <24000000>;
partitions {
compatible = "fixed-partitions";
@@ -236,7 +236,7 @@
spi-nand@1 {
compatible = "spi-nand";
reg = <1>;
spi-max-frequency = <30000000>;
spi-max-frequency = <24000000>;
/*
* U-boot looks for "spinand,mt29f" node,
@@ -159,7 +159,7 @@
flash@0 {
reg = <0>;
compatible = "jedec,spi-nor";
spi-max-frequency = <40000000>;
spi-max-frequency = <24000000>;
partitions {
compatible = "fixed-partitions";
@@ -206,7 +206,7 @@
flash@0 {
compatible = "jedec,spi-nor";
spi-max-frequency = <50000000>;
spi-max-frequency = <24000000>;
reg = <0>;
partitions {
@@ -298,7 +298,7 @@
nand@1 {
compatible = "spi-nand";
reg = <1>;
spi-max-frequency = <48000000>;
spi-max-frequency = <24000000>;
partitions {
compatible = "fixed-partitions";
@@ -123,7 +123,7 @@
flash@0 {
reg = <0>;
compatible = "jedec,spi-nor";
spi-max-frequency = <40000000>;
spi-max-frequency = <24000000>;
partitions {
compatible = "fixed-partitions";
@@ -226,7 +226,7 @@
flash@0 {
reg = <0>;
compatible = "jedec,spi-nor";
spi-max-frequency = <40000000>;
spi-max-frequency = <24000000>;
partitions {
compatible = "fixed-partitions";