mt7622.dtsi 26 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010
  1. /*
  2. * Copyright (c) 2017 MediaTek Inc.
  3. * Author: Ming Huang <[email protected]>
  4. * Sean Wang <[email protected]>
  5. *
  6. * SPDX-License-Identifier: (GPL-2.0 OR MIT)
  7. */
  8. #include <dt-bindings/interrupt-controller/irq.h>
  9. #include <dt-bindings/interrupt-controller/arm-gic.h>
  10. #include <dt-bindings/clock/mt7622-clk.h>
  11. #include <dt-bindings/phy/phy.h>
  12. #include <dt-bindings/power/mt7622-power.h>
  13. #include <dt-bindings/reset/mt7622-reset.h>
  14. #include <dt-bindings/thermal/thermal.h>
  15. / {
  16. compatible = "mediatek,mt7622";
  17. interrupt-parent = <&sysirq>;
  18. #address-cells = <2>;
  19. #size-cells = <2>;
  20. cpu_opp_table: opp-table {
  21. compatible = "operating-points-v2";
  22. opp-shared;
  23. opp-300000000 {
  24. opp-hz = /bits/ 64 <30000000>;
  25. opp-microvolt = <950000>;
  26. };
  27. opp-437500000 {
  28. opp-hz = /bits/ 64 <437500000>;
  29. opp-microvolt = <1000000>;
  30. };
  31. opp-600000000 {
  32. opp-hz = /bits/ 64 <600000000>;
  33. opp-microvolt = <1050000>;
  34. };
  35. opp-812500000 {
  36. opp-hz = /bits/ 64 <812500000>;
  37. opp-microvolt = <1100000>;
  38. };
  39. opp-1025000000 {
  40. opp-hz = /bits/ 64 <1025000000>;
  41. opp-microvolt = <1150000>;
  42. };
  43. opp-1137500000 {
  44. opp-hz = /bits/ 64 <1137500000>;
  45. opp-microvolt = <1200000>;
  46. };
  47. opp-1262500000 {
  48. opp-hz = /bits/ 64 <1262500000>;
  49. opp-microvolt = <1250000>;
  50. };
  51. opp-1350000000 {
  52. opp-hz = /bits/ 64 <1350000000>;
  53. opp-microvolt = <1310000>;
  54. };
  55. };
  56. cpus {
  57. #address-cells = <2>;
  58. #size-cells = <0>;
  59. cpu0: cpu@0 {
  60. device_type = "cpu";
  61. compatible = "arm,cortex-a53";
  62. reg = <0x0 0x0>;
  63. clocks = <&infracfg CLK_INFRA_MUX1_SEL>,
  64. <&apmixedsys CLK_APMIXED_MAIN_CORE_EN>;
  65. clock-names = "cpu", "intermediate";
  66. operating-points-v2 = <&cpu_opp_table>;
  67. #cooling-cells = <2>;
  68. enable-method = "psci";
  69. clock-frequency = <1300000000>;
  70. cci-control-port = <&cci_control2>;
  71. next-level-cache = <&L2>;
  72. };
  73. cpu1: cpu@1 {
  74. device_type = "cpu";
  75. compatible = "arm,cortex-a53";
  76. reg = <0x0 0x1>;
  77. clocks = <&infracfg CLK_INFRA_MUX1_SEL>,
  78. <&apmixedsys CLK_APMIXED_MAIN_CORE_EN>;
  79. clock-names = "cpu", "intermediate";
  80. operating-points-v2 = <&cpu_opp_table>;
  81. #cooling-cells = <2>;
  82. enable-method = "psci";
  83. clock-frequency = <1300000000>;
  84. cci-control-port = <&cci_control2>;
  85. next-level-cache = <&L2>;
  86. };
  87. L2: l2-cache {
  88. compatible = "cache";
  89. cache-level = <2>;
  90. };
  91. };
  92. pwrap_clk: dummy40m {
  93. compatible = "fixed-clock";
  94. clock-frequency = <40000000>;
  95. #clock-cells = <0>;
  96. };
  97. clk25m: oscillator {
  98. compatible = "fixed-clock";
  99. #clock-cells = <0>;
  100. clock-frequency = <25000000>;
  101. clock-output-names = "clkxtal";
  102. };
  103. psci {
  104. compatible = "arm,psci-0.2";
  105. method = "smc";
  106. };
  107. pmu {
  108. compatible = "arm,cortex-a53-pmu";
  109. interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_LOW>,
  110. <GIC_SPI 9 IRQ_TYPE_LEVEL_LOW>;
  111. interrupt-affinity = <&cpu0>, <&cpu1>;
  112. };
  113. reserved-memory {
  114. #address-cells = <2>;
  115. #size-cells = <2>;
  116. ranges;
  117. /* 192 KiB reserved for ARM Trusted Firmware (BL31) */
  118. secmon_reserved: secmon@43000000 {
  119. reg = <0 0x43000000 0 0x30000>;
  120. no-map;
  121. };
  122. };
  123. thermal-zones {
  124. cpu_thermal: cpu-thermal {
  125. polling-delay-passive = <1000>;
  126. polling-delay = <1000>;
  127. thermal-sensors = <&thermal 0>;
  128. trips {
  129. cpu_passive: cpu-passive {
  130. temperature = <47000>;
  131. hysteresis = <2000>;
  132. type = "passive";
  133. };
  134. cpu_active: cpu-active {
  135. temperature = <67000>;
  136. hysteresis = <2000>;
  137. type = "active";
  138. };
  139. cpu_hot: cpu-hot {
  140. temperature = <87000>;
  141. hysteresis = <2000>;
  142. type = "hot";
  143. };
  144. cpu-crit {
  145. temperature = <107000>;
  146. hysteresis = <2000>;
  147. type = "critical";
  148. };
  149. };
  150. cooling-maps {
  151. map0 {
  152. trip = <&cpu_passive>;
  153. cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
  154. <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
  155. };
  156. map1 {
  157. trip = <&cpu_active>;
  158. cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
  159. <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
  160. };
  161. map2 {
  162. trip = <&cpu_hot>;
  163. cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
  164. <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
  165. };
  166. };
  167. };
  168. };
  169. timer {
  170. compatible = "arm,armv8-timer";
  171. interrupt-parent = <&gic>;
  172. interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
  173. IRQ_TYPE_LEVEL_HIGH)>,
  174. <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) |
  175. IRQ_TYPE_LEVEL_HIGH)>,
  176. <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) |
  177. IRQ_TYPE_LEVEL_HIGH)>,
  178. <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) |
  179. IRQ_TYPE_LEVEL_HIGH)>;
  180. };
  181. infracfg: infracfg@10000000 {
  182. compatible = "mediatek,mt7622-infracfg",
  183. "syscon";
  184. reg = <0 0x10000000 0 0x1000>;
  185. #clock-cells = <1>;
  186. #reset-cells = <1>;
  187. };
  188. pwrap: pwrap@10001000 {
  189. compatible = "mediatek,mt7622-pwrap";
  190. reg = <0 0x10001000 0 0x250>;
  191. reg-names = "pwrap";
  192. clocks = <&infracfg CLK_INFRA_PMIC_PD>, <&pwrap_clk>;
  193. clock-names = "spi", "wrap";
  194. resets = <&infracfg MT7622_INFRA_PMIC_WRAP_RST>;
  195. reset-names = "pwrap";
  196. interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>;
  197. status = "disabled";
  198. };
  199. pericfg: pericfg@10002000 {
  200. compatible = "mediatek,mt7622-pericfg",
  201. "syscon";
  202. reg = <0 0x10002000 0 0x1000>;
  203. #clock-cells = <1>;
  204. #reset-cells = <1>;
  205. };
  206. scpsys: power-controller@10006000 {
  207. compatible = "mediatek,mt7622-scpsys",
  208. "syscon";
  209. #power-domain-cells = <1>;
  210. reg = <0 0x10006000 0 0x1000>;
  211. interrupts = <GIC_SPI 165 IRQ_TYPE_LEVEL_LOW>,
  212. <GIC_SPI 166 IRQ_TYPE_LEVEL_LOW>,
  213. <GIC_SPI 167 IRQ_TYPE_LEVEL_LOW>,
  214. <GIC_SPI 168 IRQ_TYPE_LEVEL_LOW>;
  215. infracfg = <&infracfg>;
  216. clocks = <&topckgen CLK_TOP_HIF_SEL>;
  217. clock-names = "hif_sel";
  218. };
  219. cir: cir@10009000 {
  220. compatible = "mediatek,mt7622-cir";
  221. reg = <0 0x10009000 0 0x1000>;
  222. interrupts = <GIC_SPI 175 IRQ_TYPE_LEVEL_LOW>;
  223. clocks = <&infracfg CLK_INFRA_IRRX_PD>,
  224. <&topckgen CLK_TOP_AXI_SEL>;
  225. clock-names = "clk", "bus";
  226. status = "disabled";
  227. };
  228. sysirq: interrupt-controller@10200620 {
  229. compatible = "mediatek,mt7622-sysirq",
  230. "mediatek,mt6577-sysirq";
  231. interrupt-controller;
  232. #interrupt-cells = <3>;
  233. interrupt-parent = <&gic>;
  234. reg = <0 0x10200620 0 0x20>;
  235. };
  236. efuse: efuse@10206000 {
  237. compatible = "mediatek,mt7622-efuse",
  238. "mediatek,efuse";
  239. reg = <0 0x10206000 0 0x1000>;
  240. #address-cells = <1>;
  241. #size-cells = <1>;
  242. thermal_calibration: calib@198 {
  243. reg = <0x198 0xc>;
  244. };
  245. };
  246. apmixedsys: apmixedsys@10209000 {
  247. compatible = "mediatek,mt7622-apmixedsys",
  248. "syscon";
  249. reg = <0 0x10209000 0 0x1000>;
  250. #clock-cells = <1>;
  251. };
  252. topckgen: topckgen@10210000 {
  253. compatible = "mediatek,mt7622-topckgen",
  254. "syscon";
  255. reg = <0 0x10210000 0 0x1000>;
  256. #clock-cells = <1>;
  257. };
  258. rng: rng@1020f000 {
  259. compatible = "mediatek,mt7622-rng",
  260. "mediatek,mt7623-rng";
  261. reg = <0 0x1020f000 0 0x1000>;
  262. clocks = <&infracfg CLK_INFRA_TRNG>;
  263. clock-names = "rng";
  264. };
  265. pio: pinctrl@10211000 {
  266. compatible = "mediatek,mt7622-pinctrl";
  267. reg = <0 0x10211000 0 0x1000>,
  268. <0 0x10005000 0 0x1000>;
  269. reg-names = "base", "eint";
  270. gpio-controller;
  271. #gpio-cells = <2>;
  272. gpio-ranges = <&pio 0 0 103>;
  273. interrupt-controller;
  274. interrupts = <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>;
  275. interrupt-parent = <&gic>;
  276. #interrupt-cells = <2>;
  277. };
  278. watchdog: watchdog@10212000 {
  279. compatible = "mediatek,mt7622-wdt",
  280. "mediatek,mt6589-wdt";
  281. reg = <0 0x10212000 0 0x800>;
  282. };
  283. rtc: rtc@10212800 {
  284. compatible = "mediatek,mt7622-rtc",
  285. "mediatek,soc-rtc";
  286. reg = <0 0x10212800 0 0x200>;
  287. interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_LOW>;
  288. clocks = <&topckgen CLK_TOP_RTC>;
  289. clock-names = "rtc";
  290. };
  291. gic: interrupt-controller@10300000 {
  292. compatible = "arm,gic-400";
  293. interrupt-controller;
  294. #interrupt-cells = <3>;
  295. interrupt-parent = <&gic>;
  296. reg = <0 0x10310000 0 0x1000>,
  297. <0 0x10320000 0 0x1000>,
  298. <0 0x10340000 0 0x2000>,
  299. <0 0x10360000 0 0x2000>;
  300. };
  301. cci: cci@10390000 {
  302. compatible = "arm,cci-400";
  303. #address-cells = <1>;
  304. #size-cells = <1>;
  305. reg = <0 0x10390000 0 0x1000>;
  306. ranges = <0 0 0x10390000 0x10000>;
  307. cci_control0: slave-if@1000 {
  308. compatible = "arm,cci-400-ctrl-if";
  309. interface-type = "ace-lite";
  310. reg = <0x1000 0x1000>;
  311. };
  312. cci_control1: slave-if@4000 {
  313. compatible = "arm,cci-400-ctrl-if";
  314. interface-type = "ace";
  315. reg = <0x4000 0x1000>;
  316. };
  317. cci_control2: slave-if@5000 {
  318. compatible = "arm,cci-400-ctrl-if", "syscon";
  319. interface-type = "ace";
  320. reg = <0x5000 0x1000>;
  321. };
  322. pmu@9000 {
  323. compatible = "arm,cci-400-pmu,r1";
  324. reg = <0x9000 0x5000>;
  325. interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>,
  326. <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>,
  327. <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>,
  328. <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>,
  329. <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
  330. };
  331. };
  332. auxadc: adc@11001000 {
  333. compatible = "mediatek,mt7622-auxadc";
  334. reg = <0 0x11001000 0 0x1000>;
  335. clocks = <&pericfg CLK_PERI_AUXADC_PD>;
  336. clock-names = "main";
  337. #io-channel-cells = <1>;
  338. };
  339. uart0: serial@11002000 {
  340. compatible = "mediatek,mt7622-uart",
  341. "mediatek,mt6577-uart";
  342. reg = <0 0x11002000 0 0x400>;
  343. interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_LOW>;
  344. clocks = <&topckgen CLK_TOP_UART_SEL>,
  345. <&pericfg CLK_PERI_UART0_PD>;
  346. clock-names = "baud", "bus";
  347. status = "disabled";
  348. };
  349. uart1: serial@11003000 {
  350. compatible = "mediatek,mt7622-uart",
  351. "mediatek,mt6577-uart";
  352. reg = <0 0x11003000 0 0x400>;
  353. interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_LOW>;
  354. clocks = <&topckgen CLK_TOP_UART_SEL>,
  355. <&pericfg CLK_PERI_UART1_PD>;
  356. clock-names = "baud", "bus";
  357. status = "disabled";
  358. };
  359. uart2: serial@11004000 {
  360. compatible = "mediatek,mt7622-uart",
  361. "mediatek,mt6577-uart";
  362. reg = <0 0x11004000 0 0x400>;
  363. interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_LOW>;
  364. clocks = <&topckgen CLK_TOP_UART_SEL>,
  365. <&pericfg CLK_PERI_UART2_PD>;
  366. clock-names = "baud", "bus";
  367. status = "disabled";
  368. };
  369. uart3: serial@11005000 {
  370. compatible = "mediatek,mt7622-uart",
  371. "mediatek,mt6577-uart";
  372. reg = <0 0x11005000 0 0x400>;
  373. interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_LOW>;
  374. clocks = <&topckgen CLK_TOP_UART_SEL>,
  375. <&pericfg CLK_PERI_UART3_PD>;
  376. clock-names = "baud", "bus";
  377. status = "disabled";
  378. };
  379. pwm: pwm@11006000 {
  380. compatible = "mediatek,mt7622-pwm";
  381. reg = <0 0x11006000 0 0x1000>;
  382. #pwm-cells = <2>;
  383. interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_LOW>;
  384. clocks = <&topckgen CLK_TOP_PWM_SEL>,
  385. <&pericfg CLK_PERI_PWM_PD>,
  386. <&pericfg CLK_PERI_PWM1_PD>,
  387. <&pericfg CLK_PERI_PWM2_PD>,
  388. <&pericfg CLK_PERI_PWM3_PD>,
  389. <&pericfg CLK_PERI_PWM4_PD>,
  390. <&pericfg CLK_PERI_PWM5_PD>,
  391. <&pericfg CLK_PERI_PWM6_PD>;
  392. clock-names = "top", "main", "pwm1", "pwm2", "pwm3", "pwm4",
  393. "pwm5", "pwm6";
  394. status = "disabled";
  395. };
  396. i2c0: i2c@11007000 {
  397. compatible = "mediatek,mt7622-i2c";
  398. reg = <0 0x11007000 0 0x90>,
  399. <0 0x11000100 0 0x80>;
  400. interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_LOW>;
  401. clock-div = <16>;
  402. clocks = <&pericfg CLK_PERI_I2C0_PD>,
  403. <&pericfg CLK_PERI_AP_DMA_PD>;
  404. clock-names = "main", "dma";
  405. #address-cells = <1>;
  406. #size-cells = <0>;
  407. status = "disabled";
  408. };
  409. i2c1: i2c@11008000 {
  410. compatible = "mediatek,mt7622-i2c";
  411. reg = <0 0x11008000 0 0x90>,
  412. <0 0x11000180 0 0x80>;
  413. interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_LOW>;
  414. clock-div = <16>;
  415. clocks = <&pericfg CLK_PERI_I2C1_PD>,
  416. <&pericfg CLK_PERI_AP_DMA_PD>;
  417. clock-names = "main", "dma";
  418. #address-cells = <1>;
  419. #size-cells = <0>;
  420. status = "disabled";
  421. };
  422. i2c2: i2c@11009000 {
  423. compatible = "mediatek,mt7622-i2c";
  424. reg = <0 0x11009000 0 0x90>,
  425. <0 0x11000200 0 0x80>;
  426. interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_LOW>;
  427. clock-div = <16>;
  428. clocks = <&pericfg CLK_PERI_I2C2_PD>,
  429. <&pericfg CLK_PERI_AP_DMA_PD>;
  430. clock-names = "main", "dma";
  431. #address-cells = <1>;
  432. #size-cells = <0>;
  433. status = "disabled";
  434. };
  435. spi0: spi@1100a000 {
  436. compatible = "mediatek,mt7622-spi";
  437. reg = <0 0x1100a000 0 0x100>;
  438. interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_LOW>;
  439. clocks = <&topckgen CLK_TOP_SYSPLL3_D2>,
  440. <&topckgen CLK_TOP_SPI0_SEL>,
  441. <&pericfg CLK_PERI_SPI0_PD>;
  442. clock-names = "parent-clk", "sel-clk", "spi-clk";
  443. #address-cells = <1>;
  444. #size-cells = <0>;
  445. status = "disabled";
  446. };
  447. thermal: thermal@1100b000 {
  448. #thermal-sensor-cells = <1>;
  449. compatible = "mediatek,mt7622-thermal";
  450. reg = <0 0x1100b000 0 0x1000>;
  451. interrupts = <0 78 IRQ_TYPE_LEVEL_LOW>;
  452. clocks = <&pericfg CLK_PERI_THERM_PD>,
  453. <&pericfg CLK_PERI_AUXADC_PD>;
  454. clock-names = "therm", "auxadc";
  455. resets = <&pericfg MT7622_PERI_THERM_SW_RST>;
  456. reset-names = "therm";
  457. mediatek,auxadc = <&auxadc>;
  458. mediatek,apmixedsys = <&apmixedsys>;
  459. nvmem-cells = <&thermal_calibration>;
  460. nvmem-cell-names = "calibration-data";
  461. };
  462. btif: serial@1100c000 {
  463. compatible = "mediatek,mt7622-btif",
  464. "mediatek,mtk-btif";
  465. reg = <0 0x1100c000 0 0x1000>;
  466. interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_LOW>;
  467. clocks = <&pericfg CLK_PERI_BTIF_PD>;
  468. clock-names = "main";
  469. reg-shift = <2>;
  470. reg-io-width = <4>;
  471. status = "disabled";
  472. bluetooth {
  473. compatible = "mediatek,mt7622-bluetooth";
  474. power-domains = <&scpsys MT7622_POWER_DOMAIN_WB>;
  475. clocks = <&clk25m>;
  476. clock-names = "ref";
  477. };
  478. };
  479. nandc: nfi@1100d000 {
  480. compatible = "mediatek,mt7622-nfc";
  481. reg = <0 0x1100D000 0 0x1000>;
  482. interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_LOW>;
  483. clocks = <&pericfg CLK_PERI_NFI_PD>,
  484. <&pericfg CLK_PERI_SNFI_PD>;
  485. clock-names = "nfi_clk", "pad_clk";
  486. ecc-engine = <&bch>;
  487. #address-cells = <1>;
  488. #size-cells = <0>;
  489. status = "disabled";
  490. };
  491. snfi: spi@1100d000 {
  492. compatible = "mediatek,mt7622-snand";
  493. reg = <0 0x1100d000 0 0x1000>;
  494. interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_LOW>;
  495. clocks = <&pericfg CLK_PERI_NFI_PD>, <&pericfg CLK_PERI_SNFI_PD>;
  496. clock-names = "nfi_clk", "pad_clk";
  497. nand-ecc-engine = <&bch>;
  498. #address-cells = <1>;
  499. #size-cells = <0>;
  500. status = "disabled";
  501. };
  502. bch: ecc@1100e000 {
  503. compatible = "mediatek,mt7622-ecc";
  504. reg = <0 0x1100e000 0 0x1000>;
  505. interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_LOW>;
  506. clocks = <&pericfg CLK_PERI_NFIECC_PD>;
  507. clock-names = "nfiecc_clk";
  508. status = "disabled";
  509. };
  510. nor_flash: spi@11014000 {
  511. compatible = "mediatek,mt7622-nor",
  512. "mediatek,mt8173-nor";
  513. reg = <0 0x11014000 0 0xe0>;
  514. clocks = <&pericfg CLK_PERI_FLASH_PD>,
  515. <&topckgen CLK_TOP_FLASH_SEL>;
  516. clock-names = "spi", "sf";
  517. #address-cells = <1>;
  518. #size-cells = <0>;
  519. status = "disabled";
  520. };
  521. spi1: spi@11016000 {
  522. compatible = "mediatek,mt7622-spi";
  523. reg = <0 0x11016000 0 0x100>;
  524. interrupts = <GIC_SPI 122 IRQ_TYPE_LEVEL_LOW>;
  525. clocks = <&topckgen CLK_TOP_SYSPLL3_D2>,
  526. <&topckgen CLK_TOP_SPI1_SEL>,
  527. <&pericfg CLK_PERI_SPI1_PD>;
  528. clock-names = "parent-clk", "sel-clk", "spi-clk";
  529. #address-cells = <1>;
  530. #size-cells = <0>;
  531. status = "disabled";
  532. };
  533. uart4: serial@11019000 {
  534. compatible = "mediatek,mt7622-uart",
  535. "mediatek,mt6577-uart";
  536. reg = <0 0x11019000 0 0x400>;
  537. interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_LOW>;
  538. clocks = <&topckgen CLK_TOP_UART_SEL>,
  539. <&pericfg CLK_PERI_UART4_PD>;
  540. clock-names = "baud", "bus";
  541. status = "disabled";
  542. };
  543. audsys: clock-controller@11220000 {
  544. compatible = "mediatek,mt7622-audsys", "syscon";
  545. reg = <0 0x11220000 0 0x2000>;
  546. #clock-cells = <1>;
  547. afe: audio-controller {
  548. compatible = "mediatek,mt7622-audio";
  549. interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_LOW>,
  550. <GIC_SPI 145 IRQ_TYPE_LEVEL_LOW>;
  551. interrupt-names = "afe", "asys";
  552. clocks = <&infracfg CLK_INFRA_AUDIO_PD>,
  553. <&topckgen CLK_TOP_AUD1_SEL>,
  554. <&topckgen CLK_TOP_AUD2_SEL>,
  555. <&topckgen CLK_TOP_A1SYS_HP_DIV_PD>,
  556. <&topckgen CLK_TOP_A2SYS_HP_DIV_PD>,
  557. <&topckgen CLK_TOP_I2S0_MCK_SEL>,
  558. <&topckgen CLK_TOP_I2S1_MCK_SEL>,
  559. <&topckgen CLK_TOP_I2S2_MCK_SEL>,
  560. <&topckgen CLK_TOP_I2S3_MCK_SEL>,
  561. <&topckgen CLK_TOP_I2S0_MCK_DIV>,
  562. <&topckgen CLK_TOP_I2S1_MCK_DIV>,
  563. <&topckgen CLK_TOP_I2S2_MCK_DIV>,
  564. <&topckgen CLK_TOP_I2S3_MCK_DIV>,
  565. <&topckgen CLK_TOP_I2S0_MCK_DIV_PD>,
  566. <&topckgen CLK_TOP_I2S1_MCK_DIV_PD>,
  567. <&topckgen CLK_TOP_I2S2_MCK_DIV_PD>,
  568. <&topckgen CLK_TOP_I2S3_MCK_DIV_PD>,
  569. <&audsys CLK_AUDIO_I2SO1>,
  570. <&audsys CLK_AUDIO_I2SO2>,
  571. <&audsys CLK_AUDIO_I2SO3>,
  572. <&audsys CLK_AUDIO_I2SO4>,
  573. <&audsys CLK_AUDIO_I2SIN1>,
  574. <&audsys CLK_AUDIO_I2SIN2>,
  575. <&audsys CLK_AUDIO_I2SIN3>,
  576. <&audsys CLK_AUDIO_I2SIN4>,
  577. <&audsys CLK_AUDIO_ASRCO1>,
  578. <&audsys CLK_AUDIO_ASRCO2>,
  579. <&audsys CLK_AUDIO_ASRCO3>,
  580. <&audsys CLK_AUDIO_ASRCO4>,
  581. <&audsys CLK_AUDIO_AFE>,
  582. <&audsys CLK_AUDIO_AFE_CONN>,
  583. <&audsys CLK_AUDIO_A1SYS>,
  584. <&audsys CLK_AUDIO_A2SYS>;
  585. clock-names = "infra_sys_audio_clk",
  586. "top_audio_mux1_sel",
  587. "top_audio_mux2_sel",
  588. "top_audio_a1sys_hp",
  589. "top_audio_a2sys_hp",
  590. "i2s0_src_sel",
  591. "i2s1_src_sel",
  592. "i2s2_src_sel",
  593. "i2s3_src_sel",
  594. "i2s0_src_div",
  595. "i2s1_src_div",
  596. "i2s2_src_div",
  597. "i2s3_src_div",
  598. "i2s0_mclk_en",
  599. "i2s1_mclk_en",
  600. "i2s2_mclk_en",
  601. "i2s3_mclk_en",
  602. "i2so0_hop_ck",
  603. "i2so1_hop_ck",
  604. "i2so2_hop_ck",
  605. "i2so3_hop_ck",
  606. "i2si0_hop_ck",
  607. "i2si1_hop_ck",
  608. "i2si2_hop_ck",
  609. "i2si3_hop_ck",
  610. "asrc0_out_ck",
  611. "asrc1_out_ck",
  612. "asrc2_out_ck",
  613. "asrc3_out_ck",
  614. "audio_afe_pd",
  615. "audio_afe_conn_pd",
  616. "audio_a1sys_pd",
  617. "audio_a2sys_pd";
  618. assigned-clocks = <&topckgen CLK_TOP_A1SYS_HP_SEL>,
  619. <&topckgen CLK_TOP_A2SYS_HP_SEL>,
  620. <&topckgen CLK_TOP_A1SYS_HP_DIV>,
  621. <&topckgen CLK_TOP_A2SYS_HP_DIV>;
  622. assigned-clock-parents = <&topckgen CLK_TOP_AUD1PLL>,
  623. <&topckgen CLK_TOP_AUD2PLL>;
  624. assigned-clock-rates = <0>, <0>, <49152000>, <45158400>;
  625. };
  626. };
  627. mmc0: mmc@11230000 {
  628. compatible = "mediatek,mt7622-mmc";
  629. reg = <0 0x11230000 0 0x1000>;
  630. interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_LOW>;
  631. clocks = <&pericfg CLK_PERI_MSDC30_0_PD>,
  632. <&topckgen CLK_TOP_MSDC50_0_SEL>;
  633. clock-names = "source", "hclk";
  634. resets = <&pericfg MT7622_PERI_MSDC0_SW_RST>;
  635. reset-names = "hrst";
  636. status = "disabled";
  637. };
  638. mmc1: mmc@11240000 {
  639. compatible = "mediatek,mt7622-mmc";
  640. reg = <0 0x11240000 0 0x1000>;
  641. interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_LOW>;
  642. clocks = <&pericfg CLK_PERI_MSDC30_1_PD>,
  643. <&topckgen CLK_TOP_AXI_SEL>;
  644. clock-names = "source", "hclk";
  645. resets = <&pericfg MT7622_PERI_MSDC1_SW_RST>;
  646. reset-names = "hrst";
  647. status = "disabled";
  648. };
  649. wmac: wmac@18000000 {
  650. compatible = "mediatek,mt7622-wmac";
  651. reg = <0 0x18000000 0 0x100000>;
  652. interrupts = <GIC_SPI 211 IRQ_TYPE_LEVEL_LOW>;
  653. mediatek,infracfg = <&infracfg>;
  654. status = "disabled";
  655. power-domains = <&scpsys MT7622_POWER_DOMAIN_WB>;
  656. };
  657. ssusbsys: ssusbsys@1a000000 {
  658. compatible = "mediatek,mt7622-ssusbsys",
  659. "syscon";
  660. reg = <0 0x1a000000 0 0x1000>;
  661. #clock-cells = <1>;
  662. #reset-cells = <1>;
  663. };
  664. ssusb: usb@1a0c0000 {
  665. compatible = "mediatek,mt7622-xhci",
  666. "mediatek,mtk-xhci";
  667. reg = <0 0x1a0c0000 0 0x01000>,
  668. <0 0x1a0c4700 0 0x0100>;
  669. reg-names = "mac", "ippc";
  670. interrupts = <GIC_SPI 232 IRQ_TYPE_LEVEL_LOW>;
  671. power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF1>;
  672. clocks = <&ssusbsys CLK_SSUSB_SYS_EN>,
  673. <&ssusbsys CLK_SSUSB_REF_EN>,
  674. <&ssusbsys CLK_SSUSB_MCU_EN>,
  675. <&ssusbsys CLK_SSUSB_DMA_EN>;
  676. clock-names = "sys_ck", "ref_ck", "mcu_ck", "dma_ck";
  677. phys = <&u2port0 PHY_TYPE_USB2>,
  678. <&u3port0 PHY_TYPE_USB3>,
  679. <&u2port1 PHY_TYPE_USB2>;
  680. status = "disabled";
  681. };
  682. u3phy: t-phy@1a0c4000 {
  683. compatible = "mediatek,mt7622-tphy",
  684. "mediatek,generic-tphy-v1";
  685. reg = <0 0x1a0c4000 0 0x700>;
  686. #address-cells = <2>;
  687. #size-cells = <2>;
  688. ranges;
  689. status = "disabled";
  690. u2port0: usb-phy@1a0c4800 {
  691. reg = <0 0x1a0c4800 0 0x0100>;
  692. #phy-cells = <1>;
  693. clocks = <&ssusbsys CLK_SSUSB_U2_PHY_EN>;
  694. clock-names = "ref";
  695. };
  696. u3port0: usb-phy@1a0c4900 {
  697. reg = <0 0x1a0c4900 0 0x0700>;
  698. #phy-cells = <1>;
  699. clocks = <&clk25m>;
  700. clock-names = "ref";
  701. };
  702. u2port1: usb-phy@1a0c5000 {
  703. reg = <0 0x1a0c5000 0 0x0100>;
  704. #phy-cells = <1>;
  705. clocks = <&ssusbsys CLK_SSUSB_U2_PHY_1P_EN>;
  706. clock-names = "ref";
  707. };
  708. };
  709. pciesys: pciesys@1a100800 {
  710. compatible = "mediatek,mt7622-pciesys",
  711. "syscon";
  712. reg = <0 0x1a100800 0 0x1000>;
  713. #clock-cells = <1>;
  714. #reset-cells = <1>;
  715. };
  716. pciecfg: pciecfg@1a140000 {
  717. compatible = "mediatek,generic-pciecfg", "syscon";
  718. reg = <0 0x1a140000 0 0x1000>;
  719. };
  720. pcie0: pcie@1a143000 {
  721. compatible = "mediatek,mt7622-pcie";
  722. device_type = "pci";
  723. reg = <0 0x1a143000 0 0x1000>;
  724. reg-names = "port0";
  725. linux,pci-domain = <0>;
  726. #address-cells = <3>;
  727. #size-cells = <2>;
  728. interrupts = <GIC_SPI 228 IRQ_TYPE_LEVEL_LOW>;
  729. interrupt-names = "pcie_irq";
  730. clocks = <&pciesys CLK_PCIE_P0_MAC_EN>,
  731. <&pciesys CLK_PCIE_P0_AHB_EN>,
  732. <&pciesys CLK_PCIE_P0_AUX_EN>,
  733. <&pciesys CLK_PCIE_P0_AXI_EN>,
  734. <&pciesys CLK_PCIE_P0_OBFF_EN>,
  735. <&pciesys CLK_PCIE_P0_PIPE_EN>;
  736. clock-names = "sys_ck0", "ahb_ck0", "aux_ck0",
  737. "axi_ck0", "obff_ck0", "pipe_ck0";
  738. power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF0>;
  739. bus-range = <0x00 0xff>;
  740. ranges = <0x82000000 0 0x20000000 0x0 0x20000000 0 0x8000000>;
  741. status = "disabled";
  742. #interrupt-cells = <1>;
  743. interrupt-map-mask = <0 0 0 7>;
  744. interrupt-map = <0 0 0 1 &pcie_intc0 0>,
  745. <0 0 0 2 &pcie_intc0 1>,
  746. <0 0 0 3 &pcie_intc0 2>,
  747. <0 0 0 4 &pcie_intc0 3>;
  748. pcie_intc0: interrupt-controller {
  749. interrupt-controller;
  750. #address-cells = <0>;
  751. #interrupt-cells = <1>;
  752. };
  753. };
  754. pcie1: pcie@1a145000 {
  755. compatible = "mediatek,mt7622-pcie";
  756. device_type = "pci";
  757. reg = <0 0x1a145000 0 0x1000>;
  758. reg-names = "port1";
  759. linux,pci-domain = <1>;
  760. #address-cells = <3>;
  761. #size-cells = <2>;
  762. interrupts = <GIC_SPI 229 IRQ_TYPE_LEVEL_LOW>;
  763. interrupt-names = "pcie_irq";
  764. clocks = <&pciesys CLK_PCIE_P1_MAC_EN>,
  765. /* designer has connect RC1 with p0_ahb clock */
  766. <&pciesys CLK_PCIE_P0_AHB_EN>,
  767. <&pciesys CLK_PCIE_P1_AUX_EN>,
  768. <&pciesys CLK_PCIE_P1_AXI_EN>,
  769. <&pciesys CLK_PCIE_P1_OBFF_EN>,
  770. <&pciesys CLK_PCIE_P1_PIPE_EN>;
  771. clock-names = "sys_ck1", "ahb_ck1", "aux_ck1",
  772. "axi_ck1", "obff_ck1", "pipe_ck1";
  773. power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF0>;
  774. bus-range = <0x00 0xff>;
  775. ranges = <0x82000000 0 0x28000000 0x0 0x28000000 0 0x8000000>;
  776. status = "disabled";
  777. #interrupt-cells = <1>;
  778. interrupt-map-mask = <0 0 0 7>;
  779. interrupt-map = <0 0 0 1 &pcie_intc1 0>,
  780. <0 0 0 2 &pcie_intc1 1>,
  781. <0 0 0 3 &pcie_intc1 2>,
  782. <0 0 0 4 &pcie_intc1 3>;
  783. pcie_intc1: interrupt-controller {
  784. interrupt-controller;
  785. #address-cells = <0>;
  786. #interrupt-cells = <1>;
  787. };
  788. };
  789. sata: sata@1a200000 {
  790. compatible = "mediatek,mt7622-ahci",
  791. "mediatek,mtk-ahci";
  792. reg = <0 0x1a200000 0 0x1100>;
  793. interrupts = <GIC_SPI 233 IRQ_TYPE_LEVEL_HIGH>;
  794. interrupt-names = "hostc";
  795. clocks = <&pciesys CLK_SATA_AHB_EN>,
  796. <&pciesys CLK_SATA_AXI_EN>,
  797. <&pciesys CLK_SATA_ASIC_EN>,
  798. <&pciesys CLK_SATA_RBC_EN>,
  799. <&pciesys CLK_SATA_PM_EN>;
  800. clock-names = "ahb", "axi", "asic", "rbc", "pm";
  801. phys = <&sata_port PHY_TYPE_SATA>;
  802. phy-names = "sata-phy";
  803. ports-implemented = <0x1>;
  804. power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF0>;
  805. resets = <&pciesys MT7622_SATA_AXI_BUS_RST>,
  806. <&pciesys MT7622_SATA_PHY_SW_RST>,
  807. <&pciesys MT7622_SATA_PHY_REG_RST>;
  808. reset-names = "axi", "sw", "reg";
  809. mediatek,phy-mode = <&pciesys>;
  810. status = "disabled";
  811. };
  812. sata_phy: t-phy@1a243000 {
  813. compatible = "mediatek,mt7622-tphy",
  814. "mediatek,generic-tphy-v1";
  815. #address-cells = <2>;
  816. #size-cells = <2>;
  817. ranges;
  818. status = "disabled";
  819. sata_port: sata-phy@1a243000 {
  820. reg = <0 0x1a243000 0 0x0100>;
  821. clocks = <&topckgen CLK_TOP_ETH_500M>;
  822. clock-names = "ref";
  823. #phy-cells = <1>;
  824. };
  825. };
  826. hifsys: syscon@1af00000 {
  827. compatible = "mediatek,mt7622-hifsys", "syscon";
  828. reg = <0 0x1af00000 0 0x70>;
  829. };
  830. ethsys: syscon@1b000000 {
  831. compatible = "mediatek,mt7622-ethsys",
  832. "syscon";
  833. reg = <0 0x1b000000 0 0x1000>;
  834. #clock-cells = <1>;
  835. #reset-cells = <1>;
  836. };
  837. hsdma: dma-controller@1b007000 {
  838. compatible = "mediatek,mt7622-hsdma";
  839. reg = <0 0x1b007000 0 0x1000>;
  840. interrupts = <GIC_SPI 219 IRQ_TYPE_LEVEL_LOW>;
  841. clocks = <&ethsys CLK_ETH_HSDMA_EN>;
  842. clock-names = "hsdma";
  843. power-domains = <&scpsys MT7622_POWER_DOMAIN_ETHSYS>;
  844. #dma-cells = <1>;
  845. dma-requests = <3>;
  846. };
  847. pcie_mirror: pcie-mirror@10000400 {
  848. compatible = "mediatek,mt7622-pcie-mirror",
  849. "syscon";
  850. reg = <0 0x10000400 0 0x10>;
  851. };
  852. wed0: wed@1020a000 {
  853. compatible = "mediatek,mt7622-wed",
  854. "syscon";
  855. reg = <0 0x1020a000 0 0x1000>;
  856. interrupts = <GIC_SPI 214 IRQ_TYPE_LEVEL_LOW>;
  857. };
  858. wed1: wed@1020b000 {
  859. compatible = "mediatek,mt7622-wed",
  860. "syscon";
  861. reg = <0 0x1020b000 0 0x1000>;
  862. interrupts = <GIC_SPI 215 IRQ_TYPE_LEVEL_LOW>;
  863. };
  864. eth: ethernet@1b100000 {
  865. compatible = "mediatek,mt7622-eth",
  866. "mediatek,mt2701-eth",
  867. "syscon";
  868. reg = <0 0x1b100000 0 0x20000>;
  869. interrupts = <GIC_SPI 223 IRQ_TYPE_LEVEL_LOW>,
  870. <GIC_SPI 224 IRQ_TYPE_LEVEL_LOW>,
  871. <GIC_SPI 225 IRQ_TYPE_LEVEL_LOW>;
  872. clocks = <&topckgen CLK_TOP_ETH_SEL>,
  873. <&ethsys CLK_ETH_ESW_EN>,
  874. <&ethsys CLK_ETH_GP0_EN>,
  875. <&ethsys CLK_ETH_GP1_EN>,
  876. <&ethsys CLK_ETH_GP2_EN>,
  877. <&sgmiisys CLK_SGMII_TX250M_EN>,
  878. <&sgmiisys CLK_SGMII_RX250M_EN>,
  879. <&sgmiisys CLK_SGMII_CDR_REF>,
  880. <&sgmiisys CLK_SGMII_CDR_FB>,
  881. <&topckgen CLK_TOP_SGMIIPLL>,
  882. <&apmixedsys CLK_APMIXED_ETH2PLL>;
  883. clock-names = "ethif", "esw", "gp0", "gp1", "gp2",
  884. "sgmii_tx250m", "sgmii_rx250m",
  885. "sgmii_cdr_ref", "sgmii_cdr_fb", "sgmii_ck",
  886. "eth2pll";
  887. power-domains = <&scpsys MT7622_POWER_DOMAIN_ETHSYS>;
  888. mediatek,ethsys = <&ethsys>;
  889. mediatek,sgmiisys = <&sgmiisys>;
  890. cci-control-port = <&cci_control2>;
  891. mediatek,wed = <&wed0>, <&wed1>;
  892. mediatek,pcie-mirror = <&pcie_mirror>;
  893. mediatek,hifsys = <&hifsys>;
  894. dma-coherent;
  895. #address-cells = <1>;
  896. #size-cells = <0>;
  897. status = "disabled";
  898. };
  899. sgmiisys: sgmiisys@1b128000 {
  900. compatible = "mediatek,mt7622-sgmiisys",
  901. "syscon";
  902. reg = <0 0x1b128000 0 0x3000>;
  903. #clock-cells = <1>;
  904. };
  905. };