File tree Expand file tree Collapse file tree 7 files changed +131
-2
lines changed Expand file tree Collapse file tree 7 files changed +131
-2
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2025 Silicon Laboratories Inc.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+
7
+ &vdac0 {
8
+ status = "okay";
9
+ voltage-reference = "1.25V";
10
+
11
+ channel0 {
12
+ aux-output;
13
+ aux-output-port = "None";
14
+ aux-output-pin = <0>;
15
+ low-power-mode;
16
+ };
17
+ };
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2025 Silicon Laboratories Inc.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+
7
+ &vdac0 {
8
+ status = "okay";
9
+ voltage-reference = "1.25V";
10
+
11
+ channel0 {
12
+ aux-output;
13
+ aux-output-port = "None";
14
+ aux-output-pin = <0>;
15
+ low-power-mode;
16
+ };
17
+ };
Original file line number Diff line number Diff line change 110
110
111
111
#elif defined(CONFIG_BOARD_MIMXRT1170_EVK )
112
112
113
- #define DAC_DEVICE_NODE DT_NODELABEL(dac)
113
+ #define DAC_DEVICE_NODE DT_NODELABEL(dac0)
114
+ #define DAC_RESOLUTION 12
115
+ #define DAC_CHANNEL_ID 0
116
+
117
+ #elif defined(CONFIG_BOARD_XG24_DK2601B ) || \
118
+ defined(CONFIG_BOARD_XG24_RB4187C )
119
+
120
+ #define DAC_DEVICE_NODE DT_NODELABEL(vdac0)
114
121
#define DAC_RESOLUTION 12
115
122
#define DAC_CHANNEL_ID 0
116
123
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2025 Silicon Laboratories Inc.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+
7
+ #include "dt-bindings/adc/silabs-adc.h"
8
+
9
+ &adc0 {
10
+ #address-cells = <1>;
11
+ #size-cells = <0>;
12
+ status = "okay";
13
+
14
+ channel@0 {
15
+ reg = <0>;
16
+ zephyr,gain = "ADC_GAIN_1";
17
+ zephyr,reference = "ADC_REF_EXTERNAL0";
18
+ zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
19
+ zephyr,resolution = <12>;
20
+ zephyr,input-positive = <IADC_INPUT_DAC0>;
21
+ };
22
+ };
23
+
24
+ &vdac0 {
25
+ status = "okay";
26
+ voltage-reference = "1.25V";
27
+
28
+ channel0 {
29
+ aux-output;
30
+ aux-output-port = "None";
31
+ aux-output-pin = <0>;
32
+ low-power-mode;
33
+ };
34
+ };
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2025 Silicon Laboratories Inc.
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+
7
+ #include "dt-bindings/adc/silabs-adc.h"
8
+
9
+ &adc0 {
10
+ #address-cells = <1>;
11
+ #size-cells = <0>;
12
+ status = "okay";
13
+
14
+ channel@0 {
15
+ reg = <0>;
16
+ zephyr,gain = "ADC_GAIN_1";
17
+ zephyr,reference = "ADC_REF_VDD_1";
18
+ zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
19
+ zephyr,resolution = <12>;
20
+ zephyr,input-positive = <IADC_INPUT_DAC0>;
21
+ };
22
+ };
23
+
24
+ &vdac0 {
25
+ status = "okay";
26
+ voltage-reference = "AVDD";
27
+
28
+ channel0 {
29
+ aux-output;
30
+ aux-output-port = "None";
31
+ aux-output-pin = <0>;
32
+ low-power-mode;
33
+ };
34
+ };
Original file line number Diff line number Diff line change 184
184
#define ADC_CHANNEL_ID 0
185
185
#endif
186
186
187
+ #elif defined(CONFIG_BOARD_XG24_DK2601B ) || \
188
+ defined(CONFIG_BOARD_XG24_RB4187C )
189
+
190
+ /* VDAC0CH0 output is internally available on IADC_INPUT_DAC0 */
191
+
192
+ #define DAC_DEVICE_NODE DT_NODELABEL(vdac0)
193
+ #define DAC_RESOLUTION 12
194
+ #define DAC_CHANNEL_ID 0
195
+
196
+ #define ADC_DEVICE_NODE DT_NODELABEL(adc0)
197
+ #define ADC_RESOLUTION 12
198
+ #define ADC_GAIN ADC_GAIN_1
199
+ #define ADC_REFERENCE ADC_REF_VDD_1
200
+ #define ADC_ACQUISITION_TIME ADC_ACQ_TIME_DEFAULT
201
+ #define ADC_CHANNEL_ID 0
202
+ #define ADC_1ST_CHANNEL_INPUT 0x20 /* IADC_INPUT_DAC0 */
203
+
187
204
#else
188
205
#error "Unsupported board."
189
206
#endif
@@ -208,7 +225,9 @@ static const struct adc_channel_cfg adc_ch_cfg = {
208
225
defined (CONFIG_BOARD_BL653_DVK ) || \
209
226
defined (CONFIG_BOARD_BL654_DVK ) || \
210
227
defined (CONFIG_BOARD_BL5340_DVK ) || \
211
- defined (CONFIG_BOARD_LPCXPRESSO55S36 )
228
+ defined (CONFIG_BOARD_LPCXPRESSO55S36 ) || \
229
+ defined (CONFIG_BOARD_XG24_DK2601B ) || \
230
+ defined (CONFIG_BOARD_XG24_RB4187C )
212
231
.input_positive = ADC_1ST_CHANNEL_INPUT ,
213
232
#endif
214
233
};
Original file line number Diff line number Diff line change 29
29
- nucleo_g071rb
30
30
- nucleo_wl55jc
31
31
- lpcxpresso55s36
32
+ - xg24_dk2601b
32
33
integration_platforms :
33
34
- nucleo_f207zg
You can’t perform that action at this time.
0 commit comments