diff --git a/samples/sensor/mcux_lpcmp/README.rst b/samples/sensor/mcux_lpcmp/README.rst index d718edd5c6b0f4..6cd790d571f99a 100644 --- a/samples/sensor/mcux_lpcmp/README.rst +++ b/samples/sensor/mcux_lpcmp/README.rst @@ -35,3 +35,14 @@ LPCMP positive input port voltage by changing the voltage input to J2-17. :board: frdm_mcxn947//cpu0 :goals: build flash :compact: + +Building and Running for NXP FRDM-MCXN236 +========================================= +Build the application for the :ref:`frdm_mcxn236` board, and adjust the +LPCMP positive input port voltage by changing the voltage input to J2-8. + +.. zephyr-app-commands:: + :zephyr-app: samples/sensor/mcux_lpcmp + :board: frdm_mcxn236 + :goals: build flash + :compact: diff --git a/samples/sensor/mcux_lpcmp/boards/frdm_mcxn236.overlay b/samples/sensor/mcux_lpcmp/boards/frdm_mcxn236.overlay new file mode 100644 index 00000000000000..cec0ea5e62421b --- /dev/null +++ b/samples/sensor/mcux_lpcmp/boards/frdm_mcxn236.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 7ce4b8cbac528e..505d36a0099e62 100644 --- a/samples/sensor/mcux_lpcmp/sample.yaml +++ b/samples/sensor/mcux_lpcmp/sample.yaml @@ -4,8 +4,10 @@ sample: common: platform_allow: - frdm_mcxn947/mcxn947/cpu0 + - frdm_mcxn236 integration_platforms: - frdm_mcxn947/mcxn947/cpu0 + - frdm_mcxn236 tags: - drivers - sensor