zephyr/samples/drivers/adc/adc_dt/boards/samc21n_xpro.overlay

27 lines
443 B
Plaintext

/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright (c) 2021 Argentum Systems Ltd.
*/
/ {
zephyr,user {
/* EXT-1, pin 3 ADC(+) */
io-channels = <&adc0 3>;
};
};
&adc0 {
#address-cells = <1>;
#size-cells = <0>;
channel@3 {
reg = <3>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
zephyr,input-positive = <3>;
};
};