stm32429i-eval.dts 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. /*
  2. * Copyright 2015 - Maxime Coquelin <mcoquelin.stm32@gmail.com>
  3. *
  4. * This file is dual-licensed: you can use it either under the terms
  5. * of the GPL or the X11 license, at your option. Note that this dual
  6. * licensing only applies to this file, and not this project as a
  7. * whole.
  8. *
  9. * a) This file is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License as
  11. * published by the Free Software Foundation; either version 2 of the
  12. * License, or (at your option) any later version.
  13. *
  14. * This file is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public
  20. * License along with this file; if not, write to the Free
  21. * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
  22. * MA 02110-1301 USA
  23. *
  24. * Or, alternatively,
  25. *
  26. * b) Permission is hereby granted, free of charge, to any person
  27. * obtaining a copy of this software and associated documentation
  28. * files (the "Software"), to deal in the Software without
  29. * restriction, including without limitation the rights to use,
  30. * copy, modify, merge, publish, distribute, sublicense, and/or
  31. * sell copies of the Software, and to permit persons to whom the
  32. * Software is furnished to do so, subject to the following
  33. * conditions:
  34. *
  35. * The above copyright notice and this permission notice shall be
  36. * included in all copies or substantial portions of the Software.
  37. *
  38. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  39. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  40. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  41. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  42. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  43. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  44. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  45. * OTHER DEALINGS IN THE SOFTWARE.
  46. */
  47. /dts-v1/;
  48. #include "stm32f429.dtsi"
  49. #include "stm32f429-pinctrl.dtsi"
  50. #include <dt-bindings/input/input.h>
  51. #include <dt-bindings/gpio/gpio.h>
  52. #include <dt-bindings/media/video-interfaces.h>
  53. / {
  54. model = "STMicroelectronics STM32429i-EVAL board";
  55. compatible = "st,stm32429i-eval", "st,stm32f429";
  56. chosen {
  57. bootargs = "root=/dev/ram";
  58. stdout-path = "serial0:115200n8";
  59. };
  60. memory@0 {
  61. device_type = "memory";
  62. reg = <0x00000000 0x2000000>;
  63. };
  64. aliases {
  65. serial0 = &usart1;
  66. };
  67. clocks {
  68. clk_ext_camera: clk-ext-camera {
  69. #clock-cells = <0>;
  70. compatible = "fixed-clock";
  71. clock-frequency = <24000000>;
  72. };
  73. };
  74. soc {
  75. dma-ranges = <0xc0000000 0x0 0x10000000>;
  76. };
  77. vdda: regulator-vdda {
  78. compatible = "regulator-fixed";
  79. regulator-name = "vdda";
  80. regulator-min-microvolt = <3300000>;
  81. regulator-max-microvolt = <3300000>;
  82. };
  83. vref: regulator-vref {
  84. compatible = "regulator-fixed";
  85. regulator-name = "vref";
  86. regulator-min-microvolt = <3300000>;
  87. regulator-max-microvolt = <3300000>;
  88. };
  89. vdd_panel: vdd-panel {
  90. compatible = "regulator-fixed";
  91. regulator-name = "vdd_panel";
  92. regulator-min-microvolt = <3300000>;
  93. regulator-max-microvolt = <3300000>;
  94. };
  95. leds {
  96. compatible = "gpio-leds";
  97. led-green {
  98. gpios = <&gpiog 6 1>;
  99. linux,default-trigger = "heartbeat";
  100. };
  101. led-orange {
  102. gpios = <&gpiog 7 1>;
  103. };
  104. led-red {
  105. gpios = <&gpiog 10 1>;
  106. };
  107. led-blue {
  108. gpios = <&gpiog 12 1>;
  109. };
  110. };
  111. gpio-keys {
  112. compatible = "gpio-keys";
  113. autorepeat;
  114. button-0 {
  115. label = "Wake up";
  116. linux,code = <KEY_WAKEUP>;
  117. gpios = <&gpioa 0 0>;
  118. };
  119. button-1 {
  120. label = "Tamper";
  121. linux,code = <KEY_RESTART>;
  122. gpios = <&gpioc 13 0>;
  123. };
  124. };
  125. usbotg_hs_phy: usbphy {
  126. #phy-cells = <0>;
  127. compatible = "usb-nop-xceiv";
  128. clocks = <&rcc 0 STM32F4_AHB1_CLOCK(OTGHSULPI)>;
  129. clock-names = "main_clk";
  130. };
  131. panel_rgb: panel-rgb {
  132. compatible = "ampire,am-480272h3tmqw-t01h";
  133. power-supply = <&vdd_panel>;
  134. status = "okay";
  135. port {
  136. panel_in_rgb: endpoint {
  137. remote-endpoint = <&ltdc_out_rgb>;
  138. };
  139. };
  140. };
  141. mmc_vcard: mmc_vcard {
  142. compatible = "regulator-fixed";
  143. regulator-name = "mmc_vcard";
  144. regulator-min-microvolt = <3300000>;
  145. regulator-max-microvolt = <3300000>;
  146. };
  147. };
  148. &adc {
  149. pinctrl-names = "default";
  150. pinctrl-0 = <&adc3_in8_pin>;
  151. vdda-supply = <&vdda>;
  152. vref-supply = <&vref>;
  153. status = "okay";
  154. adc3: adc@200 {
  155. st,adc-channels = <8>;
  156. status = "okay";
  157. };
  158. };
  159. &clk_hse {
  160. clock-frequency = <25000000>;
  161. };
  162. &crc {
  163. status = "okay";
  164. };
  165. &dcmi {
  166. status = "okay";
  167. port {
  168. dcmi_0: endpoint {
  169. remote-endpoint = <&ov2640_0>;
  170. bus-type = <MEDIA_BUS_TYPE_PARALLEL>;
  171. bus-width = <8>;
  172. hsync-active = <0>;
  173. vsync-active = <0>;
  174. pclk-sample = <1>;
  175. };
  176. };
  177. };
  178. &i2c1 {
  179. pinctrl-0 = <&i2c1_pins>;
  180. pinctrl-names = "default";
  181. status = "okay";
  182. ov2640: camera@30 {
  183. compatible = "ovti,ov2640";
  184. reg = <0x30>;
  185. resetb-gpios = <&stmpegpio 2 GPIO_ACTIVE_HIGH>;
  186. pwdn-gpios = <&stmpegpio 0 GPIO_ACTIVE_LOW>;
  187. clocks = <&clk_ext_camera>;
  188. clock-names = "xvclk";
  189. status = "okay";
  190. port {
  191. ov2640_0: endpoint {
  192. remote-endpoint = <&dcmi_0>;
  193. };
  194. };
  195. };
  196. stmpe1600: stmpe1600@42 {
  197. compatible = "st,stmpe1600";
  198. reg = <0x42>;
  199. interrupts = <8 3>;
  200. interrupt-parent = <&gpioi>;
  201. wakeup-source;
  202. stmpegpio: stmpe_gpio {
  203. compatible = "st,stmpe-gpio";
  204. gpio-controller;
  205. #gpio-cells = <2>;
  206. };
  207. };
  208. };
  209. &iwdg {
  210. status = "okay";
  211. timeout-sec = <32>;
  212. };
  213. &ltdc {
  214. status = "okay";
  215. pinctrl-0 = <&ltdc_pins_a>;
  216. pinctrl-names = "default";
  217. port {
  218. ltdc_out_rgb: endpoint {
  219. remote-endpoint = <&panel_in_rgb>;
  220. };
  221. };
  222. };
  223. &mac {
  224. status = "okay";
  225. pinctrl-0 = <&ethernet_mii>;
  226. pinctrl-names = "default";
  227. phy-mode = "mii";
  228. phy-handle = <&phy1>;
  229. mdio0 {
  230. #address-cells = <1>;
  231. #size-cells = <0>;
  232. compatible = "snps,dwmac-mdio";
  233. phy1: ethernet-phy@1 {
  234. reg = <1>;
  235. };
  236. };
  237. };
  238. &rtc {
  239. status = "okay";
  240. };
  241. &sdio {
  242. status = "okay";
  243. vmmc-supply = <&mmc_vcard>;
  244. cd-gpios = <&stmpegpio 15 GPIO_ACTIVE_LOW>;
  245. pinctrl-names = "default", "opendrain";
  246. pinctrl-0 = <&sdio_pins>;
  247. pinctrl-1 = <&sdio_pins_od>;
  248. bus-width = <4>;
  249. max-frequency = <12500000>;
  250. };
  251. &timers1 {
  252. status = "okay";
  253. pwm {
  254. pinctrl-0 = <&pwm1_pins>;
  255. pinctrl-names = "default";
  256. status = "okay";
  257. };
  258. timer@0 {
  259. status = "okay";
  260. };
  261. };
  262. &timers3 {
  263. status = "okay";
  264. pwm {
  265. pinctrl-0 = <&pwm3_pins>;
  266. pinctrl-names = "default";
  267. status = "okay";
  268. };
  269. timer@2 {
  270. status = "okay";
  271. };
  272. };
  273. &timers5 {
  274. /* Override timer5 to act as clockevent */
  275. compatible = "st,stm32-timer";
  276. interrupts = <50>;
  277. status = "okay";
  278. /delete-property/#address-cells;
  279. /delete-property/#size-cells;
  280. /delete-property/clock-names;
  281. /delete-node/pwm;
  282. /delete-node/timer@4;
  283. };
  284. &usart1 {
  285. pinctrl-0 = <&usart1_pins_a>;
  286. pinctrl-names = "default";
  287. status = "okay";
  288. };
  289. &usbotg_hs {
  290. dr_mode = "host";
  291. phys = <&usbotg_hs_phy>;
  292. phy-names = "usb2-phy";
  293. pinctrl-0 = <&usbotg_hs_pins_a>;
  294. pinctrl-names = "default";
  295. status = "okay";
  296. };