xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/clock/nuvoton,npcm7xx-clock.h (revision c9ccf3a32da427475985b85d7df023ccfb138c27)
1c66ec88fSEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0 */
2c66ec88fSEmmanuel Vadot /*
3c66ec88fSEmmanuel Vadot  * Nuvoton NPCM7xx Clock Generator binding
4*c9ccf3a3SEmmanuel Vadot  * clock binding number for all clocks supported by nuvoton,npcm7xx-clk
5c66ec88fSEmmanuel Vadot  *
6c66ec88fSEmmanuel Vadot  * Copyright (C) 2018 Nuvoton Technologies tali.perry@nuvoton.com
7c66ec88fSEmmanuel Vadot  *
8c66ec88fSEmmanuel Vadot  */
9c66ec88fSEmmanuel Vadot 
10c66ec88fSEmmanuel Vadot #ifndef __DT_BINDINGS_CLOCK_NPCM7XX_H
11c66ec88fSEmmanuel Vadot #define __DT_BINDINGS_CLOCK_NPCM7XX_H
12c66ec88fSEmmanuel Vadot 
13c66ec88fSEmmanuel Vadot 
14c66ec88fSEmmanuel Vadot #define NPCM7XX_CLK_CPU 0
15c66ec88fSEmmanuel Vadot #define NPCM7XX_CLK_GFX_PIXEL 1
16c66ec88fSEmmanuel Vadot #define NPCM7XX_CLK_MC 2
17c66ec88fSEmmanuel Vadot #define NPCM7XX_CLK_ADC 3
18c66ec88fSEmmanuel Vadot #define NPCM7XX_CLK_AHB 4
19c66ec88fSEmmanuel Vadot #define NPCM7XX_CLK_TIMER 5
20c66ec88fSEmmanuel Vadot #define NPCM7XX_CLK_UART 6
21c66ec88fSEmmanuel Vadot #define NPCM7XX_CLK_MMC  7
22c66ec88fSEmmanuel Vadot #define NPCM7XX_CLK_SPI3 8
23c66ec88fSEmmanuel Vadot #define NPCM7XX_CLK_PCI  9
24c66ec88fSEmmanuel Vadot #define NPCM7XX_CLK_AXI 10
25c66ec88fSEmmanuel Vadot #define NPCM7XX_CLK_APB4 11
26c66ec88fSEmmanuel Vadot #define NPCM7XX_CLK_APB3 12
27c66ec88fSEmmanuel Vadot #define NPCM7XX_CLK_APB2 13
28c66ec88fSEmmanuel Vadot #define NPCM7XX_CLK_APB1 14
29c66ec88fSEmmanuel Vadot #define NPCM7XX_CLK_APB5 15
30c66ec88fSEmmanuel Vadot #define NPCM7XX_CLK_CLKOUT 16
31c66ec88fSEmmanuel Vadot #define NPCM7XX_CLK_GFX  17
32c66ec88fSEmmanuel Vadot #define NPCM7XX_CLK_SU   18
33c66ec88fSEmmanuel Vadot #define NPCM7XX_CLK_SU48 19
34c66ec88fSEmmanuel Vadot #define NPCM7XX_CLK_SDHC 20
35c66ec88fSEmmanuel Vadot #define NPCM7XX_CLK_SPI0 21
36c66ec88fSEmmanuel Vadot #define NPCM7XX_CLK_SPIX 22
37c66ec88fSEmmanuel Vadot 
38c66ec88fSEmmanuel Vadot #define NPCM7XX_CLK_REFCLK 23
39c66ec88fSEmmanuel Vadot #define NPCM7XX_CLK_SYSBYPCK 24
40c66ec88fSEmmanuel Vadot #define NPCM7XX_CLK_MCBYPCK 25
41c66ec88fSEmmanuel Vadot 
42c66ec88fSEmmanuel Vadot #define NPCM7XX_NUM_CLOCKS	 (NPCM7XX_CLK_MCBYPCK+1)
43c66ec88fSEmmanuel Vadot 
44c66ec88fSEmmanuel Vadot #endif
45