forked from arduino/ArduinoCore-zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharduino_nano_33_ble_sense.overlay
273 lines (242 loc) · 6.7 KB
/
arduino_nano_33_ble_sense.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
&zephyr_udc0 {
cdc_acm_uart0: cdc_acm_uart0 {
compatible = "zephyr,cdc-acm-uart";
status = "okay";
};
};
&flash0 {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
boot_partition: partition@0 {
label = "sam-ba";
reg = <0x00000000 0x00010000>;
read-only;
};
code_partition: partition@10000 {
label = "code";
reg = <0x00010000 0x000d0000>;
read-only;
};
user_sketch: partition@e0000 {
label = "user";
reg = <0x0e0000 0x18000>;
};
/*
* The flash starting at 0x000f8000 and ending at
* 0x000fffff is reserved for use by the application.
*
* Storage partition will be used by FCB/LittleFS/NVS
* if enabled.
*/
storage_partition: partition@f8000 {
label = "storage";
reg = <0x000f8000 0x00008000>;
};
};
};
/ {
zephyr,user {
digital-pin-gpios = <&arduino_nano_header 0 0>,
<&arduino_nano_header 1 0>,
<&arduino_nano_header 2 0>,
<&arduino_nano_header 3 0>,
<&arduino_nano_header 4 0>,
<&arduino_nano_header 5 0>,
<&arduino_nano_header 6 0>,
<&arduino_nano_header 7 0>,
<&arduino_nano_header 8 0>,
<&arduino_nano_header 9 0>,
<&arduino_nano_header 10 0>,
<&arduino_nano_header 11 0>,
<&arduino_nano_header 12 0>,
<&arduino_nano_header 13 0>,
<&arduino_nano_header 14 0>, /* D14 / A0 */
<&arduino_nano_header 15 0>,
<&arduino_nano_header 16 0>,
<&arduino_nano_header 17 0>,
<&arduino_nano_header 18 0>, /* D18 / A4 / I2C-SDA */
<&arduino_nano_header 19 0>, /* D19 / A5 / I2C-SCL */
<&arduino_nano_header 20 0>,
<&arduino_nano_header 21 0>,
<&gpio0 24 0>, /* D22 LED R */
<&gpio0 16 0>, /* D23 LED G */
<&gpio0 6 0>, /* D24 LED B */
<&gpio1 9 0>, /* D25 LED PWR */
<&gpio0 19 0>, /* D26 INT APDS */
<&gpio0 17 0>, /* D27 PDM PWR */
<&gpio0 26 0>, /* D28 PDM CLK */
<&gpio0 25 0>, /* D29 PDM DIN */
<&gpio0 14 0>, /* D30 SDA2 */
<&gpio0 15 0>, /* D31 SCL2 */
<&gpio1 0 0>, /* D32 I2C_PULL */
<&gpio0 22 0>; /* D33 VDD_ENV_ENABLE */
pwm-pin-gpios = <&arduino_nano_header 3 0>,
<&arduino_nano_header 5 0>,
<&arduino_nano_header 6 0>,
<&arduino_nano_header 13 0>,
<&arduino_nano_header 9 0>,
<&arduino_nano_header 10 0>,
<&arduino_nano_header 11 0>;
adc-pin-gpios = <&arduino_nano_header 14 0>,
<&arduino_nano_header 15 0>,
<&arduino_nano_header 16 0>,
<&arduino_nano_header 17 0>,
<&arduino_nano_header 18 0>,
<&arduino_nano_header 19 0>,
<&arduino_nano_header 20 0>,
<&arduino_nano_header 21 0>;
builtin-led-gpios = <&arduino_nano_header 13 0>;
pwms = <&pwm1 1 255 PWM_POLARITY_NORMAL>,
<&pwm1 2 255 PWM_POLARITY_NORMAL>,
<&pwm1 3 255 PWM_POLARITY_NORMAL>,
<&pwm2 0 255 PWM_POLARITY_NORMAL>,
<&pwm2 1 255 PWM_POLARITY_NORMAL>,
<&pwm2 2 255 PWM_POLARITY_NORMAL>,
<&pwm2 3 255 PWM_POLARITY_NORMAL>;
io-channels = <&adc 2>,
<&adc 3>,
<&adc 6>,
<&adc 5>,
<&adc 7>,
<&adc 0>,
<&adc 4>,
<&adc 1>;
serials = <&cdc_acm_uart0>, <&uart0>;
cdc-acm = <&cdc_acm_uart0>;
i2cs = <&arduino_nano_i2c>, <&i2c1>;
};
};
&adc {
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
zephyr,gain = "ADC_GAIN_1_6";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,input-positive = <NRF_SAADC_AIN0>; /* P0.02 */
zephyr,resolution = <12>;
};
channel@1 {
reg = <1>;
zephyr,gain = "ADC_GAIN_1_6";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,input-positive = <NRF_SAADC_AIN1>; /* P0.03 */
zephyr,resolution = <12>;
};
channel@2 {
reg = <2>;
zephyr,gain = "ADC_GAIN_1_6";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,input-positive = <NRF_SAADC_AIN2>; /* P0.04 */
zephyr,resolution = <12>;
};
channel@3 {
reg = <3>;
zephyr,gain = "ADC_GAIN_1_6";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,input-positive = <NRF_SAADC_AIN3>; /* P0.05 */
zephyr,resolution = <12>;
};
channel@4 {
reg = <4>;
zephyr,gain = "ADC_GAIN_1_6";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,input-positive = <NRF_SAADC_AIN4>; /* P0.28 */
zephyr,resolution = <12>;
};
channel@5 {
reg = <5>;
zephyr,gain = "ADC_GAIN_1_6";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,input-positive = <NRF_SAADC_AIN5>; /* P0.29 */
zephyr,resolution = <12>;
};
channel@6 {
reg = <6>;
zephyr,gain = "ADC_GAIN_1_6";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,input-positive = <NRF_SAADC_AIN6>; /* P0.30 */
zephyr,resolution = <12>;
};
channel@7 {
reg = <7>;
zephyr,gain = "ADC_GAIN_1_6";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,input-positive = <NRF_SAADC_AIN7>; /* P0.31 */
zephyr,resolution = <12>;
};
};
&pinctrl {
pwm1_default: pwm1_default {
group1 {
psels = <NRF_PSEL(PWM_OUT0, 1, 9)>, /* keep original config */
<NRF_PSEL(PWM_OUT1, 1, 12)>,
<NRF_PSEL(PWM_OUT2, 1, 13)>,
<NRF_PSEL(PWM_OUT3, 1, 14)>;
nordic,invert;
};
};
pwm1_sleep: pwm1_sleep {
group1 {
psels = <NRF_PSEL(PWM_OUT0, 1, 9)>, /* keep original config */
<NRF_PSEL(PWM_OUT1, 1, 12)>,
<NRF_PSEL(PWM_OUT2, 1, 13)>,
<NRF_PSEL(PWM_OUT3, 1, 14)>;
low-power-enable;
};
};
pwm2_default: pwm2_default {
group1 {
psels = <NRF_PSEL(PWM_OUT0, 0, 13)>, /* keep original config */
<NRF_PSEL(PWM_OUT1, 0, 27)>,
<NRF_PSEL(PWM_OUT2, 1, 2)>,
<NRF_PSEL(PWM_OUT3, 1, 1)>;
nordic,invert;
};
};
pwm2_sleep: pwm2_sleep {
group1 {
psels = <NRF_PSEL(PWM_OUT0, 0, 13)>, /* keep original config */
<NRF_PSEL(PWM_OUT1, 0, 27)>,
<NRF_PSEL(PWM_OUT2, 1, 2)>,
<NRF_PSEL(PWM_OUT3, 1, 1)>;
low-power-enable;
};
};
};
&pwm1 {
status = "okay";
pinctrl-0 = <&pwm1_default>;
pinctrl-1 = <&pwm1_sleep>;
pinctrl-names = "default", "sleep";
};
&pwm2 {
status = "okay";
pinctrl-0 = <&pwm2_default>;
pinctrl-1 = <&pwm2_sleep>;
pinctrl-names = "default", "sleep";
};
&i2c0 {
status = "okay";
pinctrl-0 = <&i2c0_default>;
pinctrl-1 = <&i2c0_sleep>;
pinctrl-names = "default", "sleep";
clock-frequency = <I2C_BITRATE_FAST>;
};
&i2c1 {
status = "okay";
pinctrl-0 = <&i2c1_default>;
pinctrl-1 = <&i2c1_sleep>;
pinctrl-names = "default", "sleep";
clock-frequency = <I2C_BITRATE_FAST>;
};