How to set the SPI SCLK to CSn delay in S32R45

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to set the SPI SCLK to CSn delay in S32R45

947件の閲覧回数
PraveenKumar_K
Contributor II

Hi,

By following the S32R45_Linux_BSP_32.0_ user_Manual, i did Setting up and building the Linux kernel Image and generated the .dtb file.

By default in .dts file the SPI node looks like:

spidev10: spidev@0 {
                                  compatible = "rohm,dh2228fv";
                                  spi-max-frequency = <40000000>;
                                  reg = <0>;
                                  fsl,spi-cs-sck-delay = <100>;
                                  fsl,spi-sck-cs-delay = <100>;
};

 

let me know how much delay is required for spi-sck-cs-delay, there is more delay(22us) in CS to SCLK for every spi write.

 

Regards,

Praveen Kumar

タグ(2)
0 件の賞賛
返信
1 返信

931件の閲覧回数
GaryRK
NXP Employee
NXP Employee

Hi Praveen,

The required SCK to CS delay is dependent on the SPI slave device; how long does the slave expect CS to be asserted after last SCK edge. It should be detailed in the slave device datasheet.

Regards,

Gary

0 件の賞賛
返信