diff --git a/boards/nxp/frdm_mcxa156/frdm_mcxa156.dts b/boards/nxp/frdm_mcxa156/frdm_mcxa156.dts index ad0d8b0246a..bb216430e64 100644 --- a/boards/nxp/frdm_mcxa156/frdm_mcxa156.dts +++ b/boards/nxp/frdm_mcxa156/frdm_mcxa156.dts @@ -25,6 +25,7 @@ mcuboot-button0 = &user_button_2; watchdog0 = &wwdt0; ambient-temp0 = &p3t1755; + die-temp0 = &temp0; }; chosen { diff --git a/dts/arm/nxp/nxp_mcxa156.dtsi b/dts/arm/nxp/nxp_mcxa156.dtsi index eea690b9272..69da9adb0ee 100644 --- a/dts/arm/nxp/nxp_mcxa156.dtsi +++ b/dts/arm/nxp/nxp_mcxa156.dtsi @@ -493,6 +493,11 @@ status = "disabled"; }; + temp0: temp0 { + compatible = "nxp,lpadc-temp40"; + status = "disabled"; + }; + usb: usbd@400a4000 { compatible = "nxp,kinetis-usbd"; reg = <0x400a4000 0x1000>; diff --git a/samples/sensor/die_temp_polling/boards/frdm_mcxa156.overlay b/samples/sensor/die_temp_polling/boards/frdm_mcxa156.overlay new file mode 100644 index 00000000000..400fe2e5a74 --- /dev/null +++ b/samples/sensor/die_temp_polling/boards/frdm_mcxa156.overlay @@ -0,0 +1,26 @@ +/* + * Copyright 2025 NXP + * + * SPDX-License-Identifier: Apache-2.0 + */ +#include +#include + +&lpadc0 { + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + + channel@0 { + reg = <0>; + zephyr,gain = "ADC_GAIN_1"; + zephyr,reference = "ADC_REF_EXTERNAL0"; + zephyr,acquisition-time = ; + zephyr,input-positive = ; + }; +}; + +&temp0 { + status = "okay"; + io-channels = <&lpadc0 0>; +};