|
1 | 1 | /* |
2 | 2 | * Copyright (c) 2019 Benjamin Valentin |
| 3 | + * Copyright (c) 2024 Gerson Fernando Budke < [email protected]> |
3 | 4 | * |
4 | 5 | * SPDX-License-Identifier: Apache-2.0 |
5 | 6 | */ |
6 | 7 |
|
7 | | -#include <atmel/samd2x.dtsi> |
| 8 | +#include <atmel/samd21.dtsi> |
8 | 9 |
|
9 | 10 | / { |
10 | 11 | aliases { |
11 | 12 | port-c = &portc; |
12 | | - |
13 | | - tcc-0 = &tcc0; |
14 | | - tcc-1 = &tcc1; |
15 | | - tcc-2 = &tcc2; |
16 | 13 | }; |
17 | 14 |
|
18 | 15 | soc { |
19 | | - usb0: usb@41005000 { |
20 | | - compatible = "atmel,sam0-usb"; |
21 | | - reg = <0x41005000 0x1000>; |
22 | | - interrupts = <7 0>; |
23 | | - status = "disabled"; |
24 | | - |
25 | | - num-bidir-endpoints = <8>; |
26 | | - }; |
27 | | - |
28 | | - dmac: dmac@41004800 { |
29 | | - compatible = "atmel,sam0-dmac"; |
30 | | - reg = <0x41004800 0x50>; |
31 | | - interrupts = <6 0>; |
32 | | - |
33 | | - #dma-cells = <2>; |
34 | | - }; |
35 | | - |
36 | 16 | pinctrl: pinctrl@41004400 { |
37 | 17 | ranges = <0x41004400 0x41004400 0x180>; |
38 | 18 |
|
|
51 | 31 | compatible = "atmel,sam0-pinmux"; |
52 | 32 | reg = <0x41004500 0x80>; |
53 | 33 | }; |
54 | | - |
55 | | - tcc0: tcc@42002000 { |
56 | | - compatible = "atmel,sam0-tcc"; |
57 | | - reg = <0x42002000 0x80>; |
58 | | - interrupts = <15 0>; |
59 | | - clocks = <&gclk 26>, <&pm 0x20 8>; |
60 | | - clock-names = "GCLK", "PM"; |
61 | | - status = "disabled"; |
62 | | - |
63 | | - channels = <4>; |
64 | | - counter-size = <24>; |
65 | | - }; |
66 | | - |
67 | | - tcc1: tcc@42002400 { |
68 | | - compatible = "atmel,sam0-tcc"; |
69 | | - reg = <0x42002400 0x80>; |
70 | | - interrupts = <16 0>; |
71 | | - clocks = <&gclk 26>, <&pm 0x20 9>; |
72 | | - clock-names = "GCLK", "PM"; |
73 | | - status = "disabled"; |
74 | | - |
75 | | - channels = <2>; |
76 | | - counter-size = <24>; |
77 | | - }; |
78 | | - |
79 | | - tcc2: tcc@42002800 { |
80 | | - compatible = "atmel,sam0-tcc"; |
81 | | - reg = <0x42002800 0x80>; |
82 | | - interrupts = <17 0>; |
83 | | - clocks = <&gclk 27>, <&pm 0x20 10>; |
84 | | - clock-names = "GCLK", "PM"; |
85 | | - status = "disabled"; |
86 | | - |
87 | | - channels = <2>; |
88 | | - counter-size = <16>; |
89 | | - }; |
90 | 34 | }; |
91 | 35 | }; |
92 | | - |
93 | | -&sercom0 { |
94 | | - interrupts = <9 0>; |
95 | | - clocks = <&gclk 0x14>, <&pm 0x20 2>; |
96 | | - clock-names = "GCLK", "PM"; |
97 | | -}; |
98 | | - |
99 | | -&sercom1 { |
100 | | - interrupts = <10 0>; |
101 | | - clocks = <&gclk 0x15>, <&pm 0x20 3>; |
102 | | - clock-names = "GCLK", "PM"; |
103 | | -}; |
104 | | - |
105 | | -&sercom2 { |
106 | | - interrupts = <11 0>; |
107 | | - clocks = <&gclk 0x16>, <&pm 0x20 4>; |
108 | | - clock-names = "GCLK", "PM"; |
109 | | -}; |
110 | | - |
111 | | -&sercom3 { |
112 | | - interrupts = <12 0>; |
113 | | - clocks = <&gclk 0x17>, <&pm 0x20 5>; |
114 | | - clock-names = "GCLK", "PM"; |
115 | | -}; |
116 | | - |
117 | | -&sercom4 { |
118 | | - interrupts = <13 0>; |
119 | | - clocks = <&gclk 0x18>, <&pm 0x20 6>; |
120 | | - clock-names = "GCLK", "PM"; |
121 | | -}; |
122 | | - |
123 | | -&sercom5 { |
124 | | - interrupts = <14 0>; |
125 | | - clocks = <&gclk 0x19>, <&pm 0x20 7>; |
126 | | - clock-names = "GCLK", "PM"; |
127 | | -}; |
128 | | - |
129 | | -&tc4 { |
130 | | - interrupts = <19 0>; |
131 | | - clocks = <&gclk 0x1c>, <&pm 0x20 12>; |
132 | | - clock-names = "GCLK", "PM"; |
133 | | -}; |
134 | | - |
135 | | -&adc { |
136 | | - clocks = <&gclk 0x1e>, <&pm 0x20 16>; |
137 | | - clock-names = "GCLK", "PM"; |
138 | | - interrupts = <23 0>; |
139 | | - interrupt-names = "resrdy"; |
140 | | -}; |
0 commit comments