Skip to content

Commit f460b59

Browse files
erwangocfriedt
authored andcommitted
boards: stm32n6570_dk: Configure i3c1
Configure i3c1 nodes on stm32n6570_dk. Note that pins conflict with i2c1 ones, so don't enable it here and it will have to be enabled by application Signed-off-by: Erwan Gouriou <[email protected]>
1 parent 9ed3ead commit f460b59

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

boards/st/stm32n6570_dk/arduino_r3_connector.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,5 @@ arduino_serial: &usart2 {};
4242
arduino_i2c: &i2c1 {};
4343

4444
arduino_spi: &spi5 {};
45+
46+
arduino_i3c: &i3c1 {};

boards/st/stm32n6570_dk/stm32n6570_dk_common.dtsi

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,12 @@
173173
status = "okay";
174174
};
175175

176+
&ic10 {
177+
pll-src = <4>;
178+
ic-div = <32>;
179+
status = "okay";
180+
};
181+
176182
&ic11 {
177183
pll-src = <1>;
178184
ic-div = <3>;
@@ -313,6 +319,20 @@ csi_i2c: &i2c1 {
313319
};
314320
};
315321

322+
&i3c1 {
323+
pinctrl-0 = <&i3c1_scl_ph9 &i3c1_sda_pc1>;
324+
pinctrl-names = "default";
325+
326+
clocks = <&rcc STM32_CLOCK(APB1, 24)>,
327+
<&rcc STM32_SRC_IC10 I3C1_SEL(2)>;
328+
329+
i2c-scl-hz = <400000>;
330+
i3c-scl-hz = <6000000>;
331+
332+
/* Due to pin conflict with i2c1, keep it disabled */
333+
/* status = "okay"; */
334+
};
335+
316336
zephyr_udc0: &usbotg_hs1 {
317337
status = "okay";
318338
};

0 commit comments

Comments
 (0)