Commit 1c75f604 authored by Francois Ramu's avatar Francois Ramu Committed by Carles Cufi
Browse files

boards: arm: stm32h573 disco kit enables the CAN bus



Enable the canbus instance can1 on the stm32h573i_dk board
with arbitrary pins selection for fdcan rx & tx.
Select the PLL1_Q as FDCAN clock source (common to can 1 & 2).
Used for tests/drivers/can/api/ validation only.

Signed-off-by: default avatarFrancois Ramu <francois.ramu@st.com>
parent 2ee1862a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -187,6 +187,8 @@ hardware features:
+-----------+------------+-------------------------------------+
| OCTOSPI   | on-chip    | octospi                             |
+-----------+------------+-------------------------------------+
| CAN       | on-chip    | can bus                             |
+-----------+------------+-------------------------------------+

Other hardware features are not yet supported on this Zephyr port.

+11 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@
		zephyr,sram = &sram0;
		zephyr,flash = &flash0;
		zephyr,code-partition = &slot0_partition;
		zephyr,canbus = &can1;
	};

	leds {
@@ -192,6 +193,16 @@
	status = "okay";
};

&can1 {
	clocks = <&rcc STM32_CLOCK_BUS_APB1_2 0x00000200>,
		<&rcc STM32_SRC_PLL1_Q FDCAN_SEL(1)>;
	pinctrl-0 = <&fdcan1_rx_pa11 &fdcan1_tx_pa12>;
	pinctrl-names = "default";
	bus-speed = <125000>;
	bus-speed-data = <1000000>;
	status = "okay";
};

&octospi1 {
	pinctrl-0 = <&octospi1_io0_pb1 &octospi1_io1_pd12
		     &octospi1_io2_pc2 &octospi1_io3_pd13
+1 −0
Original line number Diff line number Diff line
@@ -19,3 +19,4 @@ supported:
  - counter
  - spi
  - octospi
  - can