mt6358.dtsi 9.4 KB

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