ecspi1 write data slow

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

ecspi1 write data slow

920 次查看
brli
Contributor III

Hi,

We connect one 240*320 SPI interface LCD to ecspi1 and developed it's driver on Yocto BSP.

It can display UI now, but flash frame rate is very slow.

could you suggest how to improve spi speed? thanks!

Here is its DTS config

&ecspi1 {
compatible = "fsl,imx6q-ecspi", "fsl,imx51-ecspi";
fsl,spi-num-chipselects = <1>;
cs-gpios = <&gpio4 9 0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi1>;
status = "okay";
lcd:startek@0 {
compatible = "startek,startek-lcd";
#address-cells = <1>;
#size-cells = <1>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi1_rest>;
spi-max-frequency = <20000000>;
rest-gpios = <&gpio6 11 GPIO_ACTIVE_HIGH>;
rs-gpios = <&gpio4 8 GPIO_ACTIVE_LOW>;
reg = <0>;
};
};

标签 (2)
0 项奖励
回复
1 回复

841 次查看
igorpadykov
NXP Employee
NXP Employee

Hi br

one can try to use dma, as in ecspi5 example :

imx6q.dtsi\dts\boot\arm\arch - linux-imx - i.MX Linux kernel 

also one can try to increase burst size using BURST_LENGTH register ECSPIx_CONREG.

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

0 项奖励
回复