1/* 2 * Copyright (c) 2021 STMicroelectronics 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8#include "b_u585i_iot02a-common.dtsi" 9#include <zephyr/dt-bindings/memory-attr/memory-attr.h> 10#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h> 11 12/ { 13 model = "STMicroelectronics B-U585I-IOT02A discovery kit"; 14 compatible = "st,b-u585i-iot02a"; 15 16 chosen { 17 zephyr,console = &usart1; 18 zephyr,shell-uart = &usart1; 19 zephyr,sram = &sram0; 20 zephyr,flash = &flash0; 21 zephyr,code-partition = &slot0_partition; 22 zephyr,bt-hci = &bt_hci_uart; 23 }; 24 25 aliases { 26 led0 = &green_led_1; 27 led1 = &red_led_1; 28 sw0 = &user_button; 29 die-temp0 = &die_temp; 30 }; 31 32 octo_nor: memory@70000000 { 33 compatible = "zephyr,memory-region"; 34 reg = <0x70000000 DT_SIZE_M(64)>; 35 zephyr,memory-region = "EXTMEM"; 36 /* The ATTR_MPU_EXTMEM attribut causing a MPU FAULT */ 37 zephyr,memory-attr = <( DT_MEM_ARM(ATTR_MPU_IO) )>; 38 }; 39}; 40 41&flash0 { 42 partitions { 43 compatible = "fixed-partitions"; 44 #address-cells = <1>; 45 #size-cells = <1>; 46 47 /* 48 * Following flash partition is dedicated to the use of b_u585i_iot02a 49 * with TZEN=0 (so w/o TFM). 50 * Set the partitions with first MB to make use of the whole Bank1 51 */ 52 boot_partition: partition@0 { 53 label = "mcuboot"; 54 reg = <0x00000000 DT_SIZE_K(64)>; 55 }; 56 slot0_partition: partition@10000 { 57 label = "image-0"; 58 reg = <0x00010000 DT_SIZE_K(416)>; 59 }; 60 slot1_partition: partition@78000 { 61 label = "image-1"; 62 reg = <0x00078000 DT_SIZE_K(416)>; 63 }; 64 scratch_partition: partition@e0000 { 65 label = "image-scratch"; 66 reg = <0x000e0000 DT_SIZE_K(64)>; 67 }; 68 storage_partition: partition@f0000 { 69 label = "storage"; 70 reg = <0x000f0000 DT_SIZE_K(64)>; 71 }; 72 73 }; 74}; 75 76&gpdma1 { 77 status = "okay"; 78}; 79 80&uart4 { 81 pinctrl-0 = <&uart4_tx_pc10 &uart4_rx_pc11>; 82 pinctrl-names = "default"; 83 current-speed = <100000>; 84 status = "okay"; 85 86 bt_hci_uart: bt_hci_uart { 87 compatible = "zephyr,bt-hci-uart"; 88 status = "okay"; 89 }; 90}; 91 92&die_temp { 93 status = "okay"; 94}; 95 96&adc1 { 97 st,adc-prescaler = <4>; 98 status = "okay"; 99}; 100