You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
548 B
29 lines
548 B
/* |
|
* Copyright 2024 NXP |
|
* SPDX-License-Identifier: Apache-2.0 |
|
*/ |
|
|
|
#include <zephyr/dt-bindings/adc/adc.h> |
|
#include <zephyr/dt-bindings/adc/mcux-lpadc.h> |
|
|
|
/ { |
|
zephyr,user { |
|
io-channels = <&adc0 0>; |
|
}; |
|
}; |
|
|
|
&adc0 { |
|
#address-cells = <1>; |
|
#size-cells = <0>; |
|
|
|
channel@0 { |
|
reg = <0>; |
|
zephyr,gain = "ADC_GAIN_1"; |
|
zephyr,reference = "ADC_REF_EXTERNAL1"; |
|
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; |
|
zephyr,resolution = <12>; |
|
zephyr,vref-mv = <1800>; |
|
/* channel 2 signal 6A */ |
|
zephyr,input-positive = <MCUX_LPADC_CH2A>; |
|
}; |
|
};
|
|
|