From 4c53e5222ffd2423a6fcaf3b539381932c841f98 Mon Sep 17 00:00:00 2001 From: Michael Hope Date: Sun, 7 Jun 2020 17:31:37 +0200 Subject: [PATCH] dts: arm: add definitions for the TCC peripherals on the SAMD21 The SAMD21 series has three timer/counters with a mix of channels and resolutions. Note that the SAMD20 only has TC peripherals and no TCC peripherals which is why the changes are in samd21.dtsi. Signed-off-by: Michael Hope --- dts/arm/atmel/samd21.dtsi | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/dts/arm/atmel/samd21.dtsi b/dts/arm/atmel/samd21.dtsi index 28e6e1870c9..d88b59ca449 100644 --- a/dts/arm/atmel/samd21.dtsi +++ b/dts/arm/atmel/samd21.dtsi @@ -37,6 +37,42 @@ clocks = <&gclk 0x1d>, <&pm 0x20 14>; clock-names = "GCLK", "PM"; }; + + tcc0: tcc@42002000 { + compatible = "atmel,sam0-tcc"; + reg = <0x42002000 0x80>; + interrupts = <15 0>; + label = "TCC_0"; + clocks = <&gclk 26>, <&pm 0x20 8>; + clock-names = "GCLK", "PM"; + + channels = <4>; + counter-size = <24>; + }; + + tcc1: tcc@42002400 { + compatible = "atmel,sam0-tcc"; + reg = <0x42002400 0x80>; + interrupts = <16 0>; + label = "TCC_1"; + clocks = <&gclk 26>, <&pm 0x20 9>; + clock-names = "GCLK", "PM"; + + channels = <2>; + counter-size = <24>; + }; + + tcc2: tcc@42002800 { + compatible = "atmel,sam0-tcc"; + reg = <0x42002800 0x80>; + interrupts = <17 0>; + label = "TCC_2"; + clocks = <&gclk 27>, <&pm 0x20 10>; + clock-names = "GCLK", "PM"; + + channels = <2>; + counter-size = <16>; + }; }; };