28
28
29
29
leds {
30
30
compatible = "gpio-leds";
31
+
31
32
led0: led_0 {
32
33
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
33
34
label = "Green LED 0";
34
35
};
36
+
35
37
led1: led_1 {
36
38
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
37
39
label = "Green LED 1";
38
40
};
41
+
39
42
led2: led_2 {
40
43
gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
41
44
label = "Green LED 2";
42
45
};
46
+
43
47
led3: led_3 {
44
48
gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
45
49
label = "Green LED 3";
48
52
49
53
pwmleds {
50
54
compatible = "pwm-leds";
55
+
51
56
pwm_led0: pwm_led_0 {
52
57
pwms = <&pwm0 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>;
53
58
};
54
59
};
55
60
56
61
buttons {
57
62
compatible = "gpio-keys";
63
+
58
64
button0: button_0 {
59
65
gpios = <&gpio0 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
60
66
label = "Push button switch 0";
61
67
zephyr,code = <INPUT_KEY_0>;
62
68
};
69
+
63
70
button1: button_1 {
64
71
gpios = <&gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
65
72
label = "Push button switch 1";
66
73
zephyr,code = <INPUT_KEY_1>;
67
74
};
75
+
68
76
button2: button_2 {
69
77
gpios = <&gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
70
78
label = "Push button switch 2";
71
79
zephyr,code = <INPUT_KEY_2>;
72
80
};
81
+
73
82
button3: button_3 {
74
83
gpios = <&gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
75
84
label = "Push button switch 3";
@@ -238,10 +247,10 @@ arduino_i2c: &i2c0 {
238
247
fem_spi: &spi3 {
239
248
status = "okay";
240
249
cs-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
241
-
242
250
pinctrl-0 = <&spi3_default>;
243
251
pinctrl-1 = <&spi3_sleep>;
244
252
pinctrl-names = "default", "sleep";
253
+
245
254
nrf_radio_fem_spi: nrf21540_fem_spi@0 {
246
255
compatible = "nordic,nrf21540-fem-spi";
247
256
status = "okay";
@@ -259,7 +268,6 @@ fem_spi: &spi3 {
259
268
};
260
269
261
270
&flash0 {
262
-
263
271
partitions {
264
272
compatible = "fixed-partitions";
265
273
#address-cells = <1>;
@@ -269,10 +277,12 @@ fem_spi: &spi3 {
269
277
label = "mcuboot";
270
278
reg = <0x00000000 0x0000C000>;
271
279
};
280
+
272
281
slot0_partition: partition@c000 {
273
282
label = "image-0";
274
283
reg = <0x0000C000 0x00076000>;
275
284
};
285
+
276
286
slot1_partition: partition@82000 {
277
287
label = "image-1";
278
288
reg = <0x00082000 0x00076000>;
0 commit comments