forked from jadonk/cape-firmware
-
Notifications
You must be signed in to change notification settings - Fork 27
/
cape-bone-mrf24j40-00A0.dts
89 lines (76 loc) · 2.19 KB
/
cape-bone-mrf24j40-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
/*
* Copyright (C) 2013 Alan Ott <alan@signal11.us>
*
* 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 = "BB-BONE-MRF24J40";
version = "00A0";
/* state the resources this cape uses */
exclusive-use =
/* the pin header uses */
"P8.11", /* gpio1_13 */
"P8.16", /* gpio1_14 */
"P8.26", /* gpio1_29 */
"P9.31", /* spi1_sclk */
"P9.29", /* spi1_d0 */
"P9.30", /* spi1_d1 */
"P9.28", /* spi1_cs0 */
/* the hardware IP uses */
"gpio1_13",
"gpio1_14",
"gpio1_29",
"spi1";
fragment@0 {
target = <&am33xx_pinmux>;
__overlay__ {
mrf24j40_cape_pins: pinmux_mrf24j40_cape_pins {
pinctrl-single,pins = <
/* Pinmux comes from TRM section
9.3.1: CONTROL_MODULE Regusters. */
/* so use GPIO1_13 (rst), GPIO1_14 (wake), then SPI1_CS0 (CS), and GPIO1_29 (INT) */
0x34 0x37 /* gpmc_ad13.gpio1_13 input, pull up, mode 7 */
0x38 0x2f /* gpmc_ad14.gpio1_14 input, no pull, mode 7 */
0x7c 0x2f /* gpmc_csn0.gpio1_29 input, no pull, mode 7 */
>;
};
bone_mrf24j40_spi1_pins: pinmux_bone_mrf24j40_spi1_pins {
pinctrl-single,pins = <
0x190 0x33 /* mcasp0_aclkx.spi1_sclk, RX_ENABLED | PULLUP | MODE3 */
0x194 0x33 /* mcasp0_fsx.spi1_d0, RX_ENABLED | PULLUP | MODE3 */
0x198 0x33 /* mcasp0_axr0.spi1_d1, RX_ENABLED | PULLUP | MODE3 */
0x19c 0x33 /* mcasp0_ahclkr.spi1_cs0, RX_ENABLED | PULLUP | MODE3 */
>;
};
};
};
fragment@1 {
target = <&spi1>;
__overlay__ {
/* needed to avoid DTC warnings */
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&bone_mrf24j40_spi1_pins>;
mrf24j40@0 {
compatible = "mrf24j40ma";
reg = <0>; /* CHIPSEL */
spi-max-frequency = <20000000>;
mode = <0>;
pinctrl-names = "default";
pinctrl-0 = <&mrf24j40_cape_pins>;
interrupt-parent = <&gpio2>;
interrupts = <29>;
//mrf24j40-wake = <&gpio4 19>;
//mrf24j40-reset = <gpio21 0>;
};
};
};
};