zephyr/tests/drivers/regulator/pmic
Daniel DeGrasse 81682a7c09 tests: regulator_pmic: Added PMIC regulator test
Test verifies that i2c pmic regulator can be disabled or enabled using
the regulator API. Verifies PMIC output voltage using ADC.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2021-12-08 08:27:44 -05:00
..
boards
src
CMakeLists.txt
Kconfig
README.txt
prj.conf
testcase.yaml

README.txt

PMIC Regulator
###############

This application tests the i2c pmic regulator driver in multiple
configurations. It requires that an output source from the power management IC
be shorted to an ADC input, so that the test can verify the that the pmic is
responding to commands.

Only boards for which an overlay is present can pass this test.  Boards
without an overlay, or for which the required wiring is not provided,
will fail with an error like this:

    Assertion failed at ../src/main.c:196: test_basic: adc_reading >= 200
	is false

No special build options are required to make use of the overlay.