Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 | /* * Copyright (c) 2023 STMicroelectronics * * SPDX-License-Identifier: Apache-2.0 */ /dts-v1/; #include <st/h5/stm32h573Xi.dtsi> #include <st/h5/stm32h573iikxq-pinctrl.dtsi> #include "arduino_r3_connector.dtsi" #include <zephyr/dt-bindings/input/input-event-codes.h> / { model = "STMicroelectronics STM32H573I DISCOVERY KIT board"; compatible = "st,stm32h573i-dk"; chosen { zephyr,console = &usart1; zephyr,shell-uart = &usart1; zephyr,sram = &sram1; zephyr,flash = &flash0; zephyr,code-partition = &slot0_partition; zephyr,canbus = &fdcan1; }; leds { compatible = "gpio-leds"; green_led_0: led_1 { gpios = <&gpioi 9 GPIO_ACTIVE_LOW>; label = "User LD1"; }; orange_led_0: led_2 { gpios = <&gpioi 8 GPIO_ACTIVE_LOW>; label = "User LD2"; }; red_led_0: led_3 { gpios = <&gpiof 1 GPIO_ACTIVE_LOW>; label = "User LD3"; }; blue_led_0: led_4 { gpios = <&gpiof 4 GPIO_ACTIVE_LOW>; label = "User LD4"; }; }; gpio_keys { compatible = "gpio-keys"; user_button: button { label = "User"; gpios = <&gpioc 13 GPIO_ACTIVE_LOW>; zephyr,code = <INPUT_KEY_0>; }; }; aliases { led0 = &blue_led_0; sw0 = &user_button; watchdog0 = &iwdg; spi-flash0 = &mx25lm51245; die-temp0 = &die_temp; volt-sensor0 = &vref; volt-sensor1 = &vbat; }; }; &clk_hsi48 { status = "okay"; }; &clk_lse { status = "okay"; }; &clk_hse { clock-frequency = <DT_FREQ_M(25)>; hse-bypass; /* X3 is a 25MHz oscillator on PH0 */ status = "okay"; }; &pll { div-m = <5>; mul-n = <96>; div-p = <2>; div-q = <2>; div-r = <2>; clocks = <&clk_hse>; status = "okay"; }; &rcc { clocks = <&pll>; clock-frequency = <DT_FREQ_M(240)>; ahb-prescaler = <1>; apb1-prescaler = <1>; apb2-prescaler = <1>; apb3-prescaler = <1>; }; &usart1 { pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>; pinctrl-names = "default"; current-speed = <115200>; status = "okay"; }; &timers2 { st,prescaler = <10000>; status = "okay"; pwm2: pwm { status = "okay"; pinctrl-0 = <&tim2_ch4_pa3>; pinctrl-names = "default"; }; }; &timers3 { st,prescaler = <10000>; status = "okay"; pwm3: pwm { status = "okay"; pinctrl-0 = <&tim3_ch2_pb5>; pinctrl-names = "default"; }; }; &aes { status = "okay"; }; &rng { status = "okay"; }; &mac { status = "okay"; pinctrl-0 = <ð_mdc_pc1 ð_rxd0_pc4 ð_rxd1_pc5 ð_ref_clk_pa1 ð_mdio_pa2 ð_crs_dv_pa7 ð_tx_en_pg11 ð_txd0_pg13 ð_txd1_pg12>; pinctrl-names = "default"; }; &flash0 { partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; /* Set the partitions with first MB to make use of the whole Bank1 */ boot_partition: partition@0 { label = "mcuboot"; reg = <0x00000000 DT_SIZE_K(64)>; }; slot0_partition: partition@10000 { label = "image-0"; reg = <0x00010000 DT_SIZE_K(416)>; }; slot1_partition: partition@78000 { label = "image-1"; reg = <0x00078000 DT_SIZE_K(416)>; }; scratch_partition: partition@e0000 { label = "image-scratch"; reg = <0x000e0000 DT_SIZE_K(64)>; }; /* Set 64KB of storage at the end of Bank1 */ storage_partition: partition@f0000 { label = "storage"; reg = <0x000f0000 DT_SIZE_K(64)>; }; }; }; &rtc { clocks = <&rcc STM32_CLOCK_BUS_APB3 0x00200000>, <&rcc STM32_SRC_LSE RTC_SEL(1)>; status = "okay"; }; &iwdg { status = "okay"; }; &gpdma1 { status = "okay"; }; &gpdma2 { status = "okay"; }; &dac1 { /* only 2 output channels : out1 on pa4 or out2 on pa5 */ pinctrl-0 = <&dac1_out1_pa4>; /* Arduino A1 */ pinctrl-names = "default"; status = "okay"; }; &adc1 { pinctrl-0 = <&adc1_inp6_pf12>; /* Arduino A5 */ pinctrl-names = "default"; st,adc-clock-source = <ASYNC>; st,adc-prescaler = <6>; status = "okay"; }; &spi2 { pinctrl-0 = <&spi2_nss_pa3 &spi2_sck_pi1 &spi2_miso_pi2 &spi2_mosi_pb15>; pinctrl-names = "default"; status = "okay"; }; &fdcan1 { 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 &octospi1_io4_ph2 &octospi1_io5_ph3 &octospi1_io6_pg9 &octospi1_io7_pc0 &octospi1_clk_pf10 &octospi1_ncs_pg6 &octospi1_dqs_pb2>; pinctrl-names = "default"; status = "okay"; mx25lm51245: ospi-nor-flash@90000000 { compatible = "st,stm32-ospi-nor"; reg = <0x90000000 DT_SIZE_M(64)>; /* 512 Mbits */ ospi-max-frequency = <DT_FREQ_M(50)>; spi-bus-width = <OSPI_OPI_MODE>; data-rate = <OSPI_DTR_TRANSFER>; four-byte-opcodes; status = "okay"; partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; partition@0 { label = "nor"; reg = <0x00000000 DT_SIZE_M(64)>; }; }; }; }; zephyr_udc0: &usb { pinctrl-0 = <&usb_dm_pa11 &usb_dp_pa12>; pinctrl-names = "default"; status = "okay"; }; &die_temp { status = "okay"; }; &vref { status = "okay"; }; &vbat { status = "okay"; }; |