mt7986a.dtsi 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  1. // SPDX-License-Identifier: (GPL-2.0 OR MIT)
  2. /*
  3. * Copyright (C) 2021 MediaTek Inc.
  4. * Author: Sam.Shih <[email protected]>
  5. */
  6. #include <dt-bindings/interrupt-controller/irq.h>
  7. #include <dt-bindings/interrupt-controller/arm-gic.h>
  8. #include <dt-bindings/clock/mt7986-clk.h>
  9. #include <dt-bindings/reset/mt7986-resets.h>
  10. / {
  11. interrupt-parent = <&gic>;
  12. #address-cells = <2>;
  13. #size-cells = <2>;
  14. clk40m: oscillator-40m {
  15. compatible = "fixed-clock";
  16. clock-frequency = <40000000>;
  17. #clock-cells = <0>;
  18. clock-output-names = "clkxtal";
  19. };
  20. cpus {
  21. #address-cells = <1>;
  22. #size-cells = <0>;
  23. cpu0: cpu@0 {
  24. device_type = "cpu";
  25. compatible = "arm,cortex-a53";
  26. enable-method = "psci";
  27. reg = <0x0>;
  28. #cooling-cells = <2>;
  29. };
  30. cpu1: cpu@1 {
  31. device_type = "cpu";
  32. compatible = "arm,cortex-a53";
  33. enable-method = "psci";
  34. reg = <0x1>;
  35. #cooling-cells = <2>;
  36. };
  37. cpu2: cpu@2 {
  38. device_type = "cpu";
  39. compatible = "arm,cortex-a53";
  40. enable-method = "psci";
  41. reg = <0x2>;
  42. #cooling-cells = <2>;
  43. };
  44. cpu3: cpu@3 {
  45. device_type = "cpu";
  46. enable-method = "psci";
  47. compatible = "arm,cortex-a53";
  48. reg = <0x3>;
  49. #cooling-cells = <2>;
  50. };
  51. };
  52. psci {
  53. compatible = "arm,psci-0.2";
  54. method = "smc";
  55. };
  56. reserved-memory {
  57. #address-cells = <2>;
  58. #size-cells = <2>;
  59. ranges;
  60. /* 192 KiB reserved for ARM Trusted Firmware (BL31) */
  61. secmon_reserved: secmon@43000000 {
  62. reg = <0 0x43000000 0 0x30000>;
  63. no-map;
  64. };
  65. wmcpu_emi: wmcpu-reserved@4fc00000 {
  66. no-map;
  67. reg = <0 0x4fc00000 0 0x00100000>;
  68. };
  69. };
  70. timer {
  71. compatible = "arm,armv8-timer";
  72. interrupt-parent = <&gic>;
  73. interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
  74. <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
  75. <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
  76. <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
  77. };
  78. soc {
  79. #address-cells = <2>;
  80. #size-cells = <2>;
  81. compatible = "simple-bus";
  82. ranges;
  83. gic: interrupt-controller@c000000 {
  84. compatible = "arm,gic-v3";
  85. #interrupt-cells = <3>;
  86. interrupt-parent = <&gic>;
  87. interrupt-controller;
  88. reg = <0 0x0c000000 0 0x10000>, /* GICD */
  89. <0 0x0c080000 0 0x80000>, /* GICR */
  90. <0 0x0c400000 0 0x2000>, /* GICC */
  91. <0 0x0c410000 0 0x1000>, /* GICH */
  92. <0 0x0c420000 0 0x2000>; /* GICV */
  93. interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
  94. };
  95. infracfg: infracfg@10001000 {
  96. compatible = "mediatek,mt7986-infracfg", "syscon";
  97. reg = <0 0x10001000 0 0x1000>;
  98. #clock-cells = <1>;
  99. };
  100. wed_pcie: wed-pcie@10003000 {
  101. compatible = "mediatek,mt7986-wed-pcie",
  102. "syscon";
  103. reg = <0 0x10003000 0 0x10>;
  104. };
  105. topckgen: topckgen@1001b000 {
  106. compatible = "mediatek,mt7986-topckgen", "syscon";
  107. reg = <0 0x1001B000 0 0x1000>;
  108. #clock-cells = <1>;
  109. };
  110. watchdog: watchdog@1001c000 {
  111. compatible = "mediatek,mt7986-wdt";
  112. reg = <0 0x1001c000 0 0x1000>;
  113. interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
  114. #reset-cells = <1>;
  115. status = "disabled";
  116. };
  117. apmixedsys: apmixedsys@1001e000 {
  118. compatible = "mediatek,mt7986-apmixedsys";
  119. reg = <0 0x1001E000 0 0x1000>;
  120. #clock-cells = <1>;
  121. };
  122. pio: pinctrl@1001f000 {
  123. compatible = "mediatek,mt7986a-pinctrl";
  124. reg = <0 0x1001f000 0 0x1000>,
  125. <0 0x11c30000 0 0x1000>,
  126. <0 0x11c40000 0 0x1000>,
  127. <0 0x11e20000 0 0x1000>,
  128. <0 0x11e30000 0 0x1000>,
  129. <0 0x11f00000 0 0x1000>,
  130. <0 0x11f10000 0 0x1000>,
  131. <0 0x1000b000 0 0x1000>;
  132. reg-names = "gpio", "iocfg_rt", "iocfg_rb", "iocfg_lt",
  133. "iocfg_lb", "iocfg_tr", "iocfg_tl", "eint";
  134. gpio-controller;
  135. #gpio-cells = <2>;
  136. gpio-ranges = <&pio 0 0 100>;
  137. interrupt-controller;
  138. interrupts = <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>;
  139. interrupt-parent = <&gic>;
  140. #interrupt-cells = <2>;
  141. };
  142. sgmiisys0: syscon@10060000 {
  143. compatible = "mediatek,mt7986-sgmiisys_0",
  144. "syscon";
  145. reg = <0 0x10060000 0 0x1000>;
  146. #clock-cells = <1>;
  147. };
  148. sgmiisys1: syscon@10070000 {
  149. compatible = "mediatek,mt7986-sgmiisys_1",
  150. "syscon";
  151. reg = <0 0x10070000 0 0x1000>;
  152. #clock-cells = <1>;
  153. };
  154. trng: rng@1020f000 {
  155. compatible = "mediatek,mt7986-rng",
  156. "mediatek,mt7623-rng";
  157. reg = <0 0x1020f000 0 0x100>;
  158. clocks = <&infracfg CLK_INFRA_TRNG_CK>;
  159. clock-names = "rng";
  160. status = "disabled";
  161. };
  162. uart0: serial@11002000 {
  163. compatible = "mediatek,mt7986-uart",
  164. "mediatek,mt6577-uart";
  165. reg = <0 0x11002000 0 0x400>;
  166. interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
  167. clocks = <&infracfg CLK_INFRA_UART0_SEL>,
  168. <&infracfg CLK_INFRA_UART0_CK>;
  169. clock-names = "baud", "bus";
  170. assigned-clocks = <&topckgen CLK_TOP_UART_SEL>,
  171. <&infracfg CLK_INFRA_UART0_SEL>;
  172. assigned-clock-parents = <&topckgen CLK_TOP_XTAL>,
  173. <&topckgen CLK_TOP_UART_SEL>;
  174. status = "disabled";
  175. };
  176. uart1: serial@11003000 {
  177. compatible = "mediatek,mt7986-uart",
  178. "mediatek,mt6577-uart";
  179. reg = <0 0x11003000 0 0x400>;
  180. interrupts = <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>;
  181. clocks = <&infracfg CLK_INFRA_UART1_SEL>,
  182. <&infracfg CLK_INFRA_UART1_CK>;
  183. clock-names = "baud", "bus";
  184. assigned-clocks = <&infracfg CLK_INFRA_UART1_SEL>;
  185. assigned-clock-parents = <&topckgen CLK_TOP_F26M_SEL>;
  186. status = "disabled";
  187. };
  188. uart2: serial@11004000 {
  189. compatible = "mediatek,mt7986-uart",
  190. "mediatek,mt6577-uart";
  191. reg = <0 0x11004000 0 0x400>;
  192. interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>;
  193. clocks = <&infracfg CLK_INFRA_UART2_SEL>,
  194. <&infracfg CLK_INFRA_UART2_CK>;
  195. clock-names = "baud", "bus";
  196. assigned-clocks = <&infracfg CLK_INFRA_UART2_SEL>;
  197. assigned-clock-parents = <&topckgen CLK_TOP_F26M_SEL>;
  198. status = "disabled";
  199. };
  200. ethsys: syscon@15000000 {
  201. #address-cells = <1>;
  202. #size-cells = <1>;
  203. compatible = "mediatek,mt7986-ethsys",
  204. "syscon";
  205. reg = <0 0x15000000 0 0x1000>;
  206. #clock-cells = <1>;
  207. #reset-cells = <1>;
  208. };
  209. wed0: wed@15010000 {
  210. compatible = "mediatek,mt7986-wed",
  211. "syscon";
  212. reg = <0 0x15010000 0 0x1000>;
  213. interrupt-parent = <&gic>;
  214. interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>;
  215. };
  216. wed1: wed@15011000 {
  217. compatible = "mediatek,mt7986-wed",
  218. "syscon";
  219. reg = <0 0x15011000 0 0x1000>;
  220. interrupt-parent = <&gic>;
  221. interrupts = <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>;
  222. };
  223. eth: ethernet@15100000 {
  224. compatible = "mediatek,mt7986-eth";
  225. reg = <0 0x15100000 0 0x80000>;
  226. interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>,
  227. <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>,
  228. <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>,
  229. <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>;
  230. clocks = <&ethsys CLK_ETH_FE_EN>,
  231. <&ethsys CLK_ETH_GP2_EN>,
  232. <&ethsys CLK_ETH_GP1_EN>,
  233. <&ethsys CLK_ETH_WOCPU1_EN>,
  234. <&ethsys CLK_ETH_WOCPU0_EN>,
  235. <&sgmiisys0 CLK_SGMII0_TX250M_EN>,
  236. <&sgmiisys0 CLK_SGMII0_RX250M_EN>,
  237. <&sgmiisys0 CLK_SGMII0_CDR_REF>,
  238. <&sgmiisys0 CLK_SGMII0_CDR_FB>,
  239. <&sgmiisys1 CLK_SGMII1_TX250M_EN>,
  240. <&sgmiisys1 CLK_SGMII1_RX250M_EN>,
  241. <&sgmiisys1 CLK_SGMII1_CDR_REF>,
  242. <&sgmiisys1 CLK_SGMII1_CDR_FB>,
  243. <&topckgen CLK_TOP_NETSYS_SEL>,
  244. <&topckgen CLK_TOP_NETSYS_500M_SEL>;
  245. clock-names = "fe", "gp2", "gp1", "wocpu1", "wocpu0",
  246. "sgmii_tx250m", "sgmii_rx250m",
  247. "sgmii_cdr_ref", "sgmii_cdr_fb",
  248. "sgmii2_tx250m", "sgmii2_rx250m",
  249. "sgmii2_cdr_ref", "sgmii2_cdr_fb",
  250. "netsys0", "netsys1";
  251. assigned-clocks = <&topckgen CLK_TOP_NETSYS_2X_SEL>,
  252. <&topckgen CLK_TOP_SGM_325M_SEL>;
  253. assigned-clock-parents = <&apmixedsys CLK_APMIXED_NET2PLL>,
  254. <&apmixedsys CLK_APMIXED_SGMPLL>;
  255. mediatek,ethsys = <&ethsys>;
  256. mediatek,sgmiisys = <&sgmiisys0>, <&sgmiisys1>;
  257. mediatek,wed-pcie = <&wed_pcie>;
  258. mediatek,wed = <&wed0>, <&wed1>;
  259. #reset-cells = <1>;
  260. #address-cells = <1>;
  261. #size-cells = <0>;
  262. status = "disabled";
  263. };
  264. wifi: wifi@18000000 {
  265. compatible = "mediatek,mt7986-wmac";
  266. resets = <&watchdog MT7986_TOPRGU_CONSYS_SW_RST>;
  267. reset-names = "consys";
  268. clocks = <&topckgen CLK_TOP_CONN_MCUSYS_SEL>,
  269. <&topckgen CLK_TOP_AP2CNN_HOST_SEL>;
  270. clock-names = "mcu", "ap2conn";
  271. reg = <0 0x18000000 0 0x1000000>,
  272. <0 0x10003000 0 0x1000>,
  273. <0 0x11d10000 0 0x1000>;
  274. interrupts = <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>,
  275. <GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>,
  276. <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>,
  277. <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
  278. memory-region = <&wmcpu_emi>;
  279. };
  280. };
  281. };