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.

DRA718: Timer use in ipu1

Part Number: DRA718
Other Parts Discussed in Thread: SYSBIOS

Hi,

I'm working on a DRA718 platform with Android 8 on A15 and SYS/BIOS on ipu1.

We are facing an issue trying to use a new timer on ipu1 and the documentation isn't clear enough.

This is our dtb timer assignment for both ipus:

&ipu1{
   status = "okay";
   memory-region = <&ipu1_cma_pool>;
   mboxes = <&mailbox5 &mbox_ipu1_ipc3x>;
   timers = <&timer11>;
   watchdog-timers = <&timer7>, <&timer8>;
   ti,no-idle;
   ti,late-attach;
   ti,no-idle-on-init;
   ti,no-reset-on-init;
};

&ipu2 {
   status = "okay";
   memory-region = <&ipu2_cma_pool>;
   mboxes = <&mailbox6 &mbox_ipu2_ipc3x>;
   timers = <&timer3>;
   watchdog-timers = <&timer4>, <&timer9>;
};

&timer11 {
   ti,late-attach;
   ti,no-idle;
   ti,no-idle-on-init;
   ti,no-reset-on-init;
};

&timer7 {
   ti,late-attach;
   ti,no-idle;
   ti,no-idle-on-init;
   ti,no-reset-on-init;
};

&timer8 {
   ti,late-attach;
   ti,no-idle;
   ti,no-idle-on-init;
   ti,no-reset-on-init;
};

Is it possible to use a new timer on ipu1? All timers above 11 are unused.

We are adding it to ipu1 dtb node and the cfg file:

var dmTimer0Params = new dmTimer.Params();
dmTimer0Params.instance.name = "dmTimer0";
Program.global.dmTimer0 = dmTimer.create(12, null, dmTimer0Params);


But ccs throws the error "Timer device unavailable". Also creating a new dmtimer on runtime crash the ipu.

Thanks, best regards
Agustín.

  • Augustin,

    I did not get it. You are changing dtb file to make timer available on ipu, which does not use dtb files.  dtb files are for Linux, they are not used on ipu, which typically uses sysbios. 

     Also when you say crash on ipu, do you see some kind of abort? i am just wondering if the timer is powered on. Because otherwise, it might not accessible and bios can crash. Could you please check if it is powered on in boot loader?

    Regards,

    Brijesh