From 5a09a51e313cb9a5cc2c2dba487c0c68e8455ecd Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Tue, 25 Jun 2019 12:41:17 +0200 Subject: [PATCH] dts/arm: Add the 3 MEC1501 basic timer instances. 4 are found: 2 with a counter of 16bits and 2 with a counter of 32 bits. However, first 32bits instance will not be exposed as it will be used by rtos timer driver directly to implement k_busy_wait() Signed-off-by: Tomasz Bursztyka --- dts/arm/microchip/mec1501hsz.dtsi | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/dts/arm/microchip/mec1501hsz.dtsi b/dts/arm/microchip/mec1501hsz.dtsi index d9454a028eb..e28999cf604 100644 --- a/dts/arm/microchip/mec1501hsz.dtsi +++ b/dts/arm/microchip/mec1501hsz.dtsi @@ -169,6 +169,36 @@ #address-cells = <1>; #size-cells = <0>; }; + timer0: timer@40000c00 { + compatible = "microchip,xec-timer"; + clock-frequency = <48000000>; + reg = <0x40000C00 0x20>; + interrupts = <136 0>; + label = "TIMER_0"; + max-value = <0xFFFF>; + prescaler = <0>; + status = "disabled"; + }; + timer1: timer@40000c20 { + compatible = "microchip,xec-timer"; + clock-frequency = <48000000>; + reg = <0x40000C20 0x20>; + interrupts = <137 0>; + label = "TIMER_1"; + max-value = <0xFFFF>; + prescaler = <0>; + status = "disabled"; + }; + timer3: timer@40000ca0 { + compatible = "microchip,xec-timer"; + clock-frequency = <48000000>; + reg = <0x40000CA0 0x20>; + interrupts = <141 0>; + label = "TIMER_3"; + max-value = <0xFFFFFFFF>; + prescaler = <0>; + status = "disabled"; + }; }; };