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/TDA2EVM5777: Processor SDK linux DTS files

Part Number: TDA2EVM5777

Tool/software: Linux

Hello,

I am running the ti-processor-sdk-linux-automotive-dra7xx-evm-03_04_00_03 and I was looking for the correct dtsi file to be able to modify and control GPIOs or different interfaces for the TDA2EVM5777. Which dtsi file should I use?

I believe I have the correct directory path: /yocto-layers/build/arago-tmp-external-linaro-toolchain/work/dra7xx_evm-linux-gnueabi/linux-ti-staging/4.4.84+gitAUTOINC+742f84423d-r7a.arago5/git/arch/arm/boot/dts

Thank you,
-iFer

  • Hi iFer,

    For TDA2x (J6/DRA7x), you need to use dra7-evm.dts
    For TDA2Ex (J6Eco/ DRA72x) use dra72-evm.dts

    Regards,
    Yordan
  • Hello Yordan,

    Thank you for your help!

    I modified the dra7-evm.dts file to try to set a gpio as an output and I was unable to verify that the gpio was actually pinmuxed.

    I tried verifying reading the pad config register for GPIO 1_22 (addreses 0x4a003794), and the resulting reg value did not show that it was gpio mux mode.
    See below results: 

    root@dra7xx-evm:~# devmem2 0x4a003794 w
    /dev/mem opened.
    Memory mapped at address 0xb6f92000.
    Read at address  0x4A003794 (0xb6f92794): 0x0006000F
    root@dra7xx-evm:~#


    For the DTSI modifications, I added these lines:


    &gpio1 {
    pinctrl-names = "default";
    pinctrl-0 = <&gpio1_hog_pins>;
    };


    and

    gpio1_hog_pins: gpio1_hog_pins {
    pinctrl-single,pins = <
    0x394 (PIN_OUTPUT | MUX_MODE14)
    >;

    }

    Attached is the actual file that I attempted to modify located under: yocto-layers/build/arago-tmp-external-linaro-toolchain/work/dra7xx_evm-linux-gnueabi/linux-ti-staging/4.4.84+gitAUTOINC+742f84423d-r7a.arago5/git/arch/arm/boot/dts/

    Is this the correct dts file and directory to modify? Is this the correct way to modify the gpio?

    Thank you,
    -iFer
  • Hi iFer,

    I have forwarded your question to GPIO expert.

    Regards,
    Yordan
  • Hello Yordan,

    I was able to successfully compile the dts file.

    My problem was: I was modifying the correctly named dts file named dra7-evm.dts, but under the wrong directory ( /yocto-layers/build/arago-tmp-external-linaro-toolchain/work/dra7xx_evm-linux-gnueabi/linux-ti-staging/4.4.84+gitAUTOINC+742f84423d-r7a.arago5/git/arch/arm/boot/dts).


    My fix was: I modified the dts file (dra7-evm.dts) under the file path of /board-support/linux/arch/arm/boot/dts/

    I then compiled at root by running the commands:
    make linux_clean
    make linux
    make linux_install

    I had a syntax error in the above message where I was missing a semicolon and that was made apparent when running the command: make linux


    Also, the output files of these compile commands are located for me under this file path: ../install/dra7xx/boot/
    All I had to do was copy them over to the boot directory under the rootfs of the sd card.



    Thank you for your help!
    -iFer