ecspi1 write data slow

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

ecspi1 write data slow

468 Views
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>;
};
};

Labels (2)
0 Kudos
1 Reply

389 Views
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 Kudos