mt6797.dtsi 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (c) 2017 MediaTek Inc.
  4. * Author: Mars.C <[email protected]>
  5. */
  6. #include <dt-bindings/clock/mt6797-clk.h>
  7. #include <dt-bindings/interrupt-controller/irq.h>
  8. #include <dt-bindings/interrupt-controller/arm-gic.h>
  9. #include <dt-bindings/pinctrl/mt6797-pinfunc.h>
  10. / {
  11. compatible = "mediatek,mt6797";
  12. interrupt-parent = <&sysirq>;
  13. #address-cells = <2>;
  14. #size-cells = <2>;
  15. psci {
  16. compatible = "arm,psci-0.2";
  17. method = "smc";
  18. };
  19. cpus {
  20. #address-cells = <1>;
  21. #size-cells = <0>;
  22. cpu0: cpu@0 {
  23. device_type = "cpu";
  24. compatible = "arm,cortex-a53";
  25. enable-method = "psci";
  26. reg = <0x000>;
  27. };
  28. cpu1: cpu@1 {
  29. device_type = "cpu";
  30. compatible = "arm,cortex-a53";
  31. enable-method = "psci";
  32. reg = <0x001>;
  33. };
  34. cpu2: cpu@2 {
  35. device_type = "cpu";
  36. compatible = "arm,cortex-a53";
  37. enable-method = "psci";
  38. reg = <0x002>;
  39. };
  40. cpu3: cpu@3 {
  41. device_type = "cpu";
  42. compatible = "arm,cortex-a53";
  43. enable-method = "psci";
  44. reg = <0x003>;
  45. };
  46. cpu4: cpu@100 {
  47. device_type = "cpu";
  48. compatible = "arm,cortex-a53";
  49. enable-method = "psci";
  50. reg = <0x100>;
  51. };
  52. cpu5: cpu@101 {
  53. device_type = "cpu";
  54. compatible = "arm,cortex-a53";
  55. enable-method = "psci";
  56. reg = <0x101>;
  57. };
  58. cpu6: cpu@102 {
  59. device_type = "cpu";
  60. compatible = "arm,cortex-a53";
  61. enable-method = "psci";
  62. reg = <0x102>;
  63. };
  64. cpu7: cpu@103 {
  65. device_type = "cpu";
  66. compatible = "arm,cortex-a53";
  67. enable-method = "psci";
  68. reg = <0x103>;
  69. };
  70. cpu8: cpu@200 {
  71. device_type = "cpu";
  72. compatible = "arm,cortex-a72";
  73. enable-method = "psci";
  74. reg = <0x200>;
  75. };
  76. cpu9: cpu@201 {
  77. device_type = "cpu";
  78. compatible = "arm,cortex-a72";
  79. enable-method = "psci";
  80. reg = <0x201>;
  81. };
  82. };
  83. clk26m: oscillator-26m {
  84. compatible = "fixed-clock";
  85. #clock-cells = <0>;
  86. clock-frequency = <26000000>;
  87. clock-output-names = "clk26m";
  88. };
  89. timer {
  90. compatible = "arm,armv8-timer";
  91. interrupt-parent = <&gic>;
  92. interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
  93. <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
  94. <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
  95. <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
  96. };
  97. topckgen: topckgen@10000000 {
  98. compatible = "mediatek,mt6797-topckgen";
  99. reg = <0 0x10000000 0 0x1000>;
  100. #clock-cells = <1>;
  101. };
  102. infrasys: infracfg_ao@10001000 {
  103. compatible = "mediatek,mt6797-infracfg", "syscon";
  104. reg = <0 0x10001000 0 0x1000>;
  105. #clock-cells = <1>;
  106. };
  107. pio: pinctrl@10005000 {
  108. compatible = "mediatek,mt6797-pinctrl";
  109. reg = <0 0x10005000 0 0x1000>,
  110. <0 0x10002000 0 0x400>,
  111. <0 0x10002400 0 0x400>,
  112. <0 0x10002800 0 0x400>,
  113. <0 0x10002C00 0 0x400>;
  114. reg-names = "gpio", "iocfgl", "iocfgb",
  115. "iocfgr", "iocfgt";
  116. gpio-controller;
  117. #gpio-cells = <2>;
  118. uart0_pins_a: uart0 {
  119. pins0 {
  120. pinmux = <MT6797_GPIO234__FUNC_UTXD0>,
  121. <MT6797_GPIO235__FUNC_URXD0>;
  122. };
  123. };
  124. uart1_pins_a: uart1 {
  125. pins1 {
  126. pinmux = <MT6797_GPIO232__FUNC_URXD1>,
  127. <MT6797_GPIO233__FUNC_UTXD1>;
  128. };
  129. };
  130. i2c0_pins_a: i2c0 {
  131. pins0 {
  132. pinmux = <MT6797_GPIO37__FUNC_SCL0_0>,
  133. <MT6797_GPIO38__FUNC_SDA0_0>;
  134. };
  135. };
  136. i2c1_pins_a: i2c1 {
  137. pins1 {
  138. pinmux = <MT6797_GPIO55__FUNC_SCL1_0>,
  139. <MT6797_GPIO56__FUNC_SDA1_0>;
  140. };
  141. };
  142. i2c2_pins_a: i2c2 {
  143. pins2 {
  144. pinmux = <MT6797_GPIO96__FUNC_SCL2_0>,
  145. <MT6797_GPIO95__FUNC_SDA2_0>;
  146. };
  147. };
  148. i2c3_pins_a: i2c3 {
  149. pins3 {
  150. pinmux = <MT6797_GPIO75__FUNC_SDA3_0>,
  151. <MT6797_GPIO74__FUNC_SCL3_0>;
  152. };
  153. };
  154. i2c4_pins_a: i2c4 {
  155. pins4 {
  156. pinmux = <MT6797_GPIO238__FUNC_SDA4_0>,
  157. <MT6797_GPIO239__FUNC_SCL4_0>;
  158. };
  159. };
  160. i2c5_pins_a: i2c5 {
  161. pins5 {
  162. pinmux = <MT6797_GPIO240__FUNC_SDA5_0>,
  163. <MT6797_GPIO241__FUNC_SCL5_0>;
  164. };
  165. };
  166. i2c6_pins_a: i2c6 {
  167. pins6 {
  168. pinmux = <MT6797_GPIO152__FUNC_SDA6_0>,
  169. <MT6797_GPIO151__FUNC_SCL6_0>;
  170. };
  171. };
  172. i2c7_pins_a: i2c7 {
  173. pins7 {
  174. pinmux = <MT6797_GPIO154__FUNC_SDA7_0>,
  175. <MT6797_GPIO153__FUNC_SCL7_0>;
  176. };
  177. };
  178. };
  179. scpsys: power-controller@10006000 {
  180. compatible = "mediatek,mt6797-scpsys";
  181. #power-domain-cells = <1>;
  182. reg = <0 0x10006000 0 0x1000>;
  183. clocks = <&topckgen CLK_TOP_MUX_MFG>,
  184. <&topckgen CLK_TOP_MUX_MM>,
  185. <&topckgen CLK_TOP_MUX_VDEC>;
  186. clock-names = "mfg", "mm", "vdec";
  187. infracfg = <&infrasys>;
  188. };
  189. watchdog: watchdog@10007000 {
  190. compatible = "mediatek,mt6797-wdt", "mediatek,mt6589-wdt";
  191. reg = <0 0x10007000 0 0x100>;
  192. };
  193. apmixedsys: apmixed@1000c000 {
  194. compatible = "mediatek,mt6797-apmixedsys";
  195. reg = <0 0x1000c000 0 0x1000>;
  196. #clock-cells = <1>;
  197. };
  198. sysirq: intpol-controller@10200620 {
  199. compatible = "mediatek,mt6797-sysirq",
  200. "mediatek,mt6577-sysirq";
  201. interrupt-controller;
  202. #interrupt-cells = <3>;
  203. interrupt-parent = <&gic>;
  204. reg = <0 0x10220620 0 0x20>,
  205. <0 0x10220690 0 0x10>;
  206. };
  207. uart0: serial@11002000 {
  208. compatible = "mediatek,mt6797-uart",
  209. "mediatek,mt6577-uart";
  210. reg = <0 0x11002000 0 0x400>;
  211. interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_LOW>;
  212. clocks = <&infrasys CLK_INFRA_UART0>,
  213. <&infrasys CLK_INFRA_AP_DMA>;
  214. clock-names = "baud", "bus";
  215. status = "disabled";
  216. };
  217. uart1: serial@11003000 {
  218. compatible = "mediatek,mt6797-uart",
  219. "mediatek,mt6577-uart";
  220. reg = <0 0x11003000 0 0x400>;
  221. interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_LOW>;
  222. clocks = <&infrasys CLK_INFRA_UART1>,
  223. <&infrasys CLK_INFRA_AP_DMA>;
  224. clock-names = "baud", "bus";
  225. status = "disabled";
  226. };
  227. uart2: serial@11004000 {
  228. compatible = "mediatek,mt6797-uart",
  229. "mediatek,mt6577-uart";
  230. reg = <0 0x11004000 0 0x400>;
  231. interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_LOW>;
  232. clocks = <&infrasys CLK_INFRA_UART2>,
  233. <&infrasys CLK_INFRA_AP_DMA>;
  234. clock-names = "baud", "bus";
  235. status = "disabled";
  236. };
  237. uart3: serial@11005000 {
  238. compatible = "mediatek,mt6797-uart",
  239. "mediatek,mt6577-uart";
  240. reg = <0 0x11005000 0 0x400>;
  241. interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_LOW>;
  242. clocks = <&infrasys CLK_INFRA_UART3>,
  243. <&infrasys CLK_INFRA_AP_DMA>;
  244. clock-names = "baud", "bus";
  245. status = "disabled";
  246. };
  247. i2c0: i2c@11007000 {
  248. compatible = "mediatek,mt6797-i2c",
  249. "mediatek,mt6577-i2c";
  250. id = <0>;
  251. reg = <0 0x11007000 0 0x1000>,
  252. <0 0x11000100 0 0x80>;
  253. interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_LOW>;
  254. clocks = <&infrasys CLK_INFRA_I2C0>,
  255. <&infrasys CLK_INFRA_AP_DMA>;
  256. clock-names = "main", "dma";
  257. clock-div = <10>;
  258. #address-cells = <1>;
  259. #size-cells = <0>;
  260. status = "disabled";
  261. };
  262. i2c1: i2c@11008000 {
  263. compatible = "mediatek,mt6797-i2c",
  264. "mediatek,mt6577-i2c";
  265. id = <1>;
  266. reg = <0 0x11008000 0 0x1000>,
  267. <0 0x11000180 0 0x80>;
  268. interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_LOW>;
  269. clocks = <&infrasys CLK_INFRA_I2C1>,
  270. <&infrasys CLK_INFRA_AP_DMA>;
  271. clock-names = "main", "dma";
  272. clock-div = <10>;
  273. #address-cells = <1>;
  274. #size-cells = <0>;
  275. status = "disabled";
  276. };
  277. i2c8: i2c@11009000 {
  278. compatible = "mediatek,mt6797-i2c",
  279. "mediatek,mt6577-i2c";
  280. id = <8>;
  281. reg = <0 0x11009000 0 0x1000>,
  282. <0 0x11000200 0 0x80>;
  283. interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_LOW>;
  284. clocks = <&infrasys CLK_INFRA_I2C2>,
  285. <&infrasys CLK_INFRA_AP_DMA>,
  286. <&infrasys CLK_INFRA_I2C2_ARB>;
  287. clock-names = "main", "dma", "arb";
  288. clock-div = <10>;
  289. #address-cells = <1>;
  290. #size-cells = <0>;
  291. status = "disabled";
  292. };
  293. i2c9: i2c@1100d000 {
  294. compatible = "mediatek,mt6797-i2c",
  295. "mediatek,mt6577-i2c";
  296. id = <9>;
  297. reg = <0 0x1100d000 0 0x1000>,
  298. <0 0x11000280 0 0x80>;
  299. interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_LOW>;
  300. clocks = <&infrasys CLK_INFRA_I2C3>,
  301. <&infrasys CLK_INFRA_AP_DMA>,
  302. <&infrasys CLK_INFRA_I2C3_ARB>;
  303. clock-names = "main", "dma", "arb";
  304. clock-div = <10>;
  305. #address-cells = <1>;
  306. #size-cells = <0>;
  307. status = "disabled";
  308. };
  309. i2c6: i2c@1100e000 {
  310. compatible = "mediatek,mt6797-i2c",
  311. "mediatek,mt6577-i2c";
  312. id = <6>;
  313. reg = <0 0x1100e000 0 0x1000>,
  314. <0 0x11000500 0 0x80>;
  315. interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_LOW>;
  316. clocks = <&infrasys CLK_INFRA_I2C_APPM>,
  317. <&infrasys CLK_INFRA_AP_DMA>;
  318. clock-names = "main", "dma";
  319. clock-div = <10>;
  320. #address-cells = <1>;
  321. #size-cells = <0>;
  322. status = "disabled";
  323. };
  324. i2c7: i2c@11010000 {
  325. compatible = "mediatek,mt6797-i2c",
  326. "mediatek,mt6577-i2c";
  327. id = <7>;
  328. reg = <0 0x11010000 0 0x1000>,
  329. <0 0x11000580 0 0x80>;
  330. interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_LOW>;
  331. clocks = <&infrasys CLK_INFRA_I2C_GPUPM>,
  332. <&infrasys CLK_INFRA_AP_DMA>;
  333. clock-names = "main", "dma";
  334. clock-div = <10>;
  335. #address-cells = <1>;
  336. #size-cells = <0>;
  337. status = "disabled";
  338. };
  339. i2c4: i2c@11011000 {
  340. compatible = "mediatek,mt6797-i2c",
  341. "mediatek,mt6577-i2c";
  342. id = <4>;
  343. reg = <0 0x11011000 0 0x1000>,
  344. <0 0x11000300 0 0x80>;
  345. interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_LOW>;
  346. clocks = <&infrasys CLK_INFRA_I2C4>,
  347. <&infrasys CLK_INFRA_AP_DMA>;
  348. clock-names = "main", "dma";
  349. clock-div = <10>;
  350. #address-cells = <1>;
  351. #size-cells = <0>;
  352. status = "disabled";
  353. };
  354. i2c2: i2c@11013000 {
  355. compatible = "mediatek,mt6797-i2c",
  356. "mediatek,mt6577-i2c";
  357. id = <2>;
  358. reg = <0 0x11013000 0 0x1000>,
  359. <0 0x11000400 0 0x80>;
  360. interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_LOW>;
  361. clocks = <&infrasys CLK_INFRA_I2C2_IMM>,
  362. <&infrasys CLK_INFRA_AP_DMA>,
  363. <&infrasys CLK_INFRA_I2C2_ARB>;
  364. clock-names = "main", "dma", "arb";
  365. clock-div = <10>;
  366. #address-cells = <1>;
  367. #size-cells = <0>;
  368. status = "disabled";
  369. };
  370. i2c3: i2c@11014000 {
  371. compatible = "mediatek,mt6797-i2c",
  372. "mediatek,mt6577-i2c";
  373. id = <3>;
  374. reg = <0 0x11014000 0 0x1000>,
  375. <0 0x11000480 0 0x80>;
  376. interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_LOW>;
  377. clocks = <&infrasys CLK_INFRA_I2C3_IMM>,
  378. <&infrasys CLK_INFRA_AP_DMA>,
  379. <&infrasys CLK_INFRA_I2C3_ARB>;
  380. clock-names = "main", "dma", "arb";
  381. clock-div = <10>;
  382. #address-cells = <1>;
  383. #size-cells = <0>;
  384. status = "disabled";
  385. };
  386. i2c5: i2c@1101c000 {
  387. compatible = "mediatek,mt6797-i2c",
  388. "mediatek,mt6577-i2c";
  389. id = <5>;
  390. reg = <0 0x1101c000 0 0x1000>,
  391. <0 0x11000380 0 0x80>;
  392. interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_LOW>;
  393. clocks = <&infrasys CLK_INFRA_I2C5>,
  394. <&infrasys CLK_INFRA_AP_DMA>;
  395. clock-names = "main", "dma";
  396. clock-div = <10>;
  397. #address-cells = <1>;
  398. #size-cells = <0>;
  399. status = "disabled";
  400. };
  401. mmsys: syscon@14000000 {
  402. compatible = "mediatek,mt6797-mmsys", "syscon";
  403. reg = <0 0x14000000 0 0x1000>;
  404. #clock-cells = <1>;
  405. };
  406. imgsys: imgsys_config@15000000 {
  407. compatible = "mediatek,mt6797-imgsys", "syscon";
  408. reg = <0 0x15000000 0 0x1000>;
  409. #clock-cells = <1>;
  410. };
  411. vdecsys: vdec_gcon@16000000 {
  412. compatible = "mediatek,mt6797-vdecsys", "syscon";
  413. reg = <0 0x16000000 0 0x10000>;
  414. #clock-cells = <1>;
  415. };
  416. vencsys: venc_gcon@17000000 {
  417. compatible = "mediatek,mt6797-vencsys", "syscon";
  418. reg = <0 0x17000000 0 0x1000>;
  419. #clock-cells = <1>;
  420. };
  421. gic: interrupt-controller@19000000 {
  422. compatible = "arm,gic-v3";
  423. #interrupt-cells = <3>;
  424. interrupt-parent = <&gic>;
  425. interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
  426. interrupt-controller;
  427. reg = <0 0x19000000 0 0x10000>, /* GICD */
  428. <0 0x19200000 0 0x200000>, /* GICR */
  429. <0 0x10240000 0 0x2000>; /* GICC */
  430. };
  431. };