1/*
2 * SPDX-License-Identifier: Apache-2.0
3 *
4 * Copyright (c) 2025 Silicon Laboratories Inc.
5 */
6
7#include <dt-bindings/pinctrl/silabs/xg24-pinctrl.h>
8#include <dt-bindings/adc/silabs-adc.h>
9
10/ {
11	zephyr,user {
12		io-channels = <&adc0 3>, <&adc0 4>;
13	};
14};
15
16&pinctrl {
17	adc0_default: adc0_default {
18		group0 {
19			/* Allocate odd bus 0 on GPIO port B to IADC for access to pin PB1 */
20			silabs,analog-bus = <ABUS_BODD0_IADC0>;
21		};
22	};
23};
24
25&adc0 {
26	pinctrl-0 = <&adc0_default>;
27	pinctrl-names = "default";
28	#address-cells = <1>;
29	#size-cells = <0>;
30	status = "okay";
31
32	channel@3 {
33		reg = <3>;
34		zephyr,gain = "ADC_GAIN_1";
35		zephyr,reference = "ADC_REF_INTERNAL";
36		zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
37		zephyr,resolution = <12>;
38		zephyr,input-positive = <IADC_INPUT_AVDD>;
39	};
40
41	channel@4 {
42		reg = <4>;
43		zephyr,gain = "ADC_GAIN_1";
44		zephyr,reference = "ADC_REF_VDD_1";
45		zephyr,vref-mv = <3300>;
46		zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
47		zephyr,resolution = <12>;
48		zephyr,input-positive = <IADC_INPUT_PB1>;
49	};
50};
51