-
Notifications
You must be signed in to change notification settings - Fork 54
/
cape-univ-emmc-00A0.dts
372 lines (323 loc) · 15.1 KB
/
cape-univ-emmc-00A0.dts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
// Copyright 2013
// Charles Steinkuehler <[email protected]>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
/dts-v1/;
/plugin/;
/ {
compatible = "ti,beaglebone", "ti,beaglebone-black";
/* identification */
part-number = "cape-bone-universal";
version = "00A0";
/* state the resources this cape uses */
exclusive-use =
"P8.3", /* emmc */
"P8.4", /* emmc */
"P8.5", /* emmc */
"P8.6", /* emmc */
"P8.20", /* emmc */
"P8.21", /* emmc */
"P8.22", /* emmc */
"P8.23", /* emmc */
"P8.24", /* emmc */
"P8.25"; /* emmc */
fragment@0 {
target = <&am33xx_pinmux>;
__overlay__ {
/************************/
/* P8 Header */
/************************/
/* P8_01 GND */
/* P8_02 GND */
/* P8_03 (ZCZ ball R9 ) emmc */
P8_03_default_pin: pinmux_P8_03_default_pin {
pinctrl-single,pins = <0x018 0x27>; }; /* Mode 7, Pull-Down, RxActive */
P8_03_gpio_pin: pinmux_P8_03_gpio_pin {
pinctrl-single,pins = <0x018 0x2F>; }; /* Mode 7, RxActive */
P8_03_gpio_pu_pin: pinmux_P8_03_gpio_pu_pin {
pinctrl-single,pins = <0x018 0x37>; }; /* Mode 7, Pull-Up, RxActive */
P8_03_gpio_pd_pin: pinmux_P8_03_gpio_pd_pin {
pinctrl-single,pins = <0x018 0x27>; }; /* Mode 7, Pull-Down, RxActive */
/* P8_04 (ZCZ ball T9 ) emmc */
P8_04_default_pin: pinmux_P8_04_default_pin {
pinctrl-single,pins = <0x01c 0x27>; }; /* Mode 7, Pull-Down, RxActive */
P8_04_gpio_pin: pinmux_P8_04_gpio_pin {
pinctrl-single,pins = <0x01c 0x2F>; }; /* Mode 7, RxActive */
P8_04_gpio_pu_pin: pinmux_P8_04_gpio_pu_pin {
pinctrl-single,pins = <0x01c 0x37>; }; /* Mode 7, Pull-Up, RxActive */
P8_04_gpio_pd_pin: pinmux_P8_04_gpio_pd_pin {
pinctrl-single,pins = <0x01c 0x27>; }; /* Mode 7, Pull-Down, RxActive */
/* P8_05 (ZCZ ball R8 ) emmc */
P8_05_default_pin: pinmux_P8_05_default_pin {
pinctrl-single,pins = <0x008 0x27>; }; /* Mode 7, Pull-Down, RxActive */
P8_05_gpio_pin: pinmux_P8_05_gpio_pin {
pinctrl-single,pins = <0x008 0x2F>; }; /* Mode 7, RxActive */
P8_05_gpio_pu_pin: pinmux_P8_05_gpio_pu_pin {
pinctrl-single,pins = <0x008 0x37>; }; /* Mode 7, Pull-Up, RxActive */
P8_05_gpio_pd_pin: pinmux_P8_05_gpio_pd_pin {
pinctrl-single,pins = <0x008 0x27>; }; /* Mode 7, Pull-Down, RxActive */
/* P8_06 (ZCZ ball T8 ) emmc */
P8_06_default_pin: pinmux_P8_06_default_pin {
pinctrl-single,pins = <0x00c 0x27>; }; /* Mode 7, Pull-Down, RxActive */
P8_06_gpio_pin: pinmux_P8_06_gpio_pin {
pinctrl-single,pins = <0x00c 0x2F>; }; /* Mode 7, RxActive */
P8_06_gpio_pu_pin: pinmux_P8_06_gpio_pu_pin {
pinctrl-single,pins = <0x00c 0x37>; }; /* Mode 7, Pull-Up, RxActive */
P8_06_gpio_pd_pin: pinmux_P8_06_gpio_pd_pin {
pinctrl-single,pins = <0x00c 0x27>; }; /* Mode 7, Pull-Down, RxActive */
/* P8_20 (ZCZ ball V9 ) emmc */
P8_20_default_pin: pinmux_P8_20_default_pin {
pinctrl-single,pins = <0x084 0x27>; }; /* Mode 7, Pull-Down, RxActive */
P8_20_gpio_pin: pinmux_P8_20_gpio_pin {
pinctrl-single,pins = <0x084 0x2F>; }; /* Mode 7, RxActive */
P8_20_gpio_pu_pin: pinmux_P8_20_gpio_pu_pin {
pinctrl-single,pins = <0x084 0x37>; }; /* Mode 7, Pull-Up, RxActive */
P8_20_gpio_pd_pin: pinmux_P8_20_gpio_pd_pin {
pinctrl-single,pins = <0x084 0x27>; }; /* Mode 7, Pull-Down, RxActive */
P8_20_pruout_pin: pinmux_P8_20_pruout_pin {
pinctrl-single,pins = <0x084 0x25>; }; /* Mode 5, Pull-Down, RxActive */
P8_20_pruin_pin: pinmux_P8_20_pruin_pin {
pinctrl-single,pins = <0x084 0x26>; }; /* Mode 6, Pull-Down, RxActive */
/* P8_21 (ZCZ ball U9 ) emmc */
P8_21_default_pin: pinmux_P8_21_default_pin {
pinctrl-single,pins = <0x080 0x27>; }; /* Mode 7, Pull-Down, RxActive */
P8_21_gpio_pin: pinmux_P8_21_gpio_pin {
pinctrl-single,pins = <0x080 0x2F>; }; /* Mode 7, RxActive */
P8_21_gpio_pu_pin: pinmux_P8_21_gpio_pu_pin {
pinctrl-single,pins = <0x080 0x37>; }; /* Mode 7, Pull-Up, RxActive */
P8_21_gpio_pd_pin: pinmux_P8_21_gpio_pd_pin {
pinctrl-single,pins = <0x080 0x27>; }; /* Mode 7, Pull-Down, RxActive */
P8_21_pruout_pin: pinmux_P8_21_pruout_pin {
pinctrl-single,pins = <0x080 0x25>; }; /* Mode 5, Pull-Down, RxActive */
P8_21_pruin_pin: pinmux_P8_21_pruin_pin {
pinctrl-single,pins = <0x080 0x26>; }; /* Mode 6, Pull-Down, RxActive */
/* P8_22 (ZCZ ball V8 ) emmc */
P8_22_default_pin: pinmux_P8_22_default_pin {
pinctrl-single,pins = <0x014 0x27>; }; /* Mode 7, Pull-Down, RxActive */
P8_22_gpio_pin: pinmux_P8_22_gpio_pin {
pinctrl-single,pins = <0x014 0x2F>; }; /* Mode 7, RxActive */
P8_22_gpio_pu_pin: pinmux_P8_22_gpio_pu_pin {
pinctrl-single,pins = <0x014 0x37>; }; /* Mode 7, Pull-Up, RxActive */
P8_22_gpio_pd_pin: pinmux_P8_22_gpio_pd_pin {
pinctrl-single,pins = <0x014 0x27>; }; /* Mode 7, Pull-Down, RxActive */
/* P8_23 (ZCZ ball U8 ) emmc */
P8_23_default_pin: pinmux_P8_23_default_pin {
pinctrl-single,pins = <0x010 0x27>; }; /* Mode 7, Pull-Down, RxActive */
P8_23_gpio_pin: pinmux_P8_23_gpio_pin {
pinctrl-single,pins = <0x010 0x2F>; }; /* Mode 7, RxActive */
P8_23_gpio_pu_pin: pinmux_P8_23_gpio_pu_pin {
pinctrl-single,pins = <0x010 0x37>; }; /* Mode 7, Pull-Up, RxActive */
P8_23_gpio_pd_pin: pinmux_P8_23_gpio_pd_pin {
pinctrl-single,pins = <0x010 0x27>; }; /* Mode 7, Pull-Down, RxActive */
/* P8_24 (ZCZ ball V7 ) emmc */
P8_24_default_pin: pinmux_P8_24_default_pin {
pinctrl-single,pins = <0x004 0x27>; }; /* Mode 7, Pull-Down, RxActive */
P8_24_gpio_pin: pinmux_P8_24_gpio_pin {
pinctrl-single,pins = <0x004 0x2F>; }; /* Mode 7, RxActive */
P8_24_gpio_pu_pin: pinmux_P8_24_gpio_pu_pin {
pinctrl-single,pins = <0x004 0x37>; }; /* Mode 7, Pull-Up, RxActive */
P8_24_gpio_pd_pin: pinmux_P8_24_gpio_pd_pin {
pinctrl-single,pins = <0x004 0x27>; }; /* Mode 7, Pull-Down, RxActive */
/* P8_25 (ZCZ ball U7 ) emmc */
P8_25_default_pin: pinmux_P8_25_default_pin {
pinctrl-single,pins = <0x000 0x27>; }; /* Mode 7, Pull-Down, RxActive */
P8_25_gpio_pin: pinmux_P8_25_gpio_pin {
pinctrl-single,pins = <0x000 0x2F>; }; /* Mode 7, RxActive */
P8_25_gpio_pu_pin: pinmux_P8_25_gpio_pu_pin {
pinctrl-single,pins = <0x000 0x37>; }; /* Mode 7, Pull-Up, RxActive */
P8_25_gpio_pd_pin: pinmux_P8_25_gpio_pd_pin {
pinctrl-single,pins = <0x000 0x27>; }; /* Mode 7, Pull-Down, RxActive */
};
};
/************************/
/* Pin Multiplexing */
/************************/
fragment@1 {
target = <&ocp>;
__overlay__ {
/************************/
/* P8 Header */
/************************/
P8_03_pinmux {
compatible = "bone-pinmux-helper";
status = "okay";
pinctrl-names = "default", "gpio", "gpio_pu", "gpio_pd";
pinctrl-0 = <&P8_03_default_pin>;
pinctrl-1 = <&P8_03_gpio_pin>;
pinctrl-2 = <&P8_03_gpio_pu_pin>;
pinctrl-3 = <&P8_03_gpio_pd_pin>;
};
P8_04_pinmux {
compatible = "bone-pinmux-helper";
status = "okay";
pinctrl-names = "default", "gpio", "gpio_pu", "gpio_pd";
pinctrl-0 = <&P8_04_default_pin>;
pinctrl-1 = <&P8_04_gpio_pin>;
pinctrl-2 = <&P8_04_gpio_pu_pin>;
pinctrl-3 = <&P8_04_gpio_pd_pin>;
};
P8_05_pinmux {
compatible = "bone-pinmux-helper";
status = "okay";
pinctrl-names = "default", "gpio", "gpio_pu", "gpio_pd";
pinctrl-0 = <&P8_05_default_pin>;
pinctrl-1 = <&P8_05_gpio_pin>;
pinctrl-2 = <&P8_05_gpio_pu_pin>;
pinctrl-3 = <&P8_05_gpio_pd_pin>;
};
P8_06_pinmux {
compatible = "bone-pinmux-helper";
status = "okay";
pinctrl-names = "default", "gpio", "gpio_pu", "gpio_pd";
pinctrl-0 = <&P8_06_default_pin>;
pinctrl-1 = <&P8_06_gpio_pin>;
pinctrl-2 = <&P8_06_gpio_pu_pin>;
pinctrl-3 = <&P8_06_gpio_pd_pin>;
};
P8_20_pinmux {
compatible = "bone-pinmux-helper";
status = "okay";
pinctrl-names = "default", "gpio", "gpio_pu", "gpio_pd", "pruout", "pruin";
pinctrl-0 = <&P8_20_default_pin>;
pinctrl-1 = <&P8_20_gpio_pin>;
pinctrl-2 = <&P8_20_gpio_pu_pin>;
pinctrl-3 = <&P8_20_gpio_pd_pin>;
pinctrl-4 = <&P8_20_pruout_pin>;
pinctrl-5 = <&P8_20_pruin_pin>;
};
P8_21_pinmux {
compatible = "bone-pinmux-helper";
status = "okay";
pinctrl-names = "default", "gpio", "gpio_pu", "gpio_pd", "pruout", "pruin";
pinctrl-0 = <&P8_21_default_pin>;
pinctrl-1 = <&P8_21_gpio_pin>;
pinctrl-2 = <&P8_21_gpio_pu_pin>;
pinctrl-3 = <&P8_21_gpio_pd_pin>;
pinctrl-4 = <&P8_21_pruout_pin>;
pinctrl-5 = <&P8_21_pruin_pin>;
};
P8_22_pinmux {
compatible = "bone-pinmux-helper";
status = "okay";
pinctrl-names = "default", "gpio", "gpio_pu", "gpio_pd";
pinctrl-0 = <&P8_22_default_pin>;
pinctrl-1 = <&P8_22_gpio_pin>;
pinctrl-2 = <&P8_22_gpio_pu_pin>;
pinctrl-3 = <&P8_22_gpio_pd_pin>;
};
P8_23_pinmux {
compatible = "bone-pinmux-helper";
status = "okay";
pinctrl-names = "default", "gpio", "gpio_pu", "gpio_pd";
pinctrl-0 = <&P8_23_default_pin>;
pinctrl-1 = <&P8_23_gpio_pin>;
pinctrl-2 = <&P8_23_gpio_pu_pin>;
pinctrl-3 = <&P8_23_gpio_pd_pin>;
};
P8_24_pinmux {
compatible = "bone-pinmux-helper";
status = "okay";
pinctrl-names = "default", "gpio", "gpio_pu", "gpio_pd";
pinctrl-0 = <&P8_24_default_pin>;
pinctrl-1 = <&P8_24_gpio_pin>;
pinctrl-2 = <&P8_24_gpio_pu_pin>;
pinctrl-3 = <&P8_24_gpio_pd_pin>;
};
P8_25_pinmux {
compatible = "bone-pinmux-helper";
status = "okay";
pinctrl-names = "default", "gpio", "gpio_pu", "gpio_pd";
pinctrl-0 = <&P8_25_default_pin>;
pinctrl-1 = <&P8_25_gpio_pin>;
pinctrl-2 = <&P8_25_gpio_pu_pin>;
pinctrl-3 = <&P8_25_gpio_pd_pin>;
};
};
};
fragment@2 {
target = <&ocp>;
__overlay__ {
// !!!WARNING!!!
// gpio-of-helper &gpio pointers are off-by-one vs. the hardware:
// hardware GPIO bank 0 = &gpio1
cape-universal {
compatible = "gpio-of-helper";
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <>;
P8_03 {
gpio-name = "P8_03";
gpio = <&gpio2 6 0>;
input;
dir-changeable;
};
P8_04 {
gpio-name = "P8_04";
gpio = <&gpio2 7 0>;
input;
dir-changeable;
};
P8_05 {
gpio-name = "P8_05";
gpio = <&gpio2 2 0>;
input;
dir-changeable;
};
P8_06 {
gpio-name = "P8_06";
gpio = <&gpio2 3 0>;
input;
dir-changeable;
};
P8_20 {
gpio-name = "P8_20";
gpio = <&gpio2 31 0>;
input;
dir-changeable;
};
P8_21 {
gpio-name = "P8_21";
gpio = <&gpio2 30 0>;
input;
dir-changeable;
};
P8_22 {
gpio-name = "P8_22";
gpio = <&gpio2 5 0>;
input;
dir-changeable;
};
P8_23 {
gpio-name = "P8_23";
gpio = <&gpio2 4 0>;
input;
dir-changeable;
};
P8_24 {
gpio-name = "P8_24";
gpio = <&gpio2 1 0>;
input;
dir-changeable;
};
P8_25 {
gpio-name = "P8_25";
gpio = <&gpio2 0 0>;
input;
dir-changeable;
};
};
};
};
};