stm32f746-disco.dts 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /*
  2. * Copyright 2016 - Michael Kurz <michi.kurz@gmail.com>
  3. * Copyright 2016 - Vikas MANOCHA <vikas.manocha@st.com>
  4. *
  5. * Based on:
  6. * stm32f469-disco.dts from Linux
  7. * Copyright 2016 - Lee Jones <lee.jones@linaro.org>
  8. *
  9. * This file is dual-licensed: you can use it either under the terms
  10. * of the GPL or the X11 license, at your option. Note that this dual
  11. * licensing only applies to this file, and not this project as a
  12. * whole.
  13. *
  14. * a) This file is free software; you can redistribute it and/or
  15. * modify it under the terms of the GNU General Public License as
  16. * published by the Free Software Foundation; either version 2 of the
  17. * License, or (at your option) any later version.
  18. *
  19. * This file is distributed in the hope that it will be useful,
  20. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22. * GNU General Public License for more details.
  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 "stm32f746.dtsi"
  49. #include <dt-bindings/memory/stm32-sdram.h>
  50. / {
  51. model = "STMicroelectronics STM32F746-DISCO board";
  52. compatible = "st,stm32f746-disco", "st,stm32f746";
  53. chosen {
  54. bootargs = "root=/dev/ram rdinit=/linuxrc";
  55. stdout-path = "serial0:115200n8";
  56. };
  57. memory {
  58. reg = <0xC0000000 0x800000>;
  59. };
  60. aliases {
  61. serial0 = &usart1;
  62. spi0 = &qspi;
  63. };
  64. };
  65. &clk_hse {
  66. clock-frequency = <25000000>;
  67. };
  68. &usart1 {
  69. pinctrl-0 = <&usart1_pins_a>;
  70. pinctrl-names = "default";
  71. status = "okay";
  72. };
  73. &fmc {
  74. pinctrl-0 = <&fmc_pins>;
  75. pinctrl-names = "default";
  76. status = "okay";
  77. mr-nbanks = <1>;
  78. /* sdram memory configuration from sdram datasheet IS42S16400J */
  79. bank1: bank@0 {
  80. st,sdram-control = /bits/ 8 <NO_COL_8 NO_ROW_12 MWIDTH_16 BANKS_2
  81. CAS_3 RD_BURST_EN RD_PIPE_DL_0>;
  82. st,sdram-timing = /bits/ 8 <TMRD_1 TXSR_60 TRAS_42 TRC_60 TRP_18
  83. TRCD_18>;
  84. };
  85. };
  86. &mac {
  87. status = "okay";
  88. pinctrl-0 = <&ethernet_mii>;
  89. phy-mode = "rmii";
  90. phy-handle = <&phy0>;
  91. mdio0 {
  92. #address-cells = <1>;
  93. #size-cells = <0>;
  94. compatible = "snps,dwmac-mdio";
  95. phy0: ethernet-phy@0 {
  96. reg = <0>;
  97. };
  98. };
  99. };
  100. &qspi {
  101. pinctrl-0 = <&qspi_pins>;
  102. status = "okay";
  103. qflash0: n25q128a {
  104. #address-cells = <1>;
  105. #size-cells = <1>;
  106. compatible = "micron,n25q128a13", "spi-flash";
  107. spi-max-frequency = <108000000>;
  108. spi-tx-bus-width = <1>;
  109. spi-rx-bus-width = <1>;
  110. memory-map = <0x90000000 0x1000000>;
  111. reg = <0>;
  112. };
  113. };