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.

Linux/AM3352: Generating DTS file from Pinmux tool

Part Number: AM3352

Tool/software: Linux

Hi,

I'm using AM3352 based custom board and TI-SDK linux in my development. To configure the pins according to the custom hardware, we need to generate dtsi & dts files and finally dtb should be given as input to the kernel. As it is suggested in TI site, I had downloaded PinMux Tool (version: 4.0.1531) and trying to do the job. In the meantime, I've observed that the tool generates 4 output files:

1. am335x_pinmux.h

2. am335x_pinmux_data.c

3. devicetree.dtsi

4. PinmuxConfigSummary.csv

Among those, I could not find the dts file. Could you please help me how to generate the dts file? 

Looking forward for your quick reponse.

Regards,

Srikanth Vemula. 

  • Hi,

    The pinmux tool does not generate ready to use dts file. It is used to validate that you've correctly configured (without conflicts) the pins of your processor. After that you can take the values outputted from your pinmux tool and use them to modify/create your dts file.

    Moreover, if you use some of the later Linux SDKs (i.e. v05.01 or later), the pinmuxing is done primarily in u-boot in board/ti/am335x/mux.c file. Again you cannot use the pinmux output directly, it is a tool that helps you get the correct register values that need to be written in the c files in u-boot/kernel.

    Best Regards,
    Yordan

  • Hi Yordan,

    Thanks for your quick response.

    If the tool does not generate the dts file, Could you please let me know the procedure for generating it?

    Do we need to write it manually? If so, can I get any reference?

    Regards,

    Srikanth Vemula.

  • Hi,

    You can either write it manually, or you can use an existing one, for example am335x-evm.dts and modify it to match your board.

    Best Regards,
    Yordan