]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ipq40xx: dts: reduce the maximum SPI clock frequency to 24MHz 19744/head
authorShiji Yang <yangshiji66@outlook.com>
Mon, 11 Aug 2025 10:52:30 +0000 (18:52 +0800)
committerRobert Marko <robimarko@gmail.com>
Tue, 19 Aug 2025 18:04:06 +0000 (20:04 +0200)
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>
target/linux/ipq40xx/files-6.12/arch/arm/boot/dts/qcom/qcom-ipq4018-cap-ac.dts
target/linux/ipq40xx/files-6.12/arch/arm/boot/dts/qcom/qcom-ipq4018-ens620ext.dts
target/linux/ipq40xx/files-6.12/arch/arm/boot/dts/qcom/qcom-ipq4018-ex61x0v2.dtsi
target/linux/ipq40xx/files-6.12/arch/arm/boot/dts/qcom/qcom-ipq4018-hap-ac2.dts
target/linux/ipq40xx/files-6.12/arch/arm/boot/dts/qcom/qcom-ipq4018-nbg6617.dts
target/linux/ipq40xx/files-6.12/arch/arm/boot/dts/qcom/qcom-ipq4018-rt-ac58u.dts
target/linux/ipq40xx/files-6.12/arch/arm/boot/dts/qcom/qcom-ipq4018-sxtsq-5-ac.dts
target/linux/ipq40xx/files-6.12/arch/arm/boot/dts/qcom/qcom-ipq4018-wac510.dts
target/linux/ipq40xx/files-6.12/arch/arm/boot/dts/qcom/qcom-ipq4018-wap-ac.dtsi
target/linux/ipq40xx/files-6.12/arch/arm/boot/dts/qcom/qcom-ipq4019-hap-ac3.dts

index f2690a095d9bac448fc92f750e1be72fbb5f9125..627ccd5b70adcdf6c659ae087d9bbb7b1090fb62 100644 (file)
        flash@0 {
                reg = <0>;
                compatible = "jedec,spi-nor";
-               spi-max-frequency = <40000000>;
+               spi-max-frequency = <24000000>;
 
                partitions {
                        compatible = "fixed-partitions";
index 8b75a570744a54356b04d53b48db2b7f50180541..50cac400d77f04eedc31f4ae2803193375eab720 100644 (file)
                #size-cells = <0>;
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <50000000>;
+               spi-max-frequency = <24000000>;
                m25p,fast-read;
 
                partitions {
index a13fc71987339a4c5d6d5fec89aac46f8e53ce30..367dd20a7a25610e375b1f603a46cc6de1d9af4e 100644 (file)
        mx25l12805d@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <45000000>;
+               spi-max-frequency = <24000000>;
 
                partitions {
                        compatible = "fixed-partitions";
index d91725dfb7b9e9fc77d59e4cec0e677fcbc7d22b..ae244a6696d430152934518cf5ce1fd6728a7cf6 100644 (file)
        flash@0 {
                reg = <0>;
                compatible = "jedec,spi-nor";
-               spi-max-frequency = <40000000>;
+               spi-max-frequency = <24000000>;
 
                partitions {
                        compatible = "fixed-partitions";
index 2b79169c0df08e6f94f2606fdb299ad0954140ad..d33afc7d388e7c511dbbeb7dc425fe6ecd14fff8 100644 (file)
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <50000000>;
+               spi-max-frequency = <24000000>;
                status = "okay";
                m25p,fast-read;
 
index 946b3b3038f14c0f51a5b73291868d39086f6fe7..7477d5ddc44ce471888765687ca8ecd838fd1ad7 100644 (file)
                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,
index d434145278c177de193bc6271cb9f254c346e42b..f588d94142dc71ed792258fb90f6e99c2989f103 100644 (file)
        flash@0 {
                reg = <0>;
                compatible = "jedec,spi-nor";
-               spi-max-frequency = <40000000>;
+               spi-max-frequency = <24000000>;
 
                partitions {
                        compatible = "fixed-partitions";
index 982ceef044e7594b97fc6fbf9f24148af66f41b5..fc862a25b1ed7b6d40b9b00cf99b87756da231dc 100644 (file)
 
        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";
index f8b458f9f7953f7c60138568b33ff9ac8163ae59..83dd4b925bd5692a5c4f93a7b83cafbaa9fff14f 100644 (file)
        flash@0 {
                reg = <0>;
                compatible = "jedec,spi-nor";
-               spi-max-frequency = <40000000>;
+               spi-max-frequency = <24000000>;
 
                partitions {
                        compatible = "fixed-partitions";
index bd7f1b5cb982d107594075ff66da5c1702eb7038..bbc93c083d0060d10122edb65265e870c2bf6b6c 100644 (file)
        flash@0 {
                reg = <0>;
                compatible = "jedec,spi-nor";
-               spi-max-frequency = <40000000>;
+               spi-max-frequency = <24000000>;
 
                partitions {
                        compatible = "fixed-partitions";