mt7622.dtsi 23 KB

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