boards: arm: nucleo_g0b1re: add fdcan2 support

The nucleo_g0b1re board is based on stm32g0 that supports 2 can
controllers. This commit adds support for the second can controller.
Add also can label in yml board file.

Signed-off-by: Adrien MARTIN <adrienmar@kickmaker.net>
This commit is contained in:
Adrien MARTIN 2024-01-25 12:16:33 +01:00 committed by Fabio Baltieri
parent c1ae6e5b4e
commit 2d8f4d1899
3 changed files with 13 additions and 1 deletions

View file

@ -108,7 +108,7 @@ The Zephyr nucleo_g0b1re board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+
| die-temp | on-chip | die temperature sensor |
+-----------+------------+-------------------------------------+
| FDCAN1 | on-chip | CAN controller |
| FDCAN | on-chip | CAN controller |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported in this Zephyr port.
@ -140,6 +140,7 @@ Default Zephyr Peripheral Mapping:
- ADC1 IN1 : PA1
- DAC1_OUT1 : PA4
- FDCAN1 RX/TX: PA11/PA12
- FDCAN2 RX/TX: PB0/PB1
For more details please refer to `STM32 Nucleo-64 board User Manual`_.

View file

@ -187,6 +187,16 @@ zephyr_udc0: &usb {
status = "okay";
};
&fdcan2 {
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x00001000>,
<&rcc STM32_SRC_PLL_Q FDCAN_SEL(1)>;
pinctrl-0 = <&fdcan2_rx_pb0 &fdcan2_tx_pb1>;
pinctrl-names = "default";
bus-speed = <125000>;
bus-speed-data = <1000000>;
status = "okay";
};
&flash0 {
partitions {
compatible = "fixed-partitions";

View file

@ -14,6 +14,7 @@ supported:
- arduino_i2c
- arduino_spi
- arduino_serial
- can
- uart
- gpio
- i2c