stm32429i-eval.dts 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. /*
  2. * Copyright 2015 - Maxime Coquelin <[email protected]>
  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. / {
  53. model = "STMicroelectronics STM32429i-EVAL board";
  54. compatible = "st,stm32429i-eval", "st,stm32f429";
  55. chosen {
  56. bootargs = "root=/dev/ram";
  57. stdout-path = "serial0:115200n8";
  58. };
  59. memory@0 {
  60. device_type = "memory";
  61. reg = <0x00000000 0x2000000>;
  62. };
  63. aliases {
  64. serial0 = &usart1;
  65. };
  66. clocks {
  67. clk_ext_camera: clk-ext-camera {
  68. #clock-cells = <0>;
  69. compatible = "fixed-clock";
  70. clock-frequency = <24000000>;
  71. };
  72. };
  73. soc {
  74. dma-ranges = <0xc0000000 0x0 0x10000000>;
  75. };
  76. vdda: regulator-vdda {
  77. compatible = "regulator-fixed";
  78. regulator-name = "vdda";
  79. regulator-min-microvolt = <3300000>;
  80. regulator-max-microvolt = <3300000>;
  81. };
  82. vref: regulator-vref {
  83. compatible = "regulator-fixed";
  84. regulator-name = "vref";
  85. regulator-min-microvolt = <3300000>;
  86. regulator-max-microvolt = <3300000>;
  87. };
  88. vdd_panel: vdd-panel {
  89. compatible = "regulator-fixed";
  90. regulator-name = "vdd_panel";
  91. regulator-min-microvolt = <3300000>;
  92. regulator-max-microvolt = <3300000>;
  93. };
  94. leds {
  95. compatible = "gpio-leds";
  96. led-green {
  97. gpios = <&gpiog 6 1>;
  98. linux,default-trigger = "heartbeat";
  99. };
  100. led-orange {
  101. gpios = <&gpiog 7 1>;
  102. };
  103. led-red {
  104. gpios = <&gpiog 10 1>;
  105. };
  106. led-blue {
  107. gpios = <&gpiog 12 1>;
  108. };
  109. };
  110. gpio-keys {
  111. compatible = "gpio-keys";
  112. autorepeat;
  113. button-0 {
  114. label = "Wake up";
  115. linux,code = <KEY_WAKEUP>;
  116. gpios = <&gpioa 0 0>;
  117. };
  118. button-1 {
  119. label = "Tamper";
  120. linux,code = <KEY_RESTART>;
  121. gpios = <&gpioc 13 0>;
  122. };
  123. };
  124. usbotg_hs_phy: usbphy {
  125. #phy-cells = <0>;
  126. compatible = "usb-nop-xceiv";
  127. clocks = <&rcc 0 STM32F4_AHB1_CLOCK(OTGHSULPI)>;
  128. clock-names = "main_clk";
  129. };
  130. panel_rgb: panel-rgb {
  131. compatible = "ampire,am-480272h3tmqw-t01h";
  132. power-supply = <&vdd_panel>;
  133. status = "okay";
  134. port {
  135. panel_in_rgb: endpoint {
  136. remote-endpoint = <&ltdc_out_rgb>;
  137. };
  138. };
  139. };
  140. mmc_vcard: mmc_vcard {
  141. compatible = "regulator-fixed";
  142. regulator-name = "mmc_vcard";
  143. regulator-min-microvolt = <3300000>;
  144. regulator-max-microvolt = <3300000>;
  145. };
  146. };
  147. &adc {
  148. pinctrl-names = "default";
  149. pinctrl-0 = <&adc3_in8_pin>;
  150. vdda-supply = <&vdda>;
  151. vref-supply = <&vref>;
  152. status = "okay";
  153. adc3: adc@200 {
  154. st,adc-channels = <8>;
  155. status = "okay";
  156. };
  157. };
  158. &clk_hse {
  159. clock-frequency = <25000000>;
  160. };
  161. &crc {
  162. status = "okay";
  163. };
  164. &dcmi {
  165. status = "okay";
  166. port {
  167. dcmi_0: endpoint {
  168. remote-endpoint = <&ov2640_0>;
  169. bus-type = <5>;
  170. bus-width = <8>;
  171. hsync-active = <0>;
  172. vsync-active = <0>;
  173. pclk-sample = <1>;
  174. };
  175. };
  176. };
  177. &i2c1 {
  178. pinctrl-0 = <&i2c1_pins>;
  179. pinctrl-names = "default";
  180. status = "okay";
  181. ov2640: camera@30 {
  182. compatible = "ovti,ov2640";
  183. reg = <0x30>;
  184. resetb-gpios = <&stmpegpio 2 GPIO_ACTIVE_HIGH>;
  185. pwdn-gpios = <&stmpegpio 0 GPIO_ACTIVE_LOW>;
  186. clocks = <&clk_ext_camera>;
  187. clock-names = "xvclk";
  188. status = "okay";
  189. port {
  190. ov2640_0: endpoint {
  191. remote-endpoint = <&dcmi_0>;
  192. };
  193. };
  194. };
  195. stmpe1600: stmpe1600@42 {
  196. compatible = "st,stmpe1600";
  197. reg = <0x42>;
  198. interrupts = <8 3>;
  199. interrupt-parent = <&gpioi>;
  200. interrupt-controller;
  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. };