Skip to content

Commit

Permalink
samples: sensor: Add support for temperature sensor on FRDM_MCXN947
Browse files Browse the repository at this point in the history
Add support for the P3T1755 temperature sensor on the FRDM MCXN947
board.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
  • Loading branch information
mmahadevan108 authored and henrikbrixandersen committed Oct 25, 2024
1 parent 630d99c commit f05dc71
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 0 deletions.
1 change: 1 addition & 0 deletions boards/nxp/frdm_mcxn947/frdm_mcxn947_mcxn947_cpu0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ supported:
- regulator
- adc
- usb_device
- i3c
vendor: nxp
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ supported:
- regulator
- adc
- usb_device
- i3c
vendor: nxp
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* Copyright 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <freq.h>

/ {
aliases {
ambient-temp0 = &p3t1755;
};
};

&i3c1 {
status = "okay";

i2c-scl-hz = <DT_FREQ_K(400)>;
i3c-scl-hz = <DT_FREQ_M(4)>;
i3c-od-scl-hz = <DT_FREQ_K(1500)>;

p3t1755: p3t1755@4800000236152a0090 {
compatible = "nxp,p3t1755";
reg = <0x48 0x0236 0x152a0090>;
status = "okay";
};
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* Copyright 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <freq.h>

/ {
aliases {
ambient-temp0 = &p3t1755;
};
};

&i3c1 {
status = "okay";

i2c-scl-hz = <DT_FREQ_K(400)>;
i3c-scl-hz = <DT_FREQ_M(4)>;
i3c-od-scl-hz = <DT_FREQ_K(1500)>;

p3t1755: p3t1755@4800000236152a0090 {
compatible = "nxp,p3t1755";
reg = <0x48 0x0236 0x152a0090>;
status = "okay";
};
};
1 change: 1 addition & 0 deletions samples/sensor/thermometer/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ tests:
- frdm_k22f # tcn75a
- robokit1 # ntc_thermistor
- adi_eval_adin1110ebz # adt7420
- frdm_mcxn947/mcxn947/cpu0 # p3t1755

0 comments on commit f05dc71

Please sign in to comment.