File tree Expand file tree Collapse file tree 5 files changed +43
-0
lines changed Expand file tree Collapse file tree 5 files changed +43
-0
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,12 @@ void board_early_init_hook(void)
165
165
CLOCK_AttachClk (kFRO_HF_to_FLEXIO0 );
166
166
#endif
167
167
168
+ #if DT_NODE_HAS_STATUS_OKAY (DT_NODELABEL (i3c0 ))
169
+ /* Attach FRO_HF_DIV clock to I3C, 96MHz / 4 = 24MHz. */
170
+ CLOCK_SetClockDiv (kCLOCK_DivI3C0_FCLK , 4U );
171
+ CLOCK_AttachClk (kFRO_HF_DIV_to_I3C0FCLK );
172
+ #endif
173
+
168
174
#if DT_NODE_HAS_STATUS_OKAY (DT_NODELABEL (lpadc0 ))
169
175
CLOCK_SetClockDiv (kCLOCK_DivADC0 , 1u );
170
176
CLOCK_AttachClk (kFRO12M_to_ADC0 );
Original file line number Diff line number Diff line change @@ -71,6 +71,8 @@ The FRDM-MCXA156 board configuration supports the following hardware features:
71
71
+-----------+------------+-------------------------------------+
72
72
| I2C | on-chip | i2c |
73
73
+-----------+------------+-------------------------------------+
74
+ | I3C | on-chip | i3c |
75
+ +-----------+------------+-------------------------------------+
74
76
| LPCMP | on-chip | sensor(comparator) |
75
77
+-----------+------------+-------------------------------------+
76
78
| LPSPI | on-chip | spi |
Original file line number Diff line number Diff line change 89
89
drive-strength = "low";
90
90
};
91
91
};
92
+ pinmux_i3c0: pinmux_i3c0 {
93
+ group0 {
94
+ pinmux = <I3C0_SDA_P0_16>,
95
+ <I3C0_SCL_P0_17>;
96
+ slew-rate = "fast";
97
+ drive-strength = "low";
98
+ input-enable;
99
+ bias-pull-up;
100
+ };
101
+ group1 {
102
+ pinmux = <I3C0_PUR_P1_11>;
103
+ slew-rate = "fast";
104
+ drive-strength = "low";
105
+ input-enable;
106
+ };
107
+ };
92
108
pinmux_lpadc0: pinmux_lpadc0 {
93
109
group0 {
94
110
pinmux = <ADC0_A0_P2_0>,
Original file line number Diff line number Diff line change 9
9
#include <nxp/nxp_mcxa156.dtsi>
10
10
#include "frdm_mcxa156-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_MCXA156 board";
23
24
pwm-0 = &flexpwm0_pwm0;
24
25
mcuboot-button0 = &user_button_2;
25
26
watchdog0 = &wwdt0;
27
+ ambient-temp0 = &p3t1755;
26
28
};
27
29
28
30
chosen {
@@ -165,6 +167,22 @@ zephyr_mipi_dbi_parallel: &flexio0_lcd {
165
167
pinctrl-names = "default";
166
168
};
167
169
170
+ &i3c0 {
171
+ status = "okay";
172
+ pinctrl-0 = <&pinmux_i3c0>;
173
+ pinctrl-names = "default";
174
+
175
+ i2c-scl-hz = <DT_FREQ_K(400)>;
176
+ i3c-scl-hz = <DT_FREQ_M(4)>;
177
+ i3c-od-scl-hz = <DT_FREQ_K(1500)>;
178
+
179
+ p3t1755: p3t1755@4800000236152a0090 {
180
+ compatible = "nxp,p3t1755";
181
+ reg = <0x48 0x0236 0x152a0090>;
182
+ status = "okay";
183
+ };
184
+ };
185
+
168
186
&lpadc0 {
169
187
status = "okay";
170
188
pinctrl-0 = <&pinmux_lpadc0>;
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ supported:
22
22
- dac
23
23
- dma
24
24
- i2c
25
+ - i3c
25
26
- pwm
26
27
- spi
27
28
- usb_device
You can’t perform that action at this time.
0 commit comments