stm32f469-disco.dts 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. /*
  2. * Copyright 2016 - Lee Jones <[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 "stm32f469.dtsi"
  49. #include "stm32f469-pinctrl.dtsi"
  50. #include <dt-bindings/gpio/gpio.h>
  51. #include <dt-bindings/input/input.h>
  52. / {
  53. model = "STMicroelectronics STM32F469i-DISCO board";
  54. compatible = "st,stm32f469i-disco", "st,stm32f469";
  55. chosen {
  56. bootargs = "root=/dev/ram";
  57. stdout-path = "serial0:115200n8";
  58. };
  59. memory@0 {
  60. device_type = "memory";
  61. reg = <0x00000000 0x1000000>;
  62. };
  63. aliases {
  64. serial0 = &usart3;
  65. };
  66. mmc_vcard: mmc_vcard {
  67. compatible = "regulator-fixed";
  68. regulator-name = "mmc_vcard";
  69. regulator-min-microvolt = <3300000>;
  70. regulator-max-microvolt = <3300000>;
  71. };
  72. vdd_dsi: vdd-dsi {
  73. compatible = "regulator-fixed";
  74. regulator-name = "vdd_dsi";
  75. regulator-min-microvolt = <3300000>;
  76. regulator-max-microvolt = <3300000>;
  77. };
  78. soc {
  79. dma-ranges = <0xc0000000 0x0 0x10000000>;
  80. };
  81. leds {
  82. compatible = "gpio-leds";
  83. led-green {
  84. gpios = <&gpiog 6 GPIO_ACTIVE_LOW>;
  85. linux,default-trigger = "heartbeat";
  86. };
  87. led-orange {
  88. gpios = <&gpiod 4 GPIO_ACTIVE_LOW>;
  89. };
  90. led-red {
  91. gpios = <&gpiod 5 GPIO_ACTIVE_LOW>;
  92. };
  93. led-blue {
  94. gpios = <&gpiok 3 GPIO_ACTIVE_LOW>;
  95. };
  96. };
  97. gpio-keys {
  98. compatible = "gpio-keys";
  99. autorepeat;
  100. button-0 {
  101. label = "User";
  102. linux,code = <KEY_WAKEUP>;
  103. gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>;
  104. };
  105. };
  106. /* This turns on vbus for otg for host mode (dwc2) */
  107. vcc5v_otg: vcc5v-otg-regulator {
  108. compatible = "regulator-fixed";
  109. enable-active-high;
  110. gpio = <&gpiob 2 GPIO_ACTIVE_HIGH>;
  111. regulator-name = "vcc5_host1";
  112. regulator-always-on;
  113. };
  114. };
  115. &rcc {
  116. compatible = "st,stm32f469-rcc", "st,stm32f42xx-rcc", "st,stm32-rcc";
  117. };
  118. &clk_hse {
  119. clock-frequency = <8000000>;
  120. };
  121. &dma2d {
  122. status = "okay";
  123. };
  124. &dsi {
  125. #address-cells = <1>;
  126. #size-cells = <0>;
  127. status = "okay";
  128. ports {
  129. #address-cells = <1>;
  130. #size-cells = <0>;
  131. port@0 {
  132. reg = <0>;
  133. dsi_in: endpoint {
  134. remote-endpoint = <&ltdc_out_dsi>;
  135. };
  136. };
  137. port@1 {
  138. reg = <1>;
  139. dsi_out: endpoint {
  140. remote-endpoint = <&dsi_panel_in>;
  141. };
  142. };
  143. };
  144. panel-dsi@0 {
  145. compatible = "orisetech,otm8009a";
  146. reg = <0>; /* dsi virtual channel (0..3) */
  147. reset-gpios = <&gpioh 7 GPIO_ACTIVE_LOW>;
  148. power-supply = <&vdd_dsi>;
  149. status = "okay";
  150. port {
  151. dsi_panel_in: endpoint {
  152. remote-endpoint = <&dsi_out>;
  153. };
  154. };
  155. };
  156. };
  157. &ltdc {
  158. status = "okay";
  159. port {
  160. ltdc_out_dsi: endpoint@0 {
  161. remote-endpoint = <&dsi_in>;
  162. };
  163. };
  164. };
  165. &rtc {
  166. status = "okay";
  167. };
  168. &timers1 {
  169. status = "okay";
  170. pwm {
  171. pinctrl-0 = <&pwm1_pins>;
  172. pinctrl-names = "default";
  173. status = "okay";
  174. };
  175. timer@0 {
  176. status = "okay";
  177. };
  178. };
  179. &timers3 {
  180. status = "okay";
  181. pwm {
  182. pinctrl-0 = <&pwm3_pins>;
  183. pinctrl-names = "default";
  184. status = "okay";
  185. };
  186. timer@2 {
  187. status = "okay";
  188. };
  189. };
  190. &sdio {
  191. status = "okay";
  192. vmmc-supply = <&mmc_vcard>;
  193. cd-gpios = <&gpiog 2 GPIO_ACTIVE_LOW>;
  194. broken-cd;
  195. pinctrl-names = "default", "opendrain";
  196. pinctrl-0 = <&sdio_pins>;
  197. pinctrl-1 = <&sdio_pins_od>;
  198. bus-width = <4>;
  199. };
  200. &timers5 {
  201. /* Override timer5 to act as clockevent */
  202. compatible = "st,stm32-timer";
  203. interrupts = <50>;
  204. status = "okay";
  205. /delete-property/#address-cells;
  206. /delete-property/#size-cells;
  207. /delete-property/clock-names;
  208. /delete-node/pwm;
  209. /delete-node/timer@4;
  210. };
  211. &usart3 {
  212. pinctrl-0 = <&usart3_pins_a>;
  213. pinctrl-names = "default";
  214. status = "okay";
  215. };
  216. &usbotg_fs {
  217. dr_mode = "host";
  218. pinctrl-0 = <&usbotg_fs_pins_a>;
  219. pinctrl-names = "default";
  220. status = "okay";
  221. };