Skip to content

Commit 4137556

Browse files
smalaeasmellby
authored andcommitted
samples: adc: siwx91x: Add adc_dt support for siwx917_rb4338a
Add an overlay to enable the adc_dt sample on the siwx917_rb4338a board. Signed-off-by: Sai Santhosh Malae <[email protected]> (cherry picked from commit ef1bd9d) Upstream-status: available
1 parent c353bca commit 4137556

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright (c) 2025 Silicon Laboratories Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
zephyr,user {
9+
io-channels = <&adc0 0>;
10+
};
11+
};
12+
13+
&pinctrl0 {
14+
adc0_default: adc0_default {
15+
group {
16+
pinmux = <AGPIO_ULP1>;
17+
};
18+
};
19+
};
20+
21+
&adc0 {
22+
pinctrl-0 = <&adc0_default>;
23+
pinctrl-names = "default";
24+
silabs,adc-ref-voltage = <3300>;
25+
26+
channel@0 {
27+
reg = <0>;
28+
zephyr,gain = "ADC_GAIN_1";
29+
zephyr,reference = "ADC_REF_INTERNAL";
30+
zephyr,acquisition-time = <0>;
31+
zephyr,resolution = <12>;
32+
zephyr,input-positive = <10>;
33+
};
34+
status = "okay";
35+
};

0 commit comments

Comments
 (0)