mt8183-evb.dts 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  1. // SPDX-License-Identifier: (GPL-2.0 OR MIT)
  2. /*
  3. * Copyright (c) 2018 MediaTek Inc.
  4. * Author: Ben Ho <[email protected]>
  5. * Erin Lo <[email protected]>
  6. */
  7. /dts-v1/;
  8. #include "mt8183.dtsi"
  9. #include "mt6358.dtsi"
  10. / {
  11. model = "MediaTek MT8183 evaluation board";
  12. compatible = "mediatek,mt8183-evb", "mediatek,mt8183";
  13. aliases {
  14. serial0 = &uart0;
  15. };
  16. memory@40000000 {
  17. device_type = "memory";
  18. reg = <0 0x40000000 0 0x80000000>;
  19. };
  20. chosen {
  21. stdout-path = "serial0:921600n8";
  22. };
  23. reserved-memory {
  24. #address-cells = <2>;
  25. #size-cells = <2>;
  26. ranges;
  27. scp_mem_reserved: memory@50000000 {
  28. compatible = "shared-dma-pool";
  29. reg = <0 0x50000000 0 0x2900000>;
  30. no-map;
  31. };
  32. };
  33. thermal-sensor {
  34. compatible = "murata,ncp03wf104";
  35. pullup-uv = <1800000>;
  36. pullup-ohm = <390000>;
  37. pulldown-ohm = <0>;
  38. io-channels = <&auxadc 0>;
  39. };
  40. };
  41. &auxadc {
  42. status = "okay";
  43. };
  44. &gpu {
  45. mali-supply = <&mt6358_vgpu_reg>;
  46. sram-supply = <&mt6358_vsram_gpu_reg>;
  47. };
  48. &i2c0 {
  49. pinctrl-names = "default";
  50. pinctrl-0 = <&i2c_pins_0>;
  51. status = "okay";
  52. clock-frequency = <100000>;
  53. };
  54. &i2c1 {
  55. pinctrl-names = "default";
  56. pinctrl-0 = <&i2c_pins_1>;
  57. status = "okay";
  58. clock-frequency = <100000>;
  59. };
  60. &i2c2 {
  61. pinctrl-names = "default";
  62. pinctrl-0 = <&i2c_pins_2>;
  63. status = "okay";
  64. clock-frequency = <100000>;
  65. };
  66. &i2c3 {
  67. pinctrl-names = "default";
  68. pinctrl-0 = <&i2c_pins_3>;
  69. status = "okay";
  70. clock-frequency = <100000>;
  71. };
  72. &i2c4 {
  73. pinctrl-names = "default";
  74. pinctrl-0 = <&i2c_pins_4>;
  75. status = "okay";
  76. clock-frequency = <1000000>;
  77. };
  78. &i2c5 {
  79. pinctrl-names = "default";
  80. pinctrl-0 = <&i2c_pins_5>;
  81. status = "okay";
  82. clock-frequency = <1000000>;
  83. };
  84. &mmc0 {
  85. status = "okay";
  86. pinctrl-names = "default", "state_uhs";
  87. pinctrl-0 = <&mmc0_pins_default>;
  88. pinctrl-1 = <&mmc0_pins_uhs>;
  89. bus-width = <8>;
  90. max-frequency = <200000000>;
  91. cap-mmc-highspeed;
  92. mmc-hs200-1_8v;
  93. mmc-hs400-1_8v;
  94. cap-mmc-hw-reset;
  95. no-sdio;
  96. no-sd;
  97. hs400-ds-delay = <0x12814>;
  98. vmmc-supply = <&mt6358_vemc_reg>;
  99. vqmmc-supply = <&mt6358_vio18_reg>;
  100. assigned-clocks = <&topckgen CLK_TOP_MUX_MSDC50_0>;
  101. assigned-clock-parents = <&topckgen CLK_TOP_MSDCPLL_CK>;
  102. non-removable;
  103. };
  104. &mmc1 {
  105. status = "okay";
  106. pinctrl-names = "default", "state_uhs";
  107. pinctrl-0 = <&mmc1_pins_default>;
  108. pinctrl-1 = <&mmc1_pins_uhs>;
  109. bus-width = <4>;
  110. max-frequency = <200000000>;
  111. cap-sd-highspeed;
  112. sd-uhs-sdr50;
  113. sd-uhs-sdr104;
  114. cap-sdio-irq;
  115. no-mmc;
  116. no-sd;
  117. vmmc-supply = <&mt6358_vmch_reg>;
  118. vqmmc-supply = <&mt6358_vmc_reg>;
  119. keep-power-in-suspend;
  120. wakeup-source;
  121. non-removable;
  122. };
  123. &pio {
  124. i2c_pins_0: i2c0 {
  125. pins_i2c {
  126. pinmux = <PINMUX_GPIO82__FUNC_SDA0>,
  127. <PINMUX_GPIO83__FUNC_SCL0>;
  128. mediatek,pull-up-adv = <3>;
  129. mediatek,drive-strength-adv = <00>;
  130. };
  131. };
  132. i2c_pins_1: i2c1 {
  133. pins_i2c {
  134. pinmux = <PINMUX_GPIO81__FUNC_SDA1>,
  135. <PINMUX_GPIO84__FUNC_SCL1>;
  136. mediatek,pull-up-adv = <3>;
  137. mediatek,drive-strength-adv = <00>;
  138. };
  139. };
  140. i2c_pins_2: i2c2 {
  141. pins_i2c {
  142. pinmux = <PINMUX_GPIO103__FUNC_SCL2>,
  143. <PINMUX_GPIO104__FUNC_SDA2>;
  144. mediatek,pull-up-adv = <3>;
  145. mediatek,drive-strength-adv = <00>;
  146. };
  147. };
  148. i2c_pins_3: i2c3 {
  149. pins_i2c {
  150. pinmux = <PINMUX_GPIO50__FUNC_SCL3>,
  151. <PINMUX_GPIO51__FUNC_SDA3>;
  152. mediatek,pull-up-adv = <3>;
  153. mediatek,drive-strength-adv = <00>;
  154. };
  155. };
  156. i2c_pins_4: i2c4 {
  157. pins_i2c {
  158. pinmux = <PINMUX_GPIO105__FUNC_SCL4>,
  159. <PINMUX_GPIO106__FUNC_SDA4>;
  160. mediatek,pull-up-adv = <3>;
  161. mediatek,drive-strength-adv = <00>;
  162. };
  163. };
  164. i2c_pins_5: i2c5 {
  165. pins_i2c {
  166. pinmux = <PINMUX_GPIO48__FUNC_SCL5>,
  167. <PINMUX_GPIO49__FUNC_SDA5>;
  168. mediatek,pull-up-adv = <3>;
  169. mediatek,drive-strength-adv = <00>;
  170. };
  171. };
  172. spi_pins_0: spi0 {
  173. pins_spi {
  174. pinmux = <PINMUX_GPIO85__FUNC_SPI0_MI>,
  175. <PINMUX_GPIO86__FUNC_SPI0_CSB>,
  176. <PINMUX_GPIO87__FUNC_SPI0_MO>,
  177. <PINMUX_GPIO88__FUNC_SPI0_CLK>;
  178. bias-disable;
  179. };
  180. };
  181. mmc0_pins_default: mmc0default {
  182. pins_cmd_dat {
  183. pinmux = <PINMUX_GPIO123__FUNC_MSDC0_DAT0>,
  184. <PINMUX_GPIO128__FUNC_MSDC0_DAT1>,
  185. <PINMUX_GPIO125__FUNC_MSDC0_DAT2>,
  186. <PINMUX_GPIO132__FUNC_MSDC0_DAT3>,
  187. <PINMUX_GPIO126__FUNC_MSDC0_DAT4>,
  188. <PINMUX_GPIO129__FUNC_MSDC0_DAT5>,
  189. <PINMUX_GPIO127__FUNC_MSDC0_DAT6>,
  190. <PINMUX_GPIO130__FUNC_MSDC0_DAT7>,
  191. <PINMUX_GPIO122__FUNC_MSDC0_CMD>;
  192. input-enable;
  193. bias-pull-up;
  194. };
  195. pins_clk {
  196. pinmux = <PINMUX_GPIO124__FUNC_MSDC0_CLK>;
  197. bias-pull-down;
  198. };
  199. pins_rst {
  200. pinmux = <PINMUX_GPIO133__FUNC_MSDC0_RSTB>;
  201. bias-pull-up;
  202. };
  203. };
  204. mmc0_pins_uhs: mmc0 {
  205. pins_cmd_dat {
  206. pinmux = <PINMUX_GPIO123__FUNC_MSDC0_DAT0>,
  207. <PINMUX_GPIO128__FUNC_MSDC0_DAT1>,
  208. <PINMUX_GPIO125__FUNC_MSDC0_DAT2>,
  209. <PINMUX_GPIO132__FUNC_MSDC0_DAT3>,
  210. <PINMUX_GPIO126__FUNC_MSDC0_DAT4>,
  211. <PINMUX_GPIO129__FUNC_MSDC0_DAT5>,
  212. <PINMUX_GPIO127__FUNC_MSDC0_DAT6>,
  213. <PINMUX_GPIO130__FUNC_MSDC0_DAT7>,
  214. <PINMUX_GPIO122__FUNC_MSDC0_CMD>;
  215. input-enable;
  216. drive-strength = <MTK_DRIVE_10mA>;
  217. bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
  218. };
  219. pins_clk {
  220. pinmux = <PINMUX_GPIO124__FUNC_MSDC0_CLK>;
  221. drive-strength = <MTK_DRIVE_10mA>;
  222. bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
  223. };
  224. pins_ds {
  225. pinmux = <PINMUX_GPIO131__FUNC_MSDC0_DSL>;
  226. drive-strength = <MTK_DRIVE_10mA>;
  227. bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
  228. };
  229. pins_rst {
  230. pinmux = <PINMUX_GPIO133__FUNC_MSDC0_RSTB>;
  231. drive-strength = <MTK_DRIVE_10mA>;
  232. bias-pull-up;
  233. };
  234. };
  235. mmc1_pins_default: mmc1default {
  236. pins_cmd_dat {
  237. pinmux = <PINMUX_GPIO31__FUNC_MSDC1_CMD>,
  238. <PINMUX_GPIO32__FUNC_MSDC1_DAT0>,
  239. <PINMUX_GPIO34__FUNC_MSDC1_DAT1>,
  240. <PINMUX_GPIO33__FUNC_MSDC1_DAT2>,
  241. <PINMUX_GPIO30__FUNC_MSDC1_DAT3>;
  242. input-enable;
  243. bias-pull-up;
  244. };
  245. pins_clk {
  246. pinmux = <PINMUX_GPIO29__FUNC_MSDC1_CLK>;
  247. input-enable;
  248. bias-pull-down;
  249. };
  250. pins_pmu {
  251. pinmux = <PINMUX_GPIO178__FUNC_GPIO178>,
  252. <PINMUX_GPIO166__FUNC_GPIO166>;
  253. output-high;
  254. };
  255. };
  256. mmc1_pins_uhs: mmc1 {
  257. pins_cmd_dat {
  258. pinmux = <PINMUX_GPIO31__FUNC_MSDC1_CMD>,
  259. <PINMUX_GPIO32__FUNC_MSDC1_DAT0>,
  260. <PINMUX_GPIO34__FUNC_MSDC1_DAT1>,
  261. <PINMUX_GPIO33__FUNC_MSDC1_DAT2>,
  262. <PINMUX_GPIO30__FUNC_MSDC1_DAT3>;
  263. drive-strength = <MTK_DRIVE_6mA>;
  264. input-enable;
  265. bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
  266. };
  267. pins_clk {
  268. pinmux = <PINMUX_GPIO29__FUNC_MSDC1_CLK>;
  269. drive-strength = <MTK_DRIVE_6mA>;
  270. bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
  271. input-enable;
  272. };
  273. };
  274. spi_pins_1: spi1 {
  275. pins_spi {
  276. pinmux = <PINMUX_GPIO161__FUNC_SPI1_A_MI>,
  277. <PINMUX_GPIO162__FUNC_SPI1_A_CSB>,
  278. <PINMUX_GPIO163__FUNC_SPI1_A_MO>,
  279. <PINMUX_GPIO164__FUNC_SPI1_A_CLK>;
  280. bias-disable;
  281. };
  282. };
  283. spi_pins_2: spi2 {
  284. pins_spi {
  285. pinmux = <PINMUX_GPIO0__FUNC_SPI2_CSB>,
  286. <PINMUX_GPIO1__FUNC_SPI2_MO>,
  287. <PINMUX_GPIO2__FUNC_SPI2_CLK>,
  288. <PINMUX_GPIO94__FUNC_SPI2_MI>;
  289. bias-disable;
  290. };
  291. };
  292. spi_pins_3: spi3 {
  293. pins_spi {
  294. pinmux = <PINMUX_GPIO21__FUNC_SPI3_MI>,
  295. <PINMUX_GPIO22__FUNC_SPI3_CSB>,
  296. <PINMUX_GPIO23__FUNC_SPI3_MO>,
  297. <PINMUX_GPIO24__FUNC_SPI3_CLK>;
  298. bias-disable;
  299. };
  300. };
  301. spi_pins_4: spi4 {
  302. pins_spi {
  303. pinmux = <PINMUX_GPIO17__FUNC_SPI4_MI>,
  304. <PINMUX_GPIO18__FUNC_SPI4_CSB>,
  305. <PINMUX_GPIO19__FUNC_SPI4_MO>,
  306. <PINMUX_GPIO20__FUNC_SPI4_CLK>;
  307. bias-disable;
  308. };
  309. };
  310. spi_pins_5: spi5 {
  311. pins_spi {
  312. pinmux = <PINMUX_GPIO13__FUNC_SPI5_MI>,
  313. <PINMUX_GPIO14__FUNC_SPI5_CSB>,
  314. <PINMUX_GPIO15__FUNC_SPI5_MO>,
  315. <PINMUX_GPIO16__FUNC_SPI5_CLK>;
  316. bias-disable;
  317. };
  318. };
  319. pwm_pins_1: pwm1 {
  320. pins_pwm {
  321. pinmux = <PINMUX_GPIO90__FUNC_PWM_A>;
  322. };
  323. };
  324. };
  325. &mfg {
  326. domain-supply = <&mt6358_vgpu_reg>;
  327. };
  328. &spi0 {
  329. pinctrl-names = "default";
  330. pinctrl-0 = <&spi_pins_0>;
  331. mediatek,pad-select = <0>;
  332. status = "okay";
  333. };
  334. &spi1 {
  335. pinctrl-names = "default";
  336. pinctrl-0 = <&spi_pins_1>;
  337. mediatek,pad-select = <0>;
  338. status = "okay";
  339. };
  340. &spi2 {
  341. pinctrl-names = "default";
  342. pinctrl-0 = <&spi_pins_2>;
  343. mediatek,pad-select = <0>;
  344. status = "okay";
  345. };
  346. &spi3 {
  347. pinctrl-names = "default";
  348. pinctrl-0 = <&spi_pins_3>;
  349. mediatek,pad-select = <0>;
  350. status = "okay";
  351. };
  352. &spi4 {
  353. pinctrl-names = "default";
  354. pinctrl-0 = <&spi_pins_4>;
  355. mediatek,pad-select = <0>;
  356. status = "okay";
  357. };
  358. &spi5 {
  359. pinctrl-names = "default";
  360. pinctrl-0 = <&spi_pins_5>;
  361. mediatek,pad-select = <0>;
  362. status = "okay";
  363. };
  364. &cci {
  365. proc-supply = <&mt6358_vproc12_reg>;
  366. };
  367. &cpu0 {
  368. proc-supply = <&mt6358_vproc12_reg>;
  369. };
  370. &cpu1 {
  371. proc-supply = <&mt6358_vproc12_reg>;
  372. };
  373. &cpu2 {
  374. proc-supply = <&mt6358_vproc12_reg>;
  375. };
  376. &cpu3 {
  377. proc-supply = <&mt6358_vproc12_reg>;
  378. };
  379. &cpu4 {
  380. proc-supply = <&mt6358_vproc11_reg>;
  381. };
  382. &cpu5 {
  383. proc-supply = <&mt6358_vproc11_reg>;
  384. };
  385. &cpu6 {
  386. proc-supply = <&mt6358_vproc11_reg>;
  387. };
  388. &cpu7 {
  389. proc-supply = <&mt6358_vproc11_reg>;
  390. };
  391. &uart0 {
  392. status = "okay";
  393. };
  394. &pwm1 {
  395. status = "okay";
  396. pinctrl-0 = <&pwm_pins_1>;
  397. pinctrl-names = "default";
  398. };