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.

DRA829V: Adding more CAN instance

Part Number: DRA829V
Other Parts Discussed in Thread: TDA4VM

Hi, expert:

           I have successfully transplanted MCAN0 and MCAN2 by patching the device tree on the 7.0SDK of J7.(References:[FAQ] TDA4VM: How can I use CAN on Linux)

           I'd like to ask, do the other MCAN4, MCAN5,MCAN6, MCAN7, MCAN9 and MCAN11 have corresponding transplantation patches or transplantation data for reference?

  • Hi,

    yapeng ma said:
    I'd like to ask, do the other MCAN4, MCAN5,MCAN6, MCAN7, MCAN9 and MCAN11 have corresponding transplantation patches or transplantation data for reference?

    There is no patch set to add this but the FAQ you referenced at https://e2e.ti.com/support/processors/f/791/t/922168 should provide a good reference.

    What you need to do is:

    1. Add pinmux for those MCANs for Tx and Rx
    2. Enable their transeivers (this might also need pinmux if they are being controlled by some GPIO, mux that GPIO)
    3. Add the MCAN nodes to Device tree.

    For 2 you need to look at the Schematics (I'm assuming this is the TI EVM):

    All the CAN instances on the GESI card are enabled by the same CAN_STB signal which is coming from the GPIO0_60.

    You need to mux this and turn this ON.

    For 1. you need to mux the Tx and Rx lines for all the MCAN instances.

    Once you have 1 and 2, just enable the MCAN modules and add relevant pinctrl.

    For PINMUX and enabling the GPIOs you can refer to the FAQ - https://e2e.ti.com/support/processors/f/791/t/918654

    Let me know in case you face problem in configuring the above.

    Regards,

    Karan