Skip to content

Commit 3e9d87f

Browse files
alexanderwachtergalak
authored andcommitted
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 94f8524 commit 3e9d87f

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 {
@@ -153,3 +154,14 @@
153154
pinctrl-0 = <&adc1_in1_pa0>;
154155
status = "okay";
155156
};
157+
158+
&can1 {
159+
pinctrl-0 = <&fdcan1_rx_pa11 &fdcan1_tx_pa12>;
160+
bus-speed = <125000>;
161+
sjw = <1>;
162+
sample-point = <875>;
163+
bus-speed-data = <1000000>;
164+
sjw-data = <1>;
165+
sample-point-data = <875>;
166+
status = "okay";
167+
};

boards/arm/nucleo_g474re/nucleo_g474re.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ supported:
2222
- watchdog
2323
- adc
2424
- dma
25+
- can
26+
- canfd

0 commit comments

Comments
 (0)