Hi,
I'm using imx6q reference board with yocto BSP.
I've configured the dts as:
&ecspi1 {
fsl,spi-num-chipselects = <1>;
cs-gpios = <&gpio4 9 0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi1>;
status = "okay";
spidev@0x00 {
compatible = "spidev";
spi-max-frequency = <20000000>;
reg = <0>;
};
On flashing the image I got /dev/spidev0.0
and when I do echo 1 > /dev/spidev0.0 I can see a spike in the clock line of the module.
Is there any way I can detect a module connected to spidev0.0?
In i2c we can get the slave address is there anything similar in SPI? Also is there anyway I can do this with a C application?