-
Notifications
You must be signed in to change notification settings - Fork 1
/
ionopi.dts
94 lines (84 loc) · 1.8 KB
/
ionopi.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
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2835";
fragment@0 {
target-path = "/";
__overlay__ {
dios: dios {
compatible = "sferalabs,ionopi";
pinctrl-names = "default";
pinctrl-0 = <&dios_pins>;
status = "okay";
ionopi_ttl1-gpios = <&gpio 4 0>;
ionopi_ttl2-gpios = <&gpio 26 0>;
ionopi_ttl3-gpios = <&gpio 20 0>;
ionopi_ttl4-gpios = <&gpio 21 0>;
ionopi_di1-gpios = <&gpio 16 0>;
ionopi_di2-gpios = <&gpio 19 0>;
ionopi_di3-gpios = <&gpio 13 0>;
ionopi_di4-gpios = <&gpio 12 0>;
ionopi_di5-gpios = <&gpio 6 0>;
ionopi_di6-gpios = <&gpio 5 0>;
ionopi_oc1-gpios = <&gpio 18 0>;
ionopi_oc2-gpios = <&gpio 25 0>;
ionopi_oc3-gpios = <&gpio 24 0>;
ionopi_o1-gpios = <&gpio 17 0>;
ionopi_o2-gpios = <&gpio 27 0>;
ionopi_o3-gpios = <&gpio 22 0>;
ionopi_o4-gpios = <&gpio 23 0>;
ionopi_led-gpios = <&gpio 7 0>;
};
};
};
fragment@1 {
target = <&gpio>;
__overlay__ {
dios_pins: dios_pins {
brcm,pins = <16 19 13 12 6 5>;
brcm,function = <0>; /* in */
brcm,pull = <0>; /* no pull */
};
};
};
fragment@2 {
target = <&spidev0>;
__overlay__ {
status = "disabled";
};
};
fragment@3 {
target = <&spidev1>;
__overlay__ {
status = "disabled";
};
};
fragment@4 {
target = <&spi0>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
cs-gpios = <&gpio 8 0>;
num-chipselects = <1>;
status = "okay";
ionopi_mcp3204_00: mcp3204@0 {
compatible = "sferalabs,ionopi";
reg = <0>;
spi-max-frequency = <50000>;
};
};
};
fragment@5 {
target = <&i2c_arm>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
atecc608a: atecc608a@60 {
compatible = "sferalabs,atecc";
reg = <0x60>;
status = "okay";
};
};
};
};