nsim_hs_idu.dts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. model = "Synopsys ARC HS38 nSIM simulator";
  12. compatible = "snps,nsim_hs";
  13. interrupt-parent = <&core_intc>;
  14. chosen {
  15. bootargs = "earlycon=arc_uart,mmio32,0xc0fc1000,115200n8 console=ttyARC0,115200n8";
  16. };
  17. aliases {
  18. serial0 = &arcuart0;
  19. };
  20. fpga {
  21. compatible = "simple-bus";
  22. #address-cells = <1>;
  23. #size-cells = <1>;
  24. /* child and parent address space 1:1 mapped */
  25. ranges;
  26. core_intc: core-interrupt-controller {
  27. compatible = "snps,archs-intc";
  28. interrupt-controller;
  29. #interrupt-cells = <1>;
  30. };
  31. idu_intc: idu-interrupt-controller {
  32. compatible = "snps,archs-idu-intc";
  33. interrupt-controller;
  34. interrupt-parent = <&core_intc>;
  35. /*
  36. * <hwirq distribution>
  37. * distribution: 0=RR; 1=cpu0, 2=cpu1, 4=cpu2, 8=cpu3
  38. */
  39. #interrupt-cells = <2>;
  40. /*
  41. * upstream irqs to core intc - downstream these are
  42. * "COMMON" irq 0,1..
  43. */
  44. interrupts = <24 25 26 27 28 29 30 31>;
  45. };
  46. arcuart0: serial@c0fc1000 {
  47. compatible = "snps,arc-uart";
  48. reg = <0xc0fc1000 0x100>;
  49. interrupt-parent = <&idu_intc>;
  50. interrupts = <0 0>;
  51. clock-frequency = <80000000>;
  52. current-speed = <115200>;
  53. status = "okay";
  54. };
  55. arcpct0: pct {
  56. compatible = "snps,archs-pct";
  57. #interrupt-cells = <1>;
  58. interrupts = <20>;
  59. };
  60. };
  61. };