Skip to content

Commit 5f935da

Browse files
mthiede-acn2kartben
authored andcommitted
boards: nucleo_h755zi_q: add CAN support on M7
Add CAN support by configuring fdcan1 in the device tree for the M7 core. As with other H7xx boards, it will be clocked by pll2 which is also turned on. Updated documentation. Tested on nucleo_h755zi_q board. Signed-off-by: Martin Thiede <[email protected]>
1 parent b933c4e commit 5f935da

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

boards/st/nucleo_h755zi_q/doc/index.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ and a ST morpho connector. Board is configured as follows:
9393
- LD2 : PE1
9494
- LD3 : PB14
9595
- I2C : PB8, PB9
96+
- CAN/CANFD : PD0, PD1
9697

9798
System Clock
9899
------------
@@ -107,6 +108,11 @@ Serial Port
107108
Nucleo H755ZI-Q board has 4 UARTs and 4 USARTs. The Zephyr console output is
108109
assigned to USART3. Default settings are 115200 8N1.
109110

111+
CAN, CANFD
112+
----------
113+
114+
Requires an external CAN or CANFD transceiver.
115+
110116
Resources sharing
111117
-----------------
112118

boards/st/nucleo_h755zi_q/nucleo_h755zi_q_stm32h755xx_m7.dts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
zephyr,dtcm = &dtcm;
2727
zephyr,sram = &sram0;
2828
zephyr,flash = &flash0;
29+
zephyr,canbus = &fdcan1;
2930
};
3031

3132
pwmleds {
@@ -68,6 +69,24 @@
6869
status = "okay";
6970
};
7071

72+
&pll2 {
73+
div-m = <4>;
74+
mul-n = <120>;
75+
div-p = <2>;
76+
div-q = <3>; /* gives 80MHz to the FDCAN */
77+
div-r = <2>;
78+
clocks = <&clk_hse>;
79+
status = "okay";
80+
};
81+
82+
&fdcan1 {
83+
clocks = <&rcc STM32_CLOCK_BUS_APB1_2 0x00000100>,
84+
<&rcc STM32_SRC_PLL2_Q FDCAN_SEL(2)>;
85+
pinctrl-0 = <&fdcan1_rx_pd0 &fdcan1_tx_pd1>;
86+
pinctrl-names = "default";
87+
status = "okay";
88+
};
89+
7190
&rcc {
7291
clocks = <&pll>;
7392
clock-frequency = <DT_FREQ_M(480)>;

boards/st/nucleo_h755zi_q/nucleo_h755zi_q_stm32h755xx_m7.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ supported:
1717
- pwm
1818
- netif:eth
1919
- usb_device
20+
- can
2021
vendor: st

0 commit comments

Comments
 (0)