Skip to content

Commit

Permalink
tests: regulator voltage: Support LPC55S36 board
Browse files Browse the repository at this point in the history
Support lpcxpresso55s36 on regulator voltage test using VREF

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
  • Loading branch information
decsny committed Sep 19, 2023
1 parent 50c7147 commit 0b98a62
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions tests/drivers/regulator/voltage/lpcxpresso55s36.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
* Copyright 2023 NXP
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/dt-bindings/adc/mcux-lpadc.h>
#include <zephyr/dt-bindings/regulator/nxp_vref.h>

/* To do this test, connect AN (J7-1) to VREF_OUT (J12-16) */

/ {
resources: resources {
compatible = "test-regulator-voltage";
regulators = <&vref0>;
tolerance-microvolt = <1000000>;
set-read-delay-ms = <10>;
adc-avg-count = <10>;
io-channels = <&adc0 0>;
};
};

&vref0 {
regulator-initial-mode = <NXP_VREF_MODE_INTERNAL_REGULATOR>;
};

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

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

0 comments on commit 0b98a62

Please sign in to comment.