mt8183-evb.dts 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  1. // SPDX-License-Identifier: (GPL-2.0 OR MIT)
  2. /*
  3. * Copyright (c) 2018 MediaTek Inc.
  4. * Author: Ben Ho <ben.ho@mediatek.com>
  5. * Erin Lo <erin.lo@mediatek.com>
  6. */
  7. /dts-v1/;
  8. #include "mt8183.dtsi"
  9. #include "mt6358.dtsi"
  10. / {
  11. model = "MediaTek MT8183 evaluation board";
  12. chassis-type = "embedded";
  13. compatible = "mediatek,mt8183-evb", "mediatek,mt8183";
  14. aliases {
  15. serial0 = &uart0;
  16. };
  17. memory@40000000 {
  18. device_type = "memory";
  19. reg = <0 0x40000000 0 0x80000000>;
  20. };
  21. chosen {
  22. stdout-path = "serial0:921600n8";
  23. };
  24. reserved-memory {
  25. #address-cells = <2>;
  26. #size-cells = <2>;
  27. ranges;
  28. scp_mem_reserved: memory@50000000 {
  29. compatible = "shared-dma-pool";
  30. reg = <0 0x50000000 0 0x2900000>;
  31. no-map;
  32. };
  33. };
  34. thermistor {
  35. compatible = "murata,ncp03wf104";
  36. pullup-uv = <1800000>;
  37. pullup-ohm = <390000>;
  38. pulldown-ohm = <0>;
  39. io-channels = <&auxadc 0>;
  40. };
  41. };
  42. &auxadc {
  43. status = "okay";
  44. };
  45. &gpu {
  46. mali-supply = <&mt6358_vgpu_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. &mt6358_vgpu_reg {
  124. regulator-min-microvolt = <625000>;
  125. regulator-max-microvolt = <900000>;
  126. regulator-coupled-with = <&mt6358_vsram_gpu_reg>;
  127. regulator-coupled-max-spread = <100000>;
  128. };
  129. &mt6358_vsram_gpu_reg {
  130. regulator-min-microvolt = <850000>;
  131. regulator-max-microvolt = <1000000>;
  132. regulator-coupled-with = <&mt6358_vgpu_reg>;
  133. regulator-coupled-max-spread = <100000>;
  134. };
  135. &pio {
  136. i2c_pins_0: i2c0-pins {
  137. pins_i2c {
  138. pinmux = <PINMUX_GPIO82__FUNC_SDA0>,
  139. <PINMUX_GPIO83__FUNC_SCL0>;
  140. mediatek,pull-up-adv = <3>;
  141. };
  142. };
  143. i2c_pins_1: i2c1-pins {
  144. pins_i2c {
  145. pinmux = <PINMUX_GPIO81__FUNC_SDA1>,
  146. <PINMUX_GPIO84__FUNC_SCL1>;
  147. mediatek,pull-up-adv = <3>;
  148. };
  149. };
  150. i2c_pins_2: i2c2-pins {
  151. pins_i2c {
  152. pinmux = <PINMUX_GPIO103__FUNC_SCL2>,
  153. <PINMUX_GPIO104__FUNC_SDA2>;
  154. mediatek,pull-up-adv = <3>;
  155. };
  156. };
  157. i2c_pins_3: i2c3-pins {
  158. pins_i2c {
  159. pinmux = <PINMUX_GPIO50__FUNC_SCL3>,
  160. <PINMUX_GPIO51__FUNC_SDA3>;
  161. mediatek,pull-up-adv = <3>;
  162. };
  163. };
  164. i2c_pins_4: i2c4-pins {
  165. pins_i2c {
  166. pinmux = <PINMUX_GPIO105__FUNC_SCL4>,
  167. <PINMUX_GPIO106__FUNC_SDA4>;
  168. mediatek,pull-up-adv = <3>;
  169. };
  170. };
  171. i2c_pins_5: i2c5-pins {
  172. pins_i2c {
  173. pinmux = <PINMUX_GPIO48__FUNC_SCL5>,
  174. <PINMUX_GPIO49__FUNC_SDA5>;
  175. mediatek,pull-up-adv = <3>;
  176. };
  177. };
  178. spi_pins_0: spi0-pins {
  179. pins_spi {
  180. pinmux = <PINMUX_GPIO85__FUNC_SPI0_MI>,
  181. <PINMUX_GPIO86__FUNC_SPI0_CSB>,
  182. <PINMUX_GPIO87__FUNC_SPI0_MO>,
  183. <PINMUX_GPIO88__FUNC_SPI0_CLK>;
  184. bias-disable;
  185. };
  186. };
  187. mmc0_pins_default: mmc0-default-pins {
  188. pins_cmd_dat {
  189. pinmux = <PINMUX_GPIO123__FUNC_MSDC0_DAT0>,
  190. <PINMUX_GPIO128__FUNC_MSDC0_DAT1>,
  191. <PINMUX_GPIO125__FUNC_MSDC0_DAT2>,
  192. <PINMUX_GPIO132__FUNC_MSDC0_DAT3>,
  193. <PINMUX_GPIO126__FUNC_MSDC0_DAT4>,
  194. <PINMUX_GPIO129__FUNC_MSDC0_DAT5>,
  195. <PINMUX_GPIO127__FUNC_MSDC0_DAT6>,
  196. <PINMUX_GPIO130__FUNC_MSDC0_DAT7>,
  197. <PINMUX_GPIO122__FUNC_MSDC0_CMD>;
  198. input-enable;
  199. bias-pull-up;
  200. };
  201. pins_clk {
  202. pinmux = <PINMUX_GPIO124__FUNC_MSDC0_CLK>;
  203. bias-pull-down;
  204. };
  205. pins_rst {
  206. pinmux = <PINMUX_GPIO133__FUNC_MSDC0_RSTB>;
  207. bias-pull-up;
  208. };
  209. };
  210. mmc0_pins_uhs: mmc0-uhs-pins {
  211. pins_cmd_dat {
  212. pinmux = <PINMUX_GPIO123__FUNC_MSDC0_DAT0>,
  213. <PINMUX_GPIO128__FUNC_MSDC0_DAT1>,
  214. <PINMUX_GPIO125__FUNC_MSDC0_DAT2>,
  215. <PINMUX_GPIO132__FUNC_MSDC0_DAT3>,
  216. <PINMUX_GPIO126__FUNC_MSDC0_DAT4>,
  217. <PINMUX_GPIO129__FUNC_MSDC0_DAT5>,
  218. <PINMUX_GPIO127__FUNC_MSDC0_DAT6>,
  219. <PINMUX_GPIO130__FUNC_MSDC0_DAT7>,
  220. <PINMUX_GPIO122__FUNC_MSDC0_CMD>;
  221. input-enable;
  222. drive-strength = <MTK_DRIVE_10mA>;
  223. bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
  224. };
  225. pins_clk {
  226. pinmux = <PINMUX_GPIO124__FUNC_MSDC0_CLK>;
  227. drive-strength = <MTK_DRIVE_10mA>;
  228. bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
  229. };
  230. pins_ds {
  231. pinmux = <PINMUX_GPIO131__FUNC_MSDC0_DSL>;
  232. drive-strength = <MTK_DRIVE_10mA>;
  233. bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
  234. };
  235. pins_rst {
  236. pinmux = <PINMUX_GPIO133__FUNC_MSDC0_RSTB>;
  237. drive-strength = <MTK_DRIVE_10mA>;
  238. bias-pull-up;
  239. };
  240. };
  241. mmc1_pins_default: mmc1-default-pins {
  242. pins_cmd_dat {
  243. pinmux = <PINMUX_GPIO31__FUNC_MSDC1_CMD>,
  244. <PINMUX_GPIO32__FUNC_MSDC1_DAT0>,
  245. <PINMUX_GPIO34__FUNC_MSDC1_DAT1>,
  246. <PINMUX_GPIO33__FUNC_MSDC1_DAT2>,
  247. <PINMUX_GPIO30__FUNC_MSDC1_DAT3>;
  248. input-enable;
  249. bias-pull-up;
  250. };
  251. pins_clk {
  252. pinmux = <PINMUX_GPIO29__FUNC_MSDC1_CLK>;
  253. input-enable;
  254. bias-pull-down;
  255. };
  256. pins_pmu {
  257. pinmux = <PINMUX_GPIO178__FUNC_GPIO178>,
  258. <PINMUX_GPIO166__FUNC_GPIO166>;
  259. output-high;
  260. };
  261. };
  262. mmc1_pins_uhs: mmc1-pins {
  263. pins_cmd_dat {
  264. pinmux = <PINMUX_GPIO31__FUNC_MSDC1_CMD>,
  265. <PINMUX_GPIO32__FUNC_MSDC1_DAT0>,
  266. <PINMUX_GPIO34__FUNC_MSDC1_DAT1>,
  267. <PINMUX_GPIO33__FUNC_MSDC1_DAT2>,
  268. <PINMUX_GPIO30__FUNC_MSDC1_DAT3>;
  269. drive-strength = <MTK_DRIVE_6mA>;
  270. input-enable;
  271. bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
  272. };
  273. pins_clk {
  274. pinmux = <PINMUX_GPIO29__FUNC_MSDC1_CLK>;
  275. drive-strength = <MTK_DRIVE_6mA>;
  276. bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
  277. input-enable;
  278. };
  279. };
  280. spi_pins_1: spi1-pins {
  281. pins_spi {
  282. pinmux = <PINMUX_GPIO161__FUNC_SPI1_A_MI>,
  283. <PINMUX_GPIO162__FUNC_SPI1_A_CSB>,
  284. <PINMUX_GPIO163__FUNC_SPI1_A_MO>,
  285. <PINMUX_GPIO164__FUNC_SPI1_A_CLK>;
  286. bias-disable;
  287. };
  288. };
  289. spi_pins_2: spi2-pins {
  290. pins_spi {
  291. pinmux = <PINMUX_GPIO0__FUNC_SPI2_CSB>,
  292. <PINMUX_GPIO1__FUNC_SPI2_MO>,
  293. <PINMUX_GPIO2__FUNC_SPI2_CLK>,
  294. <PINMUX_GPIO94__FUNC_SPI2_MI>;
  295. bias-disable;
  296. };
  297. };
  298. spi_pins_3: spi3-pins {
  299. pins_spi {
  300. pinmux = <PINMUX_GPIO21__FUNC_SPI3_MI>,
  301. <PINMUX_GPIO22__FUNC_SPI3_CSB>,
  302. <PINMUX_GPIO23__FUNC_SPI3_MO>,
  303. <PINMUX_GPIO24__FUNC_SPI3_CLK>;
  304. bias-disable;
  305. };
  306. };
  307. spi_pins_4: spi4-pins {
  308. pins_spi {
  309. pinmux = <PINMUX_GPIO17__FUNC_SPI4_MI>,
  310. <PINMUX_GPIO18__FUNC_SPI4_CSB>,
  311. <PINMUX_GPIO19__FUNC_SPI4_MO>,
  312. <PINMUX_GPIO20__FUNC_SPI4_CLK>;
  313. bias-disable;
  314. };
  315. };
  316. spi_pins_5: spi5-pins {
  317. pins_spi {
  318. pinmux = <PINMUX_GPIO13__FUNC_SPI5_MI>,
  319. <PINMUX_GPIO14__FUNC_SPI5_CSB>,
  320. <PINMUX_GPIO15__FUNC_SPI5_MO>,
  321. <PINMUX_GPIO16__FUNC_SPI5_CLK>;
  322. bias-disable;
  323. };
  324. };
  325. pwm_pins_1: pwm1-pins {
  326. pins_pwm {
  327. pinmux = <PINMUX_GPIO90__FUNC_PWM_A>;
  328. };
  329. };
  330. };
  331. &pmic {
  332. interrupts-extended = <&pio 182 IRQ_TYPE_LEVEL_HIGH>;
  333. };
  334. &mfg {
  335. domain-supply = <&mt6358_vgpu_reg>;
  336. };
  337. &spi0 {
  338. pinctrl-names = "default";
  339. pinctrl-0 = <&spi_pins_0>;
  340. mediatek,pad-select = <0>;
  341. status = "okay";
  342. };
  343. &spi1 {
  344. pinctrl-names = "default";
  345. pinctrl-0 = <&spi_pins_1>;
  346. mediatek,pad-select = <0>;
  347. status = "okay";
  348. };
  349. &spi2 {
  350. pinctrl-names = "default";
  351. pinctrl-0 = <&spi_pins_2>;
  352. mediatek,pad-select = <0>;
  353. status = "okay";
  354. };
  355. &spi3 {
  356. pinctrl-names = "default";
  357. pinctrl-0 = <&spi_pins_3>;
  358. mediatek,pad-select = <0>;
  359. status = "okay";
  360. };
  361. &spi4 {
  362. pinctrl-names = "default";
  363. pinctrl-0 = <&spi_pins_4>;
  364. mediatek,pad-select = <0>;
  365. status = "okay";
  366. };
  367. &spi5 {
  368. pinctrl-names = "default";
  369. pinctrl-0 = <&spi_pins_5>;
  370. mediatek,pad-select = <0>;
  371. status = "okay";
  372. };
  373. &cci {
  374. proc-supply = <&mt6358_vproc12_reg>;
  375. };
  376. &cpu0 {
  377. proc-supply = <&mt6358_vproc12_reg>;
  378. };
  379. &cpu1 {
  380. proc-supply = <&mt6358_vproc12_reg>;
  381. };
  382. &cpu2 {
  383. proc-supply = <&mt6358_vproc12_reg>;
  384. };
  385. &cpu3 {
  386. proc-supply = <&mt6358_vproc12_reg>;
  387. };
  388. &cpu4 {
  389. proc-supply = <&mt6358_vproc11_reg>;
  390. };
  391. &cpu5 {
  392. proc-supply = <&mt6358_vproc11_reg>;
  393. };
  394. &cpu6 {
  395. proc-supply = <&mt6358_vproc11_reg>;
  396. };
  397. &cpu7 {
  398. proc-supply = <&mt6358_vproc11_reg>;
  399. };
  400. &uart0 {
  401. status = "okay";
  402. };
  403. &pwm1 {
  404. status = "okay";
  405. pinctrl-0 = <&pwm_pins_1>;
  406. pinctrl-names = "default";
  407. };