Zephyr API Documentation
4.2.99
A Scalable Open Source RTOS
4.2.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
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
Zephyr API Documentation
Introduction
Deprecated List
Topics
Data Structures
Files
File List
doc
kernel
lib
modules
subsys
zephyr
acpi
app_memory
arch
audio
bluetooth
canbus
console
crypto
data
debug
devicetree
dfu
display
drivers
dsp
dt-bindings
acpi
adc
battery
clock
comparator
dac
dai
display
dma
espi
ethernet
flash_controller
gnss
gpio
i2c
input
inputmux
interrupt-controller
ipc_service
led
lora
lvgl
memory-attr
memory-controller
mfd
mipi_dbi
mipi_dsi
misc
pcie
pinctrl
renesas
pinctrl-r8a77951.h
pinctrl-r8a77961.h
pinctrl-r8a779f0.h
pinctrl-ra.h
pinctrl-rcar-common.h
pinctrl-rx.h
pinctrl-rza-common.h
pinctrl-rza2m.h
pinctrl-rzg-common.h
pinctrl-rzg2-common.h
pinctrl-rzn-common.h
pinctrl-rzt-common.h
pinctrl-rzv-common.h
pinctrl-rzv2h.h
pinctrl-rzv2n.h
silabs
ambiq-apollo3-pinctrl.h
ambiq-apollo4-pinctrl.h
ambiq-apollo5-pinctrl.h
arm-mps2-pinctrl.h
arm-mps3-pinctrl.h
arm-mps4-pinctrl.h
arm-v2m_beetle-pinctrl.h
b91-pinctrl.h
cc13xx_cc26xx-pinctrl.h
cc23x0-pinctrl.h
ch32v003-pinctrl.h
ch32v00x-pinctrl.h
ch32v20x_30x-pinctrl.h
emsdp-pinctrl.h
ene-kb106x-pinctrl.h
ene-kb1200-pinctrl.h
esp-pinctrl-common.h
esp32-gpio-sigmap.h
esp32-pinctrl.h
esp32c2-gpio-sigmap.h
esp32c2-pinctrl.h
esp32c3-gpio-sigmap.h
esp32c3-pinctrl.h
esp32c6-gpio-sigmap.h
esp32c6-pinctrl.h
esp32s2-gpio-sigmap.h
esp32s2-pinctrl.h
esp32s3-gpio-sigmap.h
esp32s3-pinctrl.h
gecko-pinctrl-s1.h
gecko-pinctrl.h
ifx_cat1-pinctrl.h
imx8qm-pinctrl.h
imx8qxp-pinctrl.h
it8xxx2-pinctrl.h
lpc11u6x-pinctrl.h
max32-pinctrl.h
mchp-xec-pinctrl.h
mspm0-pinctrl.h
npcx-pinctrl.h
nrf-pinctrl.h
numaker-m46x-pinctrl.h
numicro-pinctrl.h
nxp-s32-pinctrl.h
pinctrl-zynq.h
pinctrl-zynqmp.h
quicklogic-eos-s3-pinctrl.h
realtek-rts5912-pinctrl.h
renesas-rzt2m-pinctrl.h
rpi-pico-pinctrl-common.h
rpi-pico-rp2040-pinctrl.h
rpi-pico-rp2350-pinctrl-common.h
rpi-pico-rp2350a-pinctrl.h
rpi-pico-rp2350b-pinctrl.h
rv32m1-pinctrl.h
si32-pinctrl.h
sifive-pinctrl.h
silabs-pinctrl-dbus.h
silabs-pinctrl-siwx91x.h
smartbond-pinctrl.h
stm32-pinctrl-common.h
stm32-pinctrl.h
stm32f1-afio.h
stm32f1-pinctrl.h
sy1xx-pinctrl.h
ti-cc32xx-pinctrl.h
ti-k3-pinctrl.h
xmc4xxx-pinctrl.h
power
pwm
qspi
rdc
regulator
reserved-memory
reset
sensor
sent
spi
timer
usb
usb-c
video
dt-util.h
fs
input
internal
ipc
kernel
linker
llext
logging
lorawan
math
mem_mgmt
mgmt
misc
modbus
modem
multi_heap
net
platform
pm
pmci
portability
posix
psa
random
retention
rtio
sd
sensing
settings
shell
sip_svc
stats
storage
sys
task_wdt
timing
toolchain
tracing
usb
usb_c
xen
zbus
zvfs
bindesc.h
cache.h
device.h
devicetree.h
fatal.h
fatal_types.h
init.h
irq.h
irq_multilevel.h
irq_nextlevel.h
irq_offload.h
kernel.h
kernel_includes.h
kernel_structs.h
kernel_version.h
net_buf.h
shared_irq.h
smf.h
spinlock.h
sw_isr_table.h
sys_clock.h
syscall.h
toolchain.h
types.h
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
pinctrl-rzg2-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_RZG2_COMMON_H_
7
#define ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_RENESAS_PINCTRL_RZG2_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 RZG_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
#define BSP_IO_TDO 0xFFFF0300
/* TDO */
74
75
#define BSP_IO_AUDIO_CLK1 0xFFFF0400
/* AUDIO_CLK1 */
76
#define BSP_IO_AUDIO_CLK2 0xFFFF0401
/* AUDIO_CLK2 */
77
78
#define BSP_IO_SD0_CLK 0xFFFF0600
/* SD0_CLK */
79
#define BSP_IO_SD0_CMD 0xFFFF0601
/* SD0_CMD */
80
#define BSP_IO_SD0_RST_N 0xFFFF0602
/* SD0_RST_N */
81
82
#define BSP_IO_SD0_DATA0 0xFFFF0700
/* SD0_DATA0 */
83
#define BSP_IO_SD0_DATA1 0xFFFF0701
/* SD0_DATA1 */
84
#define BSP_IO_SD0_DATA2 0xFFFF0702
/* SD0_DATA2 */
85
#define BSP_IO_SD0_DATA3 0xFFFF0703
/* SD0_DATA3 */
86
#define BSP_IO_SD0_DATA4 0xFFFF0704
/* SD0_DATA4 */
87
#define BSP_IO_SD0_DATA5 0xFFFF0705
/* SD0_DATA5 */
88
#define BSP_IO_SD0_DATA6 0xFFFF0706
/* SD0_DATA6 */
89
#define BSP_IO_SD0_DATA7 0xFFFF0707
/* SD0_DATA7 */
90
91
#define BSP_IO_SD1_CLK 0xFFFF0800
/* SD1_CLK */
92
#define BSP_IO_SD1_CMD 0xFFFF0801
/* SD1_CMD */
93
94
#define BSP_IO_SD1_DATA0 0xFFFF0900
/* SD1_DATA0 */
95
#define BSP_IO_SD1_DATA1 0xFFFF0901
/* SD1_DATA1 */
96
#define BSP_IO_SD1_DATA2 0xFFFF0902
/* SD1_DATA2 */
97
#define BSP_IO_SD1_DATA3 0xFFFF0903
/* SD1_DATA3 */
98
99
#define BSP_IO_QSPI0_SPCLK 0xFFFF0A00
/* QSPI0_SPCLK */
100
#define BSP_IO_QSPI0_IO0 0xFFFF0A01
/* QSPI0_IO0 */
101
#define BSP_IO_QSPI0_IO1 0xFFFF0A02
/* QSPI0_IO1 */
102
#define BSP_IO_QSPI0_IO2 0xFFFF0A03
/* QSPI0_IO2 */
103
#define BSP_IO_QSPI0_IO3 0xFFFF0A04
/* QSPI0_IO3 */
104
#define BSP_IO_QSPI0_SSL 0xFFFF0A05
/* QSPI0_SSL */
105
106
#define BSP_IO_QSPI1_SPCLK 0xFFFF0B00
/* QSPI1_SPCLK */
107
#define BSP_IO_QSPI1_IO0 0xFFFF0B01
/* QSPI1_IO0 */
108
#define BSP_IO_QSPI1_IO1 0xFFFF0B02
/* QSPI1_IO1 */
109
#define BSP_IO_QSPI1_IO2 0xFFFF0B03
/* QSPI1_IO2 */
110
#define BSP_IO_QSPI1_IO3 0xFFFF0B04
/* QSPI1_IO3 */
111
#define BSP_IO_QSPI1_SSL 0xFFFF0B05
/* QSPI1_SSL */
112
113
#define BSP_IO_QSPI_RESET_N 0xFFFF0C00
/* QSPI_RESET_N */
114
#define BSP_IO_QSPI_WP_N 0xFFFF0C01
/* QSPI_WP_N */
115
#define BSP_IO_QSPI_INT_N 0xFFFF0C02
/* QSPI_INT_N */
116
117
#define BSP_IO_WDTOVF_PERROUT_N 0xFFFF0D00
/* WDTOVF_PERROUT_N */
118
119
#define BSP_IO_RIIC0_SDA 0xFFFF0E00
/* RIIC0_SDA */
120
#define BSP_IO_RIIC0_SCL 0xFFFF0E01
/* RIIC0_SCL */
121
#define BSP_IO_RIIC1_SDA 0xFFFF0E02
/* RIIC1_SDA */
122
#define BSP_IO_RIIC1_SCL 0xFFFF0E03
/* RIIC1_SCL */
123
124
/* FILNUM */
125
#define RZG_FILNUM_4_STAGE 0
126
#define RZG_FILNUM_8_STAGE 1
127
#define RZG_FILNUM_12_STAGE 2
128
#define RZG_FILNUM_16_STAGE 3
129
130
/* FILCLKSEL */
131
#define RZG_FILCLKSEL_NOT_DIV 0
132
#define RZG_FILCLKSEL_DIV_9000 1
133
#define RZG_FILCLKSEL_DIV_18000 2
134
#define RZG_FILCLKSEL_DIV_36000 3
135
136
#define RZG_FILTER_SET(filnum, filclksel) (((filnum) & 0x3) << 0x2) | (filclksel & 0x3)
137
138
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_RENESAS_PINCTRL_RZG2_COMMON_H_ */
zephyr
dt-bindings
pinctrl
renesas
pinctrl-rzg2-common.h
Generated on
for Zephyr API Documentation by
1.14.0