ARM: dts: meson8b: add the Cortex-A5 global timer
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Fri, 23 Nov 2018 19:53:11 +0000 (20:53 +0100)
committerKevin Hilman <khilman@baylibre.com>
Wed, 5 Dec 2018 00:48:14 +0000 (16:48 -0800)
The Meson8b SoC is using four Cortex-A5 cores. These come with an ARM
global timer.
This adds the Cortex-A5 global timer but keeps it disabled for now. The
timer is clocked by the "PERIPH" clock whose rate can change during
runtime (when changing the frequency of the CPU clock). Unfortunately
the arm_global_timer driver does not handle changes to the clock rate
yet.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm/boot/dts/meson8b.dtsi

index a3a5649e32fafa52ddd4214fb46fabc71305c20d..a38d187d3d6ec4002097e66a59b26e3dbe7886da 100644 (file)
                reg = <0x0 0x100>;
        };
 
+       timer@200 {
+               compatible = "arm,cortex-a5-global-timer";
+               reg = <0x200 0x20>;
+               interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
+               clocks = <&clkc CLKID_PERIPH>;
+
+               /*
+                * the arm_global_timer driver currently does not handle clock
+                * rate changes. Keep it disabled for now.
+                */
+               status = "disabled";
+       };
+
        timer@600 {
                compatible = "arm,cortex-a5-twd-timer";
                reg = <0x600 0x20>;