Skip to content

Commit 009b3e4

Browse files
committed
dts/arm: stm32u5: Add i2c nodes
Add i2c nodes for stm32u5 socs. Signed-off-by: Erwan Gouriou <[email protected]>
1 parent 3844b79 commit 009b3e4

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

dts/arm/st/u5/stm32u5.dtsi

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <arm/armv8-m.dtsi>
99
#include <dt-bindings/clock/stm32_clock.h>
1010
#include <dt-bindings/gpio/gpio.h>
11+
#include <dt-bindings/i2c/i2c.h>
1112
#include <freq.h>
1213

1314
/ {
@@ -280,6 +281,32 @@
280281
status = "disabled";
281282
label = "SPI_3";
282283
};
284+
285+
i2c1: i2c@40005400 {
286+
compatible = "st,stm32-i2c-v2";
287+
clock-frequency = <I2C_BITRATE_STANDARD>;
288+
#address-cells = <1>;
289+
#size-cells = <0>;
290+
reg = <0x40005400 0x400>;
291+
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00200000>;
292+
interrupts = <55 0>, <56 0>;
293+
interrupt-names = "event", "error";
294+
status = "disabled";
295+
label= "I2C_1";
296+
};
297+
298+
i2c2: i2c@40005800 {
299+
compatible = "st,stm32-i2c-v2";
300+
clock-frequency = <I2C_BITRATE_STANDARD>;
301+
#address-cells = <1>;
302+
#size-cells = <0>;
303+
reg = <0x40005800 0x400>;
304+
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00400000>;
305+
interrupts = <57 0>, <58 0>;
306+
interrupt-names = "event", "error";
307+
status = "disabled";
308+
label= "I2C_2";
309+
};
283310
};
284311
};
285312

0 commit comments

Comments
 (0)