axc001.dtsi 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /*
  2. * Copyright (C) 2013-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. /*
  9. * Device tree for AXC001 770D/EM6/AS221 CPU card
  10. * Note that this file only supports the 770D CPU
  11. */
  12. /include/ "skeleton.dtsi"
  13. / {
  14. compatible = "snps,arc";
  15. #address-cells = <1>;
  16. #size-cells = <1>;
  17. cpu_card {
  18. compatible = "simple-bus";
  19. #address-cells = <1>;
  20. #size-cells = <1>;
  21. ranges = <0x00000000 0xf0000000 0x10000000>;
  22. core_clk: core_clk {
  23. #clock-cells = <0>;
  24. compatible = "fixed-clock";
  25. clock-frequency = <750000000>;
  26. };
  27. core_intc: arc700-intc@cpu {
  28. compatible = "snps,arc700-intc";
  29. interrupt-controller;
  30. #interrupt-cells = <1>;
  31. };
  32. /*
  33. * this GPIO block ORs all interrupts on CPU card (creg,..)
  34. * to uplink only 1 IRQ to ARC core intc
  35. */
  36. dw-apb-gpio@0x2000 {
  37. compatible = "snps,dw-apb-gpio";
  38. reg = < 0x2000 0x80 >;
  39. #address-cells = <1>;
  40. #size-cells = <0>;
  41. ictl_intc: gpio-controller@0 {
  42. compatible = "snps,dw-apb-gpio-port";
  43. gpio-controller;
  44. #gpio-cells = <2>;
  45. snps,nr-gpios = <30>;
  46. reg = <0>;
  47. interrupt-controller;
  48. #interrupt-cells = <2>;
  49. interrupt-parent = <&core_intc>;
  50. interrupts = <15>;
  51. };
  52. };
  53. debug_uart: dw-apb-uart@0x5000 {
  54. compatible = "snps,dw-apb-uart";
  55. reg = <0x5000 0x100>;
  56. clock-frequency = <33333000>;
  57. interrupt-parent = <&ictl_intc>;
  58. interrupts = <19 4>;
  59. baud = <115200>;
  60. reg-shift = <2>;
  61. reg-io-width = <4>;
  62. };
  63. arcpct0: pct {
  64. compatible = "snps,arc700-pct";
  65. };
  66. };
  67. /*
  68. * This INTC is actually connected to DW APB GPIO
  69. * which acts as a wire between MB INTC and CPU INTC.
  70. * GPIO INTC is configured in platform init code
  71. * and here we mimic direct connection from MB INTC to
  72. * CPU INTC, thus we set "interrupts = <7>" instead of
  73. * "interrupts = <12>"
  74. *
  75. * This intc actually resides on MB, but we move it here to
  76. * avoid duplicating the MB dtsi file given that IRQ from
  77. * this intc to cpu intc are different for axs101 and axs103
  78. */
  79. mb_intc: dw-apb-ictl@0xe0012000 {
  80. #interrupt-cells = <1>;
  81. compatible = "snps,dw-apb-ictl";
  82. reg = < 0xe0012000 0x200 >;
  83. interrupt-controller;
  84. interrupt-parent = <&core_intc>;
  85. interrupts = < 7 >;
  86. };
  87. memory {
  88. #address-cells = <1>;
  89. #size-cells = <1>;
  90. ranges = <0x00000000 0x80000000 0x20000000>;
  91. device_type = "memory";
  92. reg = <0x80000000 0x1b000000>; /* (512 - 32) MiB */
  93. };
  94. reserved-memory {
  95. #address-cells = <1>;
  96. #size-cells = <1>;
  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 = <0x9e000000 0x2000000>;
  108. no-map;
  109. };
  110. };
  111. };