diff --git a/samples/sensor/mcux_lpcmp/README.rst b/samples/sensor/mcux_lpcmp/README.rst index 3f6a5631deb..69becfac9b3 100644 --- a/samples/sensor/mcux_lpcmp/README.rst +++ b/samples/sensor/mcux_lpcmp/README.rst @@ -46,3 +46,14 @@ LPCMP positive input port voltage by changing the voltage input to J2-8. :board: frdm_mcxn236 :goals: build flash :compact: + +Building and Running for NXP FRDM-MCXA156 +========================================= +Build the application for the :zephyr:board:`frdm_mcxa156` board, and adjust the +LPCMP positive input port voltage by changing the voltage input to J2-9. + +.. zephyr-app-commands:: + :zephyr-app: samples/sensor/mcux_lpcmp + :board: frdm_mcxa156 + :goals: build flash + :compact: diff --git a/samples/sensor/mcux_lpcmp/boards/frdm_mcxa156.overlay b/samples/sensor/mcux_lpcmp/boards/frdm_mcxa156.overlay new file mode 100644 index 00000000000..cec0ea5e624 --- /dev/null +++ b/samples/sensor/mcux_lpcmp/boards/frdm_mcxa156.overlay @@ -0,0 +1,9 @@ +/* + * Copyright 2024 NXP + * + * SPDX-License-Identifier: Apache-2.0 + */ + +&lpcmp0 { + function-clock = "CMP_CLOCK"; +}; diff --git a/samples/sensor/mcux_lpcmp/sample.yaml b/samples/sensor/mcux_lpcmp/sample.yaml index 505d36a0099..d23c4b5ed9e 100644 --- a/samples/sensor/mcux_lpcmp/sample.yaml +++ b/samples/sensor/mcux_lpcmp/sample.yaml @@ -5,6 +5,7 @@ common: platform_allow: - frdm_mcxn947/mcxn947/cpu0 - frdm_mcxn236 + - frdm_mcxa156 integration_platforms: - frdm_mcxn947/mcxn947/cpu0 - frdm_mcxn236