]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ARM: dts: gr-peach: Enable ostm0 and ostm1 timers
authorJacopo Mondi <jacopo+renesas@jmondi.org>
Mon, 9 Oct 2017 08:48:35 +0000 (10:48 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Thu, 12 Oct 2017 11:51:25 +0000 (13:51 +0200)
Enable ostm0 and ostm1 timers to be used as clock source and clockevent
source. The timers provides greater accuracy than the already enabled
mtu2 one.

With these enabled:

clocksource: ostm: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 57352151442 ns
sched_clock: 32 bits at 33MHz, resolution 30ns, wraps every 64440619504ns
ostm: used for clocksource
ostm: used for clock events

Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Suggested-by: Chris Brandt <chris.brandt@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r7s72100-gr-peach.dts

index eca14e3801ecfa4b412d506d6097dfa4090c971b..779f724b4531defa1eebf6cf5a179a4b8bb1dcc6 100644 (file)
        status = "okay";
 };
 
+&ostm0 {
+       status = "okay";
+};
+
+&ostm1 {
+       status = "okay";
+};
+
 &scif2 {
        pinctrl-names = "default";
        pinctrl-0 = <&scif2_pins>;