msm8974pro-pma8084-mtp.dtsi 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  1. /* Copyright (c) 2013-2014, 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/ "msm8974-mtp.dtsi"
  13. &cci {
  14. qcom,camera@6e {
  15. qcom,vdd-cx-supply = <&pma8084_s2>;
  16. cam_vdig-supply = <&pma8084_l3>;
  17. cam_vana-supply = <&pma8084_l17>;
  18. cam_vio-supply = <&pma8084_lvs4>;
  19. cam_vaf-supply = <&pma8084_l23>;
  20. };
  21. qcom,camera@20 {
  22. qcom,vdd-cx-supply = <&pma8084_s2>;
  23. cam_vdig-supply = <&pma8084_l3>;
  24. cam_vana-supply = <&pma8084_l17>;
  25. cam_vio-supply = <&pma8084_lvs4>;
  26. cam_vaf-supply = <&pma8084_l23>;
  27. };
  28. qcom,camera@6c {
  29. qcom,vdd-cx-supply = <&pma8084_s2>;
  30. cam_vdig-supply = <&pma8084_l3>;
  31. cam_vana-supply = <&pma8084_l17>;
  32. cam_vio-supply = <&pma8084_lvs4>;
  33. };
  34. qcom,camera@90 {
  35. qcom,vdd-cx-supply = <&pma8084_s2>;
  36. cam_vdig-supply = <&pma8084_l3>;
  37. cam_vana-supply = <&pma8084_l17>;
  38. cam_vio-supply = <&pma8084_lvs4>;
  39. };
  40. qcom,camera@0 {
  41. qcom,vdd-cx-supply = <&pma8084_s2>;
  42. cam_vdig-supply = <&pma8084_l3>;
  43. cam_vana-supply = <&pma8084_l17>;
  44. cam_vio-supply = <&pma8084_lvs4>;
  45. cam_vaf-supply = <&pma8084_l23>;
  46. };
  47. qcom,camera@1 {
  48. qcom,vdd-cx-supply = <&pma8084_s2>;
  49. cam_vdig-supply = <&pma8084_l3>;
  50. cam_vana-supply = <&pma8084_l17>;
  51. cam_vio-supply = <&pma8084_lvs4>;
  52. cam_vaf-supply = <&pma8084_l23>;
  53. };
  54. qcom,camera@2 {
  55. qcom,vdd-cx-supply = <&pma8084_s2>;
  56. cam_vdig-supply = <&pma8084_l3>;
  57. cam_vana-supply = <&pma8084_l17>;
  58. cam_vio-supply = <&pma8084_lvs4>;
  59. };
  60. qcom,camera@3 {
  61. qcom,vdd-cx-supply = <&pma8084_s2>;
  62. cam_vdig-supply = <&pma8084_l3>;
  63. cam_vana-supply = <&pma8084_l17>;
  64. cam_vio-supply = <&pma8084_lvs4>;
  65. };
  66. };
  67. &soc {
  68. i2c@f9924000 {
  69. synaptics@20 {
  70. vdd-supply = <&pma8084_l18>;
  71. vcc_i2c-supply = <&pma8084_lvs1>;
  72. };
  73. atmel_mxt_ts@4a {
  74. vdd_ana-supply = <&pma8084_l18>;
  75. vcc_i2c-supply = <&pma8084_lvs1>;
  76. };
  77. };
  78. i2c@f9967000 {
  79. isa1200@48 {
  80. vcc_i2c-supply = <&pma8084_s4>;
  81. };
  82. };
  83. i2c@f9928000 { /* BLSP1 QUP6 */
  84. nfc-nci@e {
  85. compatible = "qcom,nfc-nci";
  86. reg = <0x0e>;
  87. qcom,irq-gpio = <&msmgpio 59 0x00>;
  88. qcom,dis-gpio = <&pma8084_mpps 7 0>;
  89. qcom,clk-src = "BBCLK2";
  90. qcom,clk-en-gpio = <&msmgpio 0 0x00>;
  91. interrupt-parent = <&msmgpio>;
  92. interrupts = <59 0>;
  93. qcom,clk-gpio = <&pma8084_gpios 10 0>;
  94. };
  95. };
  96. qcom,ssusb@f9200000 {
  97. vbus_dwc3-supply = <&pm8941_mvs1>;
  98. };
  99. gpio_keys {
  100. camera_snapshot {
  101. gpios = <&pma8084_gpios 3 0x1>;
  102. };
  103. camera_focus {
  104. gpios = <&pma8084_gpios 4 0x1>;
  105. };
  106. vol_up {
  107. gpios = <&pma8084_gpios 5 0x1>;
  108. };
  109. };
  110. spi@f9923000 {
  111. ethernet-switch@2 {
  112. rst-gpio = <&pma8084_mpps 6 0>;
  113. };
  114. };
  115. };
  116. &sdhc_1 {
  117. vdd-supply = <&pma8084_l20>;
  118. vdd-io-supply = <&pma8084_s4>;
  119. qcom,pad-pull-on = <0x0 0x3 0x3 0x1>; /* no-pull, pull-up, pull-up, pull-down */
  120. qcom,pad-pull-off = <0x0 0x3 0x3 0x1>; /* no-pull, pull-up, pull-up, pull-down */
  121. };
  122. &sdhc_2 {
  123. vdd-supply = <&pma8084_l21>;
  124. vdd-io-supply = <&pma8084_l13>;
  125. };
  126. &pma8084_gpios {
  127. gpio@c000 { /* GPIO 1 */
  128. /* Unused */
  129. qcom,mode = <0>; /* Digital input */
  130. qcom,pull = <0>; /* Pull up 30 uA */
  131. qcom,master-en = <1>;
  132. };
  133. gpio@c100 { /* GPIO 2 */
  134. /* Unused */
  135. qcom,mode = <0>; /* Digital input */
  136. qcom,pull = <0>; /* Pull up 30 uA */
  137. qcom,master-en = <1>;
  138. };
  139. gpio@c200 { /* GPIO 3 */
  140. /* Snapshot button */
  141. qcom,mode = <0>; /* Digital input */
  142. qcom,pull = <0>; /* Pull up 30 uA */
  143. qcom,vin-sel = <2>; /* PMA8084 S4 = 1.8 V */
  144. qcom,src-sel = <0>; /* Constant */
  145. qcom,master-en = <1>;
  146. };
  147. gpio@c300 { /* GPIO 4 */
  148. /* Focus button */
  149. qcom,mode = <0>; /* Digital input */
  150. qcom,pull = <0>; /* Pull up 30 uA */
  151. qcom,vin-sel = <2>; /* PMA8084 S4 = 1.8 V */
  152. qcom,src-sel = <0>; /* Constant */
  153. qcom,master-en = <1>;
  154. };
  155. gpio@c400 { /* GPIO 5 */
  156. /* Volume up button */
  157. qcom,mode = <0>; /* Digital input */
  158. qcom,pull = <0>; /* Pull up 30 uA */
  159. qcom,vin-sel = <2>; /* PMA8084 S4 = 1.8 V */
  160. qcom,src-sel = <0>; /* Constant */
  161. qcom,master-en = <1>;
  162. };
  163. gpio@c500 { /* GPIO 6 */
  164. /* Flash LED now */
  165. qcom,mode = <0>; /* Digital input */
  166. qcom,pull = <4>; /* Pull down */
  167. qcom,master-en = <1>;
  168. };
  169. gpio@c600 { /* GPIO 7 */
  170. /* GRFC_12 */
  171. };
  172. gpio@c700 { /* GPIO 8 */
  173. qcom,mode = <1>; /* Digital output */
  174. qcom,output-type = <0>; /* CMOS logic */
  175. qcom,invert = <0>; /* Do not invert the output */
  176. qcom,vin-sel = <2>; /* PMA8084 S4 = 1.8V */
  177. qcom,src-sel = <2>; /* Special function 1=LPG 3 */
  178. qcom,out-strength = <3>; /* High drive Strength*/
  179. qcom,master-en = <1>;
  180. };
  181. gpio@c800 { /* GPIO 9 */
  182. /* Unused */
  183. qcom,mode = <1>; /* Digital output */
  184. qcom,out-strength = <1>; /* Low */
  185. qcom,src-sel = <2>; /* Function 1 */
  186. qcom,master-en = <1>;
  187. };
  188. gpio@c900 { /* GPIO 10 */
  189. /* NFC clk request */
  190. qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
  191. qcom,pull = <5>; /* QPNP_PIN_PULL_NO */
  192. qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */
  193. qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
  194. qcom,master-en = <1>;
  195. };
  196. gpio@ca00 { /* GPIO 11 */
  197. /* Unused */
  198. qcom,mode = <1>; /* Digital output */
  199. qcom,out-strength = <1>; /* Low */
  200. qcom,src-sel = <2>; /* Function 1 */
  201. qcom,master-en = <1>;
  202. };
  203. gpio@cb00 { /* GPIO 12 */
  204. /* NFC clk request */
  205. qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
  206. qcom,pull = <5>; /* QPNP_PIN_PULL_NO */
  207. qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */
  208. qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
  209. qcom,master-en = <1>;
  210. };
  211. gpio@cc00 { /* GPIO 13 */
  212. /* TS_CHGR_IN */
  213. qcom,mode = <0>; /* Digital input */
  214. qcom,pull = <4>; /* Pull down */
  215. qcom,master-en = <1>;
  216. };
  217. gpio@cd00 { /* GPIO 14 */
  218. /* Unused */
  219. qcom,mode = <1>; /* Digital output */
  220. qcom,out-strength = <1>; /* Low */
  221. qcom,src-sel = <2>; /* Function 1 */
  222. qcom,master-en = <1>;
  223. };
  224. gpio@ce00 { /* GPIO 15 */
  225. /* Codec clock */
  226. qcom,mode = <1>; /* Digital output */
  227. qcom,output-type = <0>; /* CMOS */
  228. qcom,vin-sel = <2>; /* PMA8084 S4 = 1.8 V */
  229. qcom,out-strength = <1>; /* Low */
  230. qcom,src-sel = <2>; /* Function 1 - DIVCLK1 */
  231. qcom,master-en = <1>;
  232. };
  233. gpio@cf00 { /* GPIO 16 */
  234. /* Haptics clock */
  235. qcom,mode = <1>; /* Digital output */
  236. qcom,output-type = <0>; /* CMOS */
  237. qcom,vin-sel = <2>; /* PMA8084 S4 = 1.8 V */
  238. qcom,out-strength = <3>; /* High */
  239. qcom,src-sel = <3>; /* Function 2 - SLEEPCLK3 */
  240. qcom,master-en = <1>;
  241. };
  242. gpio@d000 { /* GPIO 17 */
  243. /* QPA clock */
  244. };
  245. gpio@d100 { /* GPIO 18 */
  246. /* Unused */
  247. };
  248. gpio@d200 { /* GPIO 19 */
  249. /* BOOST_BYP */
  250. };
  251. gpio@d300 { /* GPIO 20 */
  252. /* Display enable */
  253. qcom,mode = <1>; /* Digital output */
  254. qcom,output-type = <0>; /* CMOS */
  255. qcom,vin-sel = <2>; /* PMA8084 S4 = 1.8 V */
  256. qcom,out-strength = <1>; /* Low */
  257. qcom,src-sel = <0>; /* Constant */
  258. qcom,master-en = <1>;
  259. };
  260. gpio@d400 { /* GPIO 21 */
  261. /* BATT_GONE */
  262. };
  263. gpio@d500 { /* GPIO 22 */
  264. /* BATT_REM_ALARM */
  265. };
  266. };
  267. &pma8084_mpps {
  268. mpp@a000 { /* MPP 1 */
  269. /* SDC_UIM_VBIAS */
  270. status = "disabled";
  271. };
  272. mpp@a100 { /* MPP 2 */
  273. /* PM8941_PON_1 */
  274. };
  275. mpp@a200 { /* MPP 3 */
  276. /* VREF_DAC */
  277. };
  278. mpp@a300 { /* MPP 4 */
  279. /* Unused */
  280. };
  281. mpp@a400 { /* MPP 5 */
  282. /* Unused */
  283. };
  284. mpp@a500 { /* MPP 6 */
  285. /* SPI ethernet enable */
  286. qcom,mode = <1>; /* Digital output */
  287. qcom,output-type = <0>; /* CMOS */
  288. qcom,vin-sel = <2>; /* PMA8084 S4 = 1.8V > 1.6V */
  289. qcom,src-sel = <0>; /* Constant */
  290. qcom,out-strength = <1>; /* Low */
  291. qcom,master-en = <1>;
  292. };
  293. mpp@a600 { /* MPP 7 */
  294. /* NFC disable */
  295. qcom,mode = <1>; /* Digital output */
  296. qcom,out-strength = <1>; /* Low */
  297. qcom,master-en = <1>;
  298. };
  299. mpp@a700 { /* MPP 8 */
  300. /* Unused */
  301. qcom,mode = <1>; /* Digital output */
  302. qcom,out-strength = <1>; /* Low */
  303. qcom,master-en = <1>;
  304. };
  305. };