mt6358.dtsi 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373
  1. // SPDX-License-Identifier: (GPL-2.0 OR MIT)
  2. /*
  3. * Copyright (c) 2020 MediaTek Inc.
  4. */
  5. #include <dt-bindings/input/input.h>
  6. &pwrap {
  7. pmic: mt6358 {
  8. compatible = "mediatek,mt6358";
  9. interrupt-controller;
  10. interrupt-parent = <&pio>;
  11. interrupts = <182 IRQ_TYPE_LEVEL_HIGH>;
  12. #interrupt-cells = <2>;
  13. mt6358codec: mt6358codec {
  14. compatible = "mediatek,mt6358-sound";
  15. mediatek,dmic-mode = <0>; /* two-wires */
  16. };
  17. mt6358regulator: mt6358regulator {
  18. compatible = "mediatek,mt6358-regulator";
  19. mt6358_vdram1_reg: buck_vdram1 {
  20. regulator-name = "vdram1";
  21. regulator-min-microvolt = <500000>;
  22. regulator-max-microvolt = <2087500>;
  23. regulator-ramp-delay = <12500>;
  24. regulator-enable-ramp-delay = <0>;
  25. regulator-always-on;
  26. regulator-allowed-modes = <0 1>;
  27. };
  28. mt6358_vcore_reg: buck_vcore {
  29. regulator-name = "vcore";
  30. regulator-min-microvolt = <500000>;
  31. regulator-max-microvolt = <1293750>;
  32. regulator-ramp-delay = <6250>;
  33. regulator-enable-ramp-delay = <200>;
  34. regulator-always-on;
  35. regulator-allowed-modes = <0 1>;
  36. };
  37. mt6358_vpa_reg: buck_vpa {
  38. regulator-name = "vpa";
  39. regulator-min-microvolt = <500000>;
  40. regulator-max-microvolt = <3650000>;
  41. regulator-ramp-delay = <50000>;
  42. regulator-enable-ramp-delay = <250>;
  43. regulator-allowed-modes = <0 1>;
  44. };
  45. mt6358_vproc11_reg: buck_vproc11 {
  46. regulator-name = "vproc11";
  47. regulator-min-microvolt = <500000>;
  48. regulator-max-microvolt = <1293750>;
  49. regulator-ramp-delay = <6250>;
  50. regulator-enable-ramp-delay = <200>;
  51. regulator-always-on;
  52. regulator-allowed-modes = <0 1>;
  53. };
  54. mt6358_vproc12_reg: buck_vproc12 {
  55. regulator-name = "vproc12";
  56. regulator-min-microvolt = <500000>;
  57. regulator-max-microvolt = <1293750>;
  58. regulator-ramp-delay = <6250>;
  59. regulator-enable-ramp-delay = <200>;
  60. regulator-always-on;
  61. regulator-allowed-modes = <0 1>;
  62. };
  63. mt6358_vgpu_reg: buck_vgpu {
  64. regulator-name = "vgpu";
  65. regulator-min-microvolt = <500000>;
  66. regulator-max-microvolt = <1293750>;
  67. regulator-ramp-delay = <6250>;
  68. regulator-enable-ramp-delay = <200>;
  69. regulator-allowed-modes = <0 1>;
  70. };
  71. mt6358_vs2_reg: buck_vs2 {
  72. regulator-name = "vs2";
  73. regulator-min-microvolt = <500000>;
  74. regulator-max-microvolt = <2087500>;
  75. regulator-ramp-delay = <12500>;
  76. regulator-enable-ramp-delay = <0>;
  77. regulator-always-on;
  78. };
  79. mt6358_vmodem_reg: buck_vmodem {
  80. regulator-name = "vmodem";
  81. regulator-min-microvolt = <500000>;
  82. regulator-max-microvolt = <1293750>;
  83. regulator-ramp-delay = <6250>;
  84. regulator-enable-ramp-delay = <900>;
  85. regulator-always-on;
  86. regulator-allowed-modes = <0 1>;
  87. };
  88. mt6358_vs1_reg: buck_vs1 {
  89. regulator-name = "vs1";
  90. regulator-min-microvolt = <1000000>;
  91. regulator-max-microvolt = <2587500>;
  92. regulator-ramp-delay = <12500>;
  93. regulator-enable-ramp-delay = <0>;
  94. regulator-always-on;
  95. };
  96. mt6358_vdram2_reg: ldo_vdram2 {
  97. regulator-name = "vdram2";
  98. regulator-min-microvolt = <600000>;
  99. regulator-max-microvolt = <1800000>;
  100. regulator-enable-ramp-delay = <3300>;
  101. };
  102. mt6358_vsim1_reg: ldo_vsim1 {
  103. regulator-name = "vsim1";
  104. regulator-min-microvolt = <1700000>;
  105. regulator-max-microvolt = <3100000>;
  106. regulator-enable-ramp-delay = <540>;
  107. };
  108. mt6358_vibr_reg: ldo_vibr {
  109. regulator-name = "vibr";
  110. regulator-min-microvolt = <1200000>;
  111. regulator-max-microvolt = <3300000>;
  112. regulator-enable-ramp-delay = <60>;
  113. };
  114. mt6358_vrf12_reg: ldo_vrf12 {
  115. compatible = "regulator-fixed";
  116. regulator-name = "vrf12";
  117. regulator-min-microvolt = <1200000>;
  118. regulator-max-microvolt = <1200000>;
  119. regulator-enable-ramp-delay = <120>;
  120. };
  121. mt6358_vio18_reg: ldo_vio18 {
  122. compatible = "regulator-fixed";
  123. regulator-name = "vio18";
  124. regulator-min-microvolt = <1800000>;
  125. regulator-max-microvolt = <1800000>;
  126. regulator-enable-ramp-delay = <2700>;
  127. regulator-always-on;
  128. };
  129. mt6358_vusb_reg: ldo_vusb {
  130. regulator-name = "vusb";
  131. regulator-min-microvolt = <3000000>;
  132. regulator-max-microvolt = <3100000>;
  133. regulator-enable-ramp-delay = <270>;
  134. regulator-always-on;
  135. };
  136. mt6358_vcamio_reg: ldo_vcamio {
  137. compatible = "regulator-fixed";
  138. regulator-name = "vcamio";
  139. regulator-min-microvolt = <1800000>;
  140. regulator-max-microvolt = <1800000>;
  141. regulator-enable-ramp-delay = <325>;
  142. };
  143. mt6358_vcamd_reg: ldo_vcamd {
  144. regulator-name = "vcamd";
  145. regulator-min-microvolt = <900000>;
  146. regulator-max-microvolt = <1800000>;
  147. regulator-enable-ramp-delay = <325>;
  148. };
  149. mt6358_vcn18_reg: ldo_vcn18 {
  150. compatible = "regulator-fixed";
  151. regulator-name = "vcn18";
  152. regulator-min-microvolt = <1800000>;
  153. regulator-max-microvolt = <1800000>;
  154. regulator-enable-ramp-delay = <270>;
  155. };
  156. mt6358_vfe28_reg: ldo_vfe28 {
  157. compatible = "regulator-fixed";
  158. regulator-name = "vfe28";
  159. regulator-min-microvolt = <2800000>;
  160. regulator-max-microvolt = <2800000>;
  161. regulator-enable-ramp-delay = <270>;
  162. };
  163. mt6358_vsram_proc11_reg: ldo_vsram_proc11 {
  164. regulator-name = "vsram_proc11";
  165. regulator-min-microvolt = <500000>;
  166. regulator-max-microvolt = <1293750>;
  167. regulator-ramp-delay = <6250>;
  168. regulator-enable-ramp-delay = <240>;
  169. regulator-always-on;
  170. };
  171. mt6358_vcn28_reg: ldo_vcn28 {
  172. compatible = "regulator-fixed";
  173. regulator-name = "vcn28";
  174. regulator-min-microvolt = <2800000>;
  175. regulator-max-microvolt = <2800000>;
  176. regulator-enable-ramp-delay = <270>;
  177. };
  178. mt6358_vsram_others_reg: ldo_vsram_others {
  179. regulator-name = "vsram_others";
  180. regulator-min-microvolt = <500000>;
  181. regulator-max-microvolt = <1293750>;
  182. regulator-ramp-delay = <6250>;
  183. regulator-enable-ramp-delay = <240>;
  184. regulator-always-on;
  185. };
  186. mt6358_vsram_gpu_reg: ldo_vsram_gpu {
  187. regulator-name = "vsram_gpu";
  188. regulator-min-microvolt = <500000>;
  189. regulator-max-microvolt = <1293750>;
  190. regulator-ramp-delay = <6250>;
  191. regulator-enable-ramp-delay = <240>;
  192. };
  193. mt6358_vxo22_reg: ldo_vxo22 {
  194. compatible = "regulator-fixed";
  195. regulator-name = "vxo22";
  196. regulator-min-microvolt = <2200000>;
  197. regulator-max-microvolt = <2200000>;
  198. regulator-enable-ramp-delay = <120>;
  199. regulator-always-on;
  200. };
  201. mt6358_vefuse_reg: ldo_vefuse {
  202. regulator-name = "vefuse";
  203. regulator-min-microvolt = <1700000>;
  204. regulator-max-microvolt = <1900000>;
  205. regulator-enable-ramp-delay = <270>;
  206. };
  207. mt6358_vaux18_reg: ldo_vaux18 {
  208. compatible = "regulator-fixed";
  209. regulator-name = "vaux18";
  210. regulator-min-microvolt = <1800000>;
  211. regulator-max-microvolt = <1800000>;
  212. regulator-enable-ramp-delay = <270>;
  213. };
  214. mt6358_vmch_reg: ldo_vmch {
  215. regulator-name = "vmch";
  216. regulator-min-microvolt = <2900000>;
  217. regulator-max-microvolt = <3300000>;
  218. regulator-enable-ramp-delay = <60>;
  219. };
  220. mt6358_vbif28_reg: ldo_vbif28 {
  221. compatible = "regulator-fixed";
  222. regulator-name = "vbif28";
  223. regulator-min-microvolt = <2800000>;
  224. regulator-max-microvolt = <2800000>;
  225. regulator-enable-ramp-delay = <270>;
  226. };
  227. mt6358_vsram_proc12_reg: ldo_vsram_proc12 {
  228. regulator-name = "vsram_proc12";
  229. regulator-min-microvolt = <500000>;
  230. regulator-max-microvolt = <1293750>;
  231. regulator-ramp-delay = <6250>;
  232. regulator-enable-ramp-delay = <240>;
  233. regulator-always-on;
  234. };
  235. mt6358_vcama1_reg: ldo_vcama1 {
  236. regulator-name = "vcama1";
  237. regulator-min-microvolt = <1800000>;
  238. regulator-max-microvolt = <3000000>;
  239. regulator-enable-ramp-delay = <325>;
  240. };
  241. mt6358_vemc_reg: ldo_vemc {
  242. regulator-name = "vemc";
  243. regulator-min-microvolt = <2900000>;
  244. regulator-max-microvolt = <3300000>;
  245. regulator-enable-ramp-delay = <60>;
  246. };
  247. mt6358_vio28_reg: ldo_vio28 {
  248. compatible = "regulator-fixed";
  249. regulator-name = "vio28";
  250. regulator-min-microvolt = <2800000>;
  251. regulator-max-microvolt = <2800000>;
  252. regulator-enable-ramp-delay = <270>;
  253. };
  254. mt6358_va12_reg: ldo_va12 {
  255. compatible = "regulator-fixed";
  256. regulator-name = "va12";
  257. regulator-min-microvolt = <1200000>;
  258. regulator-max-microvolt = <1200000>;
  259. regulator-enable-ramp-delay = <270>;
  260. regulator-always-on;
  261. };
  262. mt6358_vrf18_reg: ldo_vrf18 {
  263. compatible = "regulator-fixed";
  264. regulator-name = "vrf18";
  265. regulator-min-microvolt = <1800000>;
  266. regulator-max-microvolt = <1800000>;
  267. regulator-enable-ramp-delay = <120>;
  268. };
  269. mt6358_vcn33_bt_reg: ldo_vcn33_bt {
  270. regulator-name = "vcn33_bt";
  271. regulator-min-microvolt = <3300000>;
  272. regulator-max-microvolt = <3500000>;
  273. regulator-enable-ramp-delay = <270>;
  274. };
  275. mt6358_vcn33_wifi_reg: ldo_vcn33_wifi {
  276. regulator-name = "vcn33_wifi";
  277. regulator-min-microvolt = <3300000>;
  278. regulator-max-microvolt = <3500000>;
  279. regulator-enable-ramp-delay = <270>;
  280. };
  281. mt6358_vcama2_reg: ldo_vcama2 {
  282. regulator-name = "vcama2";
  283. regulator-min-microvolt = <1800000>;
  284. regulator-max-microvolt = <3000000>;
  285. regulator-enable-ramp-delay = <325>;
  286. };
  287. mt6358_vmc_reg: ldo_vmc {
  288. regulator-name = "vmc";
  289. regulator-min-microvolt = <1800000>;
  290. regulator-max-microvolt = <3300000>;
  291. regulator-enable-ramp-delay = <60>;
  292. };
  293. mt6358_vldo28_reg: ldo_vldo28 {
  294. regulator-name = "vldo28";
  295. regulator-min-microvolt = <2800000>;
  296. regulator-max-microvolt = <3000000>;
  297. regulator-enable-ramp-delay = <270>;
  298. };
  299. mt6358_vaud28_reg: ldo_vaud28 {
  300. compatible = "regulator-fixed";
  301. regulator-name = "vaud28";
  302. regulator-min-microvolt = <2800000>;
  303. regulator-max-microvolt = <2800000>;
  304. regulator-enable-ramp-delay = <270>;
  305. };
  306. mt6358_vsim2_reg: ldo_vsim2 {
  307. regulator-name = "vsim2";
  308. regulator-min-microvolt = <1700000>;
  309. regulator-max-microvolt = <3100000>;
  310. regulator-enable-ramp-delay = <540>;
  311. };
  312. };
  313. mt6358rtc: mt6358rtc {
  314. compatible = "mediatek,mt6358-rtc";
  315. };
  316. mt6358keys: mt6358keys {
  317. compatible = "mediatek,mt6358-keys";
  318. power {
  319. linux,keycodes = <KEY_POWER>;
  320. wakeup-source;
  321. };
  322. home {
  323. linux,keycodes = <KEY_HOME>;
  324. };
  325. };
  326. };
  327. };