imx6dq ecspi1 slave mode

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

imx6dq ecspi1 slave mode

1,413 Views
jaimepena
Contributor II

Hello, 

I am working with a new application and now I configure the device tree . I have one FPGA system which communicates with my imx6 by ecspi1 but the fpga is working as master and the ss is only connected to one slave , imx6 in this case.

I read that you need to configure the driver  to use it like slave mode. but do I need to change something in my dts file?

ecspi1: ecspi@02008000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,imx6q-ecspi", "fsl,imx51-ecspi";
reg = <0x02008000 0x4000>;
interrupts = <0 31 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks IMX6QDL_CLK_ECSPI1>,
<&clks IMX6QDL_CLK_ECSPI1>;
clock-names = "ipg", "per";
dmas = <&sdma 3 8 1>, <&sdma 4 8 2>;
dma-names = "rx", "tx";
status = "disabled";

};

pinctrl_ecspi1: ecspi1grp {
fsl,pins = <
MX6QDL_PAD_EIM_D18__ECSPI1_MOSI 0x1B0B0
MX6QDL_PAD_DISP0_DAT20__ECSPI1_SCLK 0x1B0B0
MX6QDL_PAD_EIM_EB2__ECSPI1_SS0 0x1B0B0
>;
};

&ecspi1 {  //Microcontroller slave mode
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi1>;
status = "okay";
};

Thanks for your help

Regards

Labels (2)
0 Kudos
1 Reply

801 Views
igorpadykov
NXP Employee
NXP Employee

Hi jaime

please check changes on

http://www.gossamer-threads.com/lists/linux/kernel/2265455
https://community.freescale.com/docs/DOC-97380

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

0 Kudos