openrcore/boards/nrf52840dongle_nrf52840.overlay
Aaron Cook d439778949 Add basic ADC support
Planning on abstracting this behind hardware setup APIs, but this works
for a simple demo until then
2025-09-08 15:42:26 -05:00

19 lines
406 B
Text

/ {
zephyr,user {
io-channels = <&adc 0>;
};
};
&adc {
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
zephyr,gain = "ADC_GAIN_1_6";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,input-positive = <NRF_SAADC_AIN0>; /* P0.02 */
zephyr,resolution = <12>;
};
};