mt6779.dtsi 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (c) 2019 MediaTek Inc.
  4. * Author: Mars.C <[email protected]>
  5. *
  6. */
  7. #include <dt-bindings/clock/mt6779-clk.h>
  8. #include <dt-bindings/interrupt-controller/irq.h>
  9. #include <dt-bindings/interrupt-controller/arm-gic.h>
  10. #include <dt-bindings/pinctrl/mt6779-pinfunc.h>
  11. / {
  12. compatible = "mediatek,mt6779";
  13. interrupt-parent = <&sysirq>;
  14. #address-cells = <2>;
  15. #size-cells = <2>;
  16. psci {
  17. compatible = "arm,psci-0.2";
  18. method = "smc";
  19. };
  20. cpus {
  21. #address-cells = <1>;
  22. #size-cells = <0>;
  23. cpu0: cpu@0 {
  24. device_type = "cpu";
  25. compatible = "arm,cortex-a55";
  26. enable-method = "psci";
  27. reg = <0x000>;
  28. };
  29. cpu1: cpu@1 {
  30. device_type = "cpu";
  31. compatible = "arm,cortex-a55";
  32. enable-method = "psci";
  33. reg = <0x100>;
  34. };
  35. cpu2: cpu@2 {
  36. device_type = "cpu";
  37. compatible = "arm,cortex-a55";
  38. enable-method = "psci";
  39. reg = <0x200>;
  40. };
  41. cpu3: cpu@3 {
  42. device_type = "cpu";
  43. compatible = "arm,cortex-a55";
  44. enable-method = "psci";
  45. reg = <0x300>;
  46. };
  47. cpu4: cpu@4 {
  48. device_type = "cpu";
  49. compatible = "arm,cortex-a55";
  50. enable-method = "psci";
  51. reg = <0x400>;
  52. };
  53. cpu5: cpu@5 {
  54. device_type = "cpu";
  55. compatible = "arm,cortex-a55";
  56. enable-method = "psci";
  57. reg = <0x500>;
  58. };
  59. cpu6: cpu@6 {
  60. device_type = "cpu";
  61. compatible = "arm,cortex-a75";
  62. enable-method = "psci";
  63. reg = <0x600>;
  64. };
  65. cpu7: cpu@7 {
  66. device_type = "cpu";
  67. compatible = "arm,cortex-a75";
  68. enable-method = "psci";
  69. reg = <0x700>;
  70. };
  71. };
  72. pmu {
  73. compatible = "arm,armv8-pmuv3";
  74. interrupt-parent = <&gic>;
  75. interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW 0>;
  76. };
  77. clk26m: oscillator-26m {
  78. compatible = "fixed-clock";
  79. #clock-cells = <0>;
  80. clock-frequency = <26000000>;
  81. clock-output-names = "clk26m";
  82. };
  83. clk32k: oscillator-32k {
  84. compatible = "fixed-clock";
  85. #clock-cells = <0>;
  86. clock-frequency = <32768>;
  87. clock-output-names = "clk32k";
  88. };
  89. timer {
  90. compatible = "arm,armv8-timer";
  91. interrupt-parent = <&gic>;
  92. interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW 0>,
  93. <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW 0>,
  94. <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW 0>,
  95. <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW 0>;
  96. };
  97. soc {
  98. #address-cells = <2>;
  99. #size-cells = <2>;
  100. compatible = "simple-bus";
  101. ranges;
  102. gic: interrupt-controller@c000000 {
  103. compatible = "arm,gic-v3";
  104. #interrupt-cells = <4>;
  105. interrupt-parent = <&gic>;
  106. interrupt-controller;
  107. reg = <0 0x0c000000 0 0x40000>, /* GICD */
  108. <0 0x0c040000 0 0x200000>; /* GICR */
  109. interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH 0>;
  110. ppi-partitions {
  111. ppi_cluster0: interrupt-partition-0 {
  112. affinity = <&cpu0 &cpu1 \
  113. &cpu2 &cpu3 &cpu4 &cpu5>;
  114. };
  115. ppi_cluster1: interrupt-partition-1 {
  116. affinity = <&cpu6 &cpu7>;
  117. };
  118. };
  119. };
  120. sysirq: intpol-controller@c53a650 {
  121. compatible = "mediatek,mt6779-sysirq",
  122. "mediatek,mt6577-sysirq";
  123. interrupt-controller;
  124. #interrupt-cells = <3>;
  125. interrupt-parent = <&gic>;
  126. reg = <0 0x0c53a650 0 0x50>;
  127. };
  128. topckgen: clock-controller@10000000 {
  129. compatible = "mediatek,mt6779-topckgen", "syscon";
  130. reg = <0 0x10000000 0 0x1000>;
  131. #clock-cells = <1>;
  132. };
  133. infracfg_ao: clock-controller@10001000 {
  134. compatible = "mediatek,mt6779-infracfg_ao", "syscon";
  135. reg = <0 0x10001000 0 0x1000>;
  136. #clock-cells = <1>;
  137. };
  138. pio: pinctrl@10005000 {
  139. compatible = "mediatek,mt6779-pinctrl", "syscon";
  140. reg = <0 0x10005000 0 0x1000>,
  141. <0 0x11c20000 0 0x1000>,
  142. <0 0x11d10000 0 0x1000>,
  143. <0 0x11e20000 0 0x1000>,
  144. <0 0x11e70000 0 0x1000>,
  145. <0 0x11ea0000 0 0x1000>,
  146. <0 0x11f20000 0 0x1000>,
  147. <0 0x11f30000 0 0x1000>,
  148. <0 0x1000b000 0 0x1000>;
  149. reg-names = "gpio", "iocfg_rm",
  150. "iocfg_br", "iocfg_lm",
  151. "iocfg_lb", "iocfg_rt",
  152. "iocfg_lt", "iocfg_tl",
  153. "eint";
  154. gpio-controller;
  155. #gpio-cells = <2>;
  156. gpio-ranges = <&pio 0 0 210>;
  157. interrupt-controller;
  158. #interrupt-cells = <2>;
  159. interrupts = <GIC_SPI 204 IRQ_TYPE_LEVEL_HIGH>;
  160. };
  161. apmixed: clock-controller@1000c000 {
  162. compatible = "mediatek,mt6779-apmixed", "syscon";
  163. reg = <0 0x1000c000 0 0xe00>;
  164. #clock-cells = <1>;
  165. };
  166. pwrap: pwrap@1000d000 {
  167. compatible = "mediatek,mt6779-pwrap";
  168. reg = <0 0x1000d000 0 0x1000>;
  169. reg-names = "pwrap";
  170. interrupts = <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>;
  171. clocks = <&clk26m>, <&infracfg_ao CLK_INFRA_PMIC_AP>;
  172. clock-names = "spi", "wrap";
  173. };
  174. devapc: devapc@10207000 {
  175. compatible = "mediatek,mt6779-devapc";
  176. reg = <0 0x10207000 0 0x1000>;
  177. interrupts = <GIC_SPI 168 IRQ_TYPE_LEVEL_LOW>;
  178. clocks = <&infracfg_ao CLK_INFRA_DEVICE_APC>;
  179. clock-names = "devapc-infra-clock";
  180. };
  181. uart0: serial@11002000 {
  182. compatible = "mediatek,mt6779-uart",
  183. "mediatek,mt6577-uart";
  184. reg = <0 0x11002000 0 0x400>;
  185. interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_LOW>;
  186. clocks = <&clk26m>, <&infracfg_ao CLK_INFRA_UART0>;
  187. clock-names = "baud", "bus";
  188. status = "disabled";
  189. };
  190. uart1: serial@11003000 {
  191. compatible = "mediatek,mt6779-uart",
  192. "mediatek,mt6577-uart";
  193. reg = <0 0x11003000 0 0x400>;
  194. interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_LOW>;
  195. clocks = <&clk26m>, <&infracfg_ao CLK_INFRA_UART1>;
  196. clock-names = "baud", "bus";
  197. status = "disabled";
  198. };
  199. uart2: serial@11004000 {
  200. compatible = "mediatek,mt6779-uart",
  201. "mediatek,mt6577-uart";
  202. reg = <0 0x11004000 0 0x400>;
  203. interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_LOW>;
  204. clocks = <&clk26m>, <&infracfg_ao CLK_INFRA_UART2>;
  205. clock-names = "baud", "bus";
  206. status = "disabled";
  207. };
  208. audio: clock-controller@11210000 {
  209. compatible = "mediatek,mt6779-audio", "syscon";
  210. reg = <0 0x11210000 0 0x1000>;
  211. #clock-cells = <1>;
  212. };
  213. mfgcfg: clock-controller@13fbf000 {
  214. compatible = "mediatek,mt6779-mfgcfg", "syscon";
  215. reg = <0 0x13fbf000 0 0x1000>;
  216. #clock-cells = <1>;
  217. };
  218. mmsys: syscon@14000000 {
  219. compatible = "mediatek,mt6779-mmsys", "syscon";
  220. reg = <0 0x14000000 0 0x1000>;
  221. #clock-cells = <1>;
  222. };
  223. imgsys: clock-controller@15020000 {
  224. compatible = "mediatek,mt6779-imgsys", "syscon";
  225. reg = <0 0x15020000 0 0x1000>;
  226. #clock-cells = <1>;
  227. };
  228. vdecsys: clock-controller@16000000 {
  229. compatible = "mediatek,mt6779-vdecsys", "syscon";
  230. reg = <0 0x16000000 0 0x1000>;
  231. #clock-cells = <1>;
  232. };
  233. vencsys: clock-controller@17000000 {
  234. compatible = "mediatek,mt6779-vencsys", "syscon";
  235. reg = <0 0x17000000 0 0x1000>;
  236. #clock-cells = <1>;
  237. };
  238. camsys: clock-controller@1a000000 {
  239. compatible = "mediatek,mt6779-camsys", "syscon";
  240. reg = <0 0x1a000000 0 0x10000>;
  241. #clock-cells = <1>;
  242. };
  243. ipesys: clock-controller@1b000000 {
  244. compatible = "mediatek,mt6779-ipesys", "syscon";
  245. reg = <0 0x1b000000 0 0x1000>;
  246. #clock-cells = <1>;
  247. };
  248. };
  249. };