This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM623: How to adjust SPI CLK?

Part Number: AM623

Tool/software:

Hi Expert,



How to adjust SPI CLK?

As shown in the figure below, the customer tried to adjust the CLK number, but it didn't work.

Thanks

Daniel

  • Hi Daniel,

    As shown in the figure below, the customer tried to adjust the CLK number, but it didn't work.

    I suppose your associated device tree node looks something like this here...

    spidev@0 {
    	/*
    	 * Using spidev compatible is warned loudly,
    	 * thus use another equivalent compatible id
    	 * from spidev.
    	 */
    	compatible = "rohm,dh2228fv";
    	spi-max-frequency = <24000000>;
    	reg = <0>;
    };

    What is your setting for the spi-max-frequency property, and what SPI clock frequency are you trying to configure?

    Note that you cannot arbitrarily achieve any SPI clock output frequency you want, as you will be limited by what the input frequency to the SPI peripheral is on the chip (50MHz), and which integer dividers can be used to divide this down. The TRM has a table on this...

    Regards, Andreas