samples: drivers: adc: add support for side b channel to RT685 EVK
Add support for CH0B to RT685 EVK, to demonstrate LPADC side B channel
support.
/ {
zephyr,user {
/* adjust channel number according to pinmux in board.dts */
- io-channels = <&lpadc0 0>;
+ io-channels = <&lpadc0 0>, <&lpadc0 8>;
};
};
/*
* To use this sample:
* - Connect VREF_L to GND, and VREF_H to 1.8V (connect JP9 and JP10).
- * - Connect LPADC0 CH0 signal to voltage between 0~1.8V (J30 pin 1)
+ * - Connect LPADC0 CH0A signal to voltage between 0~1.8V (J30 pin 1)
+ * - Connect LPADC0 CH0B signal to voltage between 0~1.8V (J30 pin 2)
*/
channel@0 {
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};
+
+ channel@8 {
+ reg = <8>;
+ zephyr,gain = "ADC_GAIN_1";
+ zephyr,reference = "ADC_REF_EXTERNAL0";
+ zephyr,vref-mv = <1800>;
+ zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
+ zephyr,resolution = <12>;
+ };
};
