diff options
author | Olof Johansson <olof@lixom.net> | 2013-06-14 21:09:41 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2013-06-14 21:09:41 -0400 |
commit | 36d29fb57ccbf3cea2e46fea2ef5f0ffc22308e4 (patch) | |
tree | 60038ef374cbfd97b1f75c14c6b44f5dde9c2d8d /include/dt-bindings | |
parent | 3b2e6296abeefb6f602e1cf1bd67e4e3a9b9ee7e (diff) | |
parent | 23037bbd9661b53236ebe934c77952e8f73f1c7a (diff) |
Merge tag 'tegra-for-3.11-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/swarren/linux-tegra into next/dt
From Stephen Warren:
ARM: tegra: device tree updates
This branch contains all device tree updates for Tegra boards.
The changes are:
* Converted all DT files to use the C pre-processor, to support the use
of named constants. This included use of defines for GPIO, IRQ, and
clock constants.
* Enabling new features such as:
- SPI on Dalmore.
- Audio on Dalmore and Beaver.
- gpio-leds on Beaver.
- Power-supply/batter linkage on Dalmore.
* A minor fix to the RAM size node on Beaver.
It is based on previous pull request tegra-for-3.11-deps-for-usb
followed by a merge of tegra-for-3.11-deps-for-clk.
* tag 'tegra-for-3.11-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/swarren/linux-tegra: (21 commits)
ARM: tegra: enable audio on Beaver
ARM: tegra: enable audio on Dalmore
ARM: tegra: add power-supplies link between battery and charger
ARM: tegra: add audio-related nodes to Tegra114 DT
ARM: tegra114: convert device tree files to use CLK defines
ARM: tegra30: convert device tree files to use CLK defines
ARM: tegra20: convert device tree files to use CLK defines
ARM: tegra: Add charger subnode to tps65090 node
ARM: tegra: convert device tree files to use IRQ defines
ARM: tegra: convert device tree files to use GPIO defines
ARM: tegra: create a DT header defining GPIO IDs
ARM: tegra: use #include for all device trees
ARM: tegra: Add gpio-leds to Tegra30 Beaver
ARM: tegra: fix memory size on Beaver
ARM: tegra: enable spi4 on Dalmore
ARM: tegra114: create a DT header defining CLK IDs
ARM: tegra30: create a DT header defining CLK IDs
ARM: tegra20: create a DT header defining CLK IDs
ARM: tegra: update device trees for USB binding rework
ARM: tegra: modify ULPI reset GPIO properties
...
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'include/dt-bindings')
-rw-r--r-- | include/dt-bindings/clock/tegra114-car.h | 342 | ||||
-rw-r--r-- | include/dt-bindings/clock/tegra20-car.h | 158 | ||||
-rw-r--r-- | include/dt-bindings/clock/tegra30-car.h | 265 | ||||
-rw-r--r-- | include/dt-bindings/gpio/tegra-gpio.h | 50 |
4 files changed, 815 insertions, 0 deletions
diff --git a/include/dt-bindings/clock/tegra114-car.h b/include/dt-bindings/clock/tegra114-car.h new file mode 100644 index 000000000000..614aec417902 --- /dev/null +++ b/include/dt-bindings/clock/tegra114-car.h | |||
@@ -0,0 +1,342 @@ | |||
1 | /* | ||
2 | * This header provides constants for binding nvidia,tegra114-car. | ||
3 | * | ||
4 | * The first 160 clocks are numbered to match the bits in the CAR's CLK_OUT_ENB | ||
5 | * registers. These IDs often match those in the CAR's RST_DEVICES registers, | ||
6 | * but not in all cases. Some bits in CLK_OUT_ENB affect multiple clocks. In | ||
7 | * this case, those clocks are assigned IDs above 160 in order to highlight | ||
8 | * this issue. Implementations that interpret these clock IDs as bit values | ||
9 | * within the CLK_OUT_ENB or RST_DEVICES registers should be careful to | ||
10 | * explicitly handle these special cases. | ||
11 | * | ||
12 | * The balance of the clocks controlled by the CAR are assigned IDs of 160 and | ||
13 | * above. | ||
14 | */ | ||
15 | |||
16 | #ifndef _DT_BINDINGS_CLOCK_TEGRA114_CAR_H | ||
17 | #define _DT_BINDINGS_CLOCK_TEGRA114_CAR_H | ||
18 | |||
19 | /* 0 */ | ||
20 | /* 1 */ | ||
21 | /* 2 */ | ||
22 | /* 3 */ | ||
23 | #define TEGRA114_CLK_RTC 4 | ||
24 | #define TEGRA114_CLK_TIMER 5 | ||
25 | #define TEGRA114_CLK_UARTA 6 | ||
26 | /* 7 (register bit affects uartb and vfir) */ | ||
27 | /* 8 */ | ||
28 | #define TEGRA114_CLK_SDMMC2 9 | ||
29 | /* 10 (register bit affects spdif_in and spdif_out) */ | ||
30 | #define TEGRA114_CLK_I2S1 11 | ||
31 | #define TEGRA114_CLK_I2C1 12 | ||
32 | #define TEGRA114_CLK_NDFLASH 13 | ||
33 | #define TEGRA114_CLK_SDMMC1 14 | ||
34 | #define TEGRA114_CLK_SDMMC4 15 | ||
35 | /* 16 */ | ||
36 | #define TEGRA114_CLK_PWM 17 | ||
37 | #define TEGRA114_CLK_I2S2 18 | ||
38 | #define TEGRA114_CLK_EPP 19 | ||
39 | /* 20 (register bit affects vi and vi_sensor) */ | ||
40 | #define TEGRA114_CLK_GR_2D 21 | ||
41 | #define TEGRA114_CLK_USBD 22 | ||
42 | #define TEGRA114_CLK_ISP 23 | ||
43 | #define TEGRA114_CLK_GR_3D 24 | ||
44 | /* 25 */ | ||
45 | #define TEGRA114_CLK_DISP2 26 | ||
46 | #define TEGRA114_CLK_DISP1 27 | ||
47 | #define TEGRA114_CLK_HOST1X 28 | ||
48 | #define TEGRA114_CLK_VCP 29 | ||
49 | #define TEGRA114_CLK_I2S0 30 | ||
50 | /* 31 */ | ||
51 | |||
52 | /* 32 */ | ||
53 | /* 33 */ | ||
54 | #define TEGRA114_CLK_APBDMA 34 | ||
55 | /* 35 */ | ||
56 | #define TEGRA114_CLK_KBC 36 | ||
57 | /* 37 */ | ||
58 | /* 38 */ | ||
59 | /* 39 (register bit affects fuse and fuse_burn) */ | ||
60 | #define TEGRA114_CLK_KFUSE 40 | ||
61 | #define TEGRA114_CLK_SBC1 41 | ||
62 | #define TEGRA114_CLK_NOR 42 | ||
63 | /* 43 */ | ||
64 | #define TEGRA114_CLK_SBC2 44 | ||
65 | /* 45 */ | ||
66 | #define TEGRA114_CLK_SBC3 46 | ||
67 | #define TEGRA114_CLK_I2C5 47 | ||
68 | #define TEGRA114_CLK_DSIA 48 | ||
69 | /* 49 */ | ||
70 | #define TEGRA114_CLK_MIPI 50 | ||
71 | #define TEGRA114_CLK_HDMI 51 | ||
72 | #define TEGRA114_CLK_CSI 52 | ||
73 | /* 53 */ | ||
74 | #define TEGRA114_CLK_I2C2 54 | ||
75 | #define TEGRA114_CLK_UARTC 55 | ||
76 | #define TEGRA114_CLK_MIPI_CAL 56 | ||
77 | #define TEGRA114_CLK_EMC 57 | ||
78 | #define TEGRA114_CLK_USB2 58 | ||
79 | #define TEGRA114_CLK_USB3 59 | ||
80 | /* 60 */ | ||
81 | #define TEGRA114_CLK_VDE 61 | ||
82 | #define TEGRA114_CLK_BSEA 62 | ||
83 | #define TEGRA114_CLK_BSEV 63 | ||
84 | |||
85 | /* 64 */ | ||
86 | #define TEGRA114_CLK_UARTD 65 | ||
87 | /* 66 */ | ||
88 | #define TEGRA114_CLK_I2C3 67 | ||
89 | #define TEGRA114_CLK_SBC4 68 | ||
90 | #define TEGRA114_CLK_SDMMC3 69 | ||
91 | /* 70 */ | ||
92 | #define TEGRA114_CLK_OWR 71 | ||
93 | /* 72 */ | ||
94 | #define TEGRA114_CLK_CSITE 73 | ||
95 | /* 74 */ | ||
96 | /* 75 */ | ||
97 | #define TEGRA114_CLK_LA 76 | ||
98 | #define TEGRA114_CLK_TRACE 77 | ||
99 | #define TEGRA114_CLK_SOC_THERM 78 | ||
100 | #define TEGRA114_CLK_DTV 79 | ||
101 | #define TEGRA114_CLK_NDSPEED 80 | ||
102 | #define TEGRA114_CLK_I2CSLOW 81 | ||
103 | #define TEGRA114_CLK_DSIB 82 | ||
104 | #define TEGRA114_CLK_TSEC 83 | ||
105 | /* 84 */ | ||
106 | /* 85 */ | ||
107 | /* 86 */ | ||
108 | /* 87 */ | ||
109 | /* 88 */ | ||
110 | #define TEGRA114_CLK_XUSB_HOST 89 | ||
111 | /* 90 */ | ||
112 | #define TEGRA114_CLK_MSENC 91 | ||
113 | #define TEGRA114_CLK_CSUS 92 | ||
114 | /* 93 */ | ||
115 | /* 94 */ | ||
116 | /* 95 (bit affects xusb_dev and xusb_dev_src) */ | ||
117 | |||
118 | /* 96 */ | ||
119 | /* 97 */ | ||
120 | /* 98 */ | ||
121 | #define TEGRA114_CLK_MSELECT 99 | ||
122 | #define TEGRA114_CLK_TSENSOR 100 | ||
123 | #define TEGRA114_CLK_I2S3 101 | ||
124 | #define TEGRA114_CLK_I2S4 102 | ||
125 | #define TEGRA114_CLK_I2C4 103 | ||
126 | #define TEGRA114_CLK_SBC5 104 | ||
127 | #define TEGRA114_CLK_SBC6 105 | ||
128 | #define TEGRA114_CLK_D_AUDIO 106 | ||
129 | #define TEGRA114_CLK_APBIF 107 | ||
130 | #define TEGRA114_CLK_DAM0 108 | ||
131 | #define TEGRA114_CLK_DAM1 109 | ||
132 | #define TEGRA114_CLK_DAM2 110 | ||
133 | #define TEGRA114_CLK_HDA2CODEC_2X 111 | ||
134 | /* 112 */ | ||
135 | #define TEGRA114_CLK_AUDIO0_2X 113 | ||
136 | #define TEGRA114_CLK_AUDIO1_2X 114 | ||
137 | #define TEGRA114_CLK_AUDIO2_2X 115 | ||
138 | #define TEGRA114_CLK_AUDIO3_2X 116 | ||
139 | #define TEGRA114_CLK_AUDIO4_2X 117 | ||
140 | #define TEGRA114_CLK_SPDIF_2X 118 | ||
141 | #define TEGRA114_CLK_ACTMON 119 | ||
142 | #define TEGRA114_CLK_EXTERN1 120 | ||
143 | #define TEGRA114_CLK_EXTERN2 121 | ||
144 | #define TEGRA114_CLK_EXTERN3 122 | ||
145 | /* 123 */ | ||
146 | /* 124 */ | ||
147 | #define TEGRA114_CLK_HDA 125 | ||
148 | /* 126 */ | ||
149 | #define TEGRA114_CLK_SE 127 | ||
150 | |||
151 | #define TEGRA114_CLK_HDA2HDMI 128 | ||
152 | /* 129 */ | ||
153 | /* 130 */ | ||
154 | /* 131 */ | ||
155 | /* 132 */ | ||
156 | /* 133 */ | ||
157 | /* 134 */ | ||
158 | /* 135 */ | ||
159 | /* 136 */ | ||
160 | /* 137 */ | ||
161 | /* 138 */ | ||
162 | /* 139 */ | ||
163 | /* 140 */ | ||
164 | /* 141 */ | ||
165 | /* 142 */ | ||
166 | /* 143 (bit affects xusb_falcon_src, xusb_fs_src, */ | ||
167 | /* xusb_host_src and xusb_ss_src) */ | ||
168 | #define TEGRA114_CLK_CILAB 144 | ||
169 | #define TEGRA114_CLK_CILCD 145 | ||
170 | #define TEGRA114_CLK_CILE 146 | ||
171 | #define TEGRA114_CLK_DSIALP 147 | ||
172 | #define TEGRA114_CLK_DSIBLP 148 | ||
173 | /* 149 */ | ||
174 | #define TEGRA114_CLK_DDS 150 | ||
175 | /* 151 */ | ||
176 | #define TEGRA114_CLK_DP2 152 | ||
177 | #define TEGRA114_CLK_AMX 153 | ||
178 | #define TEGRA114_CLK_ADX 154 | ||
179 | /* 155 (bit affects dfll_ref and dfll_soc) */ | ||
180 | #define TEGRA114_CLK_XUSB_SS 156 | ||
181 | /* 157 */ | ||
182 | /* 158 */ | ||
183 | /* 159 */ | ||
184 | |||
185 | /* 160 */ | ||
186 | /* 161 */ | ||
187 | /* 162 */ | ||
188 | /* 163 */ | ||
189 | /* 164 */ | ||
190 | /* 165 */ | ||
191 | /* 166 */ | ||
192 | /* 167 */ | ||
193 | /* 168 */ | ||
194 | /* 169 */ | ||
195 | /* 170 */ | ||
196 | /* 171 */ | ||
197 | /* 172 */ | ||
198 | /* 173 */ | ||
199 | /* 174 */ | ||
200 | /* 175 */ | ||
201 | /* 176 */ | ||
202 | /* 177 */ | ||
203 | /* 178 */ | ||
204 | /* 179 */ | ||
205 | /* 180 */ | ||
206 | /* 181 */ | ||
207 | /* 182 */ | ||
208 | /* 183 */ | ||
209 | /* 184 */ | ||
210 | /* 185 */ | ||
211 | /* 186 */ | ||
212 | /* 187 */ | ||
213 | /* 188 */ | ||
214 | /* 189 */ | ||
215 | /* 190 */ | ||
216 | /* 191 */ | ||
217 | |||
218 | #define TEGRA114_CLK_UARTB 192 | ||
219 | #define TEGRA114_CLK_VFIR 193 | ||
220 | #define TEGRA114_CLK_SPDIF_IN 194 | ||
221 | #define TEGRA114_CLK_SPDIF_OUT 195 | ||
222 | #define TEGRA114_CLK_VI 196 | ||
223 | #define TEGRA114_CLK_VI_SENSOR 197 | ||
224 | #define TEGRA114_CLK_FUSE 198 | ||
225 | #define TEGRA114_CLK_FUSE_BURN 199 | ||
226 | #define TEGRA114_CLK_CLK_32K 200 | ||
227 | #define TEGRA114_CLK_CLK_M 201 | ||
228 | #define TEGRA114_CLK_CLK_M_DIV2 202 | ||
229 | #define TEGRA114_CLK_CLK_M_DIV4 203 | ||
230 | #define TEGRA114_CLK_PLL_REF 204 | ||
231 | #define TEGRA114_CLK_PLL_C 205 | ||
232 | #define TEGRA114_CLK_PLL_C_OUT1 206 | ||
233 | #define TEGRA114_CLK_PLL_C2 207 | ||
234 | #define TEGRA114_CLK_PLL_C3 208 | ||
235 | #define TEGRA114_CLK_PLL_M 209 | ||
236 | #define TEGRA114_CLK_PLL_M_OUT1 210 | ||
237 | #define TEGRA114_CLK_PLL_P 211 | ||
238 | #define TEGRA114_CLK_PLL_P_OUT1 212 | ||
239 | #define TEGRA114_CLK_PLL_P_OUT2 213 | ||
240 | #define TEGRA114_CLK_PLL_P_OUT3 214 | ||
241 | #define TEGRA114_CLK_PLL_P_OUT4 215 | ||
242 | #define TEGRA114_CLK_PLL_A 216 | ||
243 | #define TEGRA114_CLK_PLL_A_OUT0 217 | ||
244 | #define TEGRA114_CLK_PLL_D 218 | ||
245 | #define TEGRA114_CLK_PLL_D_OUT0 219 | ||
246 | #define TEGRA114_CLK_PLL_D2 220 | ||
247 | #define TEGRA114_CLK_PLL_D2_OUT0 221 | ||
248 | #define TEGRA114_CLK_PLL_U 222 | ||
249 | #define TEGRA114_CLK_PLL_U_480M 223 | ||
250 | |||
251 | #define TEGRA114_CLK_PLL_U_60M 224 | ||
252 | #define TEGRA114_CLK_PLL_U_48M 225 | ||
253 | #define TEGRA114_CLK_PLL_U_12M 226 | ||
254 | #define TEGRA114_CLK_PLL_X 227 | ||
255 | #define TEGRA114_CLK_PLL_X_OUT0 228 | ||
256 | #define TEGRA114_CLK_PLL_RE_VCO 229 | ||
257 | #define TEGRA114_CLK_PLL_RE_OUT 230 | ||
258 | #define TEGRA114_CLK_PLL_E_OUT0 231 | ||
259 | #define TEGRA114_CLK_SPDIF_IN_SYNC 232 | ||
260 | #define TEGRA114_CLK_I2S0_SYNC 233 | ||
261 | #define TEGRA114_CLK_I2S1_SYNC 234 | ||
262 | #define TEGRA114_CLK_I2S2_SYNC 235 | ||
263 | #define TEGRA114_CLK_I2S3_SYNC 236 | ||
264 | #define TEGRA114_CLK_I2S4_SYNC 237 | ||
265 | #define TEGRA114_CLK_VIMCLK_SYNC 238 | ||
266 | #define TEGRA114_CLK_AUDIO0 239 | ||
267 | #define TEGRA114_CLK_AUDIO1 240 | ||
268 | #define TEGRA114_CLK_AUDIO2 241 | ||
269 | #define TEGRA114_CLK_AUDIO3 242 | ||
270 | #define TEGRA114_CLK_AUDIO4 243 | ||
271 | #define TEGRA114_CLK_SPDIF 244 | ||
272 | #define TEGRA114_CLK_CLK_OUT_1 245 | ||
273 | #define TEGRA114_CLK_CLK_OUT_2 246 | ||
274 | #define TEGRA114_CLK_CLK_OUT_3 247 | ||
275 | #define TEGRA114_CLK_BLINK 248 | ||
276 | /* 249 */ | ||
277 | /* 250 */ | ||
278 | /* 251 */ | ||
279 | #define TEGRA114_CLK_XUSB_HOST_SRC 252 | ||
280 | #define TEGRA114_CLK_XUSB_FALCON_SRC 253 | ||
281 | #define TEGRA114_CLK_XUSB_FS_SRC 254 | ||
282 | #define TEGRA114_CLK_XUSB_SS_SRC 255 | ||
283 | |||
284 | #define TEGRA114_CLK_XUSB_DEV_SRC 256 | ||
285 | #define TEGRA114_CLK_XUSB_DEV 257 | ||
286 | #define TEGRA114_CLK_XUSB_HS_SRC 258 | ||
287 | #define TEGRA114_CLK_SCLK 259 | ||
288 | #define TEGRA114_CLK_HCLK 260 | ||
289 | #define TEGRA114_CLK_PCLK 261 | ||
290 | #define TEGRA114_CLK_CCLK_G 262 | ||
291 | #define TEGRA114_CLK_CCLK_LP 263 | ||
292 | /* 264 */ | ||
293 | /* 265 */ | ||
294 | /* 266 */ | ||
295 | /* 267 */ | ||
296 | /* 268 */ | ||
297 | /* 269 */ | ||
298 | /* 270 */ | ||
299 | /* 271 */ | ||
300 | /* 272 */ | ||
301 | /* 273 */ | ||
302 | /* 274 */ | ||
303 | /* 275 */ | ||
304 | /* 276 */ | ||
305 | /* 277 */ | ||
306 | /* 278 */ | ||
307 | /* 279 */ | ||
308 | /* 280 */ | ||
309 | /* 281 */ | ||
310 | /* 282 */ | ||
311 | /* 283 */ | ||
312 | /* 284 */ | ||
313 | /* 285 */ | ||
314 | /* 286 */ | ||
315 | /* 287 */ | ||
316 | |||
317 | /* 288 */ | ||
318 | /* 289 */ | ||
319 | /* 290 */ | ||
320 | /* 291 */ | ||
321 | /* 292 */ | ||
322 | /* 293 */ | ||
323 | /* 294 */ | ||
324 | /* 295 */ | ||
325 | /* 296 */ | ||
326 | /* 297 */ | ||
327 | /* 298 */ | ||
328 | /* 299 */ | ||
329 | #define TEGRA114_CLK_AUDIO0_MUX 300 | ||
330 | #define TEGRA114_CLK_AUDIO1_MUX 301 | ||
331 | #define TEGRA114_CLK_AUDIO2_MUX 302 | ||
332 | #define TEGRA114_CLK_AUDIO3_MUX 303 | ||
333 | #define TEGRA114_CLK_AUDIO4_MUX 304 | ||
334 | #define TEGRA114_CLK_SPDIF_MUX 305 | ||
335 | #define TEGRA114_CLK_CLK_OUT_1_MUX 306 | ||
336 | #define TEGRA114_CLK_CLK_OUT_2_MUX 307 | ||
337 | #define TEGRA114_CLK_CLK_OUT_3_MUX 308 | ||
338 | #define TEGRA114_CLK_DSIA_MUX 309 | ||
339 | #define TEGRA114_CLK_DSIB_MUX 310 | ||
340 | #define TEGRA114_CLK_CLK_MAX 311 | ||
341 | |||
342 | #endif /* _DT_BINDINGS_CLOCK_TEGRA114_CAR_H */ | ||
diff --git a/include/dt-bindings/clock/tegra20-car.h b/include/dt-bindings/clock/tegra20-car.h new file mode 100644 index 000000000000..a1ae9a8fdd6c --- /dev/null +++ b/include/dt-bindings/clock/tegra20-car.h | |||
@@ -0,0 +1,158 @@ | |||
1 | /* | ||
2 | * This header provides constants for binding nvidia,tegra20-car. | ||
3 | * | ||
4 | * The first 96 clocks are numbered to match the bits in the CAR's CLK_OUT_ENB | ||
5 | * registers. These IDs often match those in the CAR's RST_DEVICES registers, | ||
6 | * but not in all cases. Some bits in CLK_OUT_ENB affect multiple clocks. In | ||
7 | * this case, those clocks are assigned IDs above 95 in order to highlight | ||
8 | * this issue. Implementations that interpret these clock IDs as bit values | ||
9 | * within the CLK_OUT_ENB or RST_DEVICES registers should be careful to | ||
10 | * explicitly handle these special cases. | ||
11 | * | ||
12 | * The balance of the clocks controlled by the CAR are assigned IDs of 96 and | ||
13 | * above. | ||
14 | */ | ||
15 | |||
16 | #ifndef _DT_BINDINGS_CLOCK_TEGRA20_CAR_H | ||
17 | #define _DT_BINDINGS_CLOCK_TEGRA20_CAR_H | ||
18 | |||
19 | #define TEGRA20_CLK_CPU 0 | ||
20 | /* 1 */ | ||
21 | /* 2 */ | ||
22 | #define TEGRA20_CLK_AC97 3 | ||
23 | #define TEGRA20_CLK_RTC 4 | ||
24 | #define TEGRA20_CLK_TIMER 5 | ||
25 | #define TEGRA20_CLK_UARTA 6 | ||
26 | /* 7 (register bit affects uart2 and vfir) */ | ||
27 | #define TEGRA20_CLK_GPIO 8 | ||
28 | #define TEGRA20_CLK_SDMMC2 9 | ||
29 | /* 10 (register bit affects spdif_in and spdif_out) */ | ||
30 | #define TEGRA20_CLK_I2S1 11 | ||
31 | #define TEGRA20_CLK_I2C1 12 | ||
32 | #define TEGRA20_CLK_NDFLASH 13 | ||
33 | #define TEGRA20_CLK_SDMMC1 14 | ||
34 | #define TEGRA20_CLK_SDMMC4 15 | ||
35 | #define TEGRA20_CLK_TWC 16 | ||
36 | #define TEGRA20_CLK_PWM 17 | ||
37 | #define TEGRA20_CLK_I2S2 18 | ||
38 | #define TEGRA20_CLK_EPP 19 | ||
39 | /* 20 (register bit affects vi and vi_sensor) */ | ||
40 | #define TEGRA20_CLK_GR2D 21 | ||
41 | #define TEGRA20_CLK_USBD 22 | ||
42 | #define TEGRA20_CLK_ISP 23 | ||
43 | #define TEGRA20_CLK_GR3D 24 | ||
44 | #define TEGRA20_CLK_IDE 25 | ||
45 | #define TEGRA20_CLK_DISP2 26 | ||
46 | #define TEGRA20_CLK_DISP1 27 | ||
47 | #define TEGRA20_CLK_HOST1X 28 | ||
48 | #define TEGRA20_CLK_VCP 29 | ||
49 | /* 30 */ | ||
50 | #define TEGRA20_CLK_CACHE2 31 | ||
51 | |||
52 | #define TEGRA20_CLK_MEM 32 | ||
53 | #define TEGRA20_CLK_AHBDMA 33 | ||
54 | #define TEGRA20_CLK_APBDMA 34 | ||
55 | /* 35 */ | ||
56 | #define TEGRA20_CLK_KBC 36 | ||
57 | #define TEGRA20_CLK_STAT_MON 37 | ||
58 | #define TEGRA20_CLK_PMC 38 | ||
59 | #define TEGRA20_CLK_FUSE 39 | ||
60 | #define TEGRA20_CLK_KFUSE 40 | ||
61 | #define TEGRA20_CLK_SBC1 41 | ||
62 | #define TEGRA20_CLK_NOR 42 | ||
63 | #define TEGRA20_CLK_SPI 43 | ||
64 | #define TEGRA20_CLK_SBC2 44 | ||
65 | #define TEGRA20_CLK_XIO 45 | ||
66 | #define TEGRA20_CLK_SBC3 46 | ||
67 | #define TEGRA20_CLK_DVC 47 | ||
68 | #define TEGRA20_CLK_DSI 48 | ||
69 | /* 49 (register bit affects tvo and cve) */ | ||
70 | #define TEGRA20_CLK_MIPI 50 | ||
71 | #define TEGRA20_CLK_HDMI 51 | ||
72 | #define TEGRA20_CLK_CSI 52 | ||
73 | #define TEGRA20_CLK_TVDAC 53 | ||
74 | #define TEGRA20_CLK_I2C2 54 | ||
75 | #define TEGRA20_CLK_UARTC 55 | ||
76 | /* 56 */ | ||
77 | #define TEGRA20_CLK_EMC 57 | ||
78 | #define TEGRA20_CLK_USB2 58 | ||
79 | #define TEGRA20_CLK_USB3 59 | ||
80 | #define TEGRA20_CLK_MPE 60 | ||
81 | #define TEGRA20_CLK_VDE 61 | ||
82 | #define TEGRA20_CLK_BSEA 62 | ||
83 | #define TEGRA20_CLK_BSEV 63 | ||
84 | |||
85 | #define TEGRA20_CLK_SPEEDO 64 | ||
86 | #define TEGRA20_CLK_UARTD 65 | ||
87 | #define TEGRA20_CLK_UARTE 66 | ||
88 | #define TEGRA20_CLK_I2C3 67 | ||
89 | #define TEGRA20_CLK_SBC4 68 | ||
90 | #define TEGRA20_CLK_SDMMC3 69 | ||
91 | #define TEGRA20_CLK_PEX 70 | ||
92 | #define TEGRA20_CLK_OWR 71 | ||
93 | #define TEGRA20_CLK_AFI 72 | ||
94 | #define TEGRA20_CLK_CSITE 73 | ||
95 | #define TEGRA20_CLK_PCIE_XCLK 74 | ||
96 | #define TEGRA20_CLK_AVPUCQ 75 | ||
97 | #define TEGRA20_CLK_LA 76 | ||
98 | /* 77 */ | ||
99 | /* 78 */ | ||
100 | /* 79 */ | ||
101 | /* 80 */ | ||
102 | /* 81 */ | ||
103 | /* 82 */ | ||
104 | /* 83 */ | ||
105 | #define TEGRA20_CLK_IRAMA 84 | ||
106 | #define TEGRA20_CLK_IRAMB 85 | ||
107 | #define TEGRA20_CLK_IRAMC 86 | ||
108 | #define TEGRA20_CLK_IRAMD 87 | ||
109 | #define TEGRA20_CLK_CRAM2 88 | ||
110 | #define TEGRA20_CLK_AUDIO_2X 89 /* a/k/a audio_2x_sync_clk */ | ||
111 | #define TEGRA20_CLK_CLK_D 90 | ||
112 | /* 91 */ | ||
113 | #define TEGRA20_CLK_CSUS 92 | ||
114 | #define TEGRA20_CLK_CDEV2 93 | ||
115 | #define TEGRA20_CLK_CDEV1 94 | ||
116 | /* 95 */ | ||
117 | |||
118 | #define TEGRA20_CLK_UARTB 96 | ||
119 | #define TEGRA20_CLK_VFIR 97 | ||
120 | #define TEGRA20_CLK_SPDIF_IN 98 | ||
121 | #define TEGRA20_CLK_SPDIF_OUT 99 | ||
122 | #define TEGRA20_CLK_VI 100 | ||
123 | #define TEGRA20_CLK_VI_SENSOR 101 | ||
124 | #define TEGRA20_CLK_TVO 102 | ||
125 | #define TEGRA20_CLK_CVE 103 | ||
126 | #define TEGRA20_CLK_OSC 104 | ||
127 | #define TEGRA20_CLK_CLK_32K 105 /* a/k/a clk_s */ | ||
128 | #define TEGRA20_CLK_CLK_M 106 | ||
129 | #define TEGRA20_CLK_SCLK 107 | ||
130 | #define TEGRA20_CLK_CCLK 108 | ||
131 | #define TEGRA20_CLK_HCLK 109 | ||
132 | #define TEGRA20_CLK_PCLK 110 | ||
133 | #define TEGRA20_CLK_BLINK 111 | ||
134 | #define TEGRA20_CLK_PLL_A 112 | ||
135 | #define TEGRA20_CLK_PLL_A_OUT0 113 | ||
136 | #define TEGRA20_CLK_PLL_C 114 | ||
137 | #define TEGRA20_CLK_PLL_C_OUT1 115 | ||
138 | #define TEGRA20_CLK_PLL_D 116 | ||
139 | #define TEGRA20_CLK_PLL_D_OUT0 117 | ||
140 | #define TEGRA20_CLK_PLL_E 118 | ||
141 | #define TEGRA20_CLK_PLL_M 119 | ||
142 | #define TEGRA20_CLK_PLL_M_OUT1 120 | ||
143 | #define TEGRA20_CLK_PLL_P 121 | ||
144 | #define TEGRA20_CLK_PLL_P_OUT1 122 | ||
145 | #define TEGRA20_CLK_PLL_P_OUT2 123 | ||
146 | #define TEGRA20_CLK_PLL_P_OUT3 124 | ||
147 | #define TEGRA20_CLK_PLL_P_OUT4 125 | ||
148 | #define TEGRA20_CLK_PLL_S 126 | ||
149 | #define TEGRA20_CLK_PLL_U 127 | ||
150 | |||
151 | #define TEGRA20_CLK_PLL_X 128 | ||
152 | #define TEGRA20_CLK_COP 129 /* a/k/a avp */ | ||
153 | #define TEGRA20_CLK_AUDIO 130 /* a/k/a audio_sync_clk */ | ||
154 | #define TEGRA20_CLK_PLL_REF 131 | ||
155 | #define TEGRA20_CLK_TWD 132 | ||
156 | #define TEGRA20_CLK_CLK_MAX 133 | ||
157 | |||
158 | #endif /* _DT_BINDINGS_CLOCK_TEGRA20_CAR_H */ | ||
diff --git a/include/dt-bindings/clock/tegra30-car.h b/include/dt-bindings/clock/tegra30-car.h new file mode 100644 index 000000000000..e40fae8f9a8d --- /dev/null +++ b/include/dt-bindings/clock/tegra30-car.h | |||
@@ -0,0 +1,265 @@ | |||
1 | /* | ||
2 | * This header provides constants for binding nvidia,tegra30-car. | ||
3 | * | ||
4 | * The first 130 clocks are numbered to match the bits in the CAR's CLK_OUT_ENB | ||
5 | * registers. These IDs often match those in the CAR's RST_DEVICES registers, | ||
6 | * but not in all cases. Some bits in CLK_OUT_ENB affect multiple clocks. In | ||
7 | * this case, those clocks are assigned IDs above 160 in order to highlight | ||
8 | * this issue. Implementations that interpret these clock IDs as bit values | ||
9 | * within the CLK_OUT_ENB or RST_DEVICES registers should be careful to | ||
10 | * explicitly handle these special cases. | ||
11 | * | ||
12 | * The balance of the clocks controlled by the CAR are assigned IDs of 160 and | ||
13 | * above. | ||
14 | */ | ||
15 | |||
16 | #ifndef _DT_BINDINGS_CLOCK_TEGRA30_CAR_H | ||
17 | #define _DT_BINDINGS_CLOCK_TEGRA30_CAR_H | ||
18 | |||
19 | #define TEGRA30_CLK_CPU 0 | ||
20 | /* 1 */ | ||
21 | /* 2 */ | ||
22 | /* 3 */ | ||
23 | #define TEGRA30_CLK_RTC 4 | ||
24 | #define TEGRA30_CLK_TIMER 5 | ||
25 | #define TEGRA30_CLK_UARTA 6 | ||
26 | /* 7 (register bit affects uartb and vfir) */ | ||
27 | #define TEGRA30_CLK_GPIO 8 | ||
28 | #define TEGRA30_CLK_SDMMC2 9 | ||
29 | /* 10 (register bit affects spdif_in and spdif_out) */ | ||
30 | #define TEGRA30_CLK_I2S1 11 | ||
31 | #define TEGRA30_CLK_I2C1 12 | ||
32 | #define TEGRA30_CLK_NDFLASH 13 | ||
33 | #define TEGRA30_CLK_SDMMC1 14 | ||
34 | #define TEGRA30_CLK_SDMMC4 15 | ||
35 | /* 16 */ | ||
36 | #define TEGRA30_CLK_PWM 17 | ||
37 | #define TEGRA30_CLK_I2S2 18 | ||
38 | #define TEGRA30_CLK_EPP 19 | ||
39 | /* 20 (register bit affects vi and vi_sensor) */ | ||
40 | #define TEGRA30_CLK_GR2D 21 | ||
41 | #define TEGRA30_CLK_USBD 22 | ||
42 | #define TEGRA30_CLK_ISP 23 | ||
43 | #define TEGRA30_CLK_GR3D 24 | ||
44 | /* 25 */ | ||
45 | #define TEGRA30_CLK_DISP2 26 | ||
46 | #define TEGRA30_CLK_DISP1 27 | ||
47 | #define TEGRA30_CLK_HOST1X 28 | ||
48 | #define TEGRA30_CLK_VCP 29 | ||
49 | #define TEGRA30_CLK_I2S0 30 | ||
50 | #define TEGRA30_CLK_COP_CACHE 31 | ||
51 | |||
52 | #define TEGRA30_CLK_MC 32 | ||
53 | #define TEGRA30_CLK_AHBDMA 33 | ||
54 | #define TEGRA30_CLK_APBDMA 34 | ||
55 | /* 35 */ | ||
56 | #define TEGRA30_CLK_KBC 36 | ||
57 | #define TEGRA30_CLK_STATMON 37 | ||
58 | #define TEGRA30_CLK_PMC 38 | ||
59 | /* 39 (register bit affects fuse and fuse_burn) */ | ||
60 | #define TEGRA30_CLK_KFUSE 40 | ||
61 | #define TEGRA30_CLK_SBC1 41 | ||
62 | #define TEGRA30_CLK_NOR 42 | ||
63 | /* 43 */ | ||
64 | #define TEGRA30_CLK_SBC2 44 | ||
65 | /* 45 */ | ||
66 | #define TEGRA30_CLK_SBC3 46 | ||
67 | #define TEGRA30_CLK_I2C5 47 | ||
68 | #define TEGRA30_CLK_DSIA 48 | ||
69 | /* 49 (register bit affects cve and tvo) */ | ||
70 | #define TEGRA30_CLK_MIPI 50 | ||
71 | #define TEGRA30_CLK_HDMI 51 | ||
72 | #define TEGRA30_CLK_CSI 52 | ||
73 | #define TEGRA30_CLK_TVDAC 53 | ||
74 | #define TEGRA30_CLK_I2C2 54 | ||
75 | #define TEGRA30_CLK_UARTC 55 | ||
76 | /* 56 */ | ||
77 | #define TEGRA30_CLK_EMC 57 | ||
78 | #define TEGRA30_CLK_USB2 58 | ||
79 | #define TEGRA30_CLK_USB3 59 | ||
80 | #define TEGRA30_CLK_MPE 60 | ||
81 | #define TEGRA30_CLK_VDE 61 | ||
82 | #define TEGRA30_CLK_BSEA 62 | ||
83 | #define TEGRA30_CLK_BSEV 63 | ||
84 | |||
85 | #define TEGRA30_CLK_SPEEDO 64 | ||
86 | #define TEGRA30_CLK_UARTD 65 | ||
87 | #define TEGRA30_CLK_UARTE 66 | ||
88 | #define TEGRA30_CLK_I2C3 67 | ||
89 | #define TEGRA30_CLK_SBC4 68 | ||
90 | #define TEGRA30_CLK_SDMMC3 69 | ||
91 | #define TEGRA30_CLK_PCIE 70 | ||
92 | #define TEGRA30_CLK_OWR 71 | ||
93 | #define TEGRA30_CLK_AFI 72 | ||
94 | #define TEGRA30_CLK_CSITE 73 | ||
95 | #define TEGRA30_CLK_PCIEX 74 | ||
96 | #define TEGRA30_CLK_AVPUCQ 75 | ||
97 | #define TEGRA30_CLK_LA 76 | ||
98 | /* 77 */ | ||
99 | /* 78 */ | ||
100 | #define TEGRA30_CLK_DTV 79 | ||
101 | #define TEGRA30_CLK_NDSPEED 80 | ||
102 | #define TEGRA30_CLK_I2CSLOW 81 | ||
103 | #define TEGRA30_CLK_DSIB 82 | ||
104 | /* 83 */ | ||
105 | #define TEGRA30_CLK_IRAMA 84 | ||
106 | #define TEGRA30_CLK_IRAMB 85 | ||
107 | #define TEGRA30_CLK_IRAMC 86 | ||
108 | #define TEGRA30_CLK_IRAMD 87 | ||
109 | #define TEGRA30_CLK_CRAM2 88 | ||
110 | /* 89 */ | ||
111 | #define TEGRA30_CLK_AUDIO_2X 90 /* a/k/a audio_2x_sync_clk */ | ||
112 | /* 91 */ | ||
113 | #define TEGRA30_CLK_CSUS 92 | ||
114 | #define TEGRA30_CLK_CDEV2 93 | ||
115 | #define TEGRA30_CLK_CDEV1 94 | ||
116 | /* 95 */ | ||
117 | |||
118 | #define TEGRA30_CLK_CPU_G 96 | ||
119 | #define TEGRA30_CLK_CPU_LP 97 | ||
120 | #define TEGRA30_CLK_GR3D2 98 | ||
121 | #define TEGRA30_CLK_MSELECT 99 | ||
122 | #define TEGRA30_CLK_TSENSOR 100 | ||
123 | #define TEGRA30_CLK_I2S3 101 | ||
124 | #define TEGRA30_CLK_I2S4 102 | ||
125 | #define TEGRA30_CLK_I2C4 103 | ||
126 | #define TEGRA30_CLK_SBC5 104 | ||
127 | #define TEGRA30_CLK_SBC6 105 | ||
128 | #define TEGRA30_CLK_D_AUDIO 106 | ||
129 | #define TEGRA30_CLK_APBIF 107 | ||
130 | #define TEGRA30_CLK_DAM0 108 | ||
131 | #define TEGRA30_CLK_DAM1 109 | ||
132 | #define TEGRA30_CLK_DAM2 110 | ||
133 | #define TEGRA30_CLK_HDA2CODEC_2X 111 | ||
134 | #define TEGRA30_CLK_ATOMICS 112 | ||
135 | #define TEGRA30_CLK_AUDIO0_2X 113 | ||
136 | #define TEGRA30_CLK_AUDIO1_2X 114 | ||
137 | #define TEGRA30_CLK_AUDIO2_2X 115 | ||
138 | #define TEGRA30_CLK_AUDIO3_2X 116 | ||
139 | #define TEGRA30_CLK_AUDIO4_2X 117 | ||
140 | #define TEGRA30_CLK_SPDIF_2X 118 | ||
141 | #define TEGRA30_CLK_ACTMON 119 | ||
142 | #define TEGRA30_CLK_EXTERN1 120 | ||
143 | #define TEGRA30_CLK_EXTERN2 121 | ||
144 | #define TEGRA30_CLK_EXTERN3 122 | ||
145 | #define TEGRA30_CLK_SATA_OOB 123 | ||
146 | #define TEGRA30_CLK_SATA 124 | ||
147 | #define TEGRA30_CLK_HDA 125 | ||
148 | /* 126 */ | ||
149 | #define TEGRA30_CLK_SE 127 | ||
150 | |||
151 | #define TEGRA30_CLK_HDA2HDMI 128 | ||
152 | #define TEGRA30_CLK_SATA_COLD 129 | ||
153 | /* 130 */ | ||
154 | /* 131 */ | ||
155 | /* 132 */ | ||
156 | /* 133 */ | ||
157 | /* 134 */ | ||
158 | /* 135 */ | ||
159 | /* 136 */ | ||
160 | /* 137 */ | ||
161 | /* 138 */ | ||
162 | /* 139 */ | ||
163 | /* 140 */ | ||
164 | /* 141 */ | ||
165 | /* 142 */ | ||
166 | /* 143 */ | ||
167 | /* 144 */ | ||
168 | /* 145 */ | ||
169 | /* 146 */ | ||
170 | /* 147 */ | ||
171 | /* 148 */ | ||
172 | /* 149 */ | ||
173 | /* 150 */ | ||
174 | /* 151 */ | ||
175 | /* 152 */ | ||
176 | /* 153 */ | ||
177 | /* 154 */ | ||
178 | /* 155 */ | ||
179 | /* 156 */ | ||
180 | /* 157 */ | ||
181 | /* 158 */ | ||
182 | /* 159 */ | ||
183 | |||
184 | #define TEGRA30_CLK_UARTB 160 | ||
185 | #define TEGRA30_CLK_VFIR 161 | ||
186 | #define TEGRA30_CLK_SPDIF_IN 162 | ||
187 | #define TEGRA30_CLK_SPDIF_OUT 163 | ||
188 | #define TEGRA30_CLK_VI 164 | ||
189 | #define TEGRA30_CLK_VI_SENSOR 165 | ||
190 | #define TEGRA30_CLK_FUSE 166 | ||
191 | #define TEGRA30_CLK_FUSE_BURN 167 | ||
192 | #define TEGRA30_CLK_CVE 168 | ||
193 | #define TEGRA30_CLK_TVO 169 | ||
194 | #define TEGRA30_CLK_CLK_32K 170 | ||
195 | #define TEGRA30_CLK_CLK_M 171 | ||
196 | #define TEGRA30_CLK_CLK_M_DIV2 172 | ||
197 | #define TEGRA30_CLK_CLK_M_DIV4 173 | ||
198 | #define TEGRA30_CLK_PLL_REF 174 | ||
199 | #define TEGRA30_CLK_PLL_C 175 | ||
200 | #define TEGRA30_CLK_PLL_C_OUT1 176 | ||
201 | #define TEGRA30_CLK_PLL_M 177 | ||
202 | #define TEGRA30_CLK_PLL_M_OUT1 178 | ||
203 | #define TEGRA30_CLK_PLL_P 179 | ||
204 | #define TEGRA30_CLK_PLL_P_OUT1 180 | ||
205 | #define TEGRA30_CLK_PLL_P_OUT2 181 | ||
206 | #define TEGRA30_CLK_PLL_P_OUT3 182 | ||
207 | #define TEGRA30_CLK_PLL_P_OUT4 183 | ||
208 | #define TEGRA30_CLK_PLL_A 184 | ||
209 | #define TEGRA30_CLK_PLL_A_OUT0 185 | ||
210 | #define TEGRA30_CLK_PLL_D 186 | ||
211 | #define TEGRA30_CLK_PLL_D_OUT0 187 | ||
212 | #define TEGRA30_CLK_PLL_D2 188 | ||
213 | #define TEGRA30_CLK_PLL_D2_OUT0 189 | ||
214 | #define TEGRA30_CLK_PLL_U 190 | ||
215 | #define TEGRA30_CLK_PLL_X 191 | ||
216 | |||
217 | #define TEGRA30_CLK_PLL_X_OUT0 192 | ||
218 | #define TEGRA30_CLK_PLL_E 193 | ||
219 | #define TEGRA30_CLK_SPDIF_IN_SYNC 194 | ||
220 | #define TEGRA30_CLK_I2S0_SYNC 195 | ||
221 | #define TEGRA30_CLK_I2S1_SYNC 196 | ||
222 | #define TEGRA30_CLK_I2S2_SYNC 197 | ||
223 | #define TEGRA30_CLK_I2S3_SYNC 198 | ||
224 | #define TEGRA30_CLK_I2S4_SYNC 199 | ||
225 | #define TEGRA30_CLK_VIMCLK_SYNC 200 | ||
226 | #define TEGRA30_CLK_AUDIO0 201 | ||
227 | #define TEGRA30_CLK_AUDIO1 202 | ||
228 | #define TEGRA30_CLK_AUDIO2 203 | ||
229 | #define TEGRA30_CLK_AUDIO3 204 | ||
230 | #define TEGRA30_CLK_AUDIO4 205 | ||
231 | #define TEGRA30_CLK_SPDIF 206 | ||
232 | #define TEGRA30_CLK_CLK_OUT_1 207 /* (extern1) */ | ||
233 | #define TEGRA30_CLK_CLK_OUT_2 208 /* (extern2) */ | ||
234 | #define TEGRA30_CLK_CLK_OUT_3 209 /* (extern3) */ | ||
235 | #define TEGRA30_CLK_SCLK 210 | ||
236 | #define TEGRA30_CLK_BLINK 211 | ||
237 | #define TEGRA30_CLK_CCLK_G 212 | ||
238 | #define TEGRA30_CLK_CCLK_LP 213 | ||
239 | #define TEGRA30_CLK_TWD 214 | ||
240 | #define TEGRA30_CLK_CML0 215 | ||
241 | #define TEGRA30_CLK_CML1 216 | ||
242 | #define TEGRA30_CLK_HCLK 217 | ||
243 | #define TEGRA30_CLK_PCLK 218 | ||
244 | /* 219 */ | ||
245 | /* 220 */ | ||
246 | /* 221 */ | ||
247 | /* 222 */ | ||
248 | /* 223 */ | ||
249 | |||
250 | /* 288 */ | ||
251 | /* 289 */ | ||
252 | /* 290 */ | ||
253 | /* 291 */ | ||
254 | /* 292 */ | ||
255 | /* 293 */ | ||
256 | /* 294 */ | ||
257 | /* 295 */ | ||
258 | /* 296 */ | ||
259 | /* 297 */ | ||
260 | /* 298 */ | ||
261 | /* 299 */ | ||
262 | #define TEGRA30_CLK_CLK_OUT_1_MUX 300 | ||
263 | #define TEGRA30_CLK_CLK_MAX 301 | ||
264 | |||
265 | #endif /* _DT_BINDINGS_CLOCK_TEGRA30_CAR_H */ | ||
diff --git a/include/dt-bindings/gpio/tegra-gpio.h b/include/dt-bindings/gpio/tegra-gpio.h new file mode 100644 index 000000000000..4d179c00f081 --- /dev/null +++ b/include/dt-bindings/gpio/tegra-gpio.h | |||
@@ -0,0 +1,50 @@ | |||
1 | /* | ||
2 | * This header provides constants for binding nvidia,tegra*-gpio. | ||
3 | * | ||
4 | * The first cell in Tegra's GPIO specifier is the GPIO ID. The macros below | ||
5 | * provide names for this. | ||
6 | * | ||
7 | * The second cell contains standard flag values specified in gpio.h. | ||
8 | */ | ||
9 | |||
10 | #ifndef _DT_BINDINGS_GPIO_TEGRA_GPIO_H | ||
11 | #define _DT_BINDINGS_GPIO_TEGRA_GPIO_H | ||
12 | |||
13 | #include <dt-bindings/gpio/gpio.h> | ||
14 | |||
15 | #define TEGRA_GPIO_BANK_ID_A 0 | ||
16 | #define TEGRA_GPIO_BANK_ID_B 1 | ||
17 | #define TEGRA_GPIO_BANK_ID_C 2 | ||
18 | #define TEGRA_GPIO_BANK_ID_D 3 | ||
19 | #define TEGRA_GPIO_BANK_ID_E 4 | ||
20 | #define TEGRA_GPIO_BANK_ID_F 5 | ||
21 | #define TEGRA_GPIO_BANK_ID_G 6 | ||
22 | #define TEGRA_GPIO_BANK_ID_H 7 | ||
23 | #define TEGRA_GPIO_BANK_ID_I 8 | ||
24 | #define TEGRA_GPIO_BANK_ID_J 9 | ||
25 | #define TEGRA_GPIO_BANK_ID_K 10 | ||
26 | #define TEGRA_GPIO_BANK_ID_L 11 | ||
27 | #define TEGRA_GPIO_BANK_ID_M 12 | ||
28 | #define TEGRA_GPIO_BANK_ID_N 13 | ||
29 | #define TEGRA_GPIO_BANK_ID_O 14 | ||
30 | #define TEGRA_GPIO_BANK_ID_P 15 | ||
31 | #define TEGRA_GPIO_BANK_ID_Q 16 | ||
32 | #define TEGRA_GPIO_BANK_ID_R 17 | ||
33 | #define TEGRA_GPIO_BANK_ID_S 18 | ||
34 | #define TEGRA_GPIO_BANK_ID_T 19 | ||
35 | #define TEGRA_GPIO_BANK_ID_U 20 | ||
36 | #define TEGRA_GPIO_BANK_ID_V 21 | ||
37 | #define TEGRA_GPIO_BANK_ID_W 22 | ||
38 | #define TEGRA_GPIO_BANK_ID_X 23 | ||
39 | #define TEGRA_GPIO_BANK_ID_Y 24 | ||
40 | #define TEGRA_GPIO_BANK_ID_Z 25 | ||
41 | #define TEGRA_GPIO_BANK_ID_AA 26 | ||
42 | #define TEGRA_GPIO_BANK_ID_BB 27 | ||
43 | #define TEGRA_GPIO_BANK_ID_CC 28 | ||
44 | #define TEGRA_GPIO_BANK_ID_DD 29 | ||
45 | #define TEGRA_GPIO_BANK_ID_EE 30 | ||
46 | |||
47 | #define TEGRA_GPIO(bank, offset) \ | ||
48 | ((TEGRA_GPIO_BANK_ID_##bank * 8) + offset) | ||
49 | |||
50 | #endif | ||