SK-AM62P-LP: [SK-AM62P-LP][AndroidAutomotive] Unable to get the DSI port up and running

Part Number: SK-AM62P-LP
Other Parts Discussed in Thread: AM62P

Tool/software:

Dear Team:

Hardware: SK-AM62P-LP

Software:   Android SDK 10_00_00

Display panel used : Rpi 7inch display : https://www.raspberrypi.com/products/raspberry-pi-touch-display/

DTB overlay used: name_overlays=ti/k3-am62p5-sk-dsi-rpi-7inch-panel.dtbo

I am not able to bring up the DSI interface on Android. Attached is the dmesg logs.

7608.dmesg.txt

  • Dear Team,

    According to your link, https://software-dl.ti.com/processor-sdk-android/esd/AM62PX/10_00_00/docs/devices/AM62PX/android/Application_Notes_dtbo_support.html#android-dtbo

    only the below DTB files are supported on AM62P.

    Could you let me know how to dump the following

    1. dtbo overlays supported from U-boot promt.

    2. How is the mapping with dtbo_index to dtbo file done

    The following Device-Tree Overlays are supported:

    Table 4.1 AM62Px-SK EVM

    Index

    Description

    0

    HDMI audio output (bridge by shorting a (J24) header on the board.)

    1

    Digilent PCam 5C OV5640 Camera

    2

    TEVI-OV5640C-S84-IR-RPI Camera

    4

    Enable MAIN and MCU GPIO + CANUART wakeup source

    9

    4x MCAN interfaces (requires external CAN transceivers)

    10

    Microtips Technology USA 10.1” WUXGA (1920x1200) OLDI panel

    12

    M.2-CC3301 WiFi board on the M.2 connector

    Best regards

    Libin Jose

  • Dear Team,

    I also tried the kernel DTBO out folder under Android Kernel folder.

    user@XXXX:~/sk-am62p-lp/ti-aosp-14/device/ti/am62x-kernel/kernel/6.1$ ls -l *.dtbo
    -rwxr-xr-x 1 user user 1698 Sep 30 14:49 k3-am625-beagleplay-csi2-ov5640.dtbo
    -rwxr-xr-x 1 user user 1698 Sep 30 14:49 k3-am625-beagleplay-csi2-tevi-ov5640.dtbo
    -rwxr-xr-x 1 user user 2562 Sep 30 14:49 k3-am625-beagleplay-lincolntech-lcd185-panel.dtbo
    -rwxr-xr-x 1 user user 2189 Sep 30 14:49 k3-am625-sk-m2-cc3301.dtbo
    -rwxr-xr-x 1 user user 2098 Sep 30 14:49 k3-am625-sk-microtips-mf101hie-panel.dtbo
    -rwxr-xr-x 1 user user 2336 Sep 30 14:49 k3-am625-sk-wl1837.dtbo
    -rwxr-xr-x 1 user user 2207 Sep 30 14:49 k3-am62-lp-sk-microtips-mf101hie-panel.dtbo
    -rwxr-xr-x 1 user user 1987 Sep 30 14:49 k3-am62p5-sk-m2-cc3301.dtbo
    -rwxr-xr-x 1 user user 2526 Sep 30 14:49 k3-am62p5-sk-mcan.dtbo
    -rwxr-xr-x 1 user user 1703 Sep 30 14:49 k3-am62p5-sk-microtips-mf101hie-panel.dtbo
    -rwxr-xr-x 1 user user 1554 Sep 30 14:49 k3-am62x-sk-csi2-ov5640.dtbo
    -rwxr-xr-x 1 user user 1554 Sep 30 14:49 k3-am62x-sk-csi2-tevi-ov5640.dtbo
    -rwxr-xr-x 1 user user 1154 Sep 30 14:49 k3-am62x-sk-hdmi-audio.dtbo
    -rwxr-xr-x 1 user user 3235 Sep 30 14:49 k3-am62x-sk-lpm-wkup-sources.dtbo

    I couldn't find the RPI display DTBO file available in the out directory. I am not sure if there is any other way in which you might have applied the overlay.

    Best regards

    Libin Jose

  • Hi Libin,

    DTB overlay used: name_overlays=ti/k3-am62p5-sk-dsi-rpi-7inch-panel.dtbo

    I am not able to bring up the DSI interface on Android. Attached is the dmesg logs.

    That's expected, as we don't support/test k3-am62p5-sk-dsi-rpi-7inch-panel.dtbo in Android.


    Could you let me know how to dump the following

    1. dtbo overlays supported from U-boot promt.

    2. How is the mapping with dtbo_index to dtbo file done


    Both are related. The supported dtbo overlays are shipped in a special Android image named dtbo.img. The dtbo.img is build when building the Android kernel following https://software-dl.ti.com/processor-sdk-android/esd/AM62PX/10_01_00/docs/android/Foundational_Components_Kernel.html#build-instructions

    To view how the dtbo_index maps with the dtbo file, we can inspect the BUILD.bazel from the kernel source code:
    https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/tree/BUILD.bazel?h=ti-android-linux-6.6.y#n953

    Looking at the kernel_images() macro, we can see:

    kernel_images(
        name = "ti_images",
        build_dtbo = True,
        build_initramfs = True,
        dtbo_srcs = [
            ":ti/k3-am62x-sk-hdmi-audio.dtbo",
            ":ti/k3-am62x-sk-csi2-ov5640.dtbo",
            ":ti/k3-am62x-sk-csi2-tevi-ov5640.dtbo",
            ":ti/k3-am625-sk-microtips-mf101hie-panel.dtbo",
            ":ti/k3-am62x-sk-lpm-wkup-sources.dtbo",
            ":ti/k3-am62-lp-sk-microtips-mf101hie-panel.dtbo",
            ":ti/k3-am625-beagleplay-csi2-ov5640.dtbo",
            ":ti/k3-am625-beagleplay-csi2-tevi-ov5640.dtbo",
            ":ti/k3-am625-beagleplay-lincolntech-lcd185-panel.dtbo",
            ":ti/k3-am62p5-sk-mcan.dtbo",
            ":ti/k3-am62p5-sk-microtips-mf101hie-panel.dtbo",
            ":ti/k3-am625-sk-m2-cc3301.dtbo",
            ":ti/k3-am62p5-sk-m2-cc3301.dtbo",
            ":ti/k3-am625-sk-wl1837.dtbo",
    
        ],
        kernel_build = "//common:ti",
        kernel_modules_install = "//common:ti_modules_install",
    )


    The above code dictates the order of the overlays in the dtbo.img. For example, we have:

    name dtbo_index
    ti/k3-am62x-sk-hdmi-audio.dtbo
    0
    ti/k3-am62x-sk-csi2-ov5640.dtbo
    1


    Hope that helps.
    Mattijs

  • Dear Mattijs,

    >> That's expected, as we don't support/test k3-am62p5-sk-dsi-rpi-7inch-panel.dtbo in Android.

    Exactly, that was my point. On other similar threads I got a response from TI that rpi-7 inch is supported in Android. Thanks for the DTBO mapping instructions. It is very helpful.

    Best regards

    Libin Jose

  • Hi Libin,

    Since you have found this information helpful, we will update the Android SDK documentation to include this information in the kernel guide.

    Thanks,
    Mattijs