-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: sensor: Add support for temperature sensor on FRDM_MCXN947
Add support for the P3T1755 temperature sensor on the FRDM MCXN947 board. Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
- Loading branch information
1 parent
630d99c
commit f05dc71
Showing
5 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,4 +28,5 @@ supported: | |
- regulator | ||
- adc | ||
- usb_device | ||
- i3c | ||
vendor: nxp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,4 +28,5 @@ supported: | |
- regulator | ||
- adc | ||
- usb_device | ||
- i3c | ||
vendor: nxp |
27 changes: 27 additions & 0 deletions
27
samples/sensor/thermometer/boards/frdm_mcxn947_mcxn947_cpu0.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
}; | ||
}; |
27 changes: 27 additions & 0 deletions
27
samples/sensor/thermometer/boards/frdm_mcxn947_mcxn947_cpu0_qspi.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters