Skip to content

Commit 93ffddc

Browse files
board: nucleo_g474re: Add CAN support.
This commit adds CAN support to the nucleo_g474re board. Signed-off-by: Alexander Wachter <[email protected]>
1 parent 37801b4 commit 93ffddc

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

boards/arm/nucleo_g474re/nucleo_g474re.dts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
zephyr,shell-uart = &lpuart1;
1919
zephyr,sram = &sram0;
2020
zephyr,flash = &flash0;
21+
zephyr,can-primary = &can1;
2122
};
2223

2324
leds {
@@ -130,3 +131,14 @@
130131
pinctrl-0 = <&adc1_in1_pa0>;
131132
status = "okay";
132133
};
134+
135+
&can1 {
136+
pinctrl-0 = <&fdcan1_rx_pa11 &fdcan1_tx_pa12>;
137+
bus-speed = <125000>;
138+
sjw = <1>;
139+
sample-point = <875>;
140+
bus-speed-data = <1000000>;
141+
sjw-data = <1>;
142+
sample-point-data = <875>;
143+
status = "okay";
144+
};

boards/arm/nucleo_g474re/nucleo_g474re.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ supported:
2121
- spi
2222
- watchdog
2323
- adc
24+
- can
25+
- canfd

0 commit comments

Comments
 (0)