1# Copyright (c) 2022 Argentum Systems Ltd.
2# SPDX-License-Identifier: Apache-2.0
3#
4# Sources:
5# - SAM-R34-R35-Low-Power-LoRa-Sub-GHz-SiP-Data-Sheet-DS70005356C.pdf (Revision C - 05/2019)
6#
7# Pin codes:
8#
9# - 64      pins: j
10#
11# SoC Revision (variant) supported:
12#
13# - SAMR34/SAMR35
14# - B = Release to Production
15
16model: atmel,sam
17
18family: r34-r35
19
20map: SAM_PINMUX
21
22series: [r34, r35]
23
24variants:
25  - pincode: j
26    series: [r34, r35]
27
28pins:
29  pa00:
30    pincodes: [j]
31    periph:
32      - [a, eic, extint0]
33      - [d, sercom1, pad0]
34      - [e, tcc2, wo0]
35  pa01:
36    pincodes: [j]
37    periph:
38      - [a, eic, extint1]
39      - [d, sercom1, pad1]
40      - [e, tcc2, wo1]
41  pa04:
42    pincodes: [j]
43    periph:
44      - [a, eic, extint4]
45      - [b, adc, ain4]
46      - [d, sercom0, pad0]
47      - [e, tcc0, wo0]
48  pa05:
49    pincodes: [j]
50    periph:
51      - [a, eic, extint5]
52      - [b, adc, ain5]
53      - [d, sercom0, pad1]
54      - [e, tcc0, wo1]
55  pa06:
56    pincodes: [j]
57    periph:
58      - [a, eic, extint6]
59      - [b, adc, ain6]
60      - [b, ptc, y4]
61      - [d, sercom0, pad2]
62      - [e, tcc1, wo0]
63  pa07:
64    pincodes: [j]
65    periph:
66      - [a, eic, extint7]
67      - [b, adc, ain7]
68      - [d, sercom0, pad3]
69      - [e, tcc1, wo1]
70  pa08:
71    pincodes: [j]
72    periph:
73      - [a, eic, nmi]
74      - [b, adc, ain16]
75      - [b, ptc, x0]
76      - [b, ptc, y6]
77      - [c, sercom0, pad0]
78      - [d, sercom2, pad0]
79      - [e, tcc0, wo0]
80      - [f, tcc1, wo2]
81  pa09:
82    pincodes: [j]
83    periph:
84      - [a, eic, extint9]
85      - [b, adc, ain17]
86      - [b, ptc, x1]
87      - [b, ptc, y7]
88      - [c, sercom0, pad1]
89      - [d, sercom2, pad1]
90      - [e, tcc0, wo1]
91      - [f, tcc1, wo3]
92  pa13:
93    pincodes: [j]
94    periph:
95      - [a, eic, extint13]
96      - [c, sercom2, pad1]
97      - [d, sercom4, pad1]
98      - [e, tcc2, wo1]
99      - [f, tcc0, wo7]
100      - [h, ac, cmp1]
101  pa14:
102    pincodes: [j]
103    periph:
104      - [a, eic, extint14]
105      - [c, sercom2, pad2]
106      - [d, sercom4, pad2]
107      - [e, tc4, wo0]
108      - [f, tcc0, wo4]
109      - [h, gclk, io0]
110  pa15:
111    pincodes: [j]
112    periph:
113      - [a, eic, extint15]
114      - [c, sercom2, pad3]
115      - [d, sercom4, pad3]
116      - [e, tc4, wo1]
117      - [f, tcc0, wo5]
118      - [h, gclk, io1]
119  pa16:
120    pincodes: [j]
121    periph:
122      - [a, eic, extint0]
123      - [b, ptc, x4]
124      - [c, sercom1, pad0]
125      - [d, sercom3, pad0]
126      - [e, tcc2, wo0]
127      - [f, tcc0, wo6]
128      - [h, gclk, io2]
129  pa17:
130    pincodes: [j]
131    periph:
132      - [a, eic, extint1]
133      - [b, ptc, x5]
134      - [c, sercom1, pad1]
135      - [d, sercom3, pad1]
136      - [e, tcc2, wo1]
137      - [f, tcc0, wo1]
138      - [h, gclk, io3]
139  pa18:
140    pincodes: [j]
141    periph:
142      - [a, eic, extint2]
143      - [b, ptc, x6]
144      - [c, sercom1, pad2]
145      - [d, sercom3, pad2]
146      - [e, tc4, wo0]
147      - [f, tcc0, wo2]
148      - [h, ac, cmp0]
149  pa19:
150    pincodes: [j]
151    periph:
152      - [a, eic, extint3]
153      - [b, ptc, x7]
154      - [c, sercom1, pad3]
155      - [d, sercom3, pad3]
156      - [e, tc4, wo1]
157      - [f, tcc0, wo3]
158      - [h, ac, cmp1]
159  pa22:
160    pincodes: [j]
161    periph:
162      - [a, eic, extint6]
163      - [b, ptc, x10]
164      - [c, sercom3, pad0]
165      - [d, sercom5, pad0]
166      - [e, tc0, wo0]
167      - [f, tcc0, wo4]
168      - [h, gclk, io6]
169  pa23:
170    pincodes: [j]
171    periph:
172      - [a, eic, extint7]
173      - [b, ptc, x11]
174      - [c, sercom3, pad1]
175      - [d, sercom5, pad1]
176      - [e, tc0, wo1]
177      - [f, tcc0, wo5]
178      - [g, usb, sof, [r35]]
179      - [h, gclk, io7]
180  pa24:
181    pincodes: [j]
182    periph:
183      - [a, eic, extint12]
184      - [c, sercom3, pad2]
185      - [d, sercom5, pad2]
186      - [e, tc1, wo0]
187      - [f, tcc1, wo2]
188      - [g, usb, dm, [r35]]
189  pa25:
190    pincodes: [j]
191    periph:
192      - [a, eic, extint13]
193      - [c, sercom3, pad3]
194      - [d, sercom5, pad3]
195      - [e, tc1, wo1]
196      - [f, tcc1, wo3]
197      - [g, usb, dp, [r35]]
198  pb22:
199    pincodes: [j]
200    periph:
201      - [a, eic, extint6]
202      - [d, sercom5, pad2]
203      - [e, tc3, wo0]
204      - [h, gclk, io0]
205  pb23:
206    pincodes: [j]
207    periph:
208      - [a, eic, extint7]
209      - [d, sercom5, pad3]
210      - [e, tc3, wo1]
211      - [h, gclk, io1]
212  pa27:
213    pincodes: [j]
214    periph:
215      - [a, eic, extint15]
216      - [h, gclk, io0]
217  pa28:
218    pincodes: [j]
219    periph:
220      - [a, eic, extint8]
221      - [h, gclk, io0]
222  pa30:
223    pincodes: [j]
224    periph:
225      - [a, eic, extint10]
226      - [d, sercom1, pad2]
227      - [e, tcc1, wo0]
228      - [h, gclk, io0]
229  pa31:
230    pincodes: [j]
231    periph:
232      - [a, eic, extint11]
233      - [d, sercom1, pad3]
234      - [e, tcc1, wo1]
235  pb02:
236    pincodes: [j]
237    periph:
238      - [a, eic, extint2]
239      - [b, adc, ain10]
240      - [d, sercom5, pad0]
241      - [e, tc2, wo0]
242  pb03:
243    pincodes: [j]
244    periph:
245      - [a, eic, extint3]
246      - [b, adc, ain11]
247      - [d, sercom5, pad1]
248      - [e, tc2, wo1]
249
250  # internal signals
251  pb16:
252    pincodes: [j]
253    periph:
254      - [a, eic, extint0]
255      - [c, sercom5, pad0]
256      - [e, tcc2, wo0]
257      - [f, tcc0, wo4]
258      - [h, gclk, io2]
259  pa11:
260    pincodes: [j]
261    periph:
262      - [a, eic, extint11]
263      - [b, adc, ain19]
264      - [b, ptc, x3]
265      - [b, ptc, y9]
266      - [c, sercom0, pad3]
267      - [d, sercom2, pad3]
268      - [e, tcc1, wo1]
269      - [f, tcc0, wo3]
270      - [h, gclk, io5]
271  pa12:
272    pincodes: [j]
273    periph:
274      - [a, eic, extint12]
275      - [c, sercom2, pad0]
276      - [d, sercom4, pad0]
277      - [e, tcc2, wo0]
278      - [f, tcc0, wo6]
279      - [h, ac, cmp0]
280  pb17:
281    pincodes: [j]
282    periph:
283      - [a, eic, extint1]
284      - [c, sercom5, pad1]
285      - [e, tcc2, wo1]
286      - [f, tcc0, wo5]
287      - [h, gclk, io3]
288  pa10:
289    pincodes: [j]
290    periph:
291      - [a, eic, extint10]
292      - [b, adc, ain18]
293      - [b, ptc, x2]
294      - [b, ptc, y8]
295      - [c, sercom0, pad2]
296      - [d, sercom2, pad2]
297      - [e, tcc1, wo0]
298      - [f, tcc0, wo2]
299      - [h, gclk, io4]
300  pb00:
301    pincodes: [j]
302    periph:
303      - [a, eic, extint0]
304      - [b, adc, ain8]
305      - [d, sercom5, pad2]
306      - [e, tcc3, wo0]
307  pb15:
308    pincodes: [j]
309    periph:
310      - [a, eic, extint15]
311      - [b, ptc, x15]
312      - [c, sercom4, pad3]
313      - [e, tcc0, wo1]
314      - [h, gclk, io1]
315  pb30:
316    pincodes: [j]
317    periph:
318      - [a, eic, extint14]
319      - [d, sercom5, pad0]
320      - [e, tcc0, wo0]
321      - [f, sercom4, pad2]
322  pb31:
323    pincodes: [j]
324    periph:
325      - [a, eic, extint15]
326      - [d, sercom5, pad1]
327      - [e, tcc0, wo1]
328      - [f, sercom4, pad1]
329  pc18:
330    pincodes: [j]
331    periph:
332      - [f, sercom4, pad3]
333  pc19:
334    pincodes: [j]
335    periph:
336      - [f, sercom4, pad0]
337