mt7986a.dtsi 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645
  1. // SPDX-License-Identifier: (GPL-2.0 OR MIT)
  2. /*
  3. * Copyright (C) 2021 MediaTek Inc.
  4. * Author: Sam.Shih <sam.shih@mediatek.com>
  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. #include <dt-bindings/phy/phy.h>
  11. / {
  12. compatible = "mediatek,mt7986a";
  13. interrupt-parent = <&gic>;
  14. #address-cells = <2>;
  15. #size-cells = <2>;
  16. cpus {
  17. #address-cells = <1>;
  18. #size-cells = <0>;
  19. cpu0: cpu@0 {
  20. compatible = "arm,cortex-a53";
  21. reg = <0x0>;
  22. device_type = "cpu";
  23. enable-method = "psci";
  24. #cooling-cells = <2>;
  25. };
  26. cpu1: cpu@1 {
  27. compatible = "arm,cortex-a53";
  28. reg = <0x1>;
  29. device_type = "cpu";
  30. enable-method = "psci";
  31. #cooling-cells = <2>;
  32. };
  33. cpu2: cpu@2 {
  34. compatible = "arm,cortex-a53";
  35. reg = <0x2>;
  36. device_type = "cpu";
  37. enable-method = "psci";
  38. #cooling-cells = <2>;
  39. };
  40. cpu3: cpu@3 {
  41. compatible = "arm,cortex-a53";
  42. reg = <0x3>;
  43. device_type = "cpu";
  44. enable-method = "psci";
  45. #cooling-cells = <2>;
  46. };
  47. };
  48. clk40m: oscillator-40m {
  49. compatible = "fixed-clock";
  50. clock-frequency = <40000000>;
  51. #clock-cells = <0>;
  52. clock-output-names = "clkxtal";
  53. };
  54. psci {
  55. compatible = "arm,psci-0.2";
  56. method = "smc";
  57. };
  58. reserved-memory {
  59. #address-cells = <2>;
  60. #size-cells = <2>;
  61. ranges;
  62. /* 192 KiB reserved for ARM Trusted Firmware (BL31) */
  63. secmon_reserved: secmon@43000000 {
  64. reg = <0 0x43000000 0 0x30000>;
  65. no-map;
  66. };
  67. wmcpu_emi: wmcpu-reserved@4fc00000 {
  68. no-map;
  69. reg = <0 0x4fc00000 0 0x00100000>;
  70. };
  71. wo_emi0: wo-emi@4fd00000 {
  72. reg = <0 0x4fd00000 0 0x40000>;
  73. no-map;
  74. };
  75. wo_emi1: wo-emi@4fd40000 {
  76. reg = <0 0x4fd40000 0 0x40000>;
  77. no-map;
  78. };
  79. wo_ilm0: wo-ilm@151e0000 {
  80. reg = <0 0x151e0000 0 0x8000>;
  81. no-map;
  82. };
  83. wo_ilm1: wo-ilm@151f0000 {
  84. reg = <0 0x151f0000 0 0x8000>;
  85. no-map;
  86. };
  87. wo_data: wo-data@4fd80000 {
  88. reg = <0 0x4fd80000 0 0x240000>;
  89. no-map;
  90. };
  91. wo_dlm0: wo-dlm@151e8000 {
  92. reg = <0 0x151e8000 0 0x2000>;
  93. no-map;
  94. };
  95. wo_dlm1: wo-dlm@151f8000 {
  96. reg = <0 0x151f8000 0 0x2000>;
  97. no-map;
  98. };
  99. wo_boot: wo-boot@15194000 {
  100. reg = <0 0x15194000 0 0x1000>;
  101. no-map;
  102. };
  103. };
  104. soc {
  105. compatible = "simple-bus";
  106. ranges;
  107. #address-cells = <2>;
  108. #size-cells = <2>;
  109. gic: interrupt-controller@c000000 {
  110. compatible = "arm,gic-v3";
  111. reg = <0 0x0c000000 0 0x10000>, /* GICD */
  112. <0 0x0c080000 0 0x80000>, /* GICR */
  113. <0 0x0c400000 0 0x2000>, /* GICC */
  114. <0 0x0c410000 0 0x1000>, /* GICH */
  115. <0 0x0c420000 0 0x2000>; /* GICV */
  116. interrupt-parent = <&gic>;
  117. interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
  118. interrupt-controller;
  119. #interrupt-cells = <3>;
  120. };
  121. infracfg: infracfg@10001000 {
  122. compatible = "mediatek,mt7986-infracfg", "syscon";
  123. reg = <0 0x10001000 0 0x1000>;
  124. #clock-cells = <1>;
  125. #reset-cells = <1>;
  126. };
  127. wed_pcie: wed-pcie@10003000 {
  128. compatible = "mediatek,mt7986-wed-pcie",
  129. "syscon";
  130. reg = <0 0x10003000 0 0x10>;
  131. };
  132. topckgen: topckgen@1001b000 {
  133. compatible = "mediatek,mt7986-topckgen", "syscon";
  134. reg = <0 0x1001B000 0 0x1000>;
  135. #clock-cells = <1>;
  136. };
  137. watchdog: watchdog@1001c000 {
  138. compatible = "mediatek,mt7986-wdt";
  139. reg = <0 0x1001c000 0 0x1000>;
  140. interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH>;
  141. #reset-cells = <1>;
  142. status = "disabled";
  143. };
  144. apmixedsys: apmixedsys@1001e000 {
  145. compatible = "mediatek,mt7986-apmixedsys";
  146. reg = <0 0x1001E000 0 0x1000>;
  147. #clock-cells = <1>;
  148. };
  149. pio: pinctrl@1001f000 {
  150. compatible = "mediatek,mt7986a-pinctrl";
  151. reg = <0 0x1001f000 0 0x1000>,
  152. <0 0x11c30000 0 0x1000>,
  153. <0 0x11c40000 0 0x1000>,
  154. <0 0x11e20000 0 0x1000>,
  155. <0 0x11e30000 0 0x1000>,
  156. <0 0x11f00000 0 0x1000>,
  157. <0 0x11f10000 0 0x1000>,
  158. <0 0x1000b000 0 0x1000>;
  159. reg-names = "gpio", "iocfg_rt", "iocfg_rb", "iocfg_lt",
  160. "iocfg_lb", "iocfg_tr", "iocfg_tl", "eint";
  161. gpio-controller;
  162. #gpio-cells = <2>;
  163. gpio-ranges = <&pio 0 0 100>;
  164. interrupt-controller;
  165. interrupts = <GIC_SPI 225 IRQ_TYPE_LEVEL_HIGH>;
  166. interrupt-parent = <&gic>;
  167. #interrupt-cells = <2>;
  168. };
  169. pwm: pwm@10048000 {
  170. compatible = "mediatek,mt7986-pwm";
  171. reg = <0 0x10048000 0 0x1000>;
  172. #pwm-cells = <2>;
  173. interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>;
  174. clocks = <&topckgen CLK_TOP_PWM_SEL>,
  175. <&infracfg CLK_INFRA_PWM_STA>,
  176. <&infracfg CLK_INFRA_PWM1_CK>,
  177. <&infracfg CLK_INFRA_PWM2_CK>;
  178. clock-names = "top", "main", "pwm1", "pwm2";
  179. status = "disabled";
  180. };
  181. sgmiisys0: syscon@10060000 {
  182. compatible = "mediatek,mt7986-sgmiisys_0",
  183. "syscon";
  184. reg = <0 0x10060000 0 0x1000>;
  185. #clock-cells = <1>;
  186. };
  187. sgmiisys1: syscon@10070000 {
  188. compatible = "mediatek,mt7986-sgmiisys_1",
  189. "syscon";
  190. reg = <0 0x10070000 0 0x1000>;
  191. #clock-cells = <1>;
  192. };
  193. trng: rng@1020f000 {
  194. compatible = "mediatek,mt7986-rng",
  195. "mediatek,mt7623-rng";
  196. reg = <0 0x1020f000 0 0x100>;
  197. clocks = <&infracfg CLK_INFRA_TRNG_CK>;
  198. clock-names = "rng";
  199. status = "disabled";
  200. };
  201. crypto: crypto@10320000 {
  202. compatible = "inside-secure,safexcel-eip97";
  203. reg = <0 0x10320000 0 0x40000>;
  204. interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
  205. <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
  206. <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
  207. <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
  208. interrupt-names = "ring0", "ring1", "ring2", "ring3";
  209. clocks = <&infracfg CLK_INFRA_EIP97_CK>;
  210. assigned-clocks = <&topckgen CLK_TOP_EIP_B_SEL>;
  211. assigned-clock-parents = <&apmixedsys CLK_APMIXED_NET2PLL>;
  212. status = "disabled";
  213. };
  214. uart0: serial@11002000 {
  215. compatible = "mediatek,mt7986-uart",
  216. "mediatek,mt6577-uart";
  217. reg = <0 0x11002000 0 0x400>;
  218. interrupts = <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
  219. clocks = <&infracfg CLK_INFRA_UART0_SEL>,
  220. <&infracfg CLK_INFRA_UART0_CK>;
  221. clock-names = "baud", "bus";
  222. assigned-clocks = <&topckgen CLK_TOP_UART_SEL>,
  223. <&infracfg CLK_INFRA_UART0_SEL>;
  224. assigned-clock-parents = <&topckgen CLK_TOP_XTAL>,
  225. <&topckgen CLK_TOP_UART_SEL>;
  226. status = "disabled";
  227. };
  228. uart1: serial@11003000 {
  229. compatible = "mediatek,mt7986-uart",
  230. "mediatek,mt6577-uart";
  231. reg = <0 0x11003000 0 0x400>;
  232. interrupts = <GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>;
  233. clocks = <&infracfg CLK_INFRA_UART1_SEL>,
  234. <&infracfg CLK_INFRA_UART1_CK>;
  235. clock-names = "baud", "bus";
  236. assigned-clocks = <&infracfg CLK_INFRA_UART1_SEL>;
  237. assigned-clock-parents = <&topckgen CLK_TOP_F26M_SEL>;
  238. status = "disabled";
  239. };
  240. uart2: serial@11004000 {
  241. compatible = "mediatek,mt7986-uart",
  242. "mediatek,mt6577-uart";
  243. reg = <0 0x11004000 0 0x400>;
  244. interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>;
  245. clocks = <&infracfg CLK_INFRA_UART2_SEL>,
  246. <&infracfg CLK_INFRA_UART2_CK>;
  247. clock-names = "baud", "bus";
  248. assigned-clocks = <&infracfg CLK_INFRA_UART2_SEL>;
  249. assigned-clock-parents = <&topckgen CLK_TOP_F26M_SEL>;
  250. status = "disabled";
  251. };
  252. i2c0: i2c@11008000 {
  253. compatible = "mediatek,mt7986-i2c";
  254. reg = <0 0x11008000 0 0x90>,
  255. <0 0x10217080 0 0x80>;
  256. interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>;
  257. clock-div = <5>;
  258. clocks = <&infracfg CLK_INFRA_I2C0_CK>,
  259. <&infracfg CLK_INFRA_AP_DMA_CK>;
  260. clock-names = "main", "dma";
  261. #address-cells = <1>;
  262. #size-cells = <0>;
  263. status = "disabled";
  264. };
  265. spi0: spi@1100a000 {
  266. compatible = "mediatek,mt7986-spi-ipm", "mediatek,spi-ipm";
  267. reg = <0 0x1100a000 0 0x100>;
  268. #address-cells = <1>;
  269. #size-cells = <0>;
  270. interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
  271. clocks = <&topckgen CLK_TOP_MPLL_D2>,
  272. <&topckgen CLK_TOP_SPI_SEL>,
  273. <&infracfg CLK_INFRA_SPI0_CK>,
  274. <&infracfg CLK_INFRA_SPI0_HCK_CK>;
  275. clock-names = "parent-clk", "sel-clk", "spi-clk", "hclk";
  276. status = "disabled";
  277. };
  278. spi1: spi@1100b000 {
  279. compatible = "mediatek,mt7986-spi-ipm", "mediatek,spi-ipm";
  280. reg = <0 0x1100b000 0 0x100>;
  281. #address-cells = <1>;
  282. #size-cells = <0>;
  283. interrupts = <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>;
  284. clocks = <&topckgen CLK_TOP_MPLL_D2>,
  285. <&topckgen CLK_TOP_SPIM_MST_SEL>,
  286. <&infracfg CLK_INFRA_SPI1_CK>,
  287. <&infracfg CLK_INFRA_SPI1_HCK_CK>;
  288. clock-names = "parent-clk", "sel-clk", "spi-clk", "hclk";
  289. status = "disabled";
  290. };
  291. thermal: thermal@1100c800 {
  292. compatible = "mediatek,mt7986-thermal";
  293. reg = <0 0x1100c800 0 0x800>;
  294. interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
  295. clocks = <&infracfg CLK_INFRA_THERM_CK>,
  296. <&infracfg CLK_INFRA_ADC_26M_CK>;
  297. clock-names = "therm", "auxadc";
  298. nvmem-cells = <&thermal_calibration>;
  299. nvmem-cell-names = "calibration-data";
  300. #thermal-sensor-cells = <1>;
  301. mediatek,auxadc = <&auxadc>;
  302. mediatek,apmixedsys = <&apmixedsys>;
  303. };
  304. auxadc: adc@1100d000 {
  305. compatible = "mediatek,mt7986-auxadc";
  306. reg = <0 0x1100d000 0 0x1000>;
  307. clocks = <&infracfg CLK_INFRA_ADC_26M_CK>;
  308. clock-names = "main";
  309. #io-channel-cells = <1>;
  310. status = "disabled";
  311. };
  312. ssusb: usb@11200000 {
  313. compatible = "mediatek,mt7986-xhci",
  314. "mediatek,mtk-xhci";
  315. reg = <0 0x11200000 0 0x2e00>,
  316. <0 0x11203e00 0 0x0100>;
  317. reg-names = "mac", "ippc";
  318. interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
  319. clocks = <&infracfg CLK_INFRA_IUSB_SYS_CK>,
  320. <&infracfg CLK_INFRA_IUSB_CK>,
  321. <&infracfg CLK_INFRA_IUSB_133_CK>,
  322. <&infracfg CLK_INFRA_IUSB_66M_CK>,
  323. <&topckgen CLK_TOP_U2U3_XHCI_SEL>;
  324. clock-names = "sys_ck",
  325. "ref_ck",
  326. "mcu_ck",
  327. "dma_ck",
  328. "xhci_ck";
  329. phys = <&u2port0 PHY_TYPE_USB2>,
  330. <&u3port0 PHY_TYPE_USB3>,
  331. <&u2port1 PHY_TYPE_USB2>;
  332. status = "disabled";
  333. };
  334. mmc0: mmc@11230000 {
  335. compatible = "mediatek,mt7986-mmc";
  336. reg = <0 0x11230000 0 0x1000>,
  337. <0 0x11c20000 0 0x1000>;
  338. interrupts = <GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>;
  339. assigned-clocks = <&topckgen CLK_TOP_EMMC_416M_SEL>,
  340. <&topckgen CLK_TOP_EMMC_250M_SEL>;
  341. assigned-clock-parents = <&apmixedsys CLK_APMIXED_MPLL>,
  342. <&topckgen CLK_TOP_NET1PLL_D5_D2>;
  343. clocks = <&topckgen CLK_TOP_EMMC_416M_SEL>,
  344. <&infracfg CLK_INFRA_MSDC_HCK_CK>,
  345. <&infracfg CLK_INFRA_MSDC_CK>,
  346. <&infracfg CLK_INFRA_MSDC_133M_CK>,
  347. <&infracfg CLK_INFRA_MSDC_66M_CK>;
  348. clock-names = "source", "hclk", "source_cg", "bus_clk",
  349. "sys_cg";
  350. status = "disabled";
  351. };
  352. pcie: pcie@11280000 {
  353. compatible = "mediatek,mt7986-pcie",
  354. "mediatek,mt8192-pcie";
  355. reg = <0x00 0x11280000 0x00 0x4000>;
  356. reg-names = "pcie-mac";
  357. ranges = <0x82000000 0x00 0x20000000 0x00
  358. 0x20000000 0x00 0x10000000>;
  359. device_type = "pci";
  360. #address-cells = <3>;
  361. #size-cells = <2>;
  362. interrupts = <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>;
  363. bus-range = <0x00 0xff>;
  364. clocks = <&infracfg CLK_INFRA_IPCIE_PIPE_CK>,
  365. <&infracfg CLK_INFRA_IPCIE_CK>,
  366. <&infracfg CLK_INFRA_IPCIER_CK>,
  367. <&infracfg CLK_INFRA_IPCIEB_CK>;
  368. clock-names = "pl_250m", "tl_26m", "peri_26m", "top_133m";
  369. phys = <&pcie_port PHY_TYPE_PCIE>;
  370. phy-names = "pcie-phy";
  371. #interrupt-cells = <1>;
  372. interrupt-map-mask = <0 0 0 0x7>;
  373. interrupt-map = <0 0 0 1 &pcie_intc 0>,
  374. <0 0 0 2 &pcie_intc 1>,
  375. <0 0 0 3 &pcie_intc 2>,
  376. <0 0 0 4 &pcie_intc 3>;
  377. status = "disabled";
  378. pcie_intc: interrupt-controller {
  379. #address-cells = <0>;
  380. #interrupt-cells = <1>;
  381. interrupt-controller;
  382. };
  383. };
  384. pcie_phy: t-phy {
  385. compatible = "mediatek,mt7986-tphy",
  386. "mediatek,generic-tphy-v2";
  387. ranges;
  388. #address-cells = <2>;
  389. #size-cells = <2>;
  390. status = "disabled";
  391. pcie_port: pcie-phy@11c00000 {
  392. reg = <0 0x11c00000 0 0x20000>;
  393. clocks = <&clk40m>;
  394. clock-names = "ref";
  395. #phy-cells = <1>;
  396. };
  397. };
  398. efuse: efuse@11d00000 {
  399. compatible = "mediatek,mt7986-efuse", "mediatek,efuse";
  400. reg = <0 0x11d00000 0 0x1000>;
  401. #address-cells = <1>;
  402. #size-cells = <1>;
  403. thermal_calibration: calib@274 {
  404. reg = <0x274 0xc>;
  405. };
  406. };
  407. usb_phy: t-phy@11e10000 {
  408. compatible = "mediatek,mt7986-tphy",
  409. "mediatek,generic-tphy-v2";
  410. ranges = <0 0 0x11e10000 0x1700>;
  411. #address-cells = <1>;
  412. #size-cells = <1>;
  413. status = "disabled";
  414. u2port0: usb-phy@0 {
  415. reg = <0x0 0x700>;
  416. clocks = <&topckgen CLK_TOP_DA_U2_REFSEL>,
  417. <&topckgen CLK_TOP_DA_U2_CK_1P_SEL>;
  418. clock-names = "ref", "da_ref";
  419. #phy-cells = <1>;
  420. };
  421. u3port0: usb-phy@700 {
  422. reg = <0x700 0x900>;
  423. clocks = <&topckgen CLK_TOP_USB3_PHY_SEL>;
  424. clock-names = "ref";
  425. #phy-cells = <1>;
  426. };
  427. u2port1: usb-phy@1000 {
  428. reg = <0x1000 0x700>;
  429. clocks = <&topckgen CLK_TOP_DA_U2_REFSEL>,
  430. <&topckgen CLK_TOP_DA_U2_CK_1P_SEL>;
  431. clock-names = "ref", "da_ref";
  432. #phy-cells = <1>;
  433. };
  434. };
  435. ethsys: syscon@15000000 {
  436. compatible = "mediatek,mt7986-ethsys",
  437. "syscon";
  438. reg = <0 0x15000000 0 0x1000>;
  439. #clock-cells = <1>;
  440. #reset-cells = <1>;
  441. };
  442. wed0: wed@15010000 {
  443. compatible = "mediatek,mt7986-wed",
  444. "syscon";
  445. reg = <0 0x15010000 0 0x1000>;
  446. interrupt-parent = <&gic>;
  447. interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>;
  448. memory-region = <&wo_emi0>, <&wo_ilm0>, <&wo_dlm0>,
  449. <&wo_data>, <&wo_boot>;
  450. memory-region-names = "wo-emi", "wo-ilm", "wo-dlm",
  451. "wo-data", "wo-boot";
  452. mediatek,wo-ccif = <&wo_ccif0>;
  453. };
  454. wed1: wed@15011000 {
  455. compatible = "mediatek,mt7986-wed",
  456. "syscon";
  457. reg = <0 0x15011000 0 0x1000>;
  458. interrupt-parent = <&gic>;
  459. interrupts = <GIC_SPI 206 IRQ_TYPE_LEVEL_HIGH>;
  460. memory-region = <&wo_emi1>, <&wo_ilm1>, <&wo_dlm1>,
  461. <&wo_data>, <&wo_boot>;
  462. memory-region-names = "wo-emi", "wo-ilm", "wo-dlm",
  463. "wo-data", "wo-boot";
  464. mediatek,wo-ccif = <&wo_ccif1>;
  465. };
  466. eth: ethernet@15100000 {
  467. compatible = "mediatek,mt7986-eth";
  468. reg = <0 0x15100000 0 0x80000>;
  469. interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>,
  470. <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>,
  471. <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH>,
  472. <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>;
  473. clocks = <&ethsys CLK_ETH_FE_EN>,
  474. <&ethsys CLK_ETH_GP2_EN>,
  475. <&ethsys CLK_ETH_GP1_EN>,
  476. <&ethsys CLK_ETH_WOCPU1_EN>,
  477. <&ethsys CLK_ETH_WOCPU0_EN>,
  478. <&sgmiisys0 CLK_SGMII0_TX250M_EN>,
  479. <&sgmiisys0 CLK_SGMII0_RX250M_EN>,
  480. <&sgmiisys0 CLK_SGMII0_CDR_REF>,
  481. <&sgmiisys0 CLK_SGMII0_CDR_FB>,
  482. <&sgmiisys1 CLK_SGMII1_TX250M_EN>,
  483. <&sgmiisys1 CLK_SGMII1_RX250M_EN>,
  484. <&sgmiisys1 CLK_SGMII1_CDR_REF>,
  485. <&sgmiisys1 CLK_SGMII1_CDR_FB>,
  486. <&topckgen CLK_TOP_NETSYS_SEL>,
  487. <&topckgen CLK_TOP_NETSYS_500M_SEL>;
  488. clock-names = "fe", "gp2", "gp1", "wocpu1", "wocpu0",
  489. "sgmii_tx250m", "sgmii_rx250m",
  490. "sgmii_cdr_ref", "sgmii_cdr_fb",
  491. "sgmii2_tx250m", "sgmii2_rx250m",
  492. "sgmii2_cdr_ref", "sgmii2_cdr_fb",
  493. "netsys0", "netsys1";
  494. assigned-clocks = <&topckgen CLK_TOP_NETSYS_2X_SEL>,
  495. <&topckgen CLK_TOP_SGM_325M_SEL>;
  496. assigned-clock-parents = <&apmixedsys CLK_APMIXED_NET2PLL>,
  497. <&apmixedsys CLK_APMIXED_SGMPLL>;
  498. #address-cells = <1>;
  499. #size-cells = <0>;
  500. mediatek,ethsys = <&ethsys>;
  501. mediatek,sgmiisys = <&sgmiisys0>, <&sgmiisys1>;
  502. mediatek,wed-pcie = <&wed_pcie>;
  503. mediatek,wed = <&wed0>, <&wed1>;
  504. status = "disabled";
  505. };
  506. wo_ccif0: syscon@151a5000 {
  507. compatible = "mediatek,mt7986-wo-ccif", "syscon";
  508. reg = <0 0x151a5000 0 0x1000>;
  509. interrupt-parent = <&gic>;
  510. interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_HIGH>;
  511. };
  512. wo_ccif1: syscon@151ad000 {
  513. compatible = "mediatek,mt7986-wo-ccif", "syscon";
  514. reg = <0 0x151ad000 0 0x1000>;
  515. interrupt-parent = <&gic>;
  516. interrupts = <GIC_SPI 212 IRQ_TYPE_LEVEL_HIGH>;
  517. };
  518. wifi: wifi@18000000 {
  519. compatible = "mediatek,mt7986-wmac";
  520. reg = <0 0x18000000 0 0x1000000>,
  521. <0 0x10003000 0 0x1000>,
  522. <0 0x11d10000 0 0x1000>;
  523. resets = <&watchdog MT7986_TOPRGU_CONSYS_SW_RST>;
  524. reset-names = "consys";
  525. clocks = <&topckgen CLK_TOP_CONN_MCUSYS_SEL>,
  526. <&topckgen CLK_TOP_AP2CNN_HOST_SEL>;
  527. clock-names = "mcu", "ap2conn";
  528. interrupts = <GIC_SPI 213 IRQ_TYPE_LEVEL_HIGH>,
  529. <GIC_SPI 214 IRQ_TYPE_LEVEL_HIGH>,
  530. <GIC_SPI 215 IRQ_TYPE_LEVEL_HIGH>,
  531. <GIC_SPI 216 IRQ_TYPE_LEVEL_HIGH>;
  532. memory-region = <&wmcpu_emi>;
  533. };
  534. };
  535. thermal-zones {
  536. cpu_thermal: cpu-thermal {
  537. polling-delay-passive = <1000>;
  538. polling-delay = <1000>;
  539. thermal-sensors = <&thermal 0>;
  540. trips {
  541. cpu_trip_crit: crit {
  542. temperature = <125000>;
  543. hysteresis = <2000>;
  544. type = "critical";
  545. };
  546. cpu_trip_hot: hot {
  547. temperature = <120000>;
  548. hysteresis = <2000>;
  549. type = "hot";
  550. };
  551. cpu_trip_active_high: active-high {
  552. temperature = <115000>;
  553. hysteresis = <2000>;
  554. type = "active";
  555. };
  556. cpu_trip_active_med: active-med {
  557. temperature = <85000>;
  558. hysteresis = <2000>;
  559. type = "active";
  560. };
  561. cpu_trip_active_low: active-low {
  562. temperature = <60000>;
  563. hysteresis = <2000>;
  564. type = "active";
  565. };
  566. };
  567. };
  568. };
  569. timer {
  570. compatible = "arm,armv8-timer";
  571. interrupt-parent = <&gic>;
  572. interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
  573. <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
  574. <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
  575. <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
  576. };
  577. };