Skip to content

Commit 94f8524

Browse files
alexanderwachtergalak
authored andcommitted
dts: arm: stm32g4: add can bindings to stm32g4 SoCs
This commit adds the CAN nodes to the STM32g4 SoCs. Signed-off-by: Alexander Wachter <[email protected]>
1 parent f1754b1 commit 94f8524

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

dts/arm/st/g4/stm32g4.dtsi

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,30 @@
345345
label = "SPI_3";
346346
};
347347

348+
can {
349+
compatible = "bosch,m-can-base";
350+
#address-cells = <1>;
351+
#size-cells = <1>;
352+
std-filter-elements = <28>;
353+
ext-filter-elements = <8>;
354+
rx-fifo0-elements = <3>;
355+
rx-fifo1-elements = <3>;
356+
rx-buffer-elements = <0>;
357+
tx-buffer-elements = <3>;
358+
359+
can1: can@40006400 {
360+
compatible = "st,stm32-fdcan";
361+
#address-cells = <1>;
362+
#size-cells = <0>;
363+
reg = <0x40006400 0x400>, <0x4000A400 0x350>;
364+
reg-names = "m_can", "message_ram";
365+
interrupts = <21 0>, <22 0>;
366+
interrupt-names = "LINE_0", "LINE_1";
367+
status = "disabled";
368+
label = "CAN_1";
369+
};
370+
};
371+
348372
timers1: timers@40012c00 {
349373
compatible = "st,stm32-timers";
350374
reg = <0x40012c00 0x400>;

dts/arm/st/g4/stm32g474.dtsi

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,32 @@
88

99
/ {
1010
soc {
11+
can {
12+
can2: can@40006800 {
13+
compatible = "st,stm32-fdcan";
14+
#address-cells = <1>;
15+
#size-cells = <0>;
16+
reg = <0x40006800 0x400>, <0x4000A800 0x350>;
17+
reg-names = "m_can", "message_ram";
18+
interrupts = <86 0>, <87 0>;
19+
interrupt-names = "LINE_0", "LINE_1";
20+
status = "disabled";
21+
label = "CAN_2";
22+
};
23+
24+
can3: can@40006C00 {
25+
compatible = "st,stm32-fdcan";
26+
#address-cells = <1>;
27+
#size-cells = <0>;
28+
reg = <0x40006C00 0x400>, <0x4000AC00 0x350>;
29+
reg-names = "m_can", "message_ram";
30+
interrupts = <88 0>, <89 0>;
31+
interrupt-names = "LINE_0", "LINE_1";
32+
status = "disabled";
33+
label = "CAN_3";
34+
};
35+
};
36+
1137
dac2: dac@50000c00 {
1238
compatible = "st,stm32-dac";
1339
reg = <0x50000c00 0x400>;

0 commit comments

Comments
 (0)