dts: arm: stm32f4: add CAN_2 controller

Add the CAN controller device tree node for CAN_2 of the STM32F4 SoC
series.

Signed-off-by: Ivo Clarysse <ivo@bcdevices.com>
This commit is contained in:
Ivo Clarysse 2020-01-25 06:59:38 -08:00 committed by Anas Nashif
parent 29d2a438ab
commit 0c8a99582e
2 changed files with 32 additions and 0 deletions

View file

@ -193,6 +193,23 @@
phase-seg2 = <6>;
};
can2: can@40006800 {
compatible = "st,stm32-can";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x40006800 0x400>;
interrupts = <63 0>, <64 0>, <65 0>, <66 0>;
interrupt-names = "TX", "RX0", "RX1", "SCE";
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x06000000>;
status = "disabled";
label = "CAN_2";
bus-speed = <125000>;
sjw = <1>;
prop-seg = <0>;
phase-seg1 = <5>;
phase-seg2 = <6>;
};
};
otghs_fs_phy: otghs_fs_phy {

View file

@ -523,4 +523,19 @@
#define DT_CAN_1_CLOCK_BUS DT_ST_STM32_CAN_40006400_CLOCK_BUS
#define DT_CAN_1_CLOCK_BITS DT_ST_STM32_CAN_40006400_CLOCK_BITS
#define DT_CAN_2_BASE_ADDRESS DT_ST_STM32_CAN_40006800_BASE_ADDRESS
#define DT_CAN_2_BUS_SPEED DT_ST_STM32_CAN_40006800_BUS_SPEED
#define DT_CAN_2_NAME DT_ST_STM32_CAN_40006800_LABEL
#define DT_CAN_2_IRQ_TX DT_ST_STM32_CAN_40006800_IRQ_TX
#define DT_CAN_2_IRQ_RX0 DT_ST_STM32_CAN_40006800_IRQ_RX0
#define DT_CAN_2_IRQ_RX1 DT_ST_STM32_CAN_40006800_IRQ_RX1
#define DT_CAN_2_IRQ_SCE DT_ST_STM32_CAN_40006800_IRQ_SCE
#define DT_CAN_2_IRQ_PRIORITY DT_ST_STM32_CAN_40006800_IRQ_0_PRIORITY
#define DT_CAN_2_SJW DT_ST_STM32_CAN_40006800_SJW
#define DT_CAN_2_PROP_SEG DT_ST_STM32_CAN_40006800_PROP_SEG
#define DT_CAN_2_PHASE_SEG1 DT_ST_STM32_CAN_40006800_PHASE_SEG1
#define DT_CAN_2_PHASE_SEG2 DT_ST_STM32_CAN_40006800_PHASE_SEG2
#define DT_CAN_2_CLOCK_BUS DT_ST_STM32_CAN_40006800_CLOCK_BUS
#define DT_CAN_2_CLOCK_BITS DT_ST_STM32_CAN_40006800_CLOCK_BITS
/* End of SoC Level DTS fixup file */