AnsweredAssumed Answered

ecspi1 write data slow

Question asked by br li on Apr 25, 2019
Latest reply on Apr 25, 2019 by igorpadykov

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

Outcomes