SPI device not showing up in /dev/ on imx7d

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Based on the context provided, it seems like the SPI device is not appearing in the /dev directory, which indicates that the spidev interface might not be properly bound to the SPI device. Here are a few things to check and try:

  1. Device Tree Configuration: Ensure that the device tree configuration is correct. The compatible property for the spidev node should be "spidev", not "toradex,evalspi". Update the device tree as follows:

    spidev0: spidev@0 {
        compatible = "spidev";
        reg = <0>;
        spi-max-frequency = <10000000>;
        status = "okay";
    };
    
  2. Kernel Configuration: Make sure that the spidev driver is enabled in the kernel configuration. You can check this by ensuring that CONFIG_SPI_SPIDEV is set to y or m in your kernel configuration.

  3. Device Tree Overlays: If you are using device tree overlays, ensure that the overlay is correctly applied and that it does not conflict with other configurations.

  4. Check dmesg Logs: The dmesg log you provided shows a message about enforcing active low on chipselect handle. This might not be directly related to the issue, but ensure there are no other error messages related to SPI or spidev in the dmesg logs.

  5. Reboot the System: After making changes to the device tree, ensure that the system is rebooted to apply the changes.

If after these checks the issue persists, it might be necessary to further investigate the kernel logs or the device tree configuration for any other potential misconfigurations.

Please, also check if these links can help you solve your problem:

SPI demo not working Apalis imx6.