stm32429i-eval.dts 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (C) 2015, STMicroelectronics - All Rights Reserved
  4. * Author: Maxime Coquelin <mcoquelin.stm32@gmail.com> for STMicroelectronics.
  5. */
  6. /dts-v1/;
  7. #include "stm32f429.dtsi"
  8. #include "stm32f429-pinctrl.dtsi"
  9. #include <dt-bindings/input/input.h>
  10. #include <dt-bindings/gpio/gpio.h>
  11. / {
  12. model = "STMicroelectronics STM32429i-EVAL board";
  13. compatible = "st,stm32429i-eval", "st,stm32f429";
  14. chosen {
  15. bootargs = "root=/dev/ram";
  16. stdout-path = "serial0:115200n8";
  17. };
  18. memory {
  19. reg = <0x00000000 0x2000000>;
  20. };
  21. aliases {
  22. serial0 = &usart1;
  23. };
  24. clocks {
  25. clk_ext_camera: clk-ext-camera {
  26. #clock-cells = <0>;
  27. compatible = "fixed-clock";
  28. clock-frequency = <24000000>;
  29. };
  30. };
  31. soc {
  32. dma-ranges = <0xc0000000 0x0 0x10000000>;
  33. };
  34. regulators {
  35. compatible = "simple-bus";
  36. #address-cells = <1>;
  37. #size-cells = <0>;
  38. reg_vref: regulator@0 {
  39. compatible = "regulator-fixed";
  40. reg = <0>;
  41. regulator-name = "vref";
  42. regulator-min-microvolt = <3300000>;
  43. regulator-max-microvolt = <3300000>;
  44. };
  45. };
  46. leds {
  47. compatible = "gpio-leds";
  48. green {
  49. gpios = <&gpiog 6 1>;
  50. linux,default-trigger = "heartbeat";
  51. };
  52. orange {
  53. gpios = <&gpiog 7 1>;
  54. };
  55. red {
  56. gpios = <&gpiog 10 1>;
  57. };
  58. blue {
  59. gpios = <&gpiog 12 1>;
  60. };
  61. };
  62. gpio_keys {
  63. compatible = "gpio-keys";
  64. #address-cells = <1>;
  65. #size-cells = <0>;
  66. autorepeat;
  67. button@0 {
  68. label = "Wake up";
  69. linux,code = <KEY_WAKEUP>;
  70. gpios = <&gpioa 0 0>;
  71. };
  72. button@1 {
  73. label = "Tamper";
  74. linux,code = <KEY_RESTART>;
  75. gpios = <&gpioc 13 0>;
  76. };
  77. };
  78. usbotg_hs_phy: usbphy {
  79. #phy-cells = <0>;
  80. compatible = "usb-nop-xceiv";
  81. clocks = <&rcc 0 STM32F4_AHB1_CLOCK(OTGHSULPI)>;
  82. clock-names = "main_clk";
  83. };
  84. panel_rgb: panel-rgb {
  85. compatible = "ampire,am-480272h3tmqw-t01h";
  86. status = "okay";
  87. port {
  88. panel_in_rgb: endpoint {
  89. remote-endpoint = <&ltdc_out_rgb>;
  90. };
  91. };
  92. };
  93. mmc_vcard: mmc_vcard {
  94. compatible = "regulator-fixed";
  95. regulator-name = "mmc_vcard";
  96. regulator-min-microvolt = <3300000>;
  97. regulator-max-microvolt = <3300000>;
  98. };
  99. };
  100. &adc {
  101. pinctrl-names = "default";
  102. pinctrl-0 = <&adc3_in8_pin>;
  103. vref-supply = <&reg_vref>;
  104. status = "okay";
  105. adc3: adc@200 {
  106. st,adc-channels = <8>;
  107. status = "okay";
  108. };
  109. };
  110. &clk_hse {
  111. clock-frequency = <25000000>;
  112. };
  113. &crc {
  114. status = "okay";
  115. };
  116. &dcmi {
  117. status = "okay";
  118. port {
  119. dcmi_0: endpoint {
  120. remote-endpoint = <&ov2640_0>;
  121. bus-width = <8>;
  122. hsync-active = <0>;
  123. vsync-active = <0>;
  124. pclk-sample = <1>;
  125. };
  126. };
  127. };
  128. &i2c1 {
  129. pinctrl-0 = <&i2c1_pins>;
  130. pinctrl-names = "default";
  131. status = "okay";
  132. ov2640: camera@30 {
  133. compatible = "ovti,ov2640";
  134. reg = <0x30>;
  135. resetb-gpios = <&stmpegpio 2 GPIO_ACTIVE_HIGH>;
  136. pwdn-gpios = <&stmpegpio 0 GPIO_ACTIVE_LOW>;
  137. clocks = <&clk_ext_camera>;
  138. clock-names = "xvclk";
  139. status = "okay";
  140. port {
  141. ov2640_0: endpoint {
  142. remote-endpoint = <&dcmi_0>;
  143. };
  144. };
  145. };
  146. stmpe1600: stmpe1600@42 {
  147. compatible = "st,stmpe1600";
  148. reg = <0x42>;
  149. interrupts = <8 3>;
  150. interrupt-parent = <&gpioi>;
  151. interrupt-controller;
  152. wakeup-source;
  153. stmpegpio: stmpe_gpio {
  154. compatible = "st,stmpe-gpio";
  155. gpio-controller;
  156. #gpio-cells = <2>;
  157. };
  158. };
  159. };
  160. &iwdg {
  161. status = "okay";
  162. timeout-sec = <32>;
  163. };
  164. &ltdc {
  165. status = "okay";
  166. pinctrl-0 = <&ltdc_pins>;
  167. pinctrl-names = "default";
  168. dma-ranges;
  169. port {
  170. ltdc_out_rgb: endpoint {
  171. remote-endpoint = <&panel_in_rgb>;
  172. };
  173. };
  174. };
  175. &mac {
  176. status = "okay";
  177. pinctrl-0 = <&ethernet_mii>;
  178. pinctrl-names = "default";
  179. phy-mode = "mii";
  180. phy-handle = <&phy1>;
  181. mdio0 {
  182. #address-cells = <1>;
  183. #size-cells = <0>;
  184. compatible = "snps,dwmac-mdio";
  185. phy1: ethernet-phy@1 {
  186. reg = <1>;
  187. };
  188. };
  189. };
  190. &rtc {
  191. status = "okay";
  192. };
  193. &sdio {
  194. status = "okay";
  195. vmmc-supply = <&mmc_vcard>;
  196. cd-gpios = <&stmpegpio 15 GPIO_ACTIVE_LOW>;
  197. pinctrl-names = "default", "opendrain";
  198. pinctrl-0 = <&sdio_pins>;
  199. pinctrl-1 = <&sdio_pins_od>;
  200. bus-width = <4>;
  201. max-frequency = <14000000>;
  202. };
  203. &timers1 {
  204. status = "okay";
  205. pwm {
  206. pinctrl-0 = <&pwm1_pins>;
  207. pinctrl-names = "default";
  208. status = "okay";
  209. };
  210. timer@0 {
  211. status = "okay";
  212. };
  213. };
  214. &timers3 {
  215. status = "okay";
  216. pwm {
  217. pinctrl-0 = <&pwm3_pins>;
  218. pinctrl-names = "default";
  219. status = "okay";
  220. };
  221. timer@2 {
  222. status = "okay";
  223. };
  224. };
  225. &usart1 {
  226. pinctrl-0 = <&usart1_pins_a>;
  227. pinctrl-names = "default";
  228. status = "okay";
  229. };
  230. &usbotg_hs {
  231. dr_mode = "host";
  232. phys = <&usbotg_hs_phy>;
  233. phy-names = "usb2-phy";
  234. pinctrl-0 = <&usbotg_hs_pins_a>;
  235. pinctrl-names = "default";
  236. status = "okay";
  237. };