-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCNC.dts
99 lines (91 loc) · 3.62 KB
/
CNC.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
/*
* Copyright (C) 2013 Nathaniel R. Lewis - http://nathanielrlewis.com/
*
* 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.
*
* CAPE destinée à être implémentée sur une CNC fraiseuse
*
*/
/dts-v1/;
/plugin/;
/ {
compatible = "ti,beaglebone", "ti,beaglebone-black";
/* identification */
part-number = "CNC";
version = "00A0";
/* state the resources this cape uses */
exclusive-use =
/* the pin header uses */
"P9.25", /* xstep : 0x1AC mode 5*/
"P9.27", /* xdir : 0x1A4 mode 5*/
"P9.28", /* ystep : 0x19C mode 5*/
"P9.29", /* ydir : 0x194 mode 5*/
"P8.11", /* zstep : 0x034 mode 6*/
"P8.12", /* zdir : 0x030 mode 6*/
"P9.11", /* xlim : 0x070 mode 27*/
"P9.13", /* ylim : 0x074 mode 27*/
"P8.13", /* zlim : 0x024 mode 27*/
"P9.18", /* xok : 0x158 mode 7*/
"P9.17", /* yok : 0x15C mode 7*/
"P8.14", /* zok : 0x028 mode 7*/
"P8.15", /* RELAY : 0x03C mode 7*/
"P9.26", /* xen : 0x180 mode 7*/
"P9.24", /* yen : 0x184 mode 7*/
"P8.10"; /* zen : 0x098 mode 7*/
fragment@0 {
target = <&am33xx_pinmux>;
__overlay__ {
pinctrl_CNC_PRU: pinctrl_CNC_PRU_pins {
pinctrl-single,pins = <
0x1AC 0x05 /* P9_25 PRU 0 out - xstep */
0x1A4 0x05 /* P9_27 PRU 0 out - xdir */
0x19C 0x05 /* P9_28 PRU 0 out - ystep */
0x194 0x05 /* P9_29 PRU 0 out - ydir */
0x034 0x06 /* P8_11 PRU 0 out - zstep */
0x030 0x06 /* P8_12 PRU 0 out - zdir */
>;
};
};
};
fragment@1 {
target = <&am33xx_pinmux>;
__overlay__ {
pinctrl_CNC_GPIO: pinctrl_CNC_GPIO_pins {
pinctrl-single,pins = <
0x070 0x27 /* P9_11 GPIO - xlim */
0x074 0x27 /* P9_13 GPIO - ylim */
0x024 0x27 /* P8_13 GPIO - zlim */
0x158 0x07 /* P9_18 113 GPIO - xok */
0x15C 0x07 /* P9_17 113 GPIO - yok */
0x028 0x07 /* P8_14 113 GPIO - zok */
0x03C 0x07 /* P8_15 113 GPIO - RELAY */
0x180 0x07 /* P9_26 113 GPIO - xen */
0x184 0x07 /* P9_24 113 GPIO - yen */
0x098 0x07 /* P8_10 113 GPIO - zen */
>;
};
};
};
fragment@2 {
target = <&ocp>;
__overlay__ {
test_helper: helper {
compatible = "bone-pinmux-helper";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_CNC_GPIO>;
status = "okay";
};
};
};
// This enables the PRU and assigns the GPIO pins to it for use in EGP mode.
fragment@3 {
target = <&pruss>;
__overlay__ {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_CNC_PRU>;
};
};
};