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 <mlhx@google.com>
This commit is contained in:
Michael Hope 2020-06-07 17:31:37 +02:00 committed by Kumar Gala
commit 4c53e5222f

View file

@ -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>;
};
};
};