forked from nrfconnect/sdk-nrf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.overlay
101 lines (88 loc) · 2.02 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
/*
* Copyright (c) 2021 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/
#include <zephyr/dt-bindings/ipc_service/static_vrings.h>
/ {
zephyr,user {
battery-charge-gpios = <&gpio1 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
};
pwmbuzzer {
compatible = "pwm-leds";
status = "okay";
buzzer: buzzer_pwm {
pwms = <&pwm1 0 PWM_HZ(100) PWM_POLARITY_NORMAL>;
label = "PWM_1";
};
};
aliases {
buzzer-pwm = &buzzer;
};
sram@2007E340 {
compatible = "zephyr,memory-region", "mmio-sram";
reg = <0x2007E340 0x1CC0>;
zephyr,memory-region = "DiagnosticLogMem";
status = "okay";
retainedmem {
compatible = "zephyr,retained-ram";
status = "okay";
#address-cells = <1>;
#size-cells = <1>;
/* Reserve 192 B for the crash logs. */
crash_retention: retention@0 {
compatible = "zephyr,retention";
status = "okay";
reg = <0x0 0xC0>;
prefix = [08 04];
checksum = <2>;
};
/* Reserve 6 kB for the network logs. */
network_logs_retention: retention@c0 {
compatible = "zephyr,retention";
status = "okay";
reg = <0xC0 0x1800>;
prefix = [06 03];
checksum = <2>;
};
/* Reserve 1 kB for the end user logs. */
end_user_logs_retention: retention@18c0 {
compatible = "zephyr,retention";
status = "okay";
reg = <0x18C0 0x400>;
prefix = [05 02];
checksum = <2>;
};
};
};
};
&i2c1 {
bme688@76 {
compatible = "bosch,bme680";
reg = <0x76>;
};
};
&adc {
#address-cells = <1>;
#size-cells = <0>;
channel@2 {
reg = <2>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME(ADC_ACQ_TIME_MICROSECONDS, 40)>;
zephyr,input-positive = <NRF_SAADC_AIN2>;
zephyr,resolution = <12>;
zephyr,oversampling = <4>;
};
};
/* Disable unused peripherals to reduce power consumption */
&pwm0 {
status = "disabled";
};
&pwm2 {
status = "disabled";
};
/* Reduce SRAM0 usage by 7360 B to account for non-init area */
&sram0 {
reg = <0x20000000 0x7E340>;
};