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.

PROCESSOR-SDK-AM62X: How MCU domain periphals working in linux

Part Number: PROCESSOR-SDK-AM62X
Other Parts Discussed in Thread: SK-AM62

Hi Ti,

Working on  AM6231 Custom hardware , and using SDK_09_00_00_08 build.

I configured mcu_uart0 as LTE module .

Here is a query , how could i able to access the mcu_domain peripherals in linux ?

May i know what is the reason ? any firnware running on linux , due to that am i able to access the mcu_domain peripherlas ?

suppose , if i unload the firmware ,so i could not able to access the mcu_peripherals right ?

may i know the detials ?

please take this as a high priority .

Thanking you...!

Thanks,

Naresh

  • Hi Naresh,

    Here is a query , how could i able to access the mcu_domain peripherals in linux ?

    The Linux accessible MCU domain peripherals are defined in kernel device tree k3-am62-mcu.dtsi. You just need to enable them and use them in the same way as using the MAIN domain peripherals.

    May i know what is the reason ? any firnware running on linux , due to that am i able to access the mcu_domain peripherlas ?

    suppose , if i unload the firmware ,so i could not able to access the mcu_peripherals right ?

    Please clarify what firmware are you referring to?

  • HI Bin Liu,

    are

    Just asking whehter any firmware is responsible for to enable the mcu_domain peripeherals in linux .

    are

    As you said, adding MCU_domain interfaces in the device tree  "k3-am62-mcu.dtsi "  which enables in the Linux ?

    But MCU domain periperals runs on MCU Only right . in linux how MCU is enabled ?

    Please correct me if i am wrong ?

    Thanks,

    Naresh

  • Hi Naresh,

    Just asking whehter any firmware is responsible for to enable the mcu_domain peripeherals in linux .

    No firmware is needed in Linux.

    As you said, adding MCU_domain interfaces in the device tree  "k3-am62-mcu.dtsi "  which enables in the Linux ?

    For example, to use MCU UART in Linux on SK-AM62 board, you need to add the following to k3-am62x-sk-common.dtsi:

    <add mcu uart0 pinmux>;

    &mcu_uart0 {
        status = "okay";
        pinctrl-name = ...;
        pinctrl-0 = ...;
    };

    But MCU domain periperals runs on MCU Only right . in linux how MCU is enabled ?

    Not correct, if you check the AM62x TRM, many MCU domain peripherals are accessible on A53. Linux has the information to know how to enable LPSC and clock for a MCU domain peripheral.

  • HI BinLiu,

    Thanks for confirmation and detailed explanation.

    i observed that WKUP_UART0 is used by DM firmware to run on R5 core , collected the R5 logs through WKUP_UART0 port .

    One Query : can i use WKUP_UART0 port as normal uart communication protocal  as like MAIN_UART's?

    Thanks,

    Naresh

  • Hi Naresh,

    The WKUP_UART0 is only used by DM firmware when the firmware debug tracing is enabled.

    So yes, your Linux application can use the WKUP_UART0 if you don't need to debug the DM firmware. The only sw change is that you need to disable WKUP_UART0 initialization in DM firmware and rebuild the firmware.