Zephyr API Documentation
4.1.99
A Scalable Open Source RTOS
4.1.99
Toggle main menu visibility
Main Page
Related Pages
Topics
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
pinctrl-rzv-common.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2025 Renesas Electronics Corporation
3
* SPDX-License-Identifier: Apache-2.0
4
*/
5
6
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_RENESAS_PINCTRL_RZV_COMMON_H_
7
#define ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_RENESAS_PINCTRL_RZV_COMMON_H_
8
9
/* Superset list of all possible IO ports. */
10
#define PORT_00 0x0000
/* IO port 0 */
11
#define PORT_01 0x0100
/* IO port 1 */
12
#define PORT_02 0x0200
/* IO port 2 */
13
#define PORT_03 0x0300
/* IO port 3 */
14
#define PORT_04 0x0400
/* IO port 4 */
15
#define PORT_05 0x0500
/* IO port 5 */
16
#define PORT_06 0x0600
/* IO port 6 */
17
#define PORT_07 0x0700
/* IO port 7 */
18
#define PORT_08 0x0800
/* IO port 8 */
19
#define PORT_09 0x0900
/* IO port 9 */
20
#define PORT_10 0x0A00
/* IO port 10 */
21
#define PORT_11 0x0B00
/* IO port 11 */
22
#define PORT_12 0x0C00
/* IO port 12 */
23
#define PORT_13 0x0D00
/* IO port 13 */
24
#define PORT_14 0x0E00
/* IO port 14 */
25
#define PORT_15 0x0F00
/* IO port 15 */
26
#define PORT_16 0x1000
/* IO port 16 */
27
#define PORT_17 0x1100
/* IO port 17 */
28
#define PORT_18 0x1200
/* IO port 18 */
29
#define PORT_19 0x1300
/* IO port 19 */
30
#define PORT_20 0x1400
/* IO port 20 */
31
#define PORT_21 0x1500
/* IO port 21 */
32
#define PORT_22 0x1600
/* IO port 22 */
33
#define PORT_23 0x1700
/* IO port 23 */
34
#define PORT_24 0x1800
/* IO port 24 */
35
#define PORT_25 0x1900
/* IO port 25 */
36
#define PORT_26 0x1A00
/* IO port 26 */
37
#define PORT_27 0x1B00
/* IO port 27 */
38
#define PORT_28 0x1C00
/* IO port 28 */
39
#define PORT_29 0x1D00
/* IO port 29 */
40
#define PORT_30 0x1E00
/* IO port 30 */
41
#define PORT_31 0x1F00
/* IO port 31 */
42
#define PORT_32 0x2000
/* IO port 32 */
43
#define PORT_33 0x2100
/* IO port 33 */
44
#define PORT_34 0x2200
/* IO port 34 */
45
#define PORT_35 0x2300
/* IO port 35 */
46
#define PORT_36 0x2400
/* IO port 36 */
47
#define PORT_37 0x2500
/* IO port 37 */
48
#define PORT_38 0x2600
/* IO port 38 */
49
#define PORT_39 0x2700
/* IO port 39 */
50
#define PORT_40 0x2800
/* IO port 40 */
51
#define PORT_41 0x2900
/* IO port 41 */
52
#define PORT_42 0x2A00
/* IO port 42 */
53
#define PORT_43 0x2B00
/* IO port 43 */
54
#define PORT_44 0x2C00
/* IO port 44 */
55
#define PORT_45 0x2D00
/* IO port 45 */
56
#define PORT_46 0x2E00
/* IO port 46 */
57
#define PORT_47 0x2F00
/* IO port 47 */
58
#define PORT_48 0x3000
/* IO port 48 */
59
60
/*
61
* Create the value contain port/pin/function information
62
*
63
* port: port number BSP_IO_PORT_00..BSP_IO_PORT_48
64
* pin: pin number
65
* func: pin function
66
*/
67
#define RZV_PINMUX(port, pin, func) (port | pin | (func << 4))
68
69
/* Special purpose port */
70
#define BSP_IO_NMI 0xFFFF0100
/* NMI */
71
72
#define BSP_IO_TMS_SWDIO 0xFFFF0200
/* TMS_SWDIO */
73
74
#define BSP_IO_TDO 0xFFFF0300
/* TDO */
75
76
#define BSP_IO_AUDIO_CLK1 0xFFFF0400
/* AUDIO_CLK1 */
77
#define BSP_IO_AUDIO_CLK2 0xFFFF0401
/* AUDIO_CLK2 */
78
79
#define BSP_IO_SD0_CLK 0xFFFF0600
/* SD0_CLK */
80
#define BSP_IO_SD0_CMD 0xFFFF0601
/* SD0_CMD */
81
#define BSP_IO_SD0_RST_N 0xFFFF0602
/* SD0_RST_N */
82
83
#define BSP_IO_SD0_DATA0 0xFFFF0700
/* SD0_DATA0 */
84
#define BSP_IO_SD0_DATA1 0xFFFF0701
/* SD0_DATA1 */
85
#define BSP_IO_SD0_DATA2 0xFFFF0702
/* SD0_DATA2 */
86
#define BSP_IO_SD0_DATA3 0xFFFF0703
/* SD0_DATA3 */
87
#define BSP_IO_SD0_DATA4 0xFFFF0704
/* SD0_DATA4 */
88
#define BSP_IO_SD0_DATA5 0xFFFF0705
/* SD0_DATA5 */
89
#define BSP_IO_SD0_DATA6 0xFFFF0706
/* SD0_DATA6 */
90
#define BSP_IO_SD0_DATA7 0xFFFF0707
/* SD0_DATA7 */
91
92
#define BSP_IO_SD1_CLK 0xFFFF0800
/* SD1_CLK */
93
#define BSP_IO_SD1_CMD 0xFFFF0801
/* SD1_CMD */
94
95
#define BSP_IO_SD1_DATA0 0xFFFF0900
/* SD1_DATA0 */
96
#define BSP_IO_SD1_DATA1 0xFFFF0901
/* SD1_DATA1 */
97
#define BSP_IO_SD1_DATA2 0xFFFF0902
/* SD1_DATA2 */
98
#define BSP_IO_SD1_DATA3 0xFFFF0903
/* SD1_DATA3 */
99
100
#define BSP_IO_QSPI0_SPCLK 0xFFFF0A00
/* QSPI0_SPCLK */
101
#define BSP_IO_QSPI0_IO0 0xFFFF0A01
/* QSPI0_IO0 */
102
#define BSP_IO_QSPI0_IO1 0xFFFF0A02
/* QSPI0_IO1 */
103
#define BSP_IO_QSPI0_IO2 0xFFFF0A03
/* QSPI0_IO2 */
104
#define BSP_IO_QSPI0_IO3 0xFFFF0A04
/* QSPI0_IO3 */
105
#define BSP_IO_QSPI0_SSL 0xFFFF0A05
/* QSPI0_SSL */
106
107
#define BSP_IO_QSPI1_SPCLK 0xFFFF0B00
/* QSPI1_SPCLK */
108
#define BSP_IO_QSPI1_IO0 0xFFFF0B01
/* QSPI1_IO0 */
109
#define BSP_IO_QSPI1_IO1 0xFFFF0B02
/* QSPI1_IO1 */
110
#define BSP_IO_QSPI1_IO2 0xFFFF0B03
/* QSPI1_IO2 */
111
#define BSP_IO_QSPI1_IO3 0xFFFF0B04
/* QSPI1_IO3 */
112
#define BSP_IO_QSPI1_SSL 0xFFFF0B05
/* QSPI1_SSL */
113
114
#define BSP_IO_QSPI_RESET_N 0xFFFF0C00
/* QSPI_RESET_N */
115
#define BSP_IO_QSPI_WP_N 0xFFFF0C01
/* QSPI_WP_N */
116
#define BSP_IO_QSPI_INT_N 0xFFFF0C02
/* QSPI_INT_N */
117
118
#define BSP_IO_WDTOVF_PERROUT_N 0xFFFF0D00
/* WDTOVF_PERROUT_N */
119
120
#define BSP_IO_RIIC0_SDA 0xFFFF0E00
/* RIIC0_SDA */
121
#define BSP_IO_RIIC0_SCL 0xFFFF0E01
/* RIIC0_SCL */
122
#define BSP_IO_RIIC1_SDA 0xFFFF0E02
/* RIIC1_SDA */
123
#define BSP_IO_RIIC1_SCL 0xFFFF0E03
/* RIIC1_SCL */
124
125
/* FILNUM */
126
#define RZV_FILNUM_4_STAGE 0
127
#define RZV_FILNUM_8_STAGE 1
128
#define RZV_FILNUM_12_STAGE 2
129
#define RZV_FILNUM_16_STAGE 3
130
131
/* FILCLKSEL */
132
#define RZV_FILCLKSEL_NOT_DIV 0
133
#define RZV_FILCLKSEL_DIV_9000 1
134
#define RZV_FILCLKSEL_DIV_18000 2
135
#define RZV_FILCLKSEL_DIV_36000 3
136
137
#define RZV_FILTER_SET(filnum, filclksel) (((filnum) & 0x3) << 0x2) | (filclksel & 0x3)
138
139
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_RENESAS_PINCTRL_RZV_COMMON_H_ */
zephyr
dt-bindings
pinctrl
renesas
pinctrl-rzv-common.h
Generated on Mon Apr 14 2025 15:05:21 for Zephyr API Documentation by
1.12.0