This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Juno dts timer node

Hi,

I am trying to bring-up linux on Juno r0 board and if I use below timer node I am getting kernel panic while executing timer_init API.

Please let me know if I am missing anything else in order to enable timer ?

memtimer: timer@2a810000

{

       compatible = "arm,armv7-timer-mem";

       reg = <0x0 0x2a810000 0x0 0x10000>;

       clock-frequency = <50000000>;

       #address-cells = <0x2>;

       #size-cells = <0x2>;

       ranges;

       status = "disabled";

       frame@2a830000 {

                 frame-number = <0x1>;

                 interrupts = <0x0 0x3c 0x4>;

                 reg = <0x0 0x2a830000 0x0 0x10000>;

       };

  };

timer

{

       compatible = "arm,armv8-timer";

       interrupts = <1 13 0xff01>,

                        <1 14 0xff01>,

                        <1 11 0xff01>,

                        <1 10 0xff01>;

};

Thanks.

Parents
  • Hi,

    I am still facing issue with timers in Juno where arch_timer_register API is failing.

    I tried only using "armv8-timer" and removed "armv7-timer-mem" node as it seems first one is used for per CPU timer.

    Could some one please provide any inputs as what could be wrong ? Also, which clock domain timer belongs to ? I am assuming apb_pclk as frequency matches ?

    I am using only below node in device tree -

    timer {

                    compatible = "arm,armv8-timer";

                    interrupts = <1 13 0xff01>,

                                 <1 14 0xff01>,

                                 <1 11 0xff01>,

                                 <1 10 0xff01>;

                    clock-frequency = <100000000>;

            };

    Thanks.

Reply
  • Hi,

    I am still facing issue with timers in Juno where arch_timer_register API is failing.

    I tried only using "armv8-timer" and removed "armv7-timer-mem" node as it seems first one is used for per CPU timer.

    Could some one please provide any inputs as what could be wrong ? Also, which clock domain timer belongs to ? I am assuming apb_pclk as frequency matches ?

    I am using only below node in device tree -

    timer {

                    compatible = "arm,armv8-timer";

                    interrupts = <1 13 0xff01>,

                                 <1 14 0xff01>,

                                 <1 11 0xff01>,

                                 <1 10 0xff01>;

                    clock-frequency = <100000000>;

            };

    Thanks.

Children
No data