axc001.dtsi 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (C) 2013-15 Synopsys, Inc. (www.synopsys.com)
  4. */
  5. /*
  6. * Device tree for AXC001 770D/EM6/AS221 CPU card
  7. * Note that this file only supports the 770D CPU
  8. */
  9. /include/ "skeleton.dtsi"
  10. / {
  11. compatible = "snps,arc";
  12. #address-cells = <2>;
  13. #size-cells = <2>;
  14. cpu_card {
  15. compatible = "simple-bus";
  16. #address-cells = <1>;
  17. #size-cells = <1>;
  18. ranges = <0x00000000 0x0 0xf0000000 0x10000000>;
  19. core_clk: core_clk {
  20. #clock-cells = <0>;
  21. compatible = "fixed-clock";
  22. clock-frequency = <750000000>;
  23. };
  24. input_clk: input-clk {
  25. #clock-cells = <0>;
  26. compatible = "fixed-clock";
  27. clock-frequency = <33333333>;
  28. };
  29. core_intc: arc700-intc@cpu {
  30. compatible = "snps,arc700-intc";
  31. interrupt-controller;
  32. #interrupt-cells = <1>;
  33. };
  34. /*
  35. * this GPIO block ORs all interrupts on CPU card (creg,..)
  36. * to uplink only 1 IRQ to ARC core intc
  37. */
  38. dw-apb-gpio@2000 {
  39. compatible = "snps,dw-apb-gpio";
  40. reg = < 0x2000 0x80 >;
  41. #address-cells = <1>;
  42. #size-cells = <0>;
  43. ictl_intc: gpio-controller@0 {
  44. compatible = "snps,dw-apb-gpio-port";
  45. gpio-controller;
  46. #gpio-cells = <2>;
  47. snps,nr-gpios = <30>;
  48. reg = <0>;
  49. interrupt-controller;
  50. #interrupt-cells = <2>;
  51. interrupt-parent = <&core_intc>;
  52. interrupts = <15>;
  53. };
  54. };
  55. debug_uart: dw-apb-uart@5000 {
  56. compatible = "snps,dw-apb-uart";
  57. reg = <0x5000 0x100>;
  58. clock-frequency = <33333000>;
  59. interrupt-parent = <&ictl_intc>;
  60. interrupts = <19 4>;
  61. baud = <115200>;
  62. reg-shift = <2>;
  63. reg-io-width = <4>;
  64. };
  65. arcpct0: pct {
  66. compatible = "snps,arc700-pct";
  67. };
  68. };
  69. /*
  70. * This INTC is actually connected to DW APB GPIO
  71. * which acts as a wire between MB INTC and CPU INTC.
  72. * GPIO INTC is configured in platform init code
  73. * and here we mimic direct connection from MB INTC to
  74. * CPU INTC, thus we set "interrupts = <7>" instead of
  75. * "interrupts = <12>"
  76. *
  77. * This intc actually resides on MB, but we move it here to
  78. * avoid duplicating the MB dtsi file given that IRQ from
  79. * this intc to cpu intc are different for axs101 and axs103
  80. */
  81. mb_intc: interrupt-controller@e0012000 {
  82. #interrupt-cells = <1>;
  83. compatible = "snps,dw-apb-ictl";
  84. reg = < 0x0 0xe0012000 0x0 0x200 >;
  85. interrupt-controller;
  86. interrupt-parent = <&core_intc>;
  87. interrupts = < 7 >;
  88. };
  89. memory {
  90. device_type = "memory";
  91. /* CONFIG_LINUX_RAM_BASE needs to match low mem start */
  92. reg = <0x0 0x80000000 0x0 0x1b000000>; /* (512 - 32) MiB */
  93. };
  94. reserved-memory {
  95. #address-cells = <2>;
  96. #size-cells = <2>;
  97. ranges;
  98. /*
  99. * We just move frame buffer area to the very end of
  100. * available DDR. And even though in case of ARC770 there's
  101. * no strict requirement for a frame-buffer to be in any
  102. * particular location it allows us to use the same
  103. * base board's DT node for ARC PGU as for ARc HS38.
  104. */
  105. frame_buffer: frame_buffer@9e000000 {
  106. compatible = "shared-dma-pool";
  107. reg = <0x0 0x9e000000 0x0 0x2000000>;
  108. no-map;
  109. };
  110. };
  111. };