Skip to content

How to choose system timer?

Michal Simek linux-devicetree 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 1 patch 0 repliesNew

Patches in v1 No applies recorded yet

The patch the cover letter announces is not in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] How to choose system timer?

Hi,

I have one design question about specifying system timer in DTS. Our proposed solution is to specify system-timer in chosen node and then Linux kernel probe it.

For example:

	chosen {
		bootargs = " console=ttyS0,115200 ";
		linux,stdout-path = "/plb@0/serial@83e00000";
		system-timer = <&xps_timer_0>;
	} ;

Is it correct solution? We would like to use standard solution and not to reinvent the wheel. How others archs handle it? AFAIK you have internal cpu timer which is used as system timer.

I have also attached the patch for microblaze to show probing.

Thanks,
Michal

*** BLURB HERE ***

Peter A. G. Crosthwaite (1):
microblaze: Added fdt chosen capability for timer

 arch/microblaze/kernel/timer.c |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)
Signature · 1 line
1.7.5.4