AnsweredAssumed Answered

ecspi 1 for spi eeprom is not working on imx8mq

Question asked by KRUPA NAYAKA on Mar 20, 2019
Latest reply on Mar 21, 2019 by igorpadykov

Hello 

I am using imx8mq processor based evk where i am trying to configure spi eeprom on ecspi 1 but unable to get clock signal when probed but the driver is getting register, plz someone help me out in solving this issue why i am unable to use ecspi as expected.

 

The following is been configured in dts file:

ecspi1: ecspi@30820000 {
compatible = "fsl,imx6ul-ecspi", "fsl,imx51-ecspi";
reg = <0x0 0x30820000 0x0 0x10000>;
interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk IMX8MQ_CLK_ECSPI1_ROOT>,
<&clk IMX8MQ_CLK_ECSPI1_ROOT>;
clock-names = "ipg", "per";
interrupt-parent = <&gpc>;
fsl,spi-num-chipselects = <1>;
cs-gpios = <&gpio5 9 0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi1>;
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

/* MAGIK2_SMARC : Secure EEPROM */
eeprom: ataes132a@0 {
compatible = "atmel,at25";
reg = <0>;
size = <65536>;
pagesize= <32>;
address-width= <16>;
spi-max-frequency = <1000000>;
};

 

 

 

pinctrl_ecspi1: ecspi1grp {
fsl,pins = <
/* MAGIK2_SMARC : TBC whether to configure SS0 as GPIO ALT mode or ECSPI1_SS0 mode */
/*MX8MQ_IOMUXC_ECSPI1_SS0_ECSPI1_SS0 0x100b1*/
MX8MQ_IOMUXC_ECSPI1_SS0_GPIO5_IO9 0x19
MX8MQ_IOMUXC_ECSPI1_MISO_ECSPI1_MISO 0x100b1
MX8MQ_IOMUXC_ECSPI1_MOSI_ECSPI1_MOSI 0x100b1
MX8MQ_IOMUXC_ECSPI1_SCLK_ECSPI1_SCLK 0x100b1
>;
};

 

Regards

Krupa

Outcomes