1/* 2 * Copyright (c) 2024 Javad Rahimipetroudi <javad.rahimipetroudi@mind.be> 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8#include <st/wb/stm32wb55Xg.dtsi> 9#include <st/wb/stm32wb55vgyx-pinctrl.dtsi> 10#include <zephyr/dt-bindings/input/input-event-codes.h> 11 12/ { 13 model = "STMicroelectronics STM32WB5MMG Bluetooth module"; 14 compatible = "st,stm32wb5mmgh6"; 15 16 chosen { 17 zephyr,console = &usart1; 18 zephyr,shell-uart = &usart1; 19 zephyr,bt-mon-uart = &lpuart1; 20 zephyr,bt-c2h-uart = &lpuart1; 21 zephyr,sram = &sram0; 22 zephyr,flash = &flash0; 23 zephyr,code-partition = &slot0_partition; 24 }; 25}; 26 27&clk_hse { 28 status = "okay"; 29}; 30 31&clk_lse { 32 status = "okay"; 33}; 34 35&clk_hsi48 { 36 status = "okay"; 37}; 38 39&clk48 { 40 /* Node is disabled by default as default source is HSI48 */ 41 /* To select another clock, enable the node */ 42 clocks = <&rcc STM32_SRC_HSI48 CLK48_SEL(0)>; 43}; 44 45&rcc { 46 clocks = <&clk_hse>; 47 clock-frequency = <DT_FREQ_M(32)>; 48 cpu1-prescaler = <1>; 49 cpu2-prescaler = <1>; 50 ahb4-prescaler = <1>; 51 apb1-prescaler = <1>; 52 apb2-prescaler = <1>; 53}; 54 55&usart1 { 56 pinctrl-0 = <&usart1_tx_pb6 &usart1_rx_pb7>; 57 pinctrl-names = "default"; 58 current-speed = <115200>; 59 status = "okay"; 60}; 61 62&lpuart1 { 63 pinctrl-0 = <&lpuart1_tx_pa2 &lpuart1_rx_pa3>; 64 pinctrl-names = "default"; 65 current-speed = <100000>; 66 status = "okay"; 67}; 68 69&adc1 { 70 pinctrl-0 = <&adc1_in3_pc2>; 71 pinctrl-names = "default"; 72 st,adc-clock-source = "SYNC"; 73 st,adc-prescaler = <4>; 74 status = "okay"; 75}; 76 77zephyr_udc0: &usb { 78 status = "okay"; 79 pinctrl-0 = <&usb_dm_pa11 &usb_dp_pa12>; 80 pinctrl-names = "default"; 81}; 82 83&flash0 { 84 partitions { 85 compatible = "fixed-partitions"; 86 #address-cells = <1>; 87 #size-cells = <1>; 88 89 /* 90 * Configure partitions while leaving space for M0 BLE f/w 91 * Since STM32WBCube release V1.13.2, only _HCIOnly_ f/w are supported. 92 * These FW are expected to be located not before 0x080DB000 93 * Current partition is using the first 876K of the flash for M4 94 */ 95 96 boot_partition: partition@0 { 97 label = "mcuboot"; 98 reg = <0x00000000 DT_SIZE_K(48)>; 99 }; 100 slot0_partition: partition@c000 { 101 label = "image-0"; 102 reg = <0x0000c000 DT_SIZE_K(400)>; 103 }; 104 105 }; 106}; 107