Skip to content

Commit ab94dbc

Browse files
TD-JBLcfriedt
authored andcommitted
dts: arm: st: h7rs: Add fdcan1 and fdcan2 configuration
Provide the soc configuration for fdcan1 and fdcan2 controllers. This includes registers address, clocks and interrupt lines details. Signed-off-by: Thomas Decker <[email protected]>
1 parent 5bb98db commit ab94dbc

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

dts/arm/st/h7rs/stm32h7rs.dtsi

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,32 @@
502502
status = "disabled";
503503
};
504504

505+
fdcan1: can@4000a000 {
506+
compatible = "st,stm32-fdcan";
507+
reg = <0x4000a000 0x400>, <0x4000ac00 0x350>;
508+
reg-names = "m_can", "message_ram";
509+
/* common clock FDCAN 1 & 2 */
510+
clocks = <&rcc STM32_CLOCK(APB1_2, 8)>,
511+
<&rcc STM32_SRC_HSE FDCAN_SEL(0)>;
512+
interrupts = <152 0>, <153 0>;
513+
interrupt-names = "int0", "int1";
514+
bosch,mram-cfg = <0x0 28 8 3 3 0 3 3>;
515+
status = "disabled";
516+
};
517+
518+
fdcan2: can@4000a400 {
519+
compatible = "st,stm32-fdcan";
520+
reg = <0x4000a400 0x400>, <0x4000ac00 0x6a0>;
521+
reg-names = "m_can", "message_ram";
522+
/* common clock FDCAN 1 & 2 */
523+
clocks = <&rcc STM32_CLOCK(APB1_2, 8)>,
524+
<&rcc STM32_SRC_HSE FDCAN_SEL(0)>;
525+
interrupts = <154 0>, <155 0>;
526+
interrupt-names = "int0", "int1";
527+
bosch,mram-cfg = <0x350 28 8 3 3 0 3 3>;
528+
status = "disabled";
529+
};
530+
505531
xspi1: spi@52005000 {
506532
compatible = "st,stm32-xspi";
507533
reg = <0x52005000 0x1000>, <0x90000000 DT_SIZE_M(256)>;

0 commit comments

Comments
 (0)