forked from ProjectHexapod/bbbStuff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrobobonobo-00A0.dts
223 lines (193 loc) · 4.56 KB
/
robobonobo-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
/*
* Copyright (C) 2014 M@ Dunlap
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
/dts-v1/;
/plugin/;
/ {
compatible = "ti,beaglebone", "ti,beaglebone-black";
/* identification */
part-number = "battle_bone";
version = "00A0";
/* state the resources this cape uses */
exclusive-use =
/* the pin header uses */
"P8.11", /* eQEP2B (GPIO1_13) */
"P8.12", /* eQEP2A (GPIO1_12) */
"P8.17", /* GPIO0_27 */
"P8.18", /* GPIO2_1 */
"P8.19", /* pwm: ehrpwm2A */
"P9.11", /* GPIO0_30 (UART4_RXD) */
"P9.12", /* GPIO1_28 (GPIO1_28) */
"P9.21", /* UART2_TXD */
"P9.22", /* UART2_RXD */
"P9.27", /* eQEP0B (GPIO3_19) */
"P9.28", /* GPIO3_17 (SPI1_CS0) */
"P9.29", /* pwm: ehrpwm0B (SPI1_D0) */
"P9.30", /* GPIO3_16 (SPI1_D1) */
"P9.31", /* pwm: ehrpwm0A (SPI1_SCLK) */
"P9.33", /* AIN4 */
"P9.35", /* AIN6 */
"P9.36", /* AIN5 */
"P9.37", /* AIN2 */
"P9.38", /* AIN3 */
"P9.39", /* AIN0 */
"P9.40", /* AIN1 */
"P9.42", /* eQEP0A (GPIO3_18): TODO: set GPIO0_7 to input */
/* the hardware IP uses */
"ehrpwm0A",
"ehrpwm0B",
"ehrpwm2A",
"eqep0A",
"eqep0B",
"eqep2A",
"eqep2B",
"tscadc",
"uart2";
/* Experimental am33xx unknown overlay */
fragment@0 {
target = <&epwmss0>;
__overlay__ {
status = "okay";
};
};
fragment@1 {
target = <&ehrpwm0>;
__overlay__ {
status = "okay";
};
};
fragment@2 {
target = <&ecap0>;
__overlay__ {
status = "okay";
};
};
fragment@3 {
target = <&epwmss1>;
__overlay__ {
status = "okay";
};
};
fragment@4 {
target = <&ehrpwm1>;
__overlay__ {
status = "okay";
};
};
fragment@5 {
target = <&epwmss2>;
__overlay__ {
status = "okay";
};
};
fragment@6 {
target = <&ehrpwm2>;
__overlay__ {
status = "okay";
};
};
fragment@7 {
target = <&ecap2>;
__overlay__ {
status = "okay";
};
};
/* Working PWM fragments */
fragment@8 {
target = <&am33xx_pinmux>;
__overlay__ {
pwm_P8_19: pinmux_pwm_P8_19_pins {
pinctrl-single,pins = <0x020 0x4>; /* P8_19 (ZCZ ball U10) | MODE 4 */
};
};
};
fragment@9 {
target = <&ocp>;
__overlay__ {
pwm_test_P8_19 {
compatible = "pwm_test";
pwms = <&ehrpwm2 0 5000000 1>;
pwm-names = "PWM_P8_19";
pinctrl-names = "default";
pinctrl-0 = <&pwm_P8_19>;
enabled = <1>;
duty = <5000000>;
status = "okay";
};
};
};
fragment@16 {
target = <&am33xx_pinmux>;
__overlay__ {
pwm_P9_14: pinmux_pwm_P9_14_pins {
pinctrl-single,pins = <0x048 0x6>; /* P9_14 (ZCZ ball U14) | MODE 6 */
};
};
};
fragment@17 {
target = <&ocp>;
__overlay__ {
pwm_test_P9_14 {
compatible = "pwm_test";
pwms = <&ehrpwm1 0 5000000 1>;
pwm-names = "PWM_P9_14";
pinctrl-names = "default";
pinctrl-0 = <&pwm_P9_14>;
enabled = <1>;
duty = <0>;
status = "okay";
};
};
};
fragment@18 {
target = <&am33xx_pinmux>;
__overlay__ {
pwm_P9_16: pinmux_pwm_P9_16_pins {
pinctrl-single,pins = <0x04c 0x6>; /* P9_16 (ZCZ ball T14) | MODE 6 */
};
};
};
fragment@19 {
target = <&ocp>;
__overlay__ {
pwm_test_P9_16 {
compatible = "pwm_test";
pwms = <&ehrpwm1 1 5000000 1>;
pwm-names = "PWM_P9_16";
pinctrl-names = "default";
pinctrl-0 = <&pwm_P9_16>;
enabled = <1>;
duty = <0>;
status = "okay";
};
};
};
fragment@20 {
target = <&ocp>;
__overlay__ {
#address-cells = <1>;
#size-cells = <1>;
tscadc {
compatible = "ti,ti-tscadc";
reg = <0x44e0d000 0x1000>;
interrupt-parent = <&intc>;
interrupts = <16>;
ti,hwmods = "adc_tsc";
status = "okay";
adc {
ti,adc-channels = <0 1 2 3 4 5 6 7>;
};
};
test_helper: helper {
compatible = "bone-iio-helper";
vsense-name = "AIN0", "AIN1", "AIN2", "AIN3", "AIN4", "AIN5", "AIN6", "AIN7";
vsense-scale = <100 100 100 100 100 100 100 100>;
status = "okay";
};
};
};/**/
};