Skip to content

Commit 7391cfa

Browse files
TD-JBLcfriedt
authored andcommitted
boards: arm: st: nucleo_h7s3l8: Add fdcan1
Enable support for FDCAN1 on nucleo_h7s3l8 board. PD0 (RX) and PD1 (TX) are used for interfacing an external CAN transceiver according to the breakout connector description in the board's schematic. Signed-off-by: Thomas Decker <[email protected]>
1 parent ab94dbc commit 7391cfa

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

boards/st/nucleo_h7s3l8/doc/index.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ and a ST morpho connector. Board is configured as follows:
161161
- LD3 : PB7
162162
- I2C : PB8, PB9
163163
- SPI1 NSS/SCK/MISO/MOSI : PD14PA5/PA6/PB5 (Arduino SPI)
164+
- FDCAN1 RX/TX : PD0, PD1
164165

165166
System Clock
166167
------------
@@ -181,6 +182,13 @@ Backup SRAM
181182
In order to test backup SRAM you may want to disconnect VBAT from VDD. You can
182183
do it by removing ``SB13`` jumper on the back side of the board.
183184

185+
FDCAN
186+
=====
187+
188+
The Nucleo H7S3L8 board does not have any onboard CAN transceiver. In order to
189+
use the FDCAN bus on this board, an external CAN bus transceiver must be
190+
connected to pins PD0 (RX) and PD1 (TX).
191+
184192
Programming and Debugging
185193
*************************
186194

boards/st/nucleo_h7s3l8/nucleo_h7s3l8.dts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
zephyr,dtcm = &dtcm;
2121
zephyr,sram = &sram0;
2222
zephyr,flash = &flash0;
23+
zephyr,canbus = &fdcan1;
2324
};
2425

2526
leds: leds {
@@ -166,6 +167,14 @@
166167
clock-frequency = <I2C_BITRATE_FAST>;
167168
};
168169

170+
&fdcan1 {
171+
pinctrl-0 = <&fdcan1_rx_pd0 &fdcan1_tx_pd1>;
172+
pinctrl-names = "default";
173+
clocks = <&rcc STM32_CLOCK(APB1_2, 8)>,
174+
<&rcc STM32_SRC_HSE FDCAN_SEL(0)>;
175+
status = "okay";
176+
};
177+
169178
&flash0 {
170179
partitions {
171180
compatible = "fixed-partitions";

boards/st/nucleo_h7s3l8/nucleo_h7s3l8.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@ supported:
1313
- entropy
1414
- adc
1515
- octospi
16+
- can
17+
- canfd
1618
vendor: st

0 commit comments

Comments
 (0)