Zephyr Project API
4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
pinctrl-ra0.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2026 Renesas Electronics Corporation
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
12
13
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_RENESAS_PINCTRL_RA0_H__
14
#define ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_RENESAS_PINCTRL_RA0_H__
15
20
60
62
63
/* Pin configuration bit field positions and masks. */
65
#define RA_PORT_NUM_POS 0
67
#define RA_PORT_NUM_MASK 0xf
69
#define RA_PIN_NUM_POS 4
71
#define RA_PIN_NUM_MASK 0xf
73
#define RA_PSEL_POS 8
75
#define RA_PSEL_MASK 0x1f
76
77
/* Per-port peripheral-function selector (PSEL) values. */
78
80
#define RA_PSEL_P1nPFS_SWDIO 0x1
82
#define RA_PSEL_P1nPFS_TI04A 0x1
84
#define RA_PSEL_P1nPFS_TO04A 0x1
86
#define RA_PSEL_P1nPFS_TI07A 0x1
88
#define RA_PSEL_P1nPFS_TO07A 0x1
90
#define RA_PSEL_P1nPFS_TI06A 0x1
92
#define RA_PSEL_P1nPFS_TO06A 0x1
94
#define RA_PSEL_P1nPFS_TI05A 0x1
96
#define RA_PSEL_P1nPFS_TO05A 0x1
98
#define RA_PSEL_P1nPFS_TI02D 0x1
100
#define RA_PSEL_P1nPFS_TO02D 0x1
102
#define RA_PSEL_P1nPFS_TI01D 0x1
104
#define RA_PSEL_P1nPFS_TO01D 0x1
106
#define RA_PSEL_P1nPFS_TI02A 0x1
108
#define RA_PSEL_P1nPFS_TO02A 0x1
110
#define RA_PSEL_P1nPFS_TI01A 0x1
112
#define RA_PSEL_P1nPFS_TO01A 0x1
114
#define RA_PSEL_P1nPFS_TI07B 0x1
116
#define RA_PSEL_P1nPFS_TO07B 0x1
118
#define RA_PSEL_P1nPFS_TI03A 0x1
120
#define RA_PSEL_P1nPFS_TO03A 0x1
122
#define RA_PSEL_P1nPFS_TI01B 0x2
124
#define RA_PSEL_P1nPFS_TO01B 0x2
126
#define RA_PSEL_P1nPFS_TI00C 0x2
128
#define RA_PSEL_P1nPFS_TO00C 0x2
130
#define RA_PSEL_P1nPFS_SSI00A 0x2
132
#define RA_PSEL_P1nPFS_TI00D 0x2
134
#define RA_PSEL_P1nPFS_TO00D 0x2
136
#define RA_PSEL_P1nPFS_TI03B 0x2
138
#define RA_PSEL_P1nPFS_TO03B 0x2
140
#define RA_PSEL_P1nPFS_TXD2A 0x2
142
#define RA_PSEL_P1nPFS_SO20A 0x2
144
#define RA_PSEL_P1nPFS_RXD2A 0x2
146
#define RA_PSEL_P1nPFS_SI20A 0x2
148
#define RA_PSEL_P1nPFS_SDA20A 0x2
150
#define RA_PSEL_P1nPFS_SCK20A 0x2
152
#define RA_PSEL_P1nPFS_SCL20A 0x2
154
#define RA_PSEL_P1nPFS_RXD0A 0x3
156
#define RA_PSEL_P1nPFS_SI00A 0x3
158
#define RA_PSEL_P1nPFS_SDA00A 0x3
160
#define RA_PSEL_P1nPFS_TXD0A 0x3
162
#define RA_PSEL_P1nPFS_SO00A 0x3
164
#define RA_PSEL_P1nPFS_SCK00A 0x3
166
#define RA_PSEL_P1nPFS_SCL00A 0x3
168
#define RA_PSEL_P1nPFS_SCK10A 0x3
170
#define RA_PSEL_P1nPFS_SCL10A 0x3
172
#define RA_PSEL_P1nPFS_SI10A 0x3
174
#define RA_PSEL_P1nPFS_SDA10A 0x3
176
#define RA_PSEL_P1nPFS_SO10A 0x3
178
#define RA_PSEL_P1nPFS_SDAA0C 0x3
180
#define RA_PSEL_P1nPFS_SCLA0C 0x3
182
#define RA_PSEL_P1nPFS_SSI00C 0x3
184
#define RA_PSEL_P1nPFS_SCLA0D 0x4
186
#define RA_PSEL_P1nPFS_SDAA0D 0x4
188
#define RA_PSEL_P1nPFS_RTCOUNTC 0x4
190
#define RA_PSEL_P1nPFS_RXDA1B 0x4
192
#define RA_PSEL_P1nPFS_TXDA1B 0x4
194
#define RA_PSEL_P1nPFS_TXDA0C 0x4
196
#define RA_PSEL_P1nPFS_RXDA0C 0x4
198
#define RA_PSEL_P1nPFS_RXDA0D 0x5
200
#define RA_PSEL_P1nPFS_TXDA0D 0x5
202
#define RA_PSEL_P1nPFS_PCLBUZ0B 0x5
204
#define RA_PSEL_P1nPFS_PCLBUZ1B 0x5
206
#define RA_PSEL_P1nPFS_SCLA1G 0x6
208
#define RA_PSEL_P1nPFS_SDAA1G 0x6
210
#define RA_PSEL_P1nPFS_SCLA1B 0x6
212
#define RA_PSEL_P1nPFS_SDAA1B 0x6
214
#define RA_PSEL_P1nPFS_RXDA1A 0x7
216
#define RA_PSEL_P1nPFS_TXDA1A 0x7
218
#define RA_PSEL_P1nPFS_TS11 0xC
220
#define RA_PSEL_P1nPFS_TS10 0xC
222
#define RA_PSEL_P1nPFS_TS9 0xC
224
#define RA_PSEL_P1nPFS_TS8 0xC
226
#define RA_PSEL_P1nPFS_TS7 0xC
228
#define RA_PSEL_P1nPFS_TS6 0xC
230
#define RA_PSEL_P1nPFS_TS5 0xC
232
#define RA_PSEL_P1nPFS_TS2 0xC
234
#define RA_PSEL_P1nPFS_TS3 0xC
236
#define RA_PSEL_P1nPFS_TS4 0xC
238
#define RA_PSEL_P1nPFS_TSCAP 0xC
239
241
#define RA_PSEL_P2nPFS_TI05B 0x1
243
#define RA_PSEL_P2nPFS_TO05B 0x1
245
#define RA_PSEL_P2nPFS_TO00B 0x1
247
#define RA_PSEL_P2nPFS_TI00B 0x1
249
#define RA_PSEL_P2nPFS_TO00A 0x1
251
#define RA_PSEL_P2nPFS_TI00A 0x1
253
#define RA_PSEL_P2nPFS_SSI00B 0x2
255
#define RA_PSEL_P2nPFS_RXDA0A 0x2
257
#define RA_PSEL_P2nPFS_TXDA0A 0x2
259
#define RA_PSEL_P2nPFS_TI03C 0x2
261
#define RA_PSEL_P2nPFS_TO03C 0x2
263
#define RA_PSEL_P2nPFS_TI02B 0x2
265
#define RA_PSEL_P2nPFS_TO02B 0x2
267
#define RA_PSEL_P2nPFS_SCK11B 0x3
269
#define RA_PSEL_P2nPFS_SCL11B 0x3
271
#define RA_PSEL_P2nPFS_SI01B 0x3
273
#define RA_PSEL_P2nPFS_SDA01B 0x3
275
#define RA_PSEL_P2nPFS_SCK01B 0x3
277
#define RA_PSEL_P2nPFS_SCL01B 0x3
279
#define RA_PSEL_P2nPFS_RXD1A 0x3
281
#define RA_PSEL_P2nPFS_TXD1A 0x3
283
#define RA_PSEL_P2nPFS_RTCOUTB 0x4
285
#define RA_PSEL_P2nPFS_SCLA1A 0x4
287
#define RA_PSEL_P2nPFS_SDAA1A 0x4
289
#define RA_PSEL_P2nPFS_SI11A 0x4
291
#define RA_PSEL_P2nPFS_SDA11A 0x4
293
#define RA_PSEL_P2nPFS_SO11A 0x4
295
#define RA_PSEL_P2nPFS_PCLBUZ0A 0x5
297
#define RA_PSEL_P2nPFS_SCLA0B 0x5
299
#define RA_PSEL_P2nPFS_SDAA0B 0x5
301
#define RA_PSEL_P2nPFS_RXDA0B 0x6
303
#define RA_PSEL_P2nPFS_TXDA0B 0x6
304
306
#define RA_PSEL_P3nPFS_SWCLK 0x1
308
#define RA_PSEL_P3nPFS_TI06B 0x1
310
#define RA_PSEL_P3nPFS_TO06B 0x1
312
#define RA_PSEL_P3nPFS_TI05C 0x1
314
#define RA_PSEL_P3nPFS_TO05C 0x1
316
#define RA_PSEL_P3nPFS_TI04B 0x2
318
#define RA_PSEL_P3nPFS_TO04B 0x2
320
#define RA_PSEL_P3nPFS_SDA21A 0x2
322
#define RA_PSEL_P3nPFS_SCL21A 0x2
324
#define RA_PSEL_P3nPFS_SCLA1C 0x3
326
#define RA_PSEL_P3nPFS_SDAA1C 0x3
328
#define RA_PSEL_P3nPFS_RXDA1C 0x4
330
#define RA_PSEL_P3nPFS_TXDA1C 0x4
332
#define RA_PSEL_P3nPFS_TS1 0xC
334
#define RA_PSEL_P3nPFS_TS0 0xC
335
337
#define RA_PSEL_P4nPFS_SCLA1D 0x1
339
#define RA_PSEL_P4nPFS_SDAA1D 0x1
341
#define RA_PSEL_P4nPFS_SCK11A 0x1
343
#define RA_PSEL_P4nPFS_SCL11A 0x1
345
#define RA_PSEL_P4nPFS_SCK11C 0x1
347
#define RA_PSEL_P4nPFS_SCL11C 0x1
349
#define RA_PSEL_P4nPFS_RTCOUTA 0x2
351
#define RA_PSEL_P4nPFS_TI04C 0x2
353
#define RA_PSEL_P4nPFS_TO04C 0x2
355
#define RA_PSEL_P4nPFS_TI03E 0x2
357
#define RA_PSEL_P4nPFS_TO03E 0x2
359
#define RA_PSEL_P4nPFS_PCLBUZ0C 0x3
361
#define RA_PSEL_P4nPFS_SDAA1F 0x4
363
#define RA_PSEL_P4nPFS_SCLA1F 0x4
364
366
#define RA_PSEL_P5nPFS_TI03D 0x1
368
#define RA_PSEL_P5nPFS_TO03D 0x1
370
#define RA_PSEL_P5nPFS_TS12 0xC
371
373
#define RA_PSEL_P9nPFS_SDAA0A 0x1
375
#define RA_PSEL_P9nPFS_SCLA0A 0x1
377
#define RA_PSEL_P9nPFS_SO01B 0x3
378
380
388
#define RA_PSEL(psel, port_num, pin_num) \
389
(psel << RA_PSEL_POS | port_num << RA_PORT_NUM_POS | pin_num << RA_PIN_NUM_POS)
390
392
393
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_RENESAS_PINCTRL_RA0_H__ */
include
zephyr
dt-bindings
pinctrl
renesas
pinctrl-ra0.h
Generated on
for Zephyr Project API by
1.16.1