3c120_devboard.dts 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. /*
  2. * Copyright (C) 2013 Altera Corporation
  3. *
  4. * This file is generated by sopc2dts.
  5. *
  6. * SPDX-License-Identifier: GPL-2.0+
  7. */
  8. /dts-v1/;
  9. / {
  10. model = "altr,qsys_ghrd_3c120";
  11. compatible = "altr,qsys_ghrd_3c120";
  12. #address-cells = <1>;
  13. #size-cells = <1>;
  14. cpus {
  15. #address-cells = <1>;
  16. #size-cells = <0>;
  17. cpu: cpu@0x0 {
  18. device_type = "cpu";
  19. compatible = "altr,nios2-1.0";
  20. reg = <0x00000000>;
  21. interrupt-controller;
  22. #interrupt-cells = <1>;
  23. clock-frequency = <125000000>;
  24. dcache-line-size = <32>;
  25. icache-line-size = <32>;
  26. dcache-size = <32768>;
  27. icache-size = <32768>;
  28. altr,implementation = "fast";
  29. altr,pid-num-bits = <8>;
  30. altr,tlb-num-ways = <16>;
  31. altr,tlb-num-entries = <128>;
  32. altr,tlb-ptr-sz = <7>;
  33. altr,has-div = <1>;
  34. altr,has-mul = <1>;
  35. altr,reset-addr = <0xc2800000>;
  36. altr,fast-tlb-miss-addr = <0xc7fff400>;
  37. altr,exception-addr = <0xd0000020>;
  38. altr,has-initda = <1>;
  39. altr,has-mmu = <1>;
  40. };
  41. };
  42. memory@0 {
  43. device_type = "memory";
  44. reg = <0x10000000 0x08000000>,
  45. <0x07fff400 0x00000400>;
  46. };
  47. sopc@0 {
  48. device_type = "soc";
  49. ranges;
  50. #address-cells = <1>;
  51. #size-cells = <1>;
  52. compatible = "altr,avalon", "simple-bus";
  53. bus-frequency = <125000000>;
  54. pb_cpu_to_io: bridge@0x8000000 {
  55. compatible = "simple-bus";
  56. reg = <0x08000000 0x00800000>;
  57. #address-cells = <1>;
  58. #size-cells = <1>;
  59. ranges = <0x00002000 0x08002000 0x00002000>,
  60. <0x00004000 0x08004000 0x00000400>,
  61. <0x00004400 0x08004400 0x00000040>,
  62. <0x00004800 0x08004800 0x00000040>,
  63. <0x00004c80 0x08004c80 0x00000020>,
  64. <0x00004cc0 0x08004cc0 0x00000010>,
  65. <0x00004ce0 0x08004ce0 0x00000010>,
  66. <0x00004d00 0x08004d00 0x00000010>,
  67. <0x00004d40 0x08004d40 0x00000008>,
  68. <0x00004d50 0x08004d50 0x00000008>,
  69. <0x00008000 0x08008000 0x00000020>,
  70. <0x00400000 0x08400000 0x00000020>;
  71. timer_1ms: timer@0x400000 {
  72. compatible = "altr,timer-1.0";
  73. reg = <0x00400000 0x00000020>;
  74. interrupt-parent = <&cpu>;
  75. interrupts = <11>;
  76. clock-frequency = <125000000>;
  77. };
  78. timer_0: timer@0x8000 {
  79. compatible = "altr,timer-1.0";
  80. reg = < 0x00008000 0x00000020 >;
  81. interrupt-parent = < &cpu >;
  82. interrupts = < 5 >;
  83. clock-frequency = < 125000000 >;
  84. };
  85. sysid: sysid@0x4d40 {
  86. compatible = "altr,sysid-1.0";
  87. reg = <0x00004d40 0x00000008>;
  88. };
  89. jtag_uart: serial@0x4d50 {
  90. compatible = "altr,juart-1.0";
  91. reg = <0x00004d50 0x00000008>;
  92. interrupt-parent = <&cpu>;
  93. interrupts = <1>;
  94. };
  95. tse_mac: ethernet@0x4000 {
  96. compatible = "altr,tse-1.0";
  97. reg = <0x00004000 0x00000400>,
  98. <0x00004400 0x00000040>,
  99. <0x00004800 0x00000040>,
  100. <0x00002000 0x00002000>;
  101. reg-names = "control_port", "rx_csr", "tx_csr", "s1";
  102. interrupt-parent = <&cpu>;
  103. interrupts = <2 3>;
  104. interrupt-names = "rx_irq", "tx_irq";
  105. rx-fifo-depth = <8192>;
  106. tx-fifo-depth = <8192>;
  107. max-frame-size = <1518>;
  108. local-mac-address = [ 00 00 00 00 00 00 ];
  109. phy-mode = "rgmii-id";
  110. phy-handle = <&phy0>;
  111. tse_mac_mdio: mdio {
  112. compatible = "altr,tse-mdio";
  113. #address-cells = <1>;
  114. #size-cells = <0>;
  115. phy0: ethernet-phy@18 {
  116. reg = <18>;
  117. device_type = "ethernet-phy";
  118. };
  119. };
  120. };
  121. uart: serial@0x4c80 {
  122. compatible = "altr,uart-1.0";
  123. reg = <0x00004c80 0x00000020>;
  124. interrupt-parent = <&cpu>;
  125. interrupts = <10>;
  126. current-speed = <115200>;
  127. clock-frequency = <62500000>;
  128. };
  129. user_led_pio_8out: gpio@0x4cc0 {
  130. compatible = "altr,pio-1.0";
  131. reg = <0x00004cc0 0x00000010>;
  132. resetvalue = <255>;
  133. altr,gpio-bank-width = <8>;
  134. #gpio-cells = <2>;
  135. gpio-controller;
  136. gpio-bank-name = "led";
  137. };
  138. user_dipsw_pio_8in: gpio@0x4ce0 {
  139. compatible = "altr,pio-1.0";
  140. reg = <0x00004ce0 0x00000010>;
  141. interrupt-parent = <&cpu>;
  142. interrupts = <8>;
  143. edge_type = <2>;
  144. level_trigger = <0>;
  145. resetvalue = <0>;
  146. altr,gpio-bank-width = <8>;
  147. #gpio-cells = <2>;
  148. gpio-controller;
  149. gpio-bank-name = "dipsw";
  150. };
  151. user_pb_pio_4in: gpio@0x4d00 {
  152. compatible = "altr,pio-1.0";
  153. reg = <0x00004d00 0x00000010>;
  154. interrupt-parent = <&cpu>;
  155. interrupts = <9>;
  156. edge_type = <2>;
  157. level_trigger = <0>;
  158. resetvalue = <0>;
  159. altr,gpio-bank-width = <4>;
  160. #gpio-cells = <2>;
  161. gpio-controller;
  162. gpio-bank-name = "pb";
  163. };
  164. };
  165. cfi_flash_64m: flash@0x0 {
  166. compatible = "cfi-flash";
  167. reg = <0x00000000 0x04000000>;
  168. bank-width = <2>;
  169. device-width = <1>;
  170. #address-cells = <1>;
  171. #size-cells = <1>;
  172. partition@800000 {
  173. reg = <0x00800000 0x01e00000>;
  174. label = "JFFS2 Filesystem";
  175. };
  176. };
  177. };
  178. chosen {
  179. bootargs = "debug console=ttyJ0,115200";
  180. stdout-path = &jtag_uart;
  181. };
  182. };