axc003_idu.dtsi 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. /*
  2. * Copyright (C) 2014, 2015 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 AXC003 CPU card: HS38x2 (Dual Core) with IDU intc
  10. */
  11. /include/ "skeleton_hs_idu.dtsi"
  12. / {
  13. compatible = "snps,arc";
  14. #address-cells = <2>;
  15. #size-cells = <2>;
  16. cpu_card {
  17. compatible = "simple-bus";
  18. #address-cells = <1>;
  19. #size-cells = <1>;
  20. ranges = <0x00000000 0x0 0xf0000000 0x10000000>;
  21. input_clk: input-clk {
  22. #clock-cells = <0>;
  23. compatible = "fixed-clock";
  24. clock-frequency = <33333333>;
  25. };
  26. core_clk: core-clk@80 {
  27. compatible = "snps,axs10x-arc-pll-clock";
  28. reg = <0x80 0x10>, <0x100 0x10>;
  29. #clock-cells = <0>;
  30. clocks = <&input_clk>;
  31. /*
  32. * Set initial core pll output frequency to 100MHz.
  33. * It will be applied at the core pll driver probing
  34. * on early boot.
  35. */
  36. assigned-clocks = <&core_clk>;
  37. assigned-clock-rates = <100000000>;
  38. };
  39. core_intc: archs-intc@cpu {
  40. compatible = "snps,archs-intc";
  41. interrupt-controller;
  42. #interrupt-cells = <1>;
  43. };
  44. idu_intc: idu-interrupt-controller {
  45. compatible = "snps,archs-idu-intc";
  46. interrupt-controller;
  47. interrupt-parent = <&core_intc>;
  48. #interrupt-cells = <1>;
  49. };
  50. /*
  51. * this GPIO block ORs all interrupts on CPU card (creg,..)
  52. * to uplink only 1 IRQ to ARC core intc
  53. */
  54. dw-apb-gpio@0x2000 {
  55. compatible = "snps,dw-apb-gpio";
  56. reg = < 0x2000 0x80 >;
  57. #address-cells = <1>;
  58. #size-cells = <0>;
  59. ictl_intc: gpio-controller@0 {
  60. compatible = "snps,dw-apb-gpio-port";
  61. gpio-controller;
  62. #gpio-cells = <2>;
  63. snps,nr-gpios = <30>;
  64. reg = <0>;
  65. interrupt-controller;
  66. #interrupt-cells = <2>;
  67. interrupt-parent = <&idu_intc>;
  68. interrupts = <1>;
  69. };
  70. };
  71. debug_uart: dw-apb-uart@0x5000 {
  72. compatible = "snps,dw-apb-uart";
  73. reg = <0x5000 0x100>;
  74. clock-frequency = <33333000>;
  75. interrupt-parent = <&ictl_intc>;
  76. interrupts = <2 4>;
  77. baud = <115200>;
  78. reg-shift = <2>;
  79. reg-io-width = <4>;
  80. };
  81. arcpct0: pct {
  82. compatible = "snps,archs-pct";
  83. #interrupt-cells = <1>;
  84. interrupt-parent = <&core_intc>;
  85. interrupts = <20>;
  86. };
  87. };
  88. /*
  89. * This INTC is actually connected to DW APB GPIO
  90. * which acts as a wire between MB INTC and CPU INTC.
  91. * GPIO INTC is configured in platform init code
  92. * and here we mimic direct connection from MB INTC to
  93. * CPU INTC, thus we set "interrupts = <0 1>" instead of
  94. * "interrupts = <12>"
  95. *
  96. * This intc actually resides on MB, but we move it here to
  97. * avoid duplicating the MB dtsi file given that IRQ from
  98. * this intc to cpu intc are different for axs101 and axs103
  99. */
  100. mb_intc: dw-apb-ictl@0xe0012000 {
  101. #interrupt-cells = <1>;
  102. compatible = "snps,dw-apb-ictl";
  103. reg = < 0x0 0xe0012000 0x0 0x200 >;
  104. interrupt-controller;
  105. interrupt-parent = <&idu_intc>;
  106. interrupts = <0>;
  107. };
  108. memory {
  109. device_type = "memory";
  110. /* CONFIG_LINUX_RAM_BASE needs to match low mem start */
  111. reg = <0x0 0x80000000 0x0 0x20000000 /* 512 MiB low mem */
  112. 0x1 0xc0000000 0x0 0x40000000>; /* 1 GiB highmem */
  113. };
  114. reserved-memory {
  115. #address-cells = <2>;
  116. #size-cells = <2>;
  117. ranges;
  118. /*
  119. * Move frame buffer out of IOC aperture (0x8z-0xAz).
  120. */
  121. frame_buffer: frame_buffer@be000000 {
  122. compatible = "shared-dma-pool";
  123. reg = <0x0 0xbe000000 0x0 0x2000000>;
  124. no-map;
  125. };
  126. };
  127. };