mt8135.dtsi 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (c) 2014 MediaTek Inc.
  4. * Author: Joe.C <[email protected]>
  5. *
  6. */
  7. #include <dt-bindings/clock/mt8135-clk.h>
  8. #include <dt-bindings/interrupt-controller/irq.h>
  9. #include <dt-bindings/interrupt-controller/arm-gic.h>
  10. #include <dt-bindings/reset/mt8135-resets.h>
  11. #include <dt-bindings/pinctrl/mt8135-pinfunc.h>
  12. / {
  13. #address-cells = <2>;
  14. #size-cells = <2>;
  15. compatible = "mediatek,mt8135";
  16. interrupt-parent = <&sysirq>;
  17. cpu-map {
  18. cluster0 {
  19. core0 {
  20. cpu = <&cpu0>;
  21. };
  22. core1 {
  23. cpu = <&cpu1>;
  24. };
  25. };
  26. cluster1 {
  27. core0 {
  28. cpu = <&cpu2>;
  29. };
  30. core1 {
  31. cpu = <&cpu3>;
  32. };
  33. };
  34. };
  35. cpus {
  36. #address-cells = <1>;
  37. #size-cells = <0>;
  38. enable-method = "mediatek,mt81xx-tz-smp";
  39. cpu0: cpu@0 {
  40. device_type = "cpu";
  41. compatible = "arm,cortex-a7";
  42. reg = <0x000>;
  43. };
  44. cpu1: cpu@1 {
  45. device_type = "cpu";
  46. compatible = "arm,cortex-a7";
  47. reg = <0x001>;
  48. };
  49. cpu2: cpu@100 {
  50. device_type = "cpu";
  51. compatible = "arm,cortex-a15";
  52. reg = <0x100>;
  53. };
  54. cpu3: cpu@101 {
  55. device_type = "cpu";
  56. compatible = "arm,cortex-a15";
  57. reg = <0x101>;
  58. };
  59. };
  60. reserved-memory {
  61. #address-cells = <2>;
  62. #size-cells = <2>;
  63. ranges;
  64. trustzone-bootinfo@80002000 {
  65. compatible = "mediatek,trustzone-bootinfo";
  66. reg = <0 0x80002000 0 0x1000>;
  67. };
  68. };
  69. clocks {
  70. #address-cells = <2>;
  71. #size-cells = <2>;
  72. compatible = "simple-bus";
  73. ranges;
  74. system_clk: dummy13m {
  75. compatible = "fixed-clock";
  76. clock-frequency = <13000000>;
  77. #clock-cells = <0>;
  78. };
  79. rtc_clk: dummy32k {
  80. compatible = "fixed-clock";
  81. clock-frequency = <32000>;
  82. #clock-cells = <0>;
  83. };
  84. clk26m: clk26m {
  85. compatible = "fixed-clock";
  86. #clock-cells = <0>;
  87. clock-frequency = <26000000>;
  88. };
  89. };
  90. timer {
  91. compatible = "arm,armv7-timer";
  92. interrupt-parent = <&gic>;
  93. interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) |
  94. IRQ_TYPE_LEVEL_LOW)>,
  95. <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) |
  96. IRQ_TYPE_LEVEL_LOW)>,
  97. <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) |
  98. IRQ_TYPE_LEVEL_LOW)>,
  99. <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) |
  100. IRQ_TYPE_LEVEL_LOW)>;
  101. clock-frequency = <13000000>;
  102. arm,cpu-registers-not-fw-configured;
  103. };
  104. soc {
  105. #address-cells = <2>;
  106. #size-cells = <2>;
  107. compatible = "simple-bus";
  108. ranges;
  109. topckgen: topckgen@10000000 {
  110. compatible = "mediatek,mt8135-topckgen";
  111. reg = <0 0x10000000 0 0x1000>;
  112. #clock-cells = <1>;
  113. };
  114. infracfg: infracfg@10001000 {
  115. #reset-cells = <1>;
  116. #clock-cells = <1>;
  117. compatible = "mediatek,mt8135-infracfg", "syscon";
  118. reg = <0 0x10001000 0 0x1000>;
  119. };
  120. pericfg: pericfg@10003000 {
  121. #reset-cells = <1>;
  122. #clock-cells = <1>;
  123. compatible = "mediatek,mt8135-pericfg", "syscon";
  124. reg = <0 0x10003000 0 0x1000>;
  125. };
  126. /*
  127. * Pinctrl access register at 0x10005000 and 0x1020c000 through
  128. * regmap. Register 0x1000b000 is used by EINT.
  129. */
  130. pio: pinctrl@10005000 {
  131. compatible = "mediatek,mt8135-pinctrl";
  132. reg = <0 0x1000b000 0 0x1000>;
  133. mediatek,pctl-regmap = <&syscfg_pctl_a &syscfg_pctl_b>;
  134. pins-are-numbered;
  135. gpio-controller;
  136. #gpio-cells = <2>;
  137. interrupt-controller;
  138. #interrupt-cells = <2>;
  139. interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
  140. <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
  141. <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
  142. };
  143. syscfg_pctl_a: syscfg_pctl_a@10005000 {
  144. compatible = "mediatek,mt8135-pctl-a-syscfg", "syscon";
  145. reg = <0 0x10005000 0 0x1000>;
  146. };
  147. timer: timer@10008000 {
  148. compatible = "mediatek,mt8135-timer",
  149. "mediatek,mt6577-timer";
  150. reg = <0 0x10008000 0 0x80>;
  151. interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>;
  152. clocks = <&system_clk>, <&rtc_clk>;
  153. clock-names = "system-clk", "rtc-clk";
  154. };
  155. pwrap: pwrap@1000f000 {
  156. compatible = "mediatek,mt8135-pwrap";
  157. reg = <0 0x1000f000 0 0x1000>,
  158. <0 0x11017000 0 0x1000>;
  159. reg-names = "pwrap", "pwrap-bridge";
  160. interrupts = <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>;
  161. resets = <&infracfg MT8135_INFRA_PMIC_WRAP_RST>,
  162. <&pericfg MT8135_PERI_PWRAP_BRIDGE_SW_RST>;
  163. reset-names = "pwrap", "pwrap-bridge";
  164. clocks = <&clk26m>, <&clk26m>;
  165. clock-names = "spi", "wrap";
  166. };
  167. sysirq: interrupt-controller@10200030 {
  168. compatible = "mediatek,mt8135-sysirq",
  169. "mediatek,mt6577-sysirq";
  170. interrupt-controller;
  171. #interrupt-cells = <3>;
  172. interrupt-parent = <&gic>;
  173. reg = <0 0x10200030 0 0x1c>;
  174. };
  175. apmixedsys: apmixedsys@10209000 {
  176. compatible = "mediatek,mt8135-apmixedsys";
  177. reg = <0 0x10209000 0 0x1000>;
  178. #clock-cells = <1>;
  179. };
  180. syscfg_pctl_b: syscfg_pctl_b@1020c000 {
  181. compatible = "mediatek,mt8135-pctl-b-syscfg", "syscon";
  182. reg = <0 0x1020c000 0 0x1000>;
  183. };
  184. gic: interrupt-controller@10211000 {
  185. compatible = "arm,cortex-a15-gic";
  186. interrupt-controller;
  187. #interrupt-cells = <3>;
  188. interrupt-parent = <&gic>;
  189. reg = <0 0x10211000 0 0x1000>,
  190. <0 0x10212000 0 0x2000>,
  191. <0 0x10214000 0 0x2000>,
  192. <0 0x10216000 0 0x2000>;
  193. };
  194. uart0: serial@11006000 {
  195. compatible = "mediatek,mt8135-uart","mediatek,mt6577-uart";
  196. reg = <0 0x11006000 0 0x400>;
  197. interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_LOW>;
  198. clocks = <&pericfg CLK_PERI_UART0_SEL>, <&pericfg CLK_PERI_UART0>;
  199. clock-names = "baud", "bus";
  200. status = "disabled";
  201. };
  202. uart1: serial@11007000 {
  203. compatible = "mediatek,mt8135-uart","mediatek,mt6577-uart";
  204. reg = <0 0x11007000 0 0x400>;
  205. interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_LOW>;
  206. clocks = <&pericfg CLK_PERI_UART1_SEL>, <&pericfg CLK_PERI_UART1>;
  207. clock-names = "baud", "bus";
  208. status = "disabled";
  209. };
  210. uart2: serial@11008000 {
  211. compatible = "mediatek,mt8135-uart","mediatek,mt6577-uart";
  212. reg = <0 0x11008000 0 0x400>;
  213. interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_LOW>;
  214. clocks = <&pericfg CLK_PERI_UART2_SEL>, <&pericfg CLK_PERI_UART2>;
  215. clock-names = "baud", "bus";
  216. status = "disabled";
  217. };
  218. uart3: serial@11009000 {
  219. compatible = "mediatek,mt8135-uart","mediatek,mt6577-uart";
  220. reg = <0 0x11009000 0 0x400>;
  221. interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_LOW>;
  222. clocks = <&pericfg CLK_PERI_UART3_SEL>, <&pericfg CLK_PERI_UART3>;
  223. clock-names = "baud", "bus";
  224. status = "disabled";
  225. };
  226. };
  227. };