xtfpga.dtsi 2.8 KB

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