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.

SK-AM62: where and which dts/dtsi need to be setting in Yocto

Part Number:

Hello,

[BOARD] NEW SK-AM62 

[SDK]       ti-processor-sdk-linux-am62xx-evm-09.01.00.08

Question description: I want to redefine GPIO for customised contral. Please give me some advice!

 

I followed 1.2.2.2 .

$ git clone https://git.ti.com/git/arago-project/oe-layersetup.git tisdk
$ cd tisdk
$ ./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-09.01.00-config.txt
$ cd build
$ . conf/setenv
$ MACHINE=am62xx-evm bitbake -k tisdk-base-image

Result:

johnny@eic1-System-Product-Name:~/MPU/TI-processor/SK-AM62/yocto/tisdk$ ls
build  configs  downloads  git_retry.sh  oe-layertool-setup.sh  sample-files  sources
johnny@eic1-System-Product-Name:~/MPU/TI-processor/SK-AM62/yocto/tisdk$ ls sources/
bitbake  meta-arago  meta-arm  meta-edgeai  meta-openembedded  meta-qt5  meta-ti  meta-tisdk  meta-virtualization  oe-core

And I want to know where and which dts/dtsi file I should modify to contral GPIO.

I found someone has simalar question, and maybe $<BUILD_DIR>/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-gpio-py/1.0-r0_edgeai_1/git/lib/python/TI/GPIO/gpio_pin_data.py is the file I should set.

