QSPI clock set issue in imx8mq

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

QSPI clock set issue in imx8mq

1,328 Views
darsh_dev
Contributor V

Hi all,

I am evaluating IMX8MQ evk board and linux Distro 4.14-ga release. I want to Set QSPI clock rate 100MHZ in fsl driver property. So, I have made some clock rate changes in fsl-imx8mq-evk.dts file as following.

&qspi {
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_qspi>;

    spi-max-frequency = <100000000>;
    status = "okay";
 

    flash0: w25q256@0 {
        reg = <0>;
        #address-cells = <1>;
        #size-cells = <1>;
        compatible = "sst,w25q256";
        spi-max-frequency = <100000000>;
        spi-nor,ddr-quad-read-dummy = <6>;
        status = "okay";
    };
};

But when i measuring clock at QSPI_SCLK  pin it gives the 25Mhz.So, my query is

1. How to set QSPI CLOCK RATE 100Mhz?

2. Can you please suggest me modification to set?

Let me know if you need further information.

Thanks,

Darshak

0 Kudos
Reply
2 Replies

1,017 Views
harshamedu
Contributor I

Hi Darshak,

I am also facing same issue with the QuadSPI frequency. Were you able to resolve ?

Regards,

Harsha

0 Kudos
Reply

1,017 Views
igorpadykov
NXP Employee
NXP Employee

Hi Darshak

unfortunately I am not aware of qspi 100Mhz patches, in general

one can try to set in dts file other qspi parent clock (as for example in usb3_phy0)

fsl-imx8mq.dtsi\freescale\dts\boot\arm64\arch - linux-imx - i.MX Linux kernel 

using available options in linux/drivers/clk/imx/clk-imx8mq.c

clk-imx8mq.c\imx\clk\drivers - linux-imx - i.MX Linux kernel 

and linux documentation in

clock-bindings.txt\clock\bindings\devicetree\Documentation - linux-imx - i.MX Linux kernel 

https://elinux.org/images/b/b8/Elc2013_Clement.pdf 


Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply