-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathcc1101.dts
76 lines (64 loc) · 1.77 KB
/
cc1101.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
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2708";
fragment@0 {
target = <&spidev0>;
__overlay__ {
status = "disabled";
};
};
fragment@1 {
target = <&spidev1>;
__overlay__ {
status = "disabled";
};
};
fragment@2 {
target = <&spi0>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
cs-gpios = <&gpio 8 1>, <&gpio 7 1>;
cc1101_0_0: cc1101@0 {
compatible = "ti,cc1101";
spi-max-frequency = <6500000>;
spi-cpol;
spi-cpha;
reg = <0>;
pinctrl-0 = <&cc1101_0_0_int_pin>;
int-gpios = <&gpio 25 0>;
interrupts = <25 1>;
interrupt-parent = <&gpio>;
};
cc1101_0_1: cc1101@1 {
compatible = "ti,cc1101";
spi-max-frequency = <6500000>;
spi-cpol;
spi-cpha;
reg = <1>;
pinctrl-0 = <&cc1101_0_1_int_pin>;
int-gpios = <&gpio 24 0>;
interrupts = <24 1>;
interrupt-parent = <&gpio>;
};
};
};
fragment@3 {
target = <&gpio>;
__overlay__ {
cc1101_0_0_int_pin: cc1101_0_0_int_pin {
brcm,pins = <25>;
brcm,function = <0>;
prcm,pull = <0>;
};
cc1101_0_1_int_pin: cc1101_0_1_int_pin {
brcm,pins = <24>;
brcm,function = <0>;
prcm,pull = <0>;
};
};
};
};