Zephyr Project API
4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
pinctrl-rzg-common.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2024 Renesas Electronics Corporation
3
* SPDX-License-Identifier: Apache-2.0
4
*/
5
11
12
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_RENESAS_PINCTRL_RZG_COMMON_H_
13
#define ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_RENESAS_PINCTRL_RZG_COMMON_H_
14
19
68
70
71
/* Superset list of all possible IO ports. */
72
#define PORT_00 0x0000
/* IO port 0 */
73
#define PORT_01 0x1000
/* IO port 1 */
74
#define PORT_02 0x1100
/* IO port 2 */
75
#define PORT_03 0x1200
/* IO port 3 */
76
#define PORT_04 0x1300
/* IO port 4 */
77
#define PORT_05 0x0100
/* IO port 5 */
78
#define PORT_06 0x0200
/* IO port 6 */
79
#define PORT_07 0x1400
/* IO port 7 */
80
#define PORT_08 0x1500
/* IO port 8 */
81
#define PORT_09 0x1600
/* IO port 9 */
82
#define PORT_10 0x1700
/* IO port 10 */
83
#define PORT_11 0x0300
/* IO port 11 */
84
#define PORT_12 0x0400
/* IO port 12 */
85
#define PORT_13 0x0500
/* IO port 13 */
86
#define PORT_14 0x0600
/* IO port 14 */
87
#define PORT_15 0x0700
/* IO port 15 */
88
#define PORT_16 0x0800
/* IO port 16 */
89
#define PORT_17 0x0900
/* IO port 17 */
90
#define PORT_18 0x0A00
/* IO port 18 */
91
93
103
#define RZG_PINMUX(port, pin, func) (port | pin | (func << 4))
104
106
107
/* Special purpose port */
108
#define BSP_IO_NMI 0xFFFF0000
/* NMI */
109
110
#define BSP_IO_TMS_SWDIO 0xFFFF0100
/* TMS_SWDIO */
111
#define BSP_IO_TDO 0xFFFF0101
/* TDO */
112
113
#define BSP_IO_AUDIO_CLK1 0xFFFF0200
/* AUDIO_CLK1 */
114
#define BSP_IO_AUDIO_CLK2 0xFFFF0201
/* AUDIO_CLK2 */
115
116
#define BSP_IO_XSPI_SPCLK 0xFFFF0400
/* XSPI_SPCLK */
117
#define BSP_IO_XSPI_RESET_N 0xFFFF0401
/* XSPI_RESET_N */
118
#define BSP_IO_XSPI_WP_N 0xFFFF0402
/* XSPI_WP_N */
119
#define BSP_IO_XSPI_DS 0xFFFF0403
/* XSPI_DS */
120
#define BSP_IO_XSPI_CS0_N 0xFFFF0404
/* XSPI_CS0_N */
121
#define BSP_IO_XSPI_CS1_N 0xFFFF0405
/* XSPI_CS1_N */
122
123
#define BSP_IO_XSPI_IO0 0xFFFF0500
/* XSPI_IO0 */
124
#define BSP_IO_XSPI_IO1 0xFFFF0501
/* XSPI_IO1 */
125
#define BSP_IO_XSPI_IO2 0xFFFF0502
/* XSPI_IO2 */
126
#define BSP_IO_XSPI_IO3 0xFFFF0503
/* XSPI_IO3 */
127
#define BSP_IO_XSPI_IO4 0xFFFF0504
/* XSPI_IO4 */
128
#define BSP_IO_XSPI_IO5 0xFFFF0505
/* XSPI_IO5 */
129
#define BSP_IO_XSPI_IO6 0xFFFF0506
/* XSPI_IO6 */
130
#define BSP_IO_XSPI_IO7 0xFFFF0507
/* XSPI_IO7 */
131
132
#define BSP_IO_WDTOVF_PERROUT 0xFFFF0600
/* WDTOVF_PERROUT */
133
134
#define BSP_IO_I3C_SDA 0xFFFF0900
/* I3C_SDA */
135
#define BSP_IO_I3C_SCL 0xFFFF0901
/* I3C_SCL */
136
137
#define BSP_IO_SD0_CLK 0xFFFF1000
/* CD0_CLK */
138
#define BSP_IO_SD0_CMD 0xFFFF1001
/* CD0_CMD */
139
#define BSP_IO_SD0_RST_N 0xFFFF1002
/* CD0_RST_N */
140
141
#define BSP_IO_SD0_DATA0 0xFFFF1100
/* SD0_DATA0 */
142
#define BSP_IO_SD0_DATA1 0xFFFF1101
/* SD0_DATA1 */
143
#define BSP_IO_SD0_DATA2 0xFFFF1102
/* SD0_DATA2 */
144
#define BSP_IO_SD0_DATA3 0xFFFF1103
/* SD0_DATA3 */
145
#define BSP_IO_SD0_DATA4 0xFFFF1104
/* SD0_DATA4 */
146
#define BSP_IO_SD0_DATA5 0xFFFF1105
/* SD0_DATA5 */
147
#define BSP_IO_SD0_DATA6 0xFFFF1106
/* SD0_DATA6 */
148
#define BSP_IO_SD0_DATA7 0xFFFF1107
/* SD0_DATA7 */
149
150
#define BSP_IO_SD1_CLK 0xFFFF1200
/* SD1_CLK */
151
#define BSP_IO_SD1_CMD 0xFFFF1201
/* SD1_CMD */
152
153
#define BSP_IO_SD1_DATA0 0xFFFF1300
/* SD1_DATA0 */
154
#define BSP_IO_SD1_DATA1 0xFFFF1301
/* SD1_DATA1 */
155
#define BSP_IO_SD1_DATA2 0xFFFF1302
/* SD1_DATA2 */
156
#define BSP_IO_SD1_DATA3 0xFFFF1303
/* SD1_DATA3 */
157
159
167
168
#define RZG_FILNUM_4_STAGE 0
169
#define RZG_FILNUM_8_STAGE 1
170
#define RZG_FILNUM_12_STAGE 2
171
#define RZG_FILNUM_16_STAGE 3
172
173
#define RZG_FILCLKSEL_NOT_DIV 0
174
#define RZG_FILCLKSEL_DIV_9000 1
175
#define RZG_FILCLKSEL_DIV_18000 2
176
#define RZG_FILCLKSEL_DIV_36000 3
177
179
192
#define RZG_FILTER_SET(filnum, filclksel) (((filnum) & 0x3) << 0x2) | (filclksel & 0x3)
193
195
196
#endif
/* ZEPHYR_INCLUDE_DT_BINDINGS_PINCTRL_RENESAS_PINCTRL_RZG_COMMON_H_ */
include
zephyr
dt-bindings
pinctrl
renesas
pinctrl-rzg-common.h
Generated on
for Zephyr Project API by
1.16.1