Zephyr Project API
4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
pinctrl-rx.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2024 Renesas Electronics Corporation
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_PINCTRL_RX_H_
8
#define ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_PINCTRL_RX_H_
9
10
#define RX_PORT_NUM_POS 0
11
#define RX_PORT_NUM_MASK 0x1f
12
13
#define RX_PIN_NUM_POS 5
14
#define RX_PIN_NUM_MASK 0xf
15
16
#define RX_PSEL_MASK 0x1f
17
#define RX_PSEL_POS 9
18
19
#define RX_PSEL_RSCI 0xA
20
#define RX_PSEL_RSCI_TXDB 0xC
21
#define RX_PSEL_SCI_1 0xA
22
#define RX_PSEL_SCI_5 0xA
23
#define RX_PSEL_SCI_6 0xB
24
#define RX_PSEL_SCI_12 0xC
25
#define RX_PSEL_TMR 0x5
26
#define RX_PSEL_POE 0x7
27
#define RX_PSEL_ADC 0x0
28
29
/* P0nPFS */
30
#define RX_PSEL_P0nPFS_HIZ 0x0
31
#define RX_PSEL_P0nPFS_ADTRG0 0x1
32
33
/* P1nPFS */
34
#define RX_PSEL_P1nPFS_MTIOC0B 0x01
35
#define RX_PSEL_P1nPFS_MTIOC3A 0x01
36
#define RX_PSEL_P1nPFS_MTIOC3C 0x01
37
38
#define RX_PSEL_P1nPFS_MTCLKA 0x02
39
#define RX_PSEL_P1nPFS_MTCLKB 0x02
40
#define RX_PSEL_P1nPFS_MTIOC3B 0x02
41
#define RX_PSEL_P1nPFS_MTIOC3D 0x02
42
43
#define RX_PSEL_P1nPFS_TMCI1 0x5
44
#define RX_PSEL_P1nPFS_TMO1 0x5
45
#define RX_PSEL_P1nPFS_TMCI2 0x5
46
#define RX_PSEL_P1nPFS_TMO2 0x5
47
#define RX_PSEL_P1nPFS_TMRI2 0x5
48
#define RX_PSEL_P1nPFS_TMO3 0x5
49
50
#define RX_PSEL_P1nPFS_RTCOUT 0x7
51
#define RX_PSEL_P1nPFS_POE8 0x7
52
53
#define RX_PSEL_P1nPFS_ADTRG0 0x9
54
55
#define RX_PSEL_P1nPFS_RXD1 0xA
56
#define RX_PSEL_P1nPFS_SMISO1 0xA
57
#define RX_PSEL_P1nPFS_SSCL1 0xA
58
#define RX_PSEL_P1nPFS_TXD1 0xA
59
#define RX_PSEL_P1nPFS_SMOSI1 0xA
60
#define RX_PSEL_P1nPFS_SSDA1 0xA
61
62
#define RX_PSEL_P1nPFS_CTS1 0xB
63
#define RX_PSEL_P1nPFS_RTS1 0xB
64
#define RX_PSEL_P1nPFS_SS1 0xB
65
66
#define RX_PSEL_P1nPFS_MOSIA 0xD
67
#define RX_PSEL_P1nPFS_MISOA 0xD
68
69
#define RX_PSEL_P1nPFS_SCL 0xF
70
#define RX_PSEL_P1nPFS_SDA 0xF
71
72
#define RX_PSEL_P1nPFS_TS5 0x19
73
#define RX_PSEL_P1nPFS_TS6 0x19
74
75
/* P2nPFS */
76
#define RX_PSEL_P2nPFS_MTIOC1A 0x01
77
#define RX_PSEL_P2nPFS_MTIOC1B 0x01
78
#define RX_PSEL_P2nPFS_MTIOC2A 0x01
79
#define RX_PSEL_P2nPFS_MTIOC2B 0x01
80
#define RX_PSEL_P2nPFS_MTIOC3B 0x01
81
#define RX_PSEL_P2nPFS_MTIOC3D 0x01
82
#define RX_PSEL_P2nPFS_MTIOC4A 0x01
83
#define RX_PSEL_P2nPFS_MTIOC4C 0x01
84
85
#define RX_PSEL_P2nPFS_MTCLKA 0x02
86
#define RX_PSEL_P2nPFS_MTCLKB 0x02
87
#define RX_PSEL_P2nPFS_MTCLKC 0x02
88
#define RX_PSEL_P2nPFS_MTCLKD 0x02
89
90
#define RX_PSEL_P2nPFS_TMCI0 0x5
91
#define RX_PSEL_P2nPFS_TMO0 0x5
92
#define RX_PSEL_P2nPFS_TMRI0 0x5
93
#define RX_PSEL_P2nPFS_TMO1 0x5
94
#define RX_PSEL_P2nPFS_TMRI1 0x5
95
#define RX_PSEL_P2nPFS_TMCI3 0x5
96
97
#define RX_PSEL_P2nPFS_ADTRG0 0x9
98
99
#define RX_PSEL_P2nPFS_RXD0 0xA
100
#define RX_PSEL_P2nPFS_SMISO0 0xA
101
#define RX_PSEL_P2nPFS_SSCL0 0xA
102
#define RX_PSEL_P2nPFS_TXD0 0xA
103
#define RX_PSEL_P2nPFS_SMOSI0 0xA
104
#define RX_PSEL_P2nPFS_SSDA0 0xA
105
#define RX_PSEL_P2nPFS_SCK0 0xA
106
#define RX_PSEL_P2nPFS_TXD1 0xA
107
#define RX_PSEL_P2nPFS_SMOSI1 0xA
108
#define RX_PSEL_P2nPFS_SSDA1 0xA
109
#define RX_PSEL_P2nPFS_SCK1 0xA
110
111
#define RX_PSEL_P2nPFS_CTS0 0xB
112
#define RX_PSEL_P2nPFS_RTS0 0xB
113
#define RX_PSEL_P2nPFS_SS0 0xB
114
115
#define RX_PSEL_P2nPFS_TS3 0x19
116
#define RX_PSEL_P2nPFS_TS4 0x19
117
118
/* P3nPFS */
119
#define RX_PSEL_P3nPFS_MTIOC0A 0x01
120
#define RX_PSEL_P3nPFS_MTIOC0C 0x01
121
#define RX_PSEL_P3nPFS_MTIOC0D 0x01
122
#define RX_PSEL_P3nPFS_MTIOC4B 0x01
123
#define RX_PSEL_P3nPFS_MTIOC4D 0x01
124
125
#define RX_PSEL_P3nPFS_TMCI2 0x5
126
#define RX_PSEL_P3nPFS_TMO3 0x5
127
#define RX_PSEL_P3nPFS_TMRI3 0x5
128
#define RX_PSEL_P3nPFS_TMCI3 0x5
129
130
#define RX_PSEL_P3nPFS_RTCOUT 0x7
131
#define RX_PSEL_P3nPFS_POE2 0x7
132
#define RX_PSEL_P3nPFS_POE3 0x7
133
#define RX_PSEL_P3nPFS_POE8 0x7
134
135
#define RX_PSEL_P3nPFS_RXD1 0xA
136
#define RX_PSEL_P3nPFS_SMISO1 0xA
137
#define RX_PSEL_P3nPFS_SSCL1 0xA
138
139
#define RX_PSEL_P3nPFS_CTS1 0xB
140
#define RX_PSEL_P3nPFS_RTS1 0xB
141
#define RX_PSEL_P3nPFS_SS1 0xB
142
#define RX_PSEL_P3nPFS_RXD6 0xB
143
#define RX_PSEL_P3nPFS_SMISO6 0xB
144
#define RX_PSEL_P3nPFS_SSCL6 0xB
145
#define RX_PSEL_P3nPFS_TXD6 0xB
146
#define RX_PSEL_P3nPFS_SMOSI6 0xB
147
#define RX_PSEL_P3nPFS_SSDA6 0xB
148
#define RX_PSEL_P3nPFS_SCK6 0xB
149
150
#define RX_PSEL_P3nPFS_TS0 0x19
151
#define RX_PSEL_P3nPFS_TS1 0x19
152
#define RX_PSEL_P3nPFS_TS2 0x19
153
154
/* P5nPFS */
155
#define RX_PSEL_P5nPFS_MTIOC4B 0x01
156
#define RX_PSEL_P5nPFS_MTIOC4D 0x01
157
158
#define RX_PSEL_P5nPFS_TMCI1 0x5
159
#define RX_PSEL_P5nPFS_TMO3 0x5
160
161
#define RX_PSEL_P5nPFS_TS11 0x19
162
#define RX_PSEL_P5nPFS_TS12 0x19
163
164
#define RX_PSEL_P5nPFS_PMC0 0x19
165
#define RX_PSEL_P5nPFS_PMC1 0x19
166
167
/* PAnPFS */
168
#define RX_PSEL_PAnPFS_MTIOC4A 0x01
169
#define RX_PSEL_PAnPFS_MTIOC0B 0x01
170
#define RX_PSEL_PAnPFS_MTIOC0D 0x01
171
#define RX_PSEL_PAnPFS_MTIOC5U 0x01
172
#define RX_PSEL_PAnPFS_MTIOC5V 0x01
173
174
#define RX_PSEL_PAnPFS_MTCLKA 0x02
175
#define RX_PSEL_PAnPFS_MTCLKB 0x02
176
#define RX_PSEL_PAnPFS_MTCLKC 0x02
177
#define RX_PSEL_PAnPFS_MTCLKD 0x02
178
179
#define RX_PSEL_PAnPFS_TMRI0 0x5
180
#define RX_PSEL_PAnPFS_TMCI3 0x5
181
182
#define RX_PSEL_PAnPFS_POE2 0x7
183
#define RX_PSEL_PAnPFS_CACREF 0x7
184
185
#define RX_PSEL_PAnPFS_RXD5 0xA
186
#define RX_PSEL_PAnPFS_SMISO5 0xA
187
#define RX_PSEL_PAnPFS_SSCL5 0xA
188
#define RX_PSEL_PAnPFS_TXD5 0xA
189
#define RX_PSEL_PAnPFS_SMOSI5 0xA
190
#define RX_PSEL_PAnPFS_SSDA5 0xA
191
#define RX_PSEL_PAnPFS_SCK5 0xA
192
193
#define RX_PSEL_PAnPFS_CTS5 0xB
194
#define RX_PSEL_PAnPFS_RTS5 0xB
195
#define RX_PSEL_PAnPFS_SS5 0xB
196
197
#define RX_PSEL_PAnPFS_SSLA0 0xD
198
#define RX_PSEL_PAnPFS_SSLA1 0xD
199
#define RX_PSEL_PAnPFS_SSLA2 0xD
200
#define RX_PSEL_PAnPFS_SSLA3 0xD
201
#define RX_PSEL_PAnPFS_RSPCKA 0xD
202
#define RX_PSEL_PAnPFS_MOSIA 0xD
203
#define RX_PSEL_PAnPFS_MISOA 0xD
204
205
#define RX_PSEL_PAnPFS_TS26 0x19
206
#define RX_PSEL_PAnPFS_TS27 0x19
207
#define RX_PSEL_PAnPFS_TS28 0x19
208
#define RX_PSEL_PAnPFS_TS29 0x19
209
#define RX_PSEL_PAnPFS_TS30 0x19
210
#define RX_PSEL_PAnPFS_TS31 0x19
211
#define RX_PSEL_PAnPFS_TS32 0x19
212
213
/* PBnPFS */
214
#define RX_PSEL_PBnPFS_MTIOC0A 0x01
215
#define RX_PSEL_PBnPFS_MTIOC0C 0x01
216
#define RX_PSEL_PBnPFS_MTIOC2A 0x01
217
#define RX_PSEL_PBnPFS_MTIOC3B 0x01
218
#define RX_PSEL_PBnPFS_MTIOC3D 0x01
219
#define RX_PSEL_PBnPFS_MTIOC5W 0x01
220
221
#define RX_PSEL_PBnPFS_MTIOC1B 0x02
222
#define RX_PSEL_PBnPFS_MTIOC4A 0x02
223
#define RX_PSEL_PBnPFS_MTIOC4C 0x02
224
225
#define RX_PSEL_PBnPFS_TMO0 0x5
226
#define RX_PSEL_PBnPFS_TMRI1 0x5
227
#define RX_PSEL_PBnPFS_TMCI0 0x5
228
229
#define RX_PSEL_PBnPFS_POE1 0x7
230
#define RX_PSEL_PBnPFS_POE3 0x7
231
232
#define RX_PSEL_PBnPFS_RXD9 0xA
233
#define RX_PSEL_PBnPFS_SMISO9 0xA
234
#define RX_PSEL_PBnPFS_SSCL9 0xA
235
#define RX_PSEL_PBnPFS_TXD9 0xA
236
#define RX_PSEL_PBnPFS_SMOSI9 0xA
237
#define RX_PSEL_PBnPFS_SSDA9 0xA
238
#define RX_PSEL_PBnPFS_SCK9 0xA
239
240
#define RX_PSEL_PBnPFS_CTS6 0xB
241
#define RX_PSEL_PBnPFS_RTS6 0xB
242
#define RX_PSEL_PBnPFS_SS6 0xB
243
#define RX_PSEL_PBnPFS_CTS9 0xB
244
#define RX_PSEL_PBnPFS_RTS9 0xB
245
#define RX_PSEL_PBnPFS_SS9 0xB
246
#define RX_PSEL_PBnPFS_RXD6 0xB
247
#define RX_PSEL_PBnPFS_SMISO6 0xB
248
#define RX_PSEL_PBnPFS_SSCL6 0xB
249
#define RX_PSEL_PBnPFS_TXD6 0xB
250
#define RX_PSEL_PBnPFS_SMOSI6 0xB
251
#define RX_PSEL_PBnPFS_SSDA6 0xB
252
#define RX_PSEL_PBnPFS_SCK6 0xB
253
254
#define RX_PSEL_PBnPFS_RSPCKA 0xD
255
256
#define RX_PSEL_PBnPFS_CMPOB1 0x10
257
258
#define RX_PSEL_PBnPFS_TS18 0x19
259
#define RX_PSEL_PBnPFS_TS19 0x19
260
#define RX_PSEL_PBnPFS_TS20 0x19
261
#define RX_PSEL_PBnPFS_TS21 0x19
262
#define RX_PSEL_PBnPFS_TS22 0x19
263
#define RX_PSEL_PBnPFS_TS23 0x19
264
#define RX_PSEL_PBnPFS_TS24 0x19
265
#define RX_PSEL_PBnPFS_TS25 0x19
266
267
/* PCnPFS */
268
#define RX_PSEL_PCnPFS_MTIOC3A 0x01
269
#define RX_PSEL_PCnPFS_MTIOC3B 0x01
270
#define RX_PSEL_PCnPFS_MTIOC3C 0x01
271
#define RX_PSEL_PCnPFS_MTIOC3D 0x01
272
#define RX_PSEL_PCnPFS_MTIOC4B 0x01
273
#define RX_PSEL_PCnPFS_MTIOC4D 0x01
274
275
#define RX_PSEL_PCnPFS_MTCLKA 0x02
276
#define RX_PSEL_PCnPFS_MTCLKB 0x02
277
#define RX_PSEL_PCnPFS_MTCLKC 0x02
278
#define RX_PSEL_PCnPFS_MTCLKD 0x02
279
280
#define RX_PSEL_PCnPFS_TMCI1 0x5
281
#define RX_PSEL_PCnPFS_TMO2 0x5
282
#define RX_PSEL_PCnPFS_TMRI2 0x5
283
#define RX_PSEL_PCnPFS_TMCI2 0x5
284
285
#define RX_PSEL_PCnPFS_POE0 0x7
286
#define RX_PSEL_PCnPFS_CACREF 0x7
287
288
#define RX_PSEL_PCnPFS_RXD5 0xA
289
#define RX_PSEL_PCnPFS_SMISO5 0xA
290
#define RX_PSEL_PCnPFS_SSCL5 0xA
291
#define RX_PSEL_PCnPFS_TXD5 0xA
292
#define RX_PSEL_PCnPFS_SMOSI5 0xA
293
#define RX_PSEL_PCnPFS_SSDA5 0xA
294
#define RX_PSEL_PCnPFS_SCK5 0xA
295
#define RX_PSEL_PCnPFS_RXD8 0xA
296
#define RX_PSEL_PCnPFS_SMISO8 0xA
297
#define RX_PSEL_PCnPFS_SSCL8 0xA
298
#define RX_PSEL_PCnPFS_TXD8 0xA
299
#define RX_PSEL_PCnPFS_SMOSI8 0xA
300
#define RX_PSEL_PCnPFS_SSDA8 0xA
301
#define RX_PSEL_PCnPFS_SCK8 0xA
302
303
#define RX_PSEL_PCnPFS_CTS5 0xB
304
#define RX_PSEL_PCnPFS_RTS5 0xB
305
#define RX_PSEL_PCnPFS_SS5 0xB
306
#define RX_PSEL_PCnPFS_CTS8 0xB
307
#define RX_PSEL_PCnPFS_RTS8 0xB
308
#define RX_PSEL_PCnPFS_SS8 0xB
309
310
#define RX_PSEL_PCnPFS_SSLA0 0xD
311
#define RX_PSEL_PCnPFS_SSLA1 0xD
312
#define RX_PSEL_PCnPFS_SSLA2 0xD
313
#define RX_PSEL_PCnPFS_SSLA3 0xD
314
#define RX_PSEL_PCnPFS_RSPCKA 0xD
315
#define RX_PSEL_PCnPFS_MOSIA 0xD
316
#define RX_PSEL_PCnPFS_MISOA 0xD
317
318
#define RX_PSEL_PCnPFS_TS13 0x19
319
#define RX_PSEL_PCnPFS_TS14 0x19
320
#define RX_PSEL_PCnPFS_TS15 0x19
321
#define RX_PSEL_PCnPFS_TS16 0x19
322
#define RX_PSEL_PCnPFS_TS17 0x19
323
#define RX_PSEL_PCnPFS_TSCAP 0x19
324
325
/* PDnPFS */
326
#define RX_PSEL_PDnPFS_MTIOC4B 0x01
327
#define RX_PSEL_PDnPFS_MTIOC4D 0x01
328
#define RX_PSEL_PDnPFS_MTIOC5W 0x01
329
#define RX_PSEL_PDnPFS_MTIOC5V 0x01
330
#define RX_PSEL_PDnPFS_MTIOC5U 0x01
331
332
#define RX_PSEL_PDnPFS_POE0 0x7
333
#define RX_PSEL_PDnPFS_POE1 0x7
334
#define RX_PSEL_PDnPFS_POE2 0x7
335
#define RX_PSEL_PDnPFS_POE3 0x7
336
#define RX_PSEL_PDnPFS_POE8 0x7
337
338
#define RX_PSEL_PDnPFS_RXD6 0xB
339
#define RX_PSEL_PDnPFS_SMISO6 0xB
340
#define RX_PSEL_PDnPFS_SSCL6 0xB
341
#define RX_PSEL_PDnPFS_TXD6 0xB
342
#define RX_PSEL_PDnPFS_SMOSI6 0xB
343
#define RX_PSEL_PDnPFS_SSDA6 0xB
344
#define RX_PSEL_PDnPFS_SCK6 0xB
345
346
/* PEnPFS */
347
#define RX_PSEL_PEnPFS_MTIOC4A 0x01
348
#define RX_PSEL_PEnPFS_MTIOC4B 0x01
349
#define RX_PSEL_PEnPFS_MTIOC4C 0x01
350
#define RX_PSEL_PEnPFS_MTIOC4D 0x01
351
352
#define RX_PSEL_PEnPFS_MTIOC1A 0x02
353
#define RX_PSEL_PEnPFS_MTIOC2B 0x02
354
355
#define RX_PSEL_PEnPFS_POE8 0x7
356
357
#define RX_PSEL_PEnPFS_CLKOUT 0x9
358
359
#define RX_PSEL_PEnPFS_RXD12 0xC
360
#define RX_PSEL_PEnPFS_SMISO12 0xC
361
#define RX_PSEL_PEnPFS_SSCL12 0xC
362
#define RX_PSEL_PEnPFS_TXD12 0xC
363
#define RX_PSEL_PEnPFS_SMOSI12 0xC
364
#define RX_PSEL_PEnPFS_SSDA12 0xC
365
#define RX_PSEL_PEnPFS_SCK12 0xC
366
#define RX_PSEL_PEnPFS_TXDX12 0xC
367
#define RX_PSEL_PEnPFS_RXDX12 0xC
368
#define RX_PSEL_PEnPFS_SIOX12 0xC
369
#define RX_PSEL_PEnPFS_CTS12 0xC
370
#define RX_PSEL_PEnPFS_RTS12 0xC
371
#define RX_PSEL_PEnPFS_SS12 0xC
372
373
#define RX_PSEL_PEnPFS_CMPOB0 0X10
374
375
#define RX_PSEL_PEnPFS_TS33 0X19
376
#define RX_PSEL_PEnPFS_TS34 0x19
377
#define RX_PSEL_PEnPFS_TS35 0x19
378
379
/* PHnPFS */
380
#define RX_PSEL_PHnPFS_TMO0 0x05
381
#define RX_PSEL_PHnPFS_TMRI0 0x05
382
#define RX_PSEL_PHnPFS_TMCI0 0x05
383
384
#define RX_PSEL_PHnPFS_CACREF 0x7
385
386
#define RX_PSEL_PHnPFS_TS7 0x19
387
#define RX_PSEL_PHnPFS_TS8 0x19
388
#define RX_PSEL_PHnPFS_TS9 0x19
389
#define RX_PSEL_PHnPFS_TS10 0x19
390
391
/* PJnPFS */
392
#define RX_PSEL_PJnPFS_MTIOC3A 0x01
393
#define RX_PSEL_PJnPFS_MTIOC3C 0x01
394
395
#define RX_PSEL_PJnPFS_CTS6 0xB
396
#define RX_PSEL_PJnPFS_TTS6 0xB
397
#define RX_PSEL_PJnPFS_SS6 0xB
398
399
#define RX_PSEL(psel, port_num, pin_num) \
400
(psel << RX_PSEL_POS | pin_num << RX_PIN_NUM_POS | port_num << RX_PORT_NUM_POS)
401
402
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_SOC_RX_COMMON_H_ */
include
zephyr
dt-bindings
pinctrl
renesas
pinctrl-rx.h
Generated on Sun Aug 24 2025 06:52:31 for Zephyr Project API by
1.9.8