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>
flash@0 {
reg = <0>;
compatible = "jedec,spi-nor";
- spi-max-frequency = <40000000>;
+ spi-max-frequency = <24000000>;
partitions {
compatible = "fixed-partitions";
#size-cells = <0>;
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <50000000>;
+ spi-max-frequency = <24000000>;
m25p,fast-read;
partitions {
mx25l12805d@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <45000000>;
+ spi-max-frequency = <24000000>;
partitions {
compatible = "fixed-partitions";
flash@0 {
reg = <0>;
compatible = "jedec,spi-nor";
- spi-max-frequency = <40000000>;
+ spi-max-frequency = <24000000>;
partitions {
compatible = "fixed-partitions";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
- spi-max-frequency = <50000000>;
+ spi-max-frequency = <24000000>;
status = "okay";
m25p,fast-read;
compatible = "jedec,spi-nor";
reg = <0>;
linux,modalias = "m25p80", "mx25l1606e", "n25q128a11";
- spi-max-frequency = <30000000>;
+ spi-max-frequency = <24000000>;
partitions {
compatible = "fixed-partitions";
spi-nand@1 {
compatible = "spi-nand";
reg = <1>;
- spi-max-frequency = <30000000>;
+ spi-max-frequency = <24000000>;
/*
* U-boot looks for "spinand,mt29f" node,
flash@0 {
reg = <0>;
compatible = "jedec,spi-nor";
- spi-max-frequency = <40000000>;
+ spi-max-frequency = <24000000>;
partitions {
compatible = "fixed-partitions";
flash@0 {
compatible = "jedec,spi-nor";
- spi-max-frequency = <50000000>;
+ spi-max-frequency = <24000000>;
reg = <0>;
partitions {
nand@1 {
compatible = "spi-nand";
reg = <1>;
- spi-max-frequency = <48000000>;
+ spi-max-frequency = <24000000>;
partitions {
compatible = "fixed-partitions";
flash@0 {
reg = <0>;
compatible = "jedec,spi-nor";
- spi-max-frequency = <40000000>;
+ spi-max-frequency = <24000000>;
partitions {
compatible = "fixed-partitions";
flash@0 {
reg = <0>;
compatible = "jedec,spi-nor";
- spi-max-frequency = <40000000>;
+ spi-max-frequency = <24000000>;
partitions {
compatible = "fixed-partitions";