mt7986a.dtsi 17 KB

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