But there is no $<BUILD_DIR>/arago-tmp-default-glibc/work/aarch64-oe-linux/ti-gpio-py directory in my path.

  • Hello,

    The Linux device tree for AM62 that needs to be modified is k3-am62x-sk-common.dtsi or k3-am625-sk.dts. Follow this thread for an example of changing a device tree to support a GPIO pin: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1268671/sk-am62-using-the-gpios-in-the-40-pin-user-expansion-port

    The thread you linked is regarding the ti-gpio-py python library which is included with the Edge AI SDK 9.1. 

    Best Regards,

    Anshu

  • Thanks for your response.

    I'll try the thread you give and feedback then.

    But I just have some confusion about which path of k3-am62x-sk-common.dtsi or k3-am625-sk.dts should be modified?

    the followings are the path of k3-am62x-sk-common.dtsi and k3-am625-sk.dts I found under yocto directory.

    johnny@eic1-System-Product-Name:~/MPU/TI-processor/SK-AM62/yocto/tisdk$ ls
    build  configs  downloads  git_retry.sh  oe-layertool-setup.sh  sample-files  sources

    johnny@eic1-System-Product-Name:~/MPU/TI-processor/SK-AM62/yocto/tisdk$ sudo find . -name k3-am62x-sk-common.dtsi
    ./build/arago-tmp-default-glibc/work/am62xx_evm-oe-linux/u-boot-ti-staging/1_2023.04+gitAUTOINC+b0d717b732-r0_tisdk_1_edgeai_2/srcipk-staging/board-support/ti-u-boot-2023.04+gitAUTOINC+b0d717b732-gb0d717b732/arch/arm/dts/k3-am62x-sk-common.dtsi
    ./build/arago-tmp-default-glibc/work/am62xx_evm-oe-linux/u-boot-ti-staging/1_2023.04+gitAUTOINC+b0d717b732-r0_tisdk_1_edgeai_2/git/arch/arm/dts/k3-am62x-sk-common.dtsi
    ./build/arago-tmp-default-glibc/work/am62xx_evm-oe-linux/u-boot-ti-staging/1_2023.04+gitAUTOINC+b0d717b732-r0_tisdk_1_edgeai_2/packages-split/u-boot-ti-staging-src/board-support/ti-u-boot-2023.04+gitAUTOINC+b0d717b732-gb0d717b732/arch/arm/dts/k3-am62x-sk-common.dtsi
    ./build/arago-tmp-default-glibc/work/am62xx_evm-oe-linux/linux-ti-staging/6.1.46+gitAUTOINC+247b2535b2-r0b.arago5_tisdk_2_edgeai_0_edgeai_7/srcipk-staging/board-support/ti-linux-kernel-6.1.46+gitAUTOINC+247b2535b2-g247b2535b2/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi
    ./build/arago-tmp-default-glibc/work/am62xx_evm-oe-linux/linux-ti-staging/6.1.46+gitAUTOINC+247b2535b2-r0b.arago5_tisdk_2_edgeai_0_edgeai_7/packages-split/linux-ti-staging-src/board-support/ti-linux-kernel-6.1.46+gitAUTOINC+247b2535b2-g247b2535b2/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi
    ./build/arago-tmp-default-glibc/work/am62xx_evm-oe-linux/kernel-selftest/1.0-r0/kernel-selftest-1.0/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi
    ./build/arago-tmp-default-glibc/work-shared/am62xx-evm/kernel-source/arch/arm64/boot/dts/ti/k3-am62x-sk-common.dtsi
    ./build/arago-tmp-default-baremetal-k3r5/work/am62xx_evm_k3r5-oe-eabi/u-boot-ti-staging/1_2023.04+gitAUTOINC+b0d717b732-r0_tisdk_1_edgeai_2/srcipk-staging/board-support/ti-u-boot-2023.04+gitAUTOINC+b0d717b732-gb0d717b732/arch/arm/dts/k3-am62x-sk-common.dtsi
    ./build/arago-tmp-default-baremetal-k3r5/work/am62xx_evm_k3r5-oe-eabi/u-boot-ti-staging/1_2023.04+gitAUTOINC+b0d717b732-r0_tisdk_1_edgeai_2/git/arch/arm/dts/k3-am62x-sk-common.dtsi

    johnny@eic1-System-Product-Name:~/MPU/TI-processor/SK-AM62/yocto/tisdk$ sudo find . -name k3-am625-sk.dts
    ./build/arago-tmp-default-glibc/work/am62xx_evm-oe-linux/u-boot-ti-staging/1_2023.04+gitAUTOINC+b0d717b732-r0_tisdk_1_edgeai_2/srcipk-staging/board-support/ti-u-boot-2023.04+gitAUTOINC+b0d717b732-gb0d717b732/arch/arm/dts/k3-am625-sk.dts
    ./build/arago-tmp-default-glibc/work/am62xx_evm-oe-linux/u-boot-ti-staging/1_2023.04+gitAUTOINC+b0d717b732-r0_tisdk_1_edgeai_2/git/arch/arm/dts/k3-am625-sk.dts
    ./build/arago-tmp-default-glibc/work/am62xx_evm-oe-linux/u-boot-ti-staging/1_2023.04+gitAUTOINC+b0d717b732-r0_tisdk_1_edgeai_2/packages-split/u-boot-ti-staging-src/board-support/ti-u-boot-2023.04+gitAUTOINC+b0d717b732-gb0d717b732/arch/arm/dts/k3-am625-sk.dts
    ./build/arago-tmp-default-glibc/work/am62xx_evm-oe-linux/linux-ti-staging/6.1.46+gitAUTOINC+247b2535b2-r0b.arago5_tisdk_2_edgeai_0_edgeai_7/srcipk-staging/board-support/ti-linux-kernel-6.1.46+gitAUTOINC+247b2535b2-g247b2535b2/arch/arm64/boot/dts/ti/k3-am625-sk.dts
    ./build/arago-tmp-default-glibc/work/am62xx_evm-oe-linux/linux-ti-staging/6.1.46+gitAUTOINC+247b2535b2-r0b.arago5_tisdk_2_edgeai_0_edgeai_7/packages-split/linux-ti-staging-src/board-support/ti-linux-kernel-6.1.46+gitAUTOINC+247b2535b2-g247b2535b2/arch/arm64/boot/dts/ti/k3-am625-sk.dts
    ./build/arago-tmp-default-glibc/work/am62xx_evm-oe-linux/kernel-selftest/1.0-r0/kernel-selftest-1.0/arch/arm64/boot/dts/ti/k3-am625-sk.dts
    ./build/arago-tmp-default-glibc/work-shared/am62xx-evm/kernel-source/arch/arm64/boot/dts/ti/k3-am625-sk.dts
    ./build/arago-tmp-default-baremetal-k3r5/work/am62xx_evm_k3r5-oe-eabi/u-boot-ti-staging/1_2023.04+gitAUTOINC+b0d717b732-r0_tisdk_1_edgeai_2/srcipk-staging/board-support/ti-u-boot-2023.04+gitAUTOINC+b0d717b732-gb0d717b732/arch/arm/dts/k3-am625-sk.dts
    ./build/arago-tmp-default-baremetal-k3r5/work/am62xx_evm_k3r5-oe-eabi/u-boot-ti-staging/1_2023.04+gitAUTOINC+b0d717b732-r0_tisdk_1_edgeai_2/git/arch/arm/dts/k3-am625-sk.dts

  • Hello,

    I don't provide support for yocto so I'm not exactly sure.
    The generic path for both files would be in <install_directory>/board-support/ti-linux-kernel-<version>/arch/arm64/boot/dts/ti/<device tree file>

    For both outputs, it seems like there are two paths that are similar. You can try both of these and see which one may work:

    ./build/arago-tmp-default-glibc/work/am62xx_evm-oe-linux/linux-ti-staging/6.1.46+gitAUTOINC+247b2535b2-r0b.arago5_tisdk_2_edgeai_0_edgeai_7/srcipk-staging/board-support/ti-linux-kernel-6.1.46+gitAUTOINC+247b2535b2-g247b2535b2/arch/arm64/boot/dts/ti/k3-am625-sk.dts
    ./build/arago-tmp-default-glibc/work/am62xx_evm-oe-linux/linux-ti-staging/6.1.46+gitAUTOINC+247b2535b2-r0b.arago5_tisdk_2_edgeai_0_edgeai_7/packages-split/linux-ti-staging-src/board-support/ti-linux-kernel-6.1.46+gitAUTOINC+247b2535b2-g247b2535b2/arch/arm64/boot/dts/ti/k3-am625-sk.dts

    I will try to confirm internally and will update afterwards.

    Best Regards,

    Anshu

  • Hello,

    Try de-compiling the dtb file to see which file used the changes you made.

    Thanks,
    Anshu