Skip to content

Commit f55c5be

Browse files
committed
dts: add stm32h7 can binding and node
* Add can peripheral to stm32h7.dtsi. * Add binding for m_can stm32h7 driver. Signed-off-by: Jeremy Wood <[email protected]>
1 parent b913fa6 commit f55c5be

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

dts/arm/st/h7/stm32h7.dtsi

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,35 @@
441441
label = "SPI_6";
442442
};
443443

444+
can {
445+
compatible = "bosch,m-can-base";
446+
#address-cells = <1>;
447+
#size-cells = <1>;
448+
std-filter-elements = <28>;
449+
ext-filter-elements = <8>;
450+
rx-fifo0-elements = <3>;
451+
rx-fifo1-elements = <3>;
452+
rx-buffer-elements = <3>;
453+
tx-buffer-elements = <3>;
454+
455+
can1: can@4000a000 {
456+
compatible = "st,stm32h7-fdcan";
457+
#address-cells = <1>;
458+
#size-cells = <0>;
459+
reg = <0x4000a000 0x400>, <0x4000ac00 0x350>;
460+
reg-names = "m_can", "message_ram";
461+
clocks = <&rcc STM32_CLOCK_BUS_APB1_2 0x00000100>;
462+
interrupts = <19 0>, <21 0>, <63 0>;
463+
interrupt-names = "LINE_0", "LINE_1", "CALIB";
464+
status = "disabled";
465+
label = "CAN_1";
466+
sjw = <1>;
467+
sample-point = <875>;
468+
sjw-data = <1>;
469+
sample-point-data = <875>;
470+
};
471+
};
472+
444473
timers1: timers@40010000 {
445474
compatible = "st,stm32-timers";
446475
reg = <0x40010000 0x400>;
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
description: Bosch m_can CAN-FD controller for STM32H7 series
2+
3+
compatible: "st,stm32h7-fdcan"
4+
5+
include: ["bosch,m-can.yaml", "pinctrl-device.yaml"]
6+
7+
properties:
8+
clocks:
9+
required: true

0 commit comments

Comments
 (0)