diff --git a/boards/nxp/frdm_mcxn947/frdm_mcxn947_mcxn947_cpu0.yaml b/boards/nxp/frdm_mcxn947/frdm_mcxn947_mcxn947_cpu0.yaml index 76f937fb1e5621..60538848facf3a 100644 --- a/boards/nxp/frdm_mcxn947/frdm_mcxn947_mcxn947_cpu0.yaml +++ b/boards/nxp/frdm_mcxn947/frdm_mcxn947_mcxn947_cpu0.yaml @@ -28,4 +28,5 @@ supported: - regulator - adc - usb_device + - i3c vendor: nxp diff --git a/boards/nxp/frdm_mcxn947/frdm_mcxn947_mcxn947_cpu0_qspi.yaml b/boards/nxp/frdm_mcxn947/frdm_mcxn947_mcxn947_cpu0_qspi.yaml index 6cd7ad2e40c8a6..fe5a82ca4470a9 100644 --- a/boards/nxp/frdm_mcxn947/frdm_mcxn947_mcxn947_cpu0_qspi.yaml +++ b/boards/nxp/frdm_mcxn947/frdm_mcxn947_mcxn947_cpu0_qspi.yaml @@ -28,4 +28,5 @@ supported: - regulator - adc - usb_device + - i3c vendor: nxp diff --git a/samples/sensor/thermometer/boards/frdm_mcxn947_mcxn947_cpu0.overlay b/samples/sensor/thermometer/boards/frdm_mcxn947_mcxn947_cpu0.overlay new file mode 100644 index 00000000000000..9c2991a4d2336e --- /dev/null +++ b/samples/sensor/thermometer/boards/frdm_mcxn947_mcxn947_cpu0.overlay @@ -0,0 +1,27 @@ +/* + * Copyright 2024 NXP + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#include + +/ { + aliases { + ambient-temp0 = &p3t1755; + }; +}; + +&i3c1 { + status = "okay"; + + i2c-scl-hz = ; + i3c-scl-hz = ; + i3c-od-scl-hz = ; + + p3t1755: p3t1755@4800000236152a0090 { + compatible = "nxp,p3t1755"; + reg = <0x48 0x0236 0x152a0090>; + status = "okay"; + }; +}; diff --git a/samples/sensor/thermometer/boards/frdm_mcxn947_mcxn947_cpu0_qspi.overlay b/samples/sensor/thermometer/boards/frdm_mcxn947_mcxn947_cpu0_qspi.overlay new file mode 100644 index 00000000000000..9c2991a4d2336e --- /dev/null +++ b/samples/sensor/thermometer/boards/frdm_mcxn947_mcxn947_cpu0_qspi.overlay @@ -0,0 +1,27 @@ +/* + * Copyright 2024 NXP + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#include + +/ { + aliases { + ambient-temp0 = &p3t1755; + }; +}; + +&i3c1 { + status = "okay"; + + i2c-scl-hz = ; + i3c-scl-hz = ; + i3c-od-scl-hz = ; + + p3t1755: p3t1755@4800000236152a0090 { + compatible = "nxp,p3t1755"; + reg = <0x48 0x0236 0x152a0090>; + status = "okay"; + }; +}; diff --git a/samples/sensor/thermometer/sample.yaml b/samples/sensor/thermometer/sample.yaml index 168c8ffc74b490..4cce8e3973ee9a 100644 --- a/samples/sensor/thermometer/sample.yaml +++ b/samples/sensor/thermometer/sample.yaml @@ -10,3 +10,4 @@ tests: - frdm_k22f # tcn75a - robokit1 # ntc_thermistor - adi_eval_adin1110ebz # adt7420 + - frdm_mcxn947/mcxn947/cpu0 # p3t1755