1/*
2 * Copyright (c) 2024 Nordic Semiconductor
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7&pinctrl {
8	acmp1_default: acmp1_default {
9		group0 {
10			pinmux = <&iomuxc_gpio_ad_01_acmp1_in2>;
11			drive-strength = "high";
12			bias-pull-up;
13			slew-rate = "fast";
14		};
15	};
16};
17
18&acmp1 {
19	status = "okay";
20	pinctrl-0 = <&acmp1_default>;
21	pinctrl-names = "default";
22
23	positive-mux-input = "IN2";
24	positive-port-input = "MUX";
25	negative-mux-input = "IN2";
26	negative-port-input = "DAC";
27
28	dac-vref-source = "VIN1";
29	dac-value = <128>;
30	dac-enable;
31
32	offset-mode = "LEVEL0";
33	hysteresis-mode = "LEVEL0";
34	enable-high-speed-mode;
35
36	filter-enable-sample;
37	filter-count = <4>;
38	filter-period = <32>;
39
40	discrete-mode-enable-positive-channel;
41	discrete-mode-enable-resistor-divider;
42	discrete-mode-clock-source = "FAST";
43	discrete-mode-sample-time = "T1";
44	discrete-mode-phase1-time = "ALT4";
45	discrete-mode-phase2-time = "ALT7";
46};
47