mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-08 13:52:56 +00:00
This adds support for the basic timer counter (TC) found on SAM0 series parts. This driver only supports running the counter in 32 bit wide mode. Since this mode explicitly slaves the odd counters to the even ones, only instances of the even ones are defined. Tested with tests/drivers/counter/counter_basic_api on SAMD21. Signed-off-by: Derek Hageman <hageman@inthat.cloud>
71 lines
907 B
Plaintext
71 lines
907 B
Plaintext
/*
|
|
* Copyright (c) 2017 Google LLC.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <atmel/samd.dtsi>
|
|
|
|
/ {
|
|
aliases {
|
|
tc-6 = &tc6;
|
|
};
|
|
|
|
soc {
|
|
usb0: usb@41005000 {
|
|
compatible = "atmel,sam0-usb";
|
|
status = "disabled";
|
|
reg = <0x41005000 0x1000>;
|
|
interrupts = <7 0>;
|
|
num-bidir-endpoints = <8>;
|
|
label = "USB0";
|
|
};
|
|
|
|
dma: dmac@41004800 {
|
|
compatible = "atmel,sam0-dmac";
|
|
reg = <0x41004800 0x50>;
|
|
interrupts = <6 0>;
|
|
label = "DMA_0";
|
|
};
|
|
|
|
tc6: tc@42003800 {
|
|
compatible = "atmel,sam0-tc32";
|
|
reg = <0x42003800 0x20>;
|
|
interrupts = <21 0>;
|
|
label = "TIMER_6";
|
|
};
|
|
};
|
|
};
|
|
|
|
&sercom0 {
|
|
interrupts = <9 0>;
|
|
};
|
|
|
|
&sercom1 {
|
|
interrupts = <10 0>;
|
|
};
|
|
|
|
&sercom2 {
|
|
interrupts = <11 0>;
|
|
};
|
|
|
|
&sercom3 {
|
|
interrupts = <12 0>;
|
|
};
|
|
|
|
&sercom4 {
|
|
interrupts = <13 0>;
|
|
};
|
|
|
|
&sercom5 {
|
|
interrupts = <14 0>;
|
|
};
|
|
|
|
&tc4 {
|
|
interrupts = <19 0>;
|
|
};
|
|
|
|
&adc {
|
|
interrupts = <23 0>;
|
|
};
|