File tree Expand file tree Collapse file tree 4 files changed +42
-0
lines changed Expand file tree Collapse file tree 4 files changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,12 @@ void board_early_init_hook(void)
105
105
CLOCK_EnableClock (kCLOCK_GateGPIO3 );
106
106
#endif
107
107
108
+ #if DT_NODE_HAS_STATUS_OKAY (DT_NODELABEL (i3c0 ))
109
+ /* Attach FRO_HF_DIV clock to I3C, 96MHz / 4 = 24MHz. */
110
+ CLOCK_SetClockDiv (kCLOCK_DivI3C0_FCLK , 4U );
111
+ CLOCK_AttachClk (kFRO_HF_DIV_to_I3C0FCLK );
112
+ #endif
113
+
108
114
#if DT_NODE_HAS_STATUS_OKAY (DT_NODELABEL (lpadc0 ))
109
115
CLOCK_SetClockDiv (kCLOCK_DivADC0 , 1u );
110
116
CLOCK_AttachClk (kFRO12M_to_ADC0 );
Original file line number Diff line number Diff line change 16
16
};
17
17
};
18
18
19
+ pinmux_i3c0: pinmux_i3c0 {
20
+ group0 {
21
+ pinmux = <I3C0_SDA_P0_16>,
22
+ <I3C0_SCL_P0_17>;
23
+ slew-rate = "fast";
24
+ drive-strength = "low";
25
+ input-enable;
26
+ bias-pull-up;
27
+ };
28
+ group1 {
29
+ pinmux = <I3C0_PUR_P1_11>;
30
+ slew-rate = "fast";
31
+ drive-strength = "low";
32
+ input-enable;
33
+ };
34
+ };
35
+
19
36
pinmux_lpadc0: pinmux_lpadc0 {
20
37
group0 {
21
38
pinmux = <ADC0_A0_P2_0>,
Original file line number Diff line number Diff line change 9
9
#include <nxp/nxp_mcxa153.dtsi>
10
10
#include "frdm_mcxa153-pinctrl.dtsi"
11
11
#include <zephyr/dt-bindings/input/input-event-codes.h>
12
+ #include <freq.h>
12
13
13
14
/ {
14
15
model = "NXP FRDM_MCXA153 board";
21
22
sw0 = &user_button_2;
22
23
sw1 = &user_button_3;
23
24
pwm-0 = &flexpwm0_pwm0;
25
+ ambient-temp0 = &p3t1755;
24
26
};
25
27
26
28
chosen {
124
126
status = "okay";
125
127
};
126
128
129
+ &i3c0 {
130
+ status = "okay";
131
+ pinctrl-0 = <&pinmux_i3c0>;
132
+ pinctrl-names = "default";
133
+
134
+ i2c-scl-hz = <DT_FREQ_K(400)>;
135
+ i3c-scl-hz = <DT_FREQ_M(4)>;
136
+ i3c-od-scl-hz = <DT_FREQ_K(1500)>;
137
+
138
+ p3t1755: p3t1755@4800000236152a0090 {
139
+ compatible = "nxp,p3t1755";
140
+ reg = <0x48 0x0236 0x152a0090>;
141
+ status = "okay";
142
+ };
143
+ };
144
+
127
145
&lpadc0 {
128
146
status = "okay";
129
147
pinctrl-0 = <&pinmux_lpadc0>;
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ supported:
20
20
- flash
21
21
- gpio
22
22
- i2c
23
+ - i3c
23
24
- pwm
24
25
- spi
25
26
- uart
You can’t perform that action at this time.
0 commit comments