xref: /linux/include/dt-bindings/clock/tegra20-car.h (revision 4b4193256c8d3bc3a5397b5cd9494c2ad386317d)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2ec23ad67SHiroshi Doyu /*
3ec23ad67SHiroshi Doyu  * This header provides constants for binding nvidia,tegra20-car.
4ec23ad67SHiroshi Doyu  *
5ec23ad67SHiroshi Doyu  * The first 96 clocks are numbered to match the bits in the CAR's CLK_OUT_ENB
6ec23ad67SHiroshi Doyu  * registers. These IDs often match those in the CAR's RST_DEVICES registers,
7ec23ad67SHiroshi Doyu  * but not in all cases. Some bits in CLK_OUT_ENB affect multiple clocks. In
8ec23ad67SHiroshi Doyu  * this case, those clocks are assigned IDs above 95 in order to highlight
9ec23ad67SHiroshi Doyu  * this issue. Implementations that interpret these clock IDs as bit values
10ec23ad67SHiroshi Doyu  * within the CLK_OUT_ENB or RST_DEVICES registers should be careful to
11ec23ad67SHiroshi Doyu  * explicitly handle these special cases.
12ec23ad67SHiroshi Doyu  *
13ec23ad67SHiroshi Doyu  * The balance of the clocks controlled by the CAR are assigned IDs of 96 and
14ec23ad67SHiroshi Doyu  * above.
15ec23ad67SHiroshi Doyu  */
16ec23ad67SHiroshi Doyu 
17ec23ad67SHiroshi Doyu #ifndef _DT_BINDINGS_CLOCK_TEGRA20_CAR_H
18ec23ad67SHiroshi Doyu #define _DT_BINDINGS_CLOCK_TEGRA20_CAR_H
19ec23ad67SHiroshi Doyu 
20ec23ad67SHiroshi Doyu #define TEGRA20_CLK_CPU 0
21ec23ad67SHiroshi Doyu /* 1 */
22ec23ad67SHiroshi Doyu /* 2 */
23ec23ad67SHiroshi Doyu #define TEGRA20_CLK_AC97 3
24ec23ad67SHiroshi Doyu #define TEGRA20_CLK_RTC 4
25ec23ad67SHiroshi Doyu #define TEGRA20_CLK_TIMER 5
26ec23ad67SHiroshi Doyu #define TEGRA20_CLK_UARTA 6
27ec23ad67SHiroshi Doyu /* 7 (register bit affects uart2 and vfir) */
28ec23ad67SHiroshi Doyu #define TEGRA20_CLK_GPIO 8
29ec23ad67SHiroshi Doyu #define TEGRA20_CLK_SDMMC2 9
30ec23ad67SHiroshi Doyu /* 10 (register bit affects spdif_in and spdif_out) */
31ec23ad67SHiroshi Doyu #define TEGRA20_CLK_I2S1 11
32ec23ad67SHiroshi Doyu #define TEGRA20_CLK_I2C1 12
33ec23ad67SHiroshi Doyu #define TEGRA20_CLK_NDFLASH 13
34ec23ad67SHiroshi Doyu #define TEGRA20_CLK_SDMMC1 14
35ec23ad67SHiroshi Doyu #define TEGRA20_CLK_SDMMC4 15
36ec23ad67SHiroshi Doyu #define TEGRA20_CLK_TWC 16
37ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PWM 17
38ec23ad67SHiroshi Doyu #define TEGRA20_CLK_I2S2 18
39ec23ad67SHiroshi Doyu #define TEGRA20_CLK_EPP 19
40ec23ad67SHiroshi Doyu /* 20 (register bit affects vi and vi_sensor) */
41ec23ad67SHiroshi Doyu #define TEGRA20_CLK_GR2D 21
42ec23ad67SHiroshi Doyu #define TEGRA20_CLK_USBD 22
43ec23ad67SHiroshi Doyu #define TEGRA20_CLK_ISP 23
44ec23ad67SHiroshi Doyu #define TEGRA20_CLK_GR3D 24
45ec23ad67SHiroshi Doyu #define TEGRA20_CLK_IDE 25
46ec23ad67SHiroshi Doyu #define TEGRA20_CLK_DISP2 26
47ec23ad67SHiroshi Doyu #define TEGRA20_CLK_DISP1 27
48ec23ad67SHiroshi Doyu #define TEGRA20_CLK_HOST1X 28
49ec23ad67SHiroshi Doyu #define TEGRA20_CLK_VCP 29
50ec23ad67SHiroshi Doyu /* 30 */
51ec23ad67SHiroshi Doyu #define TEGRA20_CLK_CACHE2 31
52ec23ad67SHiroshi Doyu 
534f4f85faSThierry Reding #define TEGRA20_CLK_MC 32
54ec23ad67SHiroshi Doyu #define TEGRA20_CLK_AHBDMA 33
55ec23ad67SHiroshi Doyu #define TEGRA20_CLK_APBDMA 34
56ec23ad67SHiroshi Doyu /* 35 */
57ec23ad67SHiroshi Doyu #define TEGRA20_CLK_KBC 36
58ec23ad67SHiroshi Doyu #define TEGRA20_CLK_STAT_MON 37
59ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PMC 38
60ec23ad67SHiroshi Doyu #define TEGRA20_CLK_FUSE 39
61ec23ad67SHiroshi Doyu #define TEGRA20_CLK_KFUSE 40
62ec23ad67SHiroshi Doyu #define TEGRA20_CLK_SBC1 41
63ec23ad67SHiroshi Doyu #define TEGRA20_CLK_NOR 42
64ec23ad67SHiroshi Doyu #define TEGRA20_CLK_SPI 43
65ec23ad67SHiroshi Doyu #define TEGRA20_CLK_SBC2 44
66ec23ad67SHiroshi Doyu #define TEGRA20_CLK_XIO 45
67ec23ad67SHiroshi Doyu #define TEGRA20_CLK_SBC3 46
68ec23ad67SHiroshi Doyu #define TEGRA20_CLK_DVC 47
69ec23ad67SHiroshi Doyu #define TEGRA20_CLK_DSI 48
70ec23ad67SHiroshi Doyu /* 49 (register bit affects tvo and cve) */
71ec23ad67SHiroshi Doyu #define TEGRA20_CLK_MIPI 50
72ec23ad67SHiroshi Doyu #define TEGRA20_CLK_HDMI 51
73ec23ad67SHiroshi Doyu #define TEGRA20_CLK_CSI 52
74ec23ad67SHiroshi Doyu #define TEGRA20_CLK_TVDAC 53
75ec23ad67SHiroshi Doyu #define TEGRA20_CLK_I2C2 54
76ec23ad67SHiroshi Doyu #define TEGRA20_CLK_UARTC 55
77ec23ad67SHiroshi Doyu /* 56 */
78ec23ad67SHiroshi Doyu #define TEGRA20_CLK_EMC 57
79ec23ad67SHiroshi Doyu #define TEGRA20_CLK_USB2 58
80ec23ad67SHiroshi Doyu #define TEGRA20_CLK_USB3 59
81ec23ad67SHiroshi Doyu #define TEGRA20_CLK_MPE 60
82ec23ad67SHiroshi Doyu #define TEGRA20_CLK_VDE 61
83ec23ad67SHiroshi Doyu #define TEGRA20_CLK_BSEA 62
84ec23ad67SHiroshi Doyu #define TEGRA20_CLK_BSEV 63
85ec23ad67SHiroshi Doyu 
86ec23ad67SHiroshi Doyu #define TEGRA20_CLK_SPEEDO 64
87ec23ad67SHiroshi Doyu #define TEGRA20_CLK_UARTD 65
88ec23ad67SHiroshi Doyu #define TEGRA20_CLK_UARTE 66
89ec23ad67SHiroshi Doyu #define TEGRA20_CLK_I2C3 67
90ec23ad67SHiroshi Doyu #define TEGRA20_CLK_SBC4 68
91ec23ad67SHiroshi Doyu #define TEGRA20_CLK_SDMMC3 69
92ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PEX 70
93ec23ad67SHiroshi Doyu #define TEGRA20_CLK_OWR 71
94ec23ad67SHiroshi Doyu #define TEGRA20_CLK_AFI 72
95ec23ad67SHiroshi Doyu #define TEGRA20_CLK_CSITE 73
96a85f06baSStephen Warren /* 74 */
97ec23ad67SHiroshi Doyu #define TEGRA20_CLK_AVPUCQ 75
98ec23ad67SHiroshi Doyu #define TEGRA20_CLK_LA 76
99ec23ad67SHiroshi Doyu /* 77 */
100ec23ad67SHiroshi Doyu /* 78 */
101ec23ad67SHiroshi Doyu /* 79 */
102ec23ad67SHiroshi Doyu /* 80 */
103ec23ad67SHiroshi Doyu /* 81 */
104ec23ad67SHiroshi Doyu /* 82 */
105ec23ad67SHiroshi Doyu /* 83 */
106ec23ad67SHiroshi Doyu #define TEGRA20_CLK_IRAMA 84
107ec23ad67SHiroshi Doyu #define TEGRA20_CLK_IRAMB 85
108ec23ad67SHiroshi Doyu #define TEGRA20_CLK_IRAMC 86
109ec23ad67SHiroshi Doyu #define TEGRA20_CLK_IRAMD 87
110ec23ad67SHiroshi Doyu #define TEGRA20_CLK_CRAM2 88
111ec23ad67SHiroshi Doyu #define TEGRA20_CLK_AUDIO_2X 89 /* a/k/a audio_2x_sync_clk */
112ec23ad67SHiroshi Doyu #define TEGRA20_CLK_CLK_D 90
113ec23ad67SHiroshi Doyu /* 91 */
114ec23ad67SHiroshi Doyu #define TEGRA20_CLK_CSUS 92
115ec23ad67SHiroshi Doyu #define TEGRA20_CLK_CDEV2 93
116ec23ad67SHiroshi Doyu #define TEGRA20_CLK_CDEV1 94
117ec23ad67SHiroshi Doyu /* 95 */
118ec23ad67SHiroshi Doyu 
119ec23ad67SHiroshi Doyu #define TEGRA20_CLK_UARTB 96
120ec23ad67SHiroshi Doyu #define TEGRA20_CLK_VFIR 97
121ec23ad67SHiroshi Doyu #define TEGRA20_CLK_SPDIF_IN 98
122ec23ad67SHiroshi Doyu #define TEGRA20_CLK_SPDIF_OUT 99
123ec23ad67SHiroshi Doyu #define TEGRA20_CLK_VI 100
124ec23ad67SHiroshi Doyu #define TEGRA20_CLK_VI_SENSOR 101
125ec23ad67SHiroshi Doyu #define TEGRA20_CLK_TVO 102
126ec23ad67SHiroshi Doyu #define TEGRA20_CLK_CVE 103
127ec23ad67SHiroshi Doyu #define TEGRA20_CLK_OSC 104
128ec23ad67SHiroshi Doyu #define TEGRA20_CLK_CLK_32K 105 /* a/k/a clk_s */
129ec23ad67SHiroshi Doyu #define TEGRA20_CLK_CLK_M 106
130ec23ad67SHiroshi Doyu #define TEGRA20_CLK_SCLK 107
131ec23ad67SHiroshi Doyu #define TEGRA20_CLK_CCLK 108
132ec23ad67SHiroshi Doyu #define TEGRA20_CLK_HCLK 109
133ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PCLK 110
134*c9585405SSowjanya Komatineni /* 111 */
135ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_A 112
136ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_A_OUT0 113
137ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_C 114
138ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_C_OUT1 115
139ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_D 116
140ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_D_OUT0 117
141ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_E 118
142ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_M 119
143ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_M_OUT1 120
144ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_P 121
145ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_P_OUT1 122
146ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_P_OUT2 123
147ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_P_OUT3 124
148ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_P_OUT4 125
149ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_S 126
150ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_U 127
151ec23ad67SHiroshi Doyu 
152ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_X 128
153ec23ad67SHiroshi Doyu #define TEGRA20_CLK_COP 129 /* a/k/a avp */
154ec23ad67SHiroshi Doyu #define TEGRA20_CLK_AUDIO 130 /* a/k/a audio_sync_clk */
155ec23ad67SHiroshi Doyu #define TEGRA20_CLK_PLL_REF 131
156ec23ad67SHiroshi Doyu #define TEGRA20_CLK_TWD 132
157ec23ad67SHiroshi Doyu #define TEGRA20_CLK_CLK_MAX 133
158ec23ad67SHiroshi Doyu 
159ec23ad67SHiroshi Doyu #endif	/* _DT_BINDINGS_CLOCK_TEGRA20_CAR_H */
160