Hi Chavira,
I'm glad to hear it is working on your side. That gives me hope
I'm working with a SOM-SMARC-MX8M-Plus from Seco. I'm using the seco-imx8mp-d18.dts file as reference device tree and have attached spidev as follows:
&flexspi {
status = "okay";
spidev0: spi@0 {
reg = <0>;
compatible = "rohm,dh2228fv";
spi-max-frequency = <10000000>;
spi-rx-bus-width = <1>;
spi-tx-bus-width = <1>;
};
};
For the sake of simplicity, let's assume that the device I want to talk to is always selected.
What I have managed to understand so far is that, in general, flexspi controllers are part of the MTD Linux subsystem (because their main purpose is to communicate with flash devices) whereas spidev belongs to the SPI subsystem and that's why spidev cannot "talk" to flexspi controllers. However, the NXP FSPI Controller Driver is under drivers/spi/. I was expecting it to play nice with spidev. So what am I missing? Why does spidev_test return an error?
Best regards,
Betheev