Advertisement
ManU_47

nucleo_h743zi.dts

Apr 26th, 2021
485
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.20 KB | None | 0 0
  1. /*
  2. * Copyright (c) 2020 Teslabs Engineering S.L.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6.  
  7. /dts-v1/;
  8. #include <st/h7/stm32h743Xi.dtsi>
  9. #include <st/h7/stm32h743zitx-pinctrl.dtsi>
  10. #include "arduino_r3_connector.dtsi"
  11.  
  12. / {
  13. model = "STMicroelectronics STM32H743ZI-NUCLEO board";
  14. compatible = "st,stm32h743zi-nucleo";
  15.  
  16. chosen {
  17. zephyr,console = &usart3;
  18. zephyr,shell-uart = &usart3;
  19. zephyr,sram = &sram0;
  20. zephyr,flash = &flash0;
  21. zephyr,dtcm = &dtcm;
  22. zephyr,code-partition = &slot0_partition;
  23. };
  24.  
  25. leds {
  26. compatible = "gpio-leds";
  27. green_led: led_0 {
  28. gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
  29. label = "User LD1";
  30. };
  31. yellow_led: led_1 {
  32. gpios = <&gpioe 1 GPIO_ACTIVE_HIGH>;
  33. label = "User LD2";
  34. };
  35. };
  36.  
  37. pwmleds {
  38. compatible = "pwm-leds";
  39.  
  40. red_pwm_led: red_pwm_led {
  41. pwms = <&pwm12 1 4 PWM_POLARITY_NORMAL>;
  42. };
  43. };
  44.  
  45. gpio_keys {
  46. compatible = "gpio-keys";
  47. user_button: button_0 {
  48. label = "User";
  49. gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
  50. };
  51. };
  52.  
  53. aliases {
  54. led0 = &green_led;
  55. led1 = &yellow_led;
  56. pwm-led0 = &red_pwm_led;
  57. sw0 = &user_button;
  58. };
  59. };
  60.  
  61. &usart3 {
  62. pinctrl-0 = <&usart3_tx_pd8 &usart3_rx_pd9>;
  63. current-speed = <115200>;
  64. status = "okay";
  65. };
  66.  
  67. &usbotg_fs {
  68. pinctrl-0 = <&usb_otg_fs_dm_pa11 &usb_otg_fs_dp_pa12>;
  69. status = "okay";
  70. };
  71.  
  72. &rtc {
  73. status = "okay";
  74. };
  75.  
  76. &i2c1 {
  77. pinctrl-0 = <&i2c1_scl_pb8 &i2c1_sda_pb9>;
  78. status = "okay";
  79. clock-frequency = <I2C_BITRATE_FAST>;
  80. };
  81.  
  82. &timers12 {
  83. status = "okay";
  84.  
  85. pwm12: pwm {
  86. status = "okay";
  87. pinctrl-0 = <&tim12_ch1_pb14>;
  88. };
  89. };
  90.  
  91. &adc1 {
  92. pinctrl-0 = <&adc1_inp15_pa3>;
  93. status = "okay";
  94. };
  95.  
  96. &rng {
  97. status = "okay";
  98. };
  99.  
  100. /*
  101. * WARNING:
  102. * Possible pin conflicts:
  103. * The pins PA2 and PB13 may conflict on selection of ETH_STM32_HAL,
  104. * since they are used in ST Zio or ST morpho connectors.
  105. * To avoid conflicting states the jumpers JP6 and JP7
  106. * must be in ON state.
  107. */
  108. &mac {
  109. status = "okay";
  110. pinctrl-0 = <&eth_mdc_pc1
  111. &eth_rxd0_pc4
  112. &eth_rxd1_pc5
  113. &eth_ref_clk_pa1
  114. &eth_mdio_pa2
  115. &eth_crs_dv_pa7
  116. &eth_tx_en_pg11
  117. &eth_txd0_pg13
  118. &eth_txd1_pb13>;
  119. };
  120.  
  121. &spi1 {
  122. status = "okay";
  123. pinctrl-0 = <&spi1_sck_pa5 &spi1_miso_pa6 &spi1_mosi_pb5>;
  124. };
  125.  
  126. &backup_sram {
  127. status = "okay";
  128. };
  129.  
  130. &flash0 {
  131. partitions {
  132. compatible = "fixed-partitions";
  133. #address-cells = <1>;
  134. #size-cells = <1>;
  135.  
  136. /* 128KB for bootloader */
  137. boot_partition: partition@0 {
  138. label = "mcuboot";
  139. reg = <0x00000000 0x00020000>;
  140. read-only;
  141. };
  142.  
  143. /* storage: 128KB for settings */
  144. storage_partition: partition@20000 {
  145. label = "storage";
  146. reg = <0x00020000 0x00020000>;
  147. };
  148.  
  149. /* application image slot: 256KB */
  150. slot0_partition: partition@40000 {
  151. label = "image-0";
  152. reg = <0x00040000 0x00040000>;
  153. };
  154.  
  155. /* backup slot: 256KB */
  156. slot1_partition: partition@80000 {
  157. label = "image-1";
  158. reg = <0x00080000 0x00040000>;
  159. };
  160.  
  161. /* swap slot: 128KB */
  162. scratch_partition: partition@c0000 {
  163. label = "image-scratch";
  164. reg = <0x000c0000 0x00020000>;
  165. };
  166.  
  167. };
  168. };
  169.  
  170. &iwdg1 {
  171. status = "okay";
  172. };
  173.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement