Skip to content

Commit

Permalink
tests: drivers/adc/adc_api: Support adc api test for NXP frdm_mcxa156
Browse files Browse the repository at this point in the history
Support adc api test for NXP frdm_mcxa156

Signed-off-by: Neil Chen <[email protected]>
  • Loading branch information
NeilChen93 authored and kartben committed Dec 6, 2024
1 parent 3f389d5 commit 765b3aa
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/drivers/adc/adc_api/boards/frdm_mcxa156.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_LPADC_DO_OFFSET_CALIBRATION=y
28 changes: 28 additions & 0 deletions tests/drivers/adc/adc_api/boards/frdm_mcxa156.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* 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 = <&lpadc0 0>;
};
};

&lpadc0 {
#address-cells = <1>;
#size-cells = <0>;

channel@0 {
reg = <0>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_EXTERNAL0";
zephyr,vref-mv = <3300>;
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <16>;
zephyr,input-positive = <MCUX_LPADC_CH0A>;
};
};

0 comments on commit 765b3aa

Please sign in to comment.