msm8974pro-ac-pma8084-pm8941.dtsi 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. /* Copyright (c) 2013, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. /include/ "msm8974pro-ac-pma8084.dtsi"
  13. &spmi_bus {
  14. pm8941_lsid0: qcom,pm8941@2 {
  15. reg = <0x2>;
  16. };
  17. pm8941_lsid1: qcom,pm8941@3 {
  18. reg = <0x3>;
  19. };
  20. };
  21. /include/ "msm-pm8941.dtsi"
  22. &pm8941_lsid0 {
  23. qcom,power-on@800 {
  24. status = "disabled";
  25. };
  26. clkdiv@5b00 {
  27. status = "disabled";
  28. };
  29. clkdiv@5c00 {
  30. status = "disabled";
  31. };
  32. clkdiv@5d00 {
  33. status = "disabled";
  34. };
  35. qcom,pm8941_rtc {
  36. status = "disabled";
  37. };
  38. gpios {
  39. status = "disabled";
  40. };
  41. mpps {
  42. status = "disabled";
  43. };
  44. };
  45. &pm8941_lsid1 {
  46. pm8941_boost: regulator@a000 {
  47. regulator-min-microvolt = <5000000>;
  48. regulator-max-microvolt = <5000000>;
  49. qcom,enable-time = <500>;
  50. status = "okay";
  51. };
  52. pm8941_mvs1: regulator@8300 {
  53. parent-supply = <&pm8941_chg_otg>;
  54. qcom,enable-time = <1000>;
  55. qcom,pull-down-enable = <1>;
  56. interrupts = <0x3 0x83 0x2>;
  57. interrupt-names = "ocp";
  58. qcom,ocp-enable = <1>;
  59. qcom,ocp-max-retries = <10>;
  60. qcom,ocp-retry-delay = <30>;
  61. qcom,soft-start-enable = <1>;
  62. qcom,vs-soft-start-strength = <0>;
  63. qcom,hpm-enable = <1>;
  64. qcom,auto-mode-enable = <0>;
  65. status = "okay";
  66. };
  67. pwm@b100 {
  68. status = "disabled";
  69. };
  70. pwm@b200 {
  71. status = "disabled";
  72. };
  73. pwm@b300 {
  74. status = "disabled";
  75. };
  76. pwm@b400 {
  77. status = "disabled";
  78. };
  79. pwm@b500 {
  80. status = "disabled";
  81. };
  82. pwm@b600 {
  83. status = "disabled";
  84. };
  85. pwm@b700 {
  86. status = "disabled";
  87. };
  88. pwm@b800 {
  89. status = "disabled";
  90. };
  91. pwm@e400 {
  92. status = "disabled";
  93. };
  94. pwm@e500 {
  95. status = "disabled";
  96. };
  97. pwm@e600 {
  98. status = "disabled";
  99. };
  100. pwm@e700 {
  101. status = "disabled";
  102. };
  103. };
  104. &pma8084_mvs1 {
  105. parent-supply = <&pm8941_boost>;
  106. };
  107. &pm8941_chg {
  108. otg-parent-supply = <&pm8941_boost>;
  109. };
  110. &pm8941_chg_boost {
  111. regulator-min-microvolt = <5000000>;
  112. regulator-max-microvolt = <5000000>;
  113. regulator-name = "8941_smbb_boost";
  114. };
  115. &pm8941_chg_batif {
  116. regulator-name = "batfet";
  117. };
  118. &pm8941_chg_otg {
  119. regulator-name = "8941_smbb_otg";
  120. };
  121. &usb3 {
  122. vbus_dwc3-supply = <&pm8941_mvs1>;
  123. qcom,misc-ref = <&pm8941_misc>;
  124. dwc_usb3-adc_tm = <&pm8941_adc_tm>;
  125. qcom,usbin-vadc = <&pm8941_vadc>;
  126. qcom,utmi-clk-rate = <24000000>;
  127. interrupt-map-mask = <0x0 0xffffffff>;
  128. interrupt-map = <0x0 0 &intc 0 133 0
  129. 0x0 1 &spmi_bus 0x0 0x2 0x9 0x0>;
  130. interrupt-names = "hs_phy_irq", "pmic_id_irq";
  131. qcom,dwc-ssphy-deemphasis-value = <26>;
  132. };
  133. /* Correct PM8941 local slave ID 0 to use global SID 4 for all interrupts. */
  134. &pm8941_lsid0 {
  135. qcom,temp-alarm@2400 {
  136. interrupts = <0x2 0x24 0x0>;
  137. };
  138. qcom,power-on@800 {
  139. interrupts = <0x2 0x8 0x0>,
  140. <0x2 0x8 0x1>,
  141. <0x2 0x8 0x4>,
  142. <0x2 0x8 0x5>;
  143. interrupt-names = "kpdpwr", "resin",
  144. "resin-bark", "kpdpwr-resin-bark";
  145. };
  146. qcom,bsi@1b00 {
  147. interrupts = <0x2 0x1b 0x0>,
  148. <0x2 0x1b 0x1>,
  149. <0x2 0x1b 0x2>,
  150. <0x2 0x12 0x0>;
  151. interrupt-names = "err",
  152. "rx",
  153. "tx",
  154. "batt-present";
  155. };
  156. qcom,bms {
  157. qcom,bms-bms@4000 {
  158. interrupts = <0x2 0x40 0x0>,
  159. <0x2 0x40 0x1>,
  160. <0x2 0x40 0x2>,
  161. <0x2 0x40 0x3>,
  162. <0x2 0x40 0x4>,
  163. <0x2 0x40 0x5>,
  164. <0x2 0x40 0x6>,
  165. <0x2 0x40 0x7>;
  166. interrupt-names = "cc_thr",
  167. "ocv_for_r",
  168. "good_ocv",
  169. "charge_begin",
  170. "ocv_thr",
  171. "sw_cc_thr",
  172. "vsense_avg",
  173. "vsense_for_r";
  174. };
  175. };
  176. qcom,charger {
  177. qcom,chgr@1000 {
  178. interrupts = <0x2 0x10 0x0>,
  179. <0x2 0x10 0x1>,
  180. <0x2 0x10 0x2>,
  181. <0x2 0x10 0x3>,
  182. <0x2 0x10 0x4>,
  183. <0x2 0x10 0x5>,
  184. <0x2 0x10 0x6>,
  185. <0x2 0x10 0x7>;
  186. interrupt-names = "vbat-det-lo",
  187. "vbat-det-hi",
  188. "chgwdog",
  189. "state-change",
  190. "trkl-chg-on",
  191. "fast-chg-on",
  192. "chg-failed",
  193. "chg-done";
  194. };
  195. qcom,buck@1100 {
  196. interrupts = <0x2 0x11 0x0>,
  197. <0x2 0x11 0x1>,
  198. <0x2 0x11 0x2>,
  199. <0x2 0x11 0x3>,
  200. <0x2 0x11 0x4>,
  201. <0x2 0x11 0x5>,
  202. <0x2 0x11 0x6>;
  203. interrupt-names = "vbat-ov",
  204. "vreg-ov",
  205. "overtemp",
  206. "vchg-loop",
  207. "ichg-loop",
  208. "ibat-loop",
  209. "vdd-loop";
  210. };
  211. qcom,bat-if@1200 {
  212. interrupts = <0x2 0x12 0x0>,
  213. <0x2 0x12 0x1>,
  214. <0x2 0x12 0x2>,
  215. <0x2 0x12 0x3>,
  216. <0x2 0x12 0x4>;
  217. interrupt-names = "batt-pres",
  218. "bat-temp-ok",
  219. "bat-fet-on",
  220. "vcp-on",
  221. "psi";
  222. };
  223. qcom,usb-chgpth@1300 {
  224. interrupts = <0x2 0x13 0x0>,
  225. <0x2 0x13 0x1>,
  226. <0x2 0x13 0x2>;
  227. interrupt-names = "coarse-det-usb",
  228. "usbin-valid",
  229. "chg-gone";
  230. };
  231. qcom,dc-chgpth@1400 {
  232. interrupts = <0x2 0x14 0x0>,
  233. <0x2 0x14 0x1>;
  234. interrupt-names = "coarse-det-dc",
  235. "dcin-valid";
  236. };
  237. qcom,boost@1500 {
  238. interrupts = <0x2 0x15 0x0>,
  239. <0x2 0x15 0x1>;
  240. interrupt-names = "boost-pwr-ok",
  241. "limit-error";
  242. };
  243. };
  244. qcom,pm8941_rtc {
  245. qcom,pm8941_rtc_alarm@6100 {
  246. interrupts = <0x2 0x61 0x1>;
  247. };
  248. };
  249. vadc@3100 {
  250. interrupts = <0x2 0x31 0x0>;
  251. interrupt-names = "eoc-int-en-set";
  252. /delete-node/ chan@b3;
  253. /delete-node/ chan@b4;
  254. /delete-node/ chan@b5;
  255. /delete-node/ chan@b7;
  256. /delete-node/ chan@b8;
  257. };
  258. iadc@3600 {
  259. interrupts = <0x2 0x36 0x0>;
  260. interrupt-names = "eoc-int-en-set";
  261. };
  262. qcom,vadc@3400 {
  263. interrupts = <0x2 0x34 0x0>,
  264. <0x2 0x34 0x3>,
  265. <0x2 0x34 0x4>;
  266. interrupt-names = "eoc-int-en-set",
  267. "high-thr-en-set",
  268. "low-thr-en-set";
  269. /delete-node/ chan@b3;
  270. /delete-node/ chan@b4;
  271. /delete-node/ chan@b5;
  272. /delete-node/ chan@b7;
  273. };
  274. };