-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: sensor: thermometer: add mimxrt1180_evk support
add overlay to config p3t1755 parameter support thermometer both on cm33 and cm7 cores Signed-off-by: Lucien Zhao <[email protected]>
- Loading branch information
1 parent
d82d534
commit 1903bb1
Showing
3 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
samples/sensor/thermometer/boards/mimxrt1180_evk_mimxrt1189_cm33.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,35 @@ | ||
/* | ||
* Copyright 2024 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/* | ||
* The p3t1755 shield board is plugged into the arduino interface on | ||
* the MIMXRT1180-EVK board, and the J13 on the shield board is connected | ||
* to the J50 on the RT1180 referred below. | ||
* J13-1 -> J50-1; J13-2 -> J50-2; | ||
* J13-3 -> J50-3; J13-4 -> J50-4; | ||
*/ | ||
|
||
#include <freq.h> | ||
|
||
/ { | ||
aliases { | ||
ambient-temp0 = &p3t1755; | ||
}; | ||
}; | ||
|
||
&i3c2 { | ||
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"; | ||
}; | ||
}; |
35 changes: 35 additions & 0 deletions
35
samples/sensor/thermometer/boards/mimxrt1180_evk_mimxrt1189_cm7.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,35 @@ | ||
/* | ||
* Copyright 2024 NXP | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/* | ||
* The p3t1755 shield board is plugged into the arduino interface on | ||
* the MIMXRT1180-EVK board, and the J13 on the shield board is connected | ||
* to the J50 on the RT1180 referred below. | ||
* J13-1 -> J50-1; J13-2 -> J50-2; | ||
* J13-3 -> J50-3; J13-4 -> J50-4; | ||
*/ | ||
|
||
#include <freq.h> | ||
|
||
/ { | ||
aliases { | ||
ambient-temp0 = &p3t1755; | ||
}; | ||
}; | ||
|
||
&i3c2 { | ||
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