nsimosci_hs_idu.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /*
  2. * Copyright (C) 2014-15 Synopsys, Inc. (www.synopsys.com)
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. /dts-v1/;
  9. /include/ "skeleton.dtsi"
  10. / {
  11. compatible = "snps,nsimosci_hs";
  12. clock-frequency = <5000000>; /* 5 MHZ */
  13. #address-cells = <1>;
  14. #size-cells = <1>;
  15. interrupt-parent = <&core_intc>;
  16. chosen {
  17. /* this is for console on serial */
  18. bootargs = "earlycon=uart8250,mmio32,0xf0000000,115200n8 console=tty0 console=ttyS0,115200n8 consoleblan=0 debug";
  19. };
  20. aliases {
  21. serial0 = &uart0;
  22. };
  23. fpga {
  24. compatible = "simple-bus";
  25. #address-cells = <1>;
  26. #size-cells = <1>;
  27. /* child and parent address space 1:1 mapped */
  28. ranges;
  29. core_intc: core-interrupt-controller {
  30. compatible = "snps,archs-intc";
  31. interrupt-controller;
  32. #interrupt-cells = <1>;
  33. /* interrupts = <16 17 18 19 20 21 22 23 24 25>; */
  34. };
  35. idu_intc: idu-interrupt-controller {
  36. compatible = "snps,archs-idu-intc";
  37. interrupt-controller;
  38. interrupt-parent = <&core_intc>;
  39. /*
  40. * <hwirq distribution>
  41. * distribution: 0=RR; 1=cpu0, 2=cpu1, 4=cpu2, 8=cpu3
  42. */
  43. #interrupt-cells = <2>;
  44. /*
  45. * upstream irqs to core intc - downstream these are
  46. * "COMMON" irq 0,1..
  47. */
  48. interrupts = <24 25 26 27 28 29 30 31>;
  49. };
  50. uart0: serial@f0000000 {
  51. compatible = "ns8250";
  52. reg = <0xf0000000 0x2000>;
  53. interrupt-parent = <&idu_intc>;
  54. interrupts = <0 0>; /* cmn irq 0 -> cpu irq 24
  55. RR distribute to all cpus */
  56. clock-frequency = <3686400>;
  57. baud = <115200>;
  58. reg-shift = <2>;
  59. reg-io-width = <4>;
  60. no-loopback-test = <1>;
  61. };
  62. pgu0: pgu@f9000000 {
  63. compatible = "snps,arcpgufb";
  64. reg = <0xf9000000 0x400>;
  65. };
  66. ps2: ps2@f9001000 {
  67. compatible = "snps,arc_ps2";
  68. reg = <0xf9000400 0x14>;
  69. interrupts = <3 0>;
  70. interrupt-parent = <&idu_intc>;
  71. interrupt-names = "arc_ps2_irq";
  72. };
  73. eth0: ethernet@f0003000 {
  74. compatible = "snps,oscilan";
  75. reg = <0xf0003000 0x44>;
  76. interrupt-parent = <&idu_intc>;
  77. interrupts = <1 2>, <2 2>;
  78. interrupt-names = "rx", "tx";
  79. };
  80. arcpct0: pct {
  81. compatible = "snps,archs-pct";
  82. #interrupt-cells = <1>;
  83. interrupts = <20>;
  84. };
  85. };
  86. };