Skip to content

Commit

Permalink
tests: drivers: adc_api: add support for ke17z and ke17z512
Browse files Browse the repository at this point in the history
Add ADC configuration for the NXP FRDM-KE17Z and FRDM-KE17Z512 boards.

Signed-off-by: Anke Xiao <[email protected]>
  • Loading branch information
ankeXiao committed Jun 27, 2024
1 parent a7fa3a5 commit 2502d9c
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
32 changes: 32 additions & 0 deletions tests/drivers/adc/adc_api/boards/frdm_ke17z.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* Copyright 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
zephyr,user {
io-channels = <&adc0 0>, <&adc0 1>;
};
};

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

channel@0 {
reg = <0>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};

channel@1 {
reg = <1>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};
};
32 changes: 32 additions & 0 deletions tests/drivers/adc/adc_api/boards/frdm_ke17z512.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* Copyright 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
zephyr,user {
io-channels = <&adc0 0>, <&adc0 1>;
};
};

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

channel@0 {
reg = <0>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};

channel@1 {
reg = <1>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};
};

0 comments on commit 2502d9c

Please sign in to comment.