Zephyr API Documentation
4.4.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
numaker_m335x_clock.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2026 Nuvoton Technology Corporation.
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_NUMAKER_M335X_CLOCK_H
8
#define ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_NUMAKER_M335X_CLOCK_H
9
15
24
26
32
33
#define NUMAKER_CLK_CLKSEL0_HCLKSEL_HXT 0x00000000
34
#define NUMAKER_CLK_CLKSEL0_HCLKSEL_LXT 0x00000001
35
#define NUMAKER_CLK_CLKSEL0_HCLKSEL_PLL 0x00000002
36
#define NUMAKER_CLK_CLKSEL0_HCLKSEL_LIRC 0x00000003
37
#define NUMAKER_CLK_CLKSEL0_HCLKSEL_HIRC 0x00000007
38
#define NUMAKER_CLK_CLKSEL0_STCLKSEL_HXT 0x00000000
39
#define NUMAKER_CLK_CLKSEL0_STCLKSEL_LXT 0x00000008
40
#define NUMAKER_CLK_CLKSEL0_STCLKSEL_HXT_DIV2 0x00000010
41
#define NUMAKER_CLK_CLKSEL0_STCLKSEL_HCLK_DIV2 0x00000018
42
#define NUMAKER_CLK_CLKSEL0_STCLKSEL_HIRC_DIV2 0x00000038
43
#define NUMAKER_CLK_CLKSEL0_STCLKSEL_HCLK 0x00000004
44
#define NUMAKER_CLK_CLKSEL0_USBSEL_HIRC 0x00000000
45
#define NUMAKER_CLK_CLKSEL0_USBSEL_PLL 0x00000100
46
#define NUMAKER_CLK_CLKSEL0_EADC0SEL_HCLK 0x00000000
47
#define NUMAKER_CLK_CLKSEL0_EADC0SEL_PLL 0x00000400
48
#define NUMAKER_CLK_CLKSEL0_EADC1SEL_HCLK 0x00000000
49
#define NUMAKER_CLK_CLKSEL0_EADC1SEL_PLL 0x00000800
50
#define NUMAKER_CLK_CLKSEL0_CANFD0SEL_HXT 0x00000000
51
#define NUMAKER_CLK_CLKSEL0_CANFD0SEL_PLL 0x01000000
52
#define NUMAKER_CLK_CLKSEL0_CANFD0SEL_HCLK 0x02000000
53
#define NUMAKER_CLK_CLKSEL0_CANFD0SEL_HIRC 0x03000000
54
#define NUMAKER_CLK_CLKSEL0_CANFD1SEL_HXT 0x00000000
55
#define NUMAKER_CLK_CLKSEL0_CANFD1SEL_PLL 0x04000000
56
#define NUMAKER_CLK_CLKSEL0_CANFD1SEL_HCLK 0x08000000
57
#define NUMAKER_CLK_CLKSEL0_CANFD1SEL_HIRC 0x0C000000
58
#define NUMAKER_CLK_CLKSEL1_WDT0SEL_LXT 0x00000001
59
#define NUMAKER_CLK_CLKSEL1_WDT0SEL_HCLK_DIV2048 0x00000002
60
#define NUMAKER_CLK_CLKSEL1_WDT0SEL_LIRC 0x00000003
61
#define NUMAKER_CLK_CLKSEL1_WDT1SEL_LXT 0x00000004
62
#define NUMAKER_CLK_CLKSEL1_WDT1SEL_HCLK_DIV2048 0x00000008
63
#define NUMAKER_CLK_CLKSEL1_WDT1SEL_LIRC 0x0000000C
64
#define NUMAKER_CLK_CLKSEL1_CLKOSEL_HXT 0x00000000
65
#define NUMAKER_CLK_CLKSEL1_CLKOSEL_LXT 0x00000010
66
#define NUMAKER_CLK_CLKSEL1_CLKOSEL_HCLK 0x00000020
67
#define NUMAKER_CLK_CLKSEL1_CLKOSEL_HIRC 0x00000030
68
#define NUMAKER_CLK_CLKSEL1_CLKOSEL_LIRC 0x00000040
69
#define NUMAKER_CLK_CLKSEL1_CLKOSEL_PLL 0x00000050
70
#define NUMAKER_CLK_CLKSEL1_CLKOSEL_USBD_SOF 0x00000060
71
#define NUMAKER_CLK_CLKSEL1_TMR0SEL_HXT 0x00000000
72
#define NUMAKER_CLK_CLKSEL1_TMR0SEL_LXT 0x00000100
73
#define NUMAKER_CLK_CLKSEL1_TMR0SEL_PCLK0 0x00000200
74
#define NUMAKER_CLK_CLKSEL1_TMR0SEL_EXT 0x00000300
75
#define NUMAKER_CLK_CLKSEL1_TMR0SEL_LIRC 0x00000500
76
#define NUMAKER_CLK_CLKSEL1_TMR0SEL_HIRC 0x00000700
77
#define NUMAKER_CLK_CLKSEL1_TMR1SEL_HXT 0x00000000
78
#define NUMAKER_CLK_CLKSEL1_TMR1SEL_LXT 0x00001000
79
#define NUMAKER_CLK_CLKSEL1_TMR1SEL_PCLK0 0x00002000
80
#define NUMAKER_CLK_CLKSEL1_TMR1SEL_EXT 0x00003000
81
#define NUMAKER_CLK_CLKSEL1_TMR1SEL_LIRC 0x00005000
82
#define NUMAKER_CLK_CLKSEL1_TMR1SEL_HIRC 0x00007000
83
#define NUMAKER_CLK_CLKSEL1_TMR2SEL_HXT 0x00000000
84
#define NUMAKER_CLK_CLKSEL1_TMR2SEL_LXT 0x00010000
85
#define NUMAKER_CLK_CLKSEL1_TMR2SEL_PCLK1 0x00020000
86
#define NUMAKER_CLK_CLKSEL1_TMR2SEL_EXT 0x00030000
87
#define NUMAKER_CLK_CLKSEL1_TMR2SEL_LIRC 0x00050000
88
#define NUMAKER_CLK_CLKSEL1_TMR2SEL_HIRC 0x00070000
89
#define NUMAKER_CLK_CLKSEL1_TMR3SEL_HXT 0x00000000
90
#define NUMAKER_CLK_CLKSEL1_TMR3SEL_LXT 0x00100000
91
#define NUMAKER_CLK_CLKSEL1_TMR3SEL_PCLK1 0x00200000
92
#define NUMAKER_CLK_CLKSEL1_TMR3SEL_EXT 0x00300000
93
#define NUMAKER_CLK_CLKSEL1_TMR3SEL_LIRC 0x00500000
94
#define NUMAKER_CLK_CLKSEL1_TMR3SEL_HIRC 0x00700000
95
#define NUMAKER_CLK_CLKSEL1_UART0SEL_HXT 0x00000000
96
#define NUMAKER_CLK_CLKSEL1_UART0SEL_PLL 0x01000000
97
#define NUMAKER_CLK_CLKSEL1_UART0SEL_LXT 0x02000000
98
#define NUMAKER_CLK_CLKSEL1_UART0SEL_HIRC 0x03000000
99
#define NUMAKER_CLK_CLKSEL1_UART1SEL_HXT 0x00000000
100
#define NUMAKER_CLK_CLKSEL1_UART1SEL_PLL 0x04000000
101
#define NUMAKER_CLK_CLKSEL1_UART1SEL_LXT 0x08000000
102
#define NUMAKER_CLK_CLKSEL1_UART1SEL_HIRC 0x0C000000
103
#define NUMAKER_CLK_CLKSEL1_WWDT0SEL_HCLK_DIV2048 0x20000000
104
#define NUMAKER_CLK_CLKSEL1_WWDT0SEL_LIRC 0x30000000
105
#define NUMAKER_CLK_CLKSEL1_WWDT1SEL_HCLK_DIV2048 0x80000000
106
#define NUMAKER_CLK_CLKSEL1_WWDT1SEL_LIRC 0xC0000000
107
#define NUMAKER_CLK_CLKSEL2_PWM0SEL_HCLK 0x00000000
108
#define NUMAKER_CLK_CLKSEL2_PWM0SEL_PCLK0 0x00000001
109
#define NUMAKER_CLK_CLKSEL2_PWM1SEL_HCLK 0x00000000
110
#define NUMAKER_CLK_CLKSEL2_PWM1SEL_PCLK1 0x00000002
111
#define NUMAKER_CLK_CLKSEL2_QSPI0SEL_HXT 0x00000000
112
#define NUMAKER_CLK_CLKSEL2_QSPI0SEL_PLL 0x00000004
113
#define NUMAKER_CLK_CLKSEL2_QSPI0SEL_PCLK0 0x00000008
114
#define NUMAKER_CLK_CLKSEL2_QSPI0SEL_HIRC 0x0000000C
115
#define NUMAKER_CLK_CLKSEL2_SPI0SEL_HXT 0x00000000
116
#define NUMAKER_CLK_CLKSEL2_SPI0SEL_PLL 0x00000010
117
#define NUMAKER_CLK_CLKSEL2_SPI0SEL_PCLK1 0x00000020
118
#define NUMAKER_CLK_CLKSEL2_SPI0SEL_HIRC 0x00000030
119
#define NUMAKER_CLK_CLKSEL2_SPI1SEL_HXT 0x00000000
120
#define NUMAKER_CLK_CLKSEL2_SPI1SEL_PLL 0x00000040
121
#define NUMAKER_CLK_CLKSEL2_SPI1SEL_PCLK0 0x00000080
122
#define NUMAKER_CLK_CLKSEL2_SPI1SEL_HIRC 0x000000C0
123
#define NUMAKER_CLK_CLKSEL2_BPWM0SEL_HCLK 0x00000000
124
#define NUMAKER_CLK_CLKSEL2_BPWM0SEL_PCLK0 0x00000100
125
#define NUMAKER_CLK_CLKSEL2_BPWM1SEL_HCLK 0x00000000
126
#define NUMAKER_CLK_CLKSEL2_BPWM1SEL_PCLK1 0x00000200
127
#define NUMAKER_CLK_CLKSEL3_UART6SEL_HXT 0x00000000
128
#define NUMAKER_CLK_CLKSEL3_UART6SEL_PLL 0x00001000
129
#define NUMAKER_CLK_CLKSEL3_UART6SEL_LXT 0x00002000
130
#define NUMAKER_CLK_CLKSEL3_UART6SEL_HIRC 0x00003000
131
#define NUMAKER_CLK_CLKSEL3_UART7SEL_HXT 0x00000000
132
#define NUMAKER_CLK_CLKSEL3_UART7SEL_PLL 0x00004000
133
#define NUMAKER_CLK_CLKSEL3_UART7SEL_LXT 0x00008000
134
#define NUMAKER_CLK_CLKSEL3_UART7SEL_HIRC 0x0000C000
135
#define NUMAKER_CLK_CLKSEL3_I3C0SEL_HCLK 0x00000000
136
#define NUMAKER_CLK_CLKSEL3_I3C0SEL_PLL 0x00040000
137
#define NUMAKER_CLK_CLKSEL3_UART8SEL_HXT 0x00000000
138
#define NUMAKER_CLK_CLKSEL3_UART8SEL_PLL 0x00100000
139
#define NUMAKER_CLK_CLKSEL3_UART8SEL_LXT 0x00200000
140
#define NUMAKER_CLK_CLKSEL3_UART8SEL_HIRC 0x00300000
141
#define NUMAKER_CLK_CLKSEL3_UART9SEL_HXT 0x00000000
142
#define NUMAKER_CLK_CLKSEL3_UART9SEL_PLL 0x00400000
143
#define NUMAKER_CLK_CLKSEL3_UART9SEL_LXT 0x00800000
144
#define NUMAKER_CLK_CLKSEL3_UART9SEL_HIRC 0x00C00000
145
#define NUMAKER_CLK_CLKSEL3_UART2SEL_HXT 0x00000000
146
#define NUMAKER_CLK_CLKSEL3_UART2SEL_PLL 0x01000000
147
#define NUMAKER_CLK_CLKSEL3_UART2SEL_LXT 0x02000000
148
#define NUMAKER_CLK_CLKSEL3_UART2SEL_HIRC 0x03000000
149
#define NUMAKER_CLK_CLKSEL3_UART3SEL_HXT 0x00000000
150
#define NUMAKER_CLK_CLKSEL3_UART3SEL_PLL 0x04000000
151
#define NUMAKER_CLK_CLKSEL3_UART3SEL_LXT 0x08000000
152
#define NUMAKER_CLK_CLKSEL3_UART3SEL_HIRC 0x0C000000
153
#define NUMAKER_CLK_CLKSEL3_UART4SEL_HXT 0x00000000
154
#define NUMAKER_CLK_CLKSEL3_UART4SEL_PLL 0x10000000
155
#define NUMAKER_CLK_CLKSEL3_UART4SEL_LXT 0x20000000
156
#define NUMAKER_CLK_CLKSEL3_UART4SEL_HIRC 0x30000000
157
#define NUMAKER_CLK_CLKSEL3_UART5SEL_HXT 0x00000000
158
#define NUMAKER_CLK_CLKSEL3_UART5SEL_PLL 0x40000000
159
#define NUMAKER_CLK_CLKSEL3_UART5SEL_LXT 0x80000000
160
#define NUMAKER_CLK_CLKSEL3_UART5SEL_HIRC 0xC0000000
161
#define NUMAKER_CLK_CLKDIV0_HCLK(x) (((x) - 1UL) << (0))
162
#define NUMAKER_CLK_CLKDIV0_USB(x) (((x) - 1UL) << (4))
163
#define NUMAKER_CLK_CLKDIV0_UART0(x) (((x) - 1UL) << (8))
164
#define NUMAKER_CLK_CLKDIV0_UART1(x) (((x) - 1UL) << (12))
165
#define NUMAKER_CLK_CLKDIV0_EADC0(x) (((x) - 1UL) << (16))
166
#define NUMAKER_CLK_CLKDIV1_UART2(x) (((x) - 1UL) << (0))
167
#define NUMAKER_CLK_CLKDIV1_UART3(x) (((x) - 1UL) << (4))
168
#define NUMAKER_CLK_CLKDIV1_UART4(x) (((x) - 1UL) << (8))
169
#define NUMAKER_CLK_CLKDIV1_CANFD0(x) (((x) - 1UL) << (16))
170
#define NUMAKER_CLK_CLKDIV1_CANFD1(x) (((x) - 1UL) << (20))
171
#define NUMAKER_CLK_CLKDIV2_UART5(x) (((x) - 1UL) << (0))
172
#define NUMAKER_CLK_CLKDIV2_UART8(x) (((x) - 1UL) << (4))
173
#define NUMAKER_CLK_CLKDIV2_UART9(x) (((x) - 1UL) << (8))
174
#define NUMAKER_CLK_CLKDIV2_UART6(x) (((x) - 1UL) << (12))
175
#define NUMAKER_CLK_CLKDIV2_UART7(x) (((x) - 1UL) << (16))
176
#define NUMAKER_CLK_CLKDIV2_EADC1(x) (((x) - 1UL) << (24))
177
#define NUMAKER_CLK_PCLKDIV_APB0DIV_DIV1 0x00000000
178
#define NUMAKER_CLK_PCLKDIV_APB0DIV_DIV2 0x00000001
179
#define NUMAKER_CLK_PCLKDIV_APB0DIV_DIV4 0x00000002
180
#define NUMAKER_CLK_PCLKDIV_APB0DIV_DIV8 0x00000003
181
#define NUMAKER_CLK_PCLKDIV_APB0DIV_DIV16 0x00000004
182
#define NUMAKER_CLK_PCLKDIV_APB1DIV_DIV1 0x00000000
183
#define NUMAKER_CLK_PCLKDIV_APB1DIV_DIV2 0x00000010
184
#define NUMAKER_CLK_PCLKDIV_APB1DIV_DIV4 0x00000020
185
#define NUMAKER_CLK_PCLKDIV_APB1DIV_DIV8 0x00000030
186
#define NUMAKER_CLK_PCLKDIV_APB1DIV_DIV16 0x00000040
187
#define NUMAKER_CLK_PLLCTL_PLLSRC_HXT 0x00000000
188
#define NUMAKER_CLK_PLLCTL_PLLSRC_HIRC_DIV4 0x00080000
189
#define NUMAKER_PDMA0_MODULE 0x00000001
190
#define NUMAKER_ISP_MODULE 0x00000002
191
#define NUMAKER_EBI_MODULE 0x00000003
192
#define NUMAKER_ST_MODULE 0x00000004
193
#define NUMAKER_CRC_MODULE 0x00000007
194
#define NUMAKER_CANFD0_MODULE 0x00F07E08
195
#define NUMAKER_CANFD1_MODULE 0x00F47E89
196
#define NUMAKER_CRPT_MODULE 0x0000000C
197
#define NUMAKER_DFMC_MODULE 0x0000000E
198
#define NUMAKER_FMCIDLE_MODULE 0x0000000F
199
#define NUMAKER_USBH_MODULE 0x00503C90
200
#define NUMAKER_CANRAM0_MODULE 0x00000011
201
#define NUMAKER_CANRAM1_MODULE 0x00000012
202
#define NUMAKER_GPA_MODULE 0x00000018
203
#define NUMAKER_GPB_MODULE 0x00000019
204
#define NUMAKER_GPC_MODULE 0x0000001A
205
#define NUMAKER_GPD_MODULE 0x0000001B
206
#define NUMAKER_GPE_MODULE 0x0000001C
207
#define NUMAKER_GPF_MODULE 0x0000001D
208
#define NUMAKER_GPG_MODULE 0x0000001E
209
#define NUMAKER_GPH_MODULE 0x0000001F
210
#define NUMAKER_WDT0_MODULE 0x24C00000
211
#define NUMAKER_RTC_MODULE 0x20000001
212
#define NUMAKER_TMR0_MODULE 0x25D00002
213
#define NUMAKER_TMR1_MODULE 0x25D80003
214
#define NUMAKER_TMR2_MODULE 0x25E00004
215
#define NUMAKER_TMR3_MODULE 0x25E80005
216
#define NUMAKER_CLKO_MODULE 0x25C80006
217
#define NUMAKER_ACMP01_MODULE 0x20000007
218
#define NUMAKER_I2C0_MODULE 0x20000008
219
#define NUMAKER_I2C1_MODULE 0x20000009
220
#define NUMAKER_I2C2_MODULE 0x2000000A
221
#define NUMAKER_I3C0_MODULE 0x2C64000B
222
#define NUMAKER_QSPI0_MODULE 0x28C4000C
223
#define NUMAKER_SPI0_MODULE 0x28C8000D
224
#define NUMAKER_SPI1_MODULE 0x28CC000E
225
#define NUMAKER_UART0_MODULE 0x24F03D10
226
#define NUMAKER_UART1_MODULE 0x24F43D91
227
#define NUMAKER_UART2_MODULE 0x2CF07C12
228
#define NUMAKER_UART3_MODULE 0x2CF47C93
229
#define NUMAKER_UART4_MODULE 0x2CF87D14
230
#define NUMAKER_UART5_MODULE 0x2CFCBC15
231
#define NUMAKER_UART8_MODULE 0x2CE8BC96
232
#define NUMAKER_UART9_MODULE 0x2CECBD17
233
#define NUMAKER_WWDT0_MODULE 0x24F80018
234
#define NUMAKER_WWDT1_MODULE 0x24FC0019
235
#define NUMAKER_USBD_MODULE 0x20503C9B
236
#define NUMAKER_EADC0_MODULE 0x20543E1C
237
#define NUMAKER_WDT1_MODULE 0x24C4001F
238
#define NUMAKER_USCI0_MODULE 0x40000008
239
#define NUMAKER_USCI1_MODULE 0x40000009
240
#define NUMAKER_DAC_MODULE 0x4000000C
241
#define NUMAKER_PWM0_MODULE 0x48400010
242
#define NUMAKER_PWM1_MODULE 0x48420011
243
#define NUMAKER_BPWM0_MODULE 0x48500012
244
#define NUMAKER_BPWM1_MODULE 0x48520013
245
#define NUMAKER_EQEI0_MODULE 0x40000014
246
#define NUMAKER_EQEI1_MODULE 0x40000015
247
#define NUMAKER_UART6_MODULE 0x4CD8BD98
248
#define NUMAKER_UART7_MODULE 0x4CDCBE19
249
#define NUMAKER_ECAP0_MODULE 0x4000001A
250
#define NUMAKER_EADC1_MODULE 0x4056BF1F
251
#define NUMAKER_LLSI0_MODULE 0x60000000
252
#define NUMAKER_LLSI1_MODULE 0x60000001
253
#define NUMAKER_LLSI2_MODULE 0x60000002
254
#define NUMAKER_LLSI3_MODULE 0x60000003
255
#define NUMAKER_LLSI4_MODULE 0x60000004
256
#define NUMAKER_LLSI5_MODULE 0x60000005
257
#define NUMAKER_LLSI6_MODULE 0x60000006
258
#define NUMAKER_LLSI7_MODULE 0x60000007
259
#define NUMAKER_LLSI8_MODULE 0x60000008
260
#define NUMAKER_LLSI9_MODULE 0x60000009
261
#define NUMAKER_ELLSI0_MODULE 0x6000000A
262
#define NUMAKER_ELLSI1_MODULE 0x6000000B
263
#define NUMAKER_TRNG_MODULE 0x60000019
264
#define NUMAKER_CLK_PMUCTL_PDMSEL_NPD1 0x00000000
265
#define NUMAKER_CLK_PMUCTL_PDMSEL_NPD2 0x00000001
266
#define NUMAKER_CLK_PMUCTL_PDMSEL_NPD0 0x00000002
267
#define NUMAKER_CLK_PMUCTL_PDMSEL_SPD0 0x00000004
268
#define NUMAKER_CLK_PMUCTL_PDMSEL_SPD1 0x00000005
269
271
273
275
276
#endif
zephyr
dt-bindings
clock
numaker_m335x_clock.h
Generated on
for Zephyr API Documentation by
1.16.1