We conneced FPGA QSPI slave to iMXDXL QSPI0A
We have added QSPI configuration in device-tree as below
pinctrl_qspi: qspigrp {
fsl,pins = <
IMX8DXL_QSPI0A_DATA0_LSIO_QSPI0A_DATA0 0x06000021
IMX8DXL_QSPI0A_DATA1_LSIO_QSPI0A_DATA1 0x06000021
IMX8DXL_QSPI0A_DATA2_LSIO_QSPI0A_DATA2 0x06000021
IMX8DXL_QSPI0A_DATA3_LSIO_QSPI0A_DATA3 0x06000021
IMX8DXL_QSPI0A_SS0_B_LSIO_QSPI0A_SS0_B 0x06000021
IMX8DXL_QSPI0A_SCLK_LSIO_QSPI0A_SCLK 0x06000021
>;
};
&flexspi0 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_qspi>;
nxp,fspi-dll-slvdly = <4>;
status = "okay";
spidev1: spi@0 {
reg = <0>;
compatible = "rohm,dh2228fv";
spi-max-frequency = <30000000>;
status = "okay";
};
};
We are running below command for data transfer and facing errors
spidev_test -D /dev/spidev0.0 -v -s 10000000 -p -4 "hello"
spi mode: 0x0[ 371.585590] kauditd_printk_skb: 1 callbacks suppressed
bits per word: 8
max speed: 10000000 Hz (10000 kHz)
can't sen[ 371.585606] audit: type=1701 audit(1677837576.268:23): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=496 comm="spidev_test" exe="/usr/bin/spidev_test" sig=6 res=1
d spi message: Unknown error 524
Aborted
We observed in CRO like the Slave select line is not going to low.
Can you please provide the solution for this
Hello @Pooja_shetty
I hope you are doing well.
Could you please try with change the default SS signal with any other GPIO?
Also, please change the driver to spidev, this as example:
&flexspi0 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_qspi>;
nxp,fspi-dll-slvdly = <4>;
status = "okay";
spidev1: spi@0 {
reg = <0>;
compatible = "spidev";
spi-max-frequency = <30000000>;
cs-gpios = <&gpio1 25 0>; // Select here your custom GPIO
status = "okay";
};
};
I hope this can helps to your issue.
Best regards,
Salas.
Hello @Alejandro_Salas
If i give compatible=spidev, i am not able to get spidev0.0 node(ls /dev/spidedev0.0).
Thanks & Regards,
Poojashree shetty.
Hello,
Ok, please set again the compatible = "rohm,dh2228fv"; and try with the other modifications.
Best regards,
Salas.
Hello,
We have tried other modifications as well but still facing the same issue. We have one question: can the spidev driver be used for a QSPI slave?
Thanks & Regards,
Pooja