Skip to content

Commit

Permalink
app: boards: add nucleo_h745zi_q support
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Kozhinov <[email protected]>
  • Loading branch information
KozhinovAlexander committed Oct 20, 2024
1 parent 4f33384 commit 6a73f6f
Showing 1 changed file with 77 additions and 0 deletions.
77 changes: 77 additions & 0 deletions app/boards/nucleo_h745zi_q.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/*
* Copyright (c) 2024 Alexander Kozhinov <[email protected]>
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/dt-bindings/gpio/gpio.h>

/ {
chosen {
zephyr,canbus = &fdcan1;
};

cannectivity: cannectivity {
compatible = "cannectivity";
timestamp-counter = <&counter2>;

channel0 {
compatible = "cannectivity-channel";
can-controller = <&fdcan1>;
state-gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
activity-gpios = <&gpioe 1 GPIO_ACTIVE_HIGH>;
};
};

pwmleds {
status = "disabled";
};
};

&zephyr_udc0 {
gs_usb0: gs_usb0 {
compatible = "gs_usb";
};
};

zephyr_udc0: &usbotg_fs {
pinctrl-0 = <&usb_otg_fs_dm_pa11 &usb_otg_fs_dp_pa12>;
pinctrl-names = "default";
status = "okay";
};

&fdcan1 {
/* Allocate half of the M_CAN message RAM to FDCAN1 */
reg = <0x4000a000 0x400>, <0x4000ac00 0x1400>;
reg-names = "m_can", "message_ram";
bosch,mram-cfg = <0x0 1 1 10 10 0 10 10>;
pinctrl-0 = <&fdcan1_rx_pb8 &fdcan1_tx_pb9>;
pinctrl-names = "default";
clocks = <&rcc STM32_CLOCK_BUS_APB1_2 0x00000100>,
<&rcc STM32_SRC_PLL1_Q FDCAN_SEL(1)>;
status = "okay";
};

&timers2 {
st,prescaler = <239>;
counter2: counter {
status = "okay";
};
};

&usbotg_fs {
pinctrl-0 = <&usb_otg_fs_sof_pa8
&usb_otg_fs_vbus_pa9
&usb_otg_fs_dm_pa11
&usb_otg_fs_dp_pa12>;
pinctrl-names = "default";
status = "okay";
};

&arduino_i2c {
status = "disabled";
};

&arduino_serial {
status = "disabled";
};

0 comments on commit 6a73f6f

Please sign in to comment.