nsim_hs_idu.dts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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_hs_idu.dtsi"
  10. / {
  11. compatible = "snps,nsim_hs";
  12. interrupt-parent = <&core_intc>;
  13. chosen {
  14. bootargs = "earlycon=arc_uart,mmio32,0xc0fc1000,115200n8 console=ttyARC0,115200n8";
  15. };
  16. aliases {
  17. serial0 = &arcuart0;
  18. };
  19. fpga {
  20. compatible = "simple-bus";
  21. #address-cells = <1>;
  22. #size-cells = <1>;
  23. /* child and parent address space 1:1 mapped */
  24. ranges;
  25. core_clk: core_clk {
  26. #clock-cells = <0>;
  27. compatible = "fixed-clock";
  28. clock-frequency = <80000000>;
  29. };
  30. core_intc: core-interrupt-controller {
  31. compatible = "snps,archs-intc";
  32. interrupt-controller;
  33. #interrupt-cells = <1>;
  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. arcuart0: serial@c0fc1000 {
  51. compatible = "snps,arc-uart";
  52. reg = <0xc0fc1000 0x100>;
  53. interrupt-parent = <&idu_intc>;
  54. interrupts = <0 0>;
  55. clock-frequency = <80000000>;
  56. current-speed = <115200>;
  57. status = "okay";
  58. };
  59. arcpct0: pct {
  60. compatible = "snps,archs-pct";
  61. #interrupt-cells = <1>;
  62. interrupts = <20>;
  63. };
  64. };
  65. };