From ac472001508adc74b5923168e006e3052e312876 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20J=C3=A4ger?= Date: Fri, 17 Jun 2022 13:44:16 +0200 Subject: [PATCH] boards: arm: nucleo_f446re: use can2 instance for testing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Choose can2 as the zephyr,canbus instance and add necessary settings for testing of the STM32 dual CAN driver implementation. Signed-off-by: Martin Jäger --- boards/arm/nucleo_f446re/nucleo_f446re.dts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/boards/arm/nucleo_f446re/nucleo_f446re.dts b/boards/arm/nucleo_f446re/nucleo_f446re.dts index 6ff055cf5c..8221b5afc5 100644 --- a/boards/arm/nucleo_f446re/nucleo_f446re.dts +++ b/boards/arm/nucleo_f446re/nucleo_f446re.dts @@ -18,7 +18,7 @@ zephyr,shell-uart = &usart2; zephyr,sram = &sram0; zephyr,flash = &flash0; - zephyr,canbus = &can1; + zephyr,canbus = &can2; }; leds { @@ -124,6 +124,13 @@ status = "okay"; }; +&can2 { + pinctrl-0 = <&can2_rx_pb12 &can2_tx_pb13>; + pinctrl-names = "default"; + bus-speed = <125000>; + status = "okay"; +}; + &flash0 { partitions {