mt6795.dtsi 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. /*
  2. * Copyright (c) 2015 MediaTek Inc.
  3. * Author: Mars.C <mars.cheng@mediatek.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. #include <dt-bindings/interrupt-controller/irq.h>
  14. #include <dt-bindings/interrupt-controller/arm-gic.h>
  15. / {
  16. compatible = "mediatek,mt6795";
  17. interrupt-parent = <&sysirq>;
  18. #address-cells = <2>;
  19. #size-cells = <2>;
  20. psci {
  21. compatible = "arm,psci-0.2";
  22. method = "smc";
  23. };
  24. cpus {
  25. #address-cells = <1>;
  26. #size-cells = <0>;
  27. cpu0: cpu@0 {
  28. device_type = "cpu";
  29. compatible = "arm,cortex-a53";
  30. enable-method = "psci";
  31. reg = <0x000>;
  32. };
  33. cpu1: cpu@1 {
  34. device_type = "cpu";
  35. compatible = "arm,cortex-a53";
  36. enable-method = "psci";
  37. reg = <0x001>;
  38. };
  39. cpu2: cpu@2 {
  40. device_type = "cpu";
  41. compatible = "arm,cortex-a53";
  42. enable-method = "psci";
  43. reg = <0x002>;
  44. };
  45. cpu3: cpu@3 {
  46. device_type = "cpu";
  47. compatible = "arm,cortex-a53";
  48. enable-method = "psci";
  49. reg = <0x003>;
  50. };
  51. cpu4: cpu@100 {
  52. device_type = "cpu";
  53. compatible = "arm,cortex-a53";
  54. enable-method = "psci";
  55. reg = <0x100>;
  56. };
  57. cpu5: cpu@101 {
  58. device_type = "cpu";
  59. compatible = "arm,cortex-a53";
  60. enable-method = "psci";
  61. reg = <0x101>;
  62. };
  63. cpu6: cpu@102 {
  64. device_type = "cpu";
  65. compatible = "arm,cortex-a53";
  66. enable-method = "psci";
  67. reg = <0x102>;
  68. };
  69. cpu7: cpu@103 {
  70. device_type = "cpu";
  71. compatible = "arm,cortex-a53";
  72. enable-method = "psci";
  73. reg = <0x103>;
  74. };
  75. };
  76. system_clk: dummy13m {
  77. compatible = "fixed-clock";
  78. clock-frequency = <13000000>;
  79. #clock-cells = <0>;
  80. };
  81. rtc_clk: dummy32k {
  82. compatible = "fixed-clock";
  83. clock-frequency = <32000>;
  84. #clock-cells = <0>;
  85. };
  86. uart_clk: dummy26m {
  87. compatible = "fixed-clock";
  88. clock-frequency = <26000000>;
  89. #clock-cells = <0>;
  90. };
  91. timer {
  92. compatible = "arm,armv8-timer";
  93. interrupt-parent = <&gic>;
  94. interrupts = <GIC_PPI 13
  95. (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
  96. <GIC_PPI 14
  97. (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
  98. <GIC_PPI 11
  99. (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
  100. <GIC_PPI 10
  101. (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>;
  102. };
  103. sysirq: intpol-controller@10200620 {
  104. compatible = "mediatek,mt6795-sysirq",
  105. "mediatek,mt6577-sysirq";
  106. interrupt-controller;
  107. #interrupt-cells = <3>;
  108. interrupt-parent = <&gic>;
  109. reg = <0 0x10200620 0 0x20>;
  110. };
  111. gic: interrupt-controller@10221000 {
  112. compatible = "arm,gic-400";
  113. #interrupt-cells = <3>;
  114. interrupt-parent = <&gic>;
  115. interrupt-controller;
  116. reg = <0 0x10221000 0 0x1000>,
  117. <0 0x10222000 0 0x2000>,
  118. <0 0x10224000 0 0x2000>,
  119. <0 0x10226000 0 0x2000>;
  120. };
  121. uart0: serial@11002000 {
  122. compatible = "mediatek,mt6795-uart",
  123. "mediatek,mt6577-uart";
  124. reg = <0 0x11002000 0 0x400>;
  125. interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_LOW>;
  126. clocks = <&uart_clk>;
  127. status = "disabled";
  128. };
  129. uart1: serial@11003000 {
  130. compatible = "mediatek,mt6795-uart",
  131. "mediatek,mt6577-uart";
  132. reg = <0 0x11003000 0 0x400>;
  133. interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_LOW>;
  134. clocks = <&uart_clk>;
  135. status = "disabled";
  136. };
  137. uart2: serial@11004000 {
  138. compatible = "mediatek,mt6795-uart",
  139. "mediatek,mt6577-uart";
  140. reg = <0 0x11004000 0 0x400>;
  141. interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_LOW>;
  142. clocks = <&uart_clk>;
  143. status = "disabled";
  144. };
  145. uart3: serial@11005000 {
  146. compatible = "mediatek,mt6795-uart",
  147. "mediatek,mt6577-uart";
  148. reg = <0 0x11005000 0 0x400>;
  149. interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_LOW>;
  150. clocks = <&uart_clk>;
  151. status = "disabled";
  152. };
  153. };