nsim_hs_idu.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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,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_intc: core-interrupt-controller {
  26. compatible = "snps,archs-intc";
  27. interrupt-controller;
  28. #interrupt-cells = <1>;
  29. };
  30. idu_intc: idu-interrupt-controller {
  31. compatible = "snps,archs-idu-intc";
  32. interrupt-controller;
  33. interrupt-parent = <&core_intc>;
  34. /*
  35. * <hwirq distribution>
  36. * distribution: 0=RR; 1=cpu0, 2=cpu1, 4=cpu2, 8=cpu3
  37. */
  38. #interrupt-cells = <2>;
  39. /*
  40. * upstream irqs to core intc - downstream these are
  41. * "COMMON" irq 0,1..
  42. */
  43. interrupts = <24 25 26 27 28 29 30 31>;
  44. };
  45. arcuart0: serial@c0fc1000 {
  46. compatible = "snps,arc-uart";
  47. reg = <0xc0fc1000 0x100>;
  48. interrupt-parent = <&idu_intc>;
  49. interrupts = <0 0>;
  50. clock-frequency = <80000000>;
  51. current-speed = <115200>;
  52. status = "okay";
  53. };
  54. arcpct0: pct {
  55. compatible = "snps,archs-pct";
  56. #interrupt-cells = <1>;
  57. interrupts = <20>;
  58. };
  59. };
  60. };