mt8135.dtsi 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (c) 2014 MediaTek Inc.
  4. * Author: Joe.C <yingjoe.chen@mediatek.com>
  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. gpio-controller;
  135. #gpio-cells = <2>;
  136. interrupt-controller;
  137. #interrupt-cells = <2>;
  138. interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
  139. <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
  140. <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>;
  141. };
  142. syscfg_pctl_a: syscfg_pctl_a@10005000 {
  143. compatible = "mediatek,mt8135-pctl-a-syscfg", "syscon";
  144. reg = <0 0x10005000 0 0x1000>;
  145. };
  146. timer: timer@10008000 {
  147. compatible = "mediatek,mt8135-timer",
  148. "mediatek,mt6577-timer";
  149. reg = <0 0x10008000 0 0x80>;
  150. interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>;
  151. clocks = <&system_clk>, <&rtc_clk>;
  152. clock-names = "system-clk", "rtc-clk";
  153. };
  154. pwrap: pwrap@1000f000 {
  155. compatible = "mediatek,mt8135-pwrap";
  156. reg = <0 0x1000f000 0 0x1000>,
  157. <0 0x11017000 0 0x1000>;
  158. reg-names = "pwrap", "pwrap-bridge";
  159. interrupts = <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>;
  160. resets = <&infracfg MT8135_INFRA_PMIC_WRAP_RST>,
  161. <&pericfg MT8135_PERI_PWRAP_BRIDGE_SW_RST>;
  162. reset-names = "pwrap", "pwrap-bridge";
  163. clocks = <&clk26m>, <&clk26m>;
  164. clock-names = "spi", "wrap";
  165. };
  166. sysirq: interrupt-controller@10200030 {
  167. compatible = "mediatek,mt8135-sysirq",
  168. "mediatek,mt6577-sysirq";
  169. interrupt-controller;
  170. #interrupt-cells = <3>;
  171. interrupt-parent = <&gic>;
  172. reg = <0 0x10200030 0 0x1c>;
  173. };
  174. apmixedsys: apmixedsys@10209000 {
  175. compatible = "mediatek,mt8135-apmixedsys";
  176. reg = <0 0x10209000 0 0x1000>;
  177. #clock-cells = <1>;
  178. };
  179. syscfg_pctl_b: syscfg_pctl_b@1020c000 {
  180. compatible = "mediatek,mt8135-pctl-b-syscfg", "syscon";
  181. reg = <0 0x1020c000 0 0x1000>;
  182. };
  183. gic: interrupt-controller@10211000 {
  184. compatible = "arm,cortex-a15-gic";
  185. interrupt-controller;
  186. #interrupt-cells = <3>;
  187. interrupt-parent = <&gic>;
  188. reg = <0 0x10211000 0 0x1000>,
  189. <0 0x10212000 0 0x2000>,
  190. <0 0x10214000 0 0x2000>,
  191. <0 0x10216000 0 0x2000>;
  192. };
  193. uart0: serial@11006000 {
  194. compatible = "mediatek,mt8135-uart","mediatek,mt6577-uart";
  195. reg = <0 0x11006000 0 0x400>;
  196. interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_LOW>;
  197. clocks = <&pericfg CLK_PERI_UART0_SEL>, <&pericfg CLK_PERI_UART0>;
  198. clock-names = "baud", "bus";
  199. status = "disabled";
  200. };
  201. uart1: serial@11007000 {
  202. compatible = "mediatek,mt8135-uart","mediatek,mt6577-uart";
  203. reg = <0 0x11007000 0 0x400>;
  204. interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_LOW>;
  205. clocks = <&pericfg CLK_PERI_UART1_SEL>, <&pericfg CLK_PERI_UART1>;
  206. clock-names = "baud", "bus";
  207. status = "disabled";
  208. };
  209. uart2: serial@11008000 {
  210. compatible = "mediatek,mt8135-uart","mediatek,mt6577-uart";
  211. reg = <0 0x11008000 0 0x400>;
  212. interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_LOW>;
  213. clocks = <&pericfg CLK_PERI_UART2_SEL>, <&pericfg CLK_PERI_UART2>;
  214. clock-names = "baud", "bus";
  215. status = "disabled";
  216. };
  217. uart3: serial@11009000 {
  218. compatible = "mediatek,mt8135-uart","mediatek,mt6577-uart";
  219. reg = <0 0x11009000 0 0x400>;
  220. interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_LOW>;
  221. clocks = <&pericfg CLK_PERI_UART3_SEL>, <&pericfg CLK_PERI_UART3>;
  222. clock-names = "baud", "bus";
  223. status = "disabled";
  224. };
  225. };
  226. };