This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: How to enable MCSPI device tree in TDA4

Part Number: TDA4VM

Hi experts,

I am using the sdk 8.0 of TDA4 and I want to use the MCSPI in the linux system.But I couldn't find any device tree setting-up in the file k3-j721e-main.dtsi.How can I setup the device tree file to enable the MCSPI(0~7)?

Thanks,

  • Hi,

    Please take a look at this: https://e2e.ti.com/support/processors/f/791/t/947437

    The above is an example of  main_spi6 You can try out main_spi6 instance first & then you can add the others one by one.

    If no other questions please click on verify answer.

    Best Regards,
    Keerthy

  • I followed the url:https://e2e.ti.com/support/processors/f/791/t/947437 

    And I got

    root@j7-evm:/sys/class# ls -l /sys/class/spi*
    total 0
    lrwxrwxrwx 1 root root 0 Jan 13 03:12 spi6 -> ../../devices/platform/bus@100000/2160000.spi/spi_master/spi6
    lrwxrwxrwx 1 root root 0 Sep 2 18:01 spi7 -> ../../devices/platform/bus@100000/bus@100000:bus@28380000/47000000.fss/47040000.spi/spi_master/spi7
    lrwxrwxrwx 1 root root 0 Sep 2 18:01 spi8 -> ../../devices/platform/bus@100000/bus@100000:bus@28380000/47000000.fss/47050000.spi/spi_master/spi8

    THERE IS NO SPIDEV.

    root@j7-evm:~# ./spidev_test -v -D /dev/spidev6.0
    can't open device: No such file or directory
    [ 363.123084] systemd-coredump[1268]: Failed to get COMM: No such process
    Aborted (core dumped)

    Here is my device tree.

    4035.dts.zip

  • Hi,

    I believe you might have missed this step:

    Enable CONFIG_SPI_SPIDEV=y explicitly in arch/arm64/configs/tisdk_j7-evm_defconfig.

    This is not a Device tree change. This needs to be enabled in the config file under $PSDK/board-support.linux*/arch/arm64/configs/tisdk_j7-evm_defconfig.

    I have tried the mentioned FAQ and i was able to get MCSPI6 to work as expected with SPIDEV.

    - Keerthy