-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.overlay
101 lines (85 loc) · 1.91 KB
/
app.overlay
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
/ {
chosen {
zephyr,display = &ssd1306;
};
leds {
compatible = "gpio-leds";
led0: led {
gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
label = "White LED";
};
vext: vext {
gpios = <&gpio0 21 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "External VCC";
};
};
buttons {
compatible = "gpio-keys";
button0: button_0 {
gpios = <&gpio0 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "PRG Button";
zephyr,code = <INPUT_KEY_0>;
};
};
};
&pinctrl {
i2c0_default: i2c0_default {
group1 {
pinmux = <I2C0_SDA_GPIO4>,
<I2C0_SCL_GPIO15>;
bias-pull-up;
drive-open-drain;
output-high;
};
};
spim3_default: spim3_default {
group1 {
pinmux = <SPIM3_MISO_GPIO19>,
<SPIM3_SCLK_GPIO5>;
};
group2 {
pinmux = <SPIM3_MOSI_GPIO27>;
output-low;
};
};
};
&i2c0 {
status = "okay";
ssd1306: ssd1306@3c {
compatible = "solomon,ssd1306fb";
reg = <0x3c>;
height = <64>;
width = <128>;
segment-offset = <0>;
page-offset = <0>;
display-offset = <0>;
multiplex-ratio = <63>;
prechargep = <0x22>;
com-invdir;
segment-remap;
reset-gpios = <&gpio0 16 ( GPIO_ACTIVE_LOW )>;
};
};
&spi3 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
pinctrl-0 = <&spim3_default>;
pinctrl-names = "default";
status = "okay";
cs-gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
sx1276: sx1276_fsk@0 {
compatible = "semtech,sx1276_fsk";
reg = <0>;
spi-max-frequency = <1000000>;
label = "sx1278";
reset-gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
dio-gpios =
/* SX1276 D0 -> GPIO26 */
<&gpio0 26 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>,
/* SX1276 D1 -> GPIO35 */
<&gpio1 3 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>,
/* SX1276 D2 -> GPIO34 */
<&gpio1 2 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>;
};
};