File tree 6 files changed +45
-1
lines changed
samples/sensor/thermometer
6 files changed +45
-1
lines changed Original file line number Diff line number Diff line change @@ -428,6 +428,12 @@ void board_early_init_hook(void)
428
428
CLOCK_EnableUsbhs0PhyPllClock (kCLOCK_Usbphy480M , usbClockFreq );
429
429
CLOCK_EnableUsbhs0Clock (kCLOCK_Usb480M , usbClockFreq );
430
430
#endif
431
+
432
+ #if (DT_NODE_HAS_STATUS (DT_NODELABEL (i3c2 ), okay ) || \
433
+ DT_NODE_HAS_STATUS (DT_NODELABEL (i3c3 ), okay ))
434
+ CLOCK_AttachClk (kSENSE_BASE_to_I3C23 );
435
+ CLOCK_SetClkDiv (kCLOCK_DivI3c23Clk , 4U );
436
+ #endif
431
437
}
432
438
433
439
static void GlikeyWriteEnable (GLIKEY_Type * base , uint8_t idx )
Original file line number Diff line number Diff line change @@ -75,6 +75,8 @@ the hardware features below.
75
75
+-----------+------------+-------------------------------------+
76
76
| I2C | on-chip | i2c |
77
77
+-----------+------------+-------------------------------------+
78
+ | I3C | on-chip | i3c |
79
+ +-----------+------------+-------------------------------------+
78
80
| GPIO | on-chip | gpio |
79
81
+-----------+------------+-------------------------------------+
80
82
| UART | on-chip | serial port-polling; |
Original file line number Diff line number Diff line change 75
75
nxp,analog-mode;
76
76
};
77
77
};
78
+
79
+ pinmux_i3c3: pinmux_i3c3 {
80
+ group0 {
81
+ pinmux = <I3C3_SDA_PIO8_21>,
82
+ <I3C3_SCL_PIO8_22>;
83
+ slew-rate = "normal";
84
+ drive-strength = "normal";
85
+ input-enable;
86
+ bias-pull-up;
87
+ };
88
+ group1 {
89
+ pinmux = <I3C3_PUR_PIO8_20>;
90
+ slew-rate = "normal";
91
+ drive-strength = "normal";
92
+ input-enable;
93
+ };
94
+ };
78
95
};
Original file line number Diff line number Diff line change 9
9
#include <nxp/nxp_rt7xx_cm33_cpu1.dtsi>
10
10
#include <zephyr/dt-bindings/input/input-event-codes.h>
11
11
#include "mimxrt700_evk-pinctrl.dtsi"
12
+ #include <freq.h>
12
13
13
14
/ {
14
15
model = "NXP MIMXRT700-EVK board";
17
18
aliases {
18
19
led0 = &red_led;
19
20
sw0 = &user_button_1;
21
+ ambient-temp0 = &p3t1755;
20
22
};
21
23
22
24
chosen {
80
82
&gpio8 {
81
83
status = "okay";
82
84
};
85
+
86
+ &i3c3 {
87
+ status = "okay";
88
+ pinctrl-0 = <&pinmux_i3c3>;
89
+ pinctrl-names = "default";
90
+ i2c-scl-hz = <DT_FREQ_K(400)>;
91
+ i3c-scl-hz = <DT_FREQ_M(4)>;
92
+ i3c-od-scl-hz = <DT_FREQ_K(1500)>;
93
+
94
+ p3t1755: p3t1755@4800000236152a0090 {
95
+ compatible = "nxp,p3t1755";
96
+ reg = <0x48 0x0236 0x152a0090>;
97
+ status = "okay";
98
+ };
99
+ };
Original file line number Diff line number Diff line change 1
1
#
2
- # Copyright 2024 NXP
2
+ # Copyright 2024-2025 NXP
3
3
#
4
4
# SPDX-License-Identifier: Apache-2.0
5
5
#
@@ -18,4 +18,5 @@ supported:
18
18
- gpio
19
19
- uart
20
20
- adc
21
+ - i3c
21
22
vendor : nxp
Original file line number Diff line number Diff line change 34
34
- " Temperature is [0-9|.]+°C"
35
35
integration_platforms :
36
36
- frdm_mcxn947/mcxn947/cpu0 # p3t1755
37
+ - mimxrt700_evk/mimxrt798s/cm33_cpu1 # p3t1755
37
38
depends_on :
38
39
- i3c
39
40
filter : dt_alias_exists("ambient-temp0")
You can’t perform that action at this time.
0 commit comments