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.

AM6442: R5 u-boot-spl initialize the M4F core in WFI

Part Number: AM6442

Dear TI supporters,

I have a project using AM6442. Currently I want to initialize the M4F core in WFI from the R5 u-boot-spl to start M4F firmware that is programmed before.

I am doing the driver for remoteproc like ti_k3_m4f_rproc.c to Start M4F core that is based on the ti_k3_arm64_rproc.c driver.

I add a node fore m4f remoteproc driver in the device tree as below:

 cbass_mcu: bus@4000000 {
        compatible = "ti,am64x-m4fss-rproc";
        power-domains = <&k3_pds 61 TI_SCI_PD_EXCLUSIVE>, <&k3_pds 135 TI_SCI_PD_EXCLUSIVE>;
        resets = <&k3_reset 135 0>;
        clocks = <&k3_clks 61 0>;
        assigned-clocks = <&k3_clks 61 0>, <&k3_clks 135 0>;
        assigned-clock-parents = <&k3_clks 61 2>;
        assigned-clock-rates = <200000000>, <1000000000>;
        ti,sci = <&dmsc>;
        ti,sci-proc-id = <24>;                                           /* PROCID_MCU_M4FSS0_C0 */
        ti,sci-host-id = <30>;                                           /* M4_0(Non Secure): M4 */
        u-boot,dm-spl;
    };
But some element values I don't know to fill. Could you help me correct it.

For example: all of the following elements are of ARM64 (A53)
 power-domains = <&k3_pds 61 TI_SCI_PD_EXCLUSIVE>, <&k3_pds 135 TI_SCI_PD_EXCLUSIVE>;
 resets = <&k3_reset 135 0>;
 clocks = <&k3_clks 61 0>;
 assigned-clocks = <&k3_clks 61 0>, <&k3_clks 135 0>;
 assigned-clock-parents = <&k3_clks 61 2>;
 assigned-clock-rates = <200000000>, <1000000000>;

if I want to use them for M4F then how I should change them because I don't know the mean of number 135, 61?

M4F uses assigned-clock-rates = <400*1000000>, <400*1000000>; instead of  assigned-clock-rates = <200000000>, <1000000000>; Is it right?

Thanks,