Skip to content

Commit

Permalink
samples: sensor: thermometer: add mimxrt1180_evk support
Browse files Browse the repository at this point in the history
add overlay to config p3t1755 parameter
support thermometer both on cm33 and cm7 cores

Signed-off-by: Lucien Zhao <[email protected]>
  • Loading branch information
lucien-nxp committed Nov 26, 2024
1 parent d82d534 commit 1903bb1
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 0 deletions.
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";
};
};
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";
};
};
2 changes: 2 additions & 0 deletions samples/sensor/thermometer/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ tests:
- robokit1 # ntc_thermistor
- adi_eval_adin1110ebz # adt7420
- frdm_mcxn947/mcxn947/cpu0 # p3t1755
- mimxrt1180_evk/mimxrt1189/cm33 # p3t1755 arduino shield
- mimxrt1180_evk/mimxrt1189/cm7 # p3t1755 arduino shield
harness: console
harness_config:
fixture: sensor_ambient_temp
Expand Down

0 comments on commit 1903bb1

Please sign in to comment.