xtfpga.dtsi 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. / {
  2. compatible = "cdns,xtensa-xtfpga";
  3. #address-cells = <1>;
  4. #size-cells = <1>;
  5. interrupt-parent = <&pic>;
  6. chosen {
  7. bootargs = "earlycon=uart8250,mmio32native,0xfd050020,115200n8 console=ttyS0,115200n8 ip=dhcp root=/dev/nfs rw debug";
  8. };
  9. memory@0 {
  10. device_type = "memory";
  11. reg = <0x00000000 0x06000000>;
  12. };
  13. cpus {
  14. #address-cells = <1>;
  15. #size-cells = <0>;
  16. cpu@0 {
  17. compatible = "cdns,xtensa-cpu";
  18. reg = <0>;
  19. clocks = <&osc>;
  20. };
  21. };
  22. pic: pic {
  23. compatible = "cdns,xtensa-pic";
  24. /* one cell: internal irq number,
  25. * two cells: second cell == 0: internal irq number
  26. * second cell == 1: external irq number
  27. */
  28. #interrupt-cells = <2>;
  29. interrupt-controller;
  30. };
  31. clocks {
  32. clk54: clk54 {
  33. #clock-cells = <0>;
  34. compatible = "fixed-clock";
  35. clock-frequency = <54000000>;
  36. };
  37. };
  38. soc {
  39. #address-cells = <1>;
  40. #size-cells = <1>;
  41. compatible = "simple-bus";
  42. ranges = <0x00000000 0xf0000000 0x10000000>;
  43. osc: main-oscillator {
  44. #clock-cells = <0>;
  45. compatible = "cdns,xtfpga-clock";
  46. reg = <0x0d020004 0x4>;
  47. };
  48. serial0: serial@0d050020 {
  49. device_type = "serial";
  50. compatible = "ns16550a";
  51. no-loopback-test;
  52. reg = <0x0d050020 0x20>;
  53. reg-shift = <2>;
  54. reg-io-width = <4>;
  55. native-endian;
  56. interrupts = <0 1>; /* external irq 0 */
  57. clocks = <&osc>;
  58. };
  59. enet0: ethoc@0d030000 {
  60. compatible = "opencores,ethoc";
  61. reg = <0x0d030000 0x4000 0x0d800000 0x4000>;
  62. native-endian;
  63. interrupts = <1 1>; /* external irq 1 */
  64. local-mac-address = [00 50 c2 13 6f 00];
  65. clocks = <&osc>;
  66. };
  67. i2s0: xtfpga-i2s@0d080000 {
  68. #sound-dai-cells = <0>;
  69. compatible = "cdns,xtfpga-i2s";
  70. reg = <0x0d080000 0x40>;
  71. interrupts = <2 1>; /* external irq 2 */
  72. clocks = <&cdce706 4>;
  73. };
  74. i2c0: i2c-master@0d090000 {
  75. compatible = "opencores,i2c-ocores";
  76. #address-cells = <1>;
  77. #size-cells = <0>;
  78. reg = <0x0d090000 0x20>;
  79. reg-shift = <2>;
  80. reg-io-width = <4>;
  81. native-endian;
  82. interrupts = <4 1>;
  83. clocks = <&osc>;
  84. cdce706: clock-synth@69 {
  85. compatible = "ti,cdce706";
  86. #clock-cells = <1>;
  87. reg = <0x69>;
  88. clocks = <&clk54>;
  89. clock-names = "clk_in0";
  90. };
  91. };
  92. spi0: spi-master@0d0a0000 {
  93. compatible = "cdns,xtfpga-spi";
  94. #address-cells = <1>;
  95. #size-cells = <0>;
  96. reg = <0x0d0a0000 0xc>;
  97. tlv320aic23: sound-codec@0 {
  98. #sound-dai-cells = <0>;
  99. compatible = "tlv320aic23";
  100. reg = <0>;
  101. spi-max-frequency = <12500000>;
  102. };
  103. };
  104. };
  105. sound {
  106. compatible = "simple-audio-card";
  107. simple-audio-card,format = "i2s";
  108. simple-audio-card,mclk-fs = <256>;
  109. simple-audio-card,cpu {
  110. sound-dai = <&i2s0>;
  111. };
  112. simple-audio-card,codec {
  113. sound-dai = <&tlv320aic23>;
  114. simple-audio-card,bitclock-master = <0>;
  115. simple-audio-card,frame-master = <0>;
  116. clocks = <&cdce706 4>;
  117. };
  118. };
  119. };