10m50_devboard.dts 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. /*
  2. * Copyright (C) 2015 Altera Corporation. All rights reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms and conditions of the GNU General Public License,
  6. * version 2, as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope it will be useful, but WITHOUT
  9. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  11. * more details.
  12. *
  13. * You should have received a copy of the GNU General Public License along with
  14. * this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. /dts-v1/;
  17. / {
  18. model = "Altera NiosII Max10";
  19. compatible = "altr,niosii-max10";
  20. #address-cells = <1>;
  21. #size-cells = <1>;
  22. cpus {
  23. #address-cells = <1>;
  24. #size-cells = <0>;
  25. cpu: cpu@0 {
  26. device_type = "cpu";
  27. compatible = "altr,nios2-1.1";
  28. reg = <0x00000000>;
  29. interrupt-controller;
  30. #interrupt-cells = <1>;
  31. altr,exception-addr = <0xc8000120>;
  32. altr,fast-tlb-miss-addr = <0xc0000100>;
  33. altr,has-div = <1>;
  34. altr,has-initda = <1>;
  35. altr,has-mmu = <1>;
  36. altr,has-mul = <1>;
  37. altr,implementation = "fast";
  38. altr,pid-num-bits = <8>;
  39. altr,reset-addr = <0xd4000000>;
  40. altr,tlb-num-entries = <256>;
  41. altr,tlb-num-ways = <16>;
  42. altr,tlb-ptr-sz = <8>;
  43. clock-frequency = <75000000>;
  44. dcache-line-size = <32>;
  45. dcache-size = <32768>;
  46. icache-line-size = <32>;
  47. icache-size = <32768>;
  48. };
  49. };
  50. memory {
  51. device_type = "memory";
  52. reg = <0x08000000 0x08000000>,
  53. <0x00000000 0x00000400>;
  54. };
  55. sopc0: sopc@0 {
  56. device_type = "soc";
  57. ranges;
  58. #address-cells = <1>;
  59. #size-cells = <1>;
  60. compatible = "altr,avalon", "simple-bus";
  61. bus-frequency = <75000000>;
  62. jtag_uart: serial@18001530 {
  63. compatible = "altr,juart-1.0";
  64. reg = <0x18001530 0x00000008>;
  65. interrupt-parent = <&cpu>;
  66. interrupts = <7>;
  67. };
  68. a_16550_uart_0: serial@18001600 {
  69. compatible = "altr,16550-FIFO32", "ns16550a";
  70. reg = <0x18001600 0x00000200>;
  71. interrupt-parent = <&cpu>;
  72. interrupts = <1>;
  73. auto-flow-control = <1>;
  74. clock-frequency = <50000000>;
  75. fifo-size = <32>;
  76. reg-io-width = <4>;
  77. reg-shift = <2>;
  78. };
  79. sysid: sysid@18001528 {
  80. compatible = "altr,sysid-1.0";
  81. reg = <0x18001528 0x00000008>;
  82. id = <4207856382>;
  83. timestamp = <1431309290>;
  84. };
  85. rgmii_0_eth_tse_0: ethernet@400 {
  86. compatible = "altr,tse-msgdma-1.0", "altr,tse-1.0";
  87. reg = <0x00000400 0x00000400>,
  88. <0x00000820 0x00000020>,
  89. <0x00000800 0x00000020>,
  90. <0x000008c0 0x00000008>,
  91. <0x00000840 0x00000020>,
  92. <0x00000860 0x00000020>;
  93. reg-names = "control_port", "rx_csr", "rx_desc", "rx_resp", "tx_csr", "tx_desc";
  94. interrupt-parent = <&cpu>;
  95. interrupts = <2 3>;
  96. interrupt-names = "rx_irq", "tx_irq";
  97. rx-fifo-depth = <8192>;
  98. tx-fifo-depth = <8192>;
  99. address-bits = <48>;
  100. max-frame-size = <1518>;
  101. local-mac-address = [00 00 00 00 00 00];
  102. altr,has-supplementary-unicast;
  103. altr,enable-sup-addr = <1>;
  104. altr,has-hash-multicast-filter;
  105. altr,enable-hash = <1>;
  106. phy-mode = "rgmii-id";
  107. phy-handle = <&phy0>;
  108. rgmii_0_eth_tse_0_mdio: mdio {
  109. compatible = "altr,tse-mdio";
  110. #address-cells = <1>;
  111. #size-cells = <0>;
  112. phy0: ethernet-phy@0 {
  113. reg = <0>;
  114. device_type = "ethernet-phy";
  115. };
  116. };
  117. };
  118. enet_pll: clock@0 {
  119. compatible = "altr,pll-1.0";
  120. #clock-cells = <1>;
  121. enet_pll_c0: enet_pll_c0 {
  122. compatible = "fixed-clock";
  123. #clock-cells = <0>;
  124. clock-frequency = <125000000>;
  125. clock-output-names = "enet_pll-c0";
  126. };
  127. enet_pll_c1: enet_pll_c1 {
  128. compatible = "fixed-clock";
  129. #clock-cells = <0>;
  130. clock-frequency = <25000000>;
  131. clock-output-names = "enet_pll-c1";
  132. };
  133. enet_pll_c2: enet_pll_c2 {
  134. compatible = "fixed-clock";
  135. #clock-cells = <0>;
  136. clock-frequency = <2500000>;
  137. clock-output-names = "enet_pll-c2";
  138. };
  139. };
  140. sys_pll: clock@1 {
  141. compatible = "altr,pll-1.0";
  142. #clock-cells = <1>;
  143. sys_pll_c0: sys_pll_c0 {
  144. compatible = "fixed-clock";
  145. #clock-cells = <0>;
  146. clock-frequency = <100000000>;
  147. clock-output-names = "sys_pll-c0";
  148. };
  149. sys_pll_c1: sys_pll_c1 {
  150. compatible = "fixed-clock";
  151. #clock-cells = <0>;
  152. clock-frequency = <50000000>;
  153. clock-output-names = "sys_pll-c1";
  154. };
  155. sys_pll_c2: sys_pll_c2 {
  156. compatible = "fixed-clock";
  157. #clock-cells = <0>;
  158. clock-frequency = <75000000>;
  159. clock-output-names = "sys_pll-c2";
  160. };
  161. };
  162. sys_clk_timer: timer@18001440 {
  163. compatible = "altr,timer-1.0";
  164. reg = <0x18001440 0x00000020>;
  165. interrupt-parent = <&cpu>;
  166. interrupts = <0>;
  167. clock-frequency = <75000000>;
  168. };
  169. led_pio: gpio@180014d0 {
  170. compatible = "altr,pio-1.0";
  171. reg = <0x180014d0 0x00000010>;
  172. altr,gpio-bank-width = <4>;
  173. resetvalue = <15>;
  174. #gpio-cells = <2>;
  175. gpio-controller;
  176. };
  177. button_pio: gpio@180014c0 {
  178. compatible = "altr,pio-1.0";
  179. reg = <0x180014c0 0x00000010>;
  180. interrupt-parent = <&cpu>;
  181. interrupts = <6>;
  182. altr,gpio-bank-width = <3>;
  183. altr,interrupt-type = <2>;
  184. edge_type = <1>;
  185. level_trigger = <0>;
  186. resetvalue = <0>;
  187. #gpio-cells = <2>;
  188. gpio-controller;
  189. };
  190. sys_clk_timer_1: timer@880 {
  191. compatible = "altr,timer-1.0";
  192. reg = <0x00000880 0x00000020>;
  193. interrupt-parent = <&cpu>;
  194. interrupts = <5>;
  195. clock-frequency = <75000000>;
  196. };
  197. fpga_leds: leds {
  198. compatible = "gpio-leds";
  199. led_fpga0: fpga0 {
  200. label = "fpga_led0";
  201. gpios = <&led_pio 0 1>;
  202. };
  203. led_fpga1: fpga1 {
  204. label = "fpga_led1";
  205. gpios = <&led_pio 1 1>;
  206. };
  207. led_fpga2: fpga2 {
  208. label = "fpga_led2";
  209. gpios = <&led_pio 2 1>;
  210. };
  211. led_fpga3: fpga3 {
  212. label = "fpga_led3";
  213. gpios = <&led_pio 3 1>;
  214. };
  215. };
  216. };
  217. chosen {
  218. bootargs = "debug console=ttyS0,115200";
  219. };
  220. };