msm9625-v2-mtp.dts 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. /dts-v1/;
  13. /include/ "msm9625-v2.dtsi"
  14. /include/ "msm9625-mtp.dtsi"
  15. / {
  16. model = "Qualcomm MSM 9625V2 MTP";
  17. compatible = "qcom,msm9625-mtp", "qcom,msm9625", "qcom,mtp";
  18. qcom,msm-id = <134 7 0x20000>, <152 7 0x20000>, <149 7 0x20000>,
  19. <150 7 0x20000>, <151 7 0x20000>, <148 7 0x20000>,
  20. <173 7 0x20000>, <174 7 0x20000>, <175 7 0x20000>;
  21. };
  22. &soc {
  23. i2c@f9925000 {
  24. charger@57 {
  25. compatible = "summit,smb137c";
  26. reg = <0x57>;
  27. summit,chg-current-ma = <1500>;
  28. summit,term-current-ma = <50>;
  29. summit,pre-chg-current-ma = <100>;
  30. summit,float-voltage-mv = <4200>;
  31. summit,thresh-voltage-mv = <3000>;
  32. summit,recharge-thresh-mv = <75>;
  33. summit,system-voltage-mv = <4250>;
  34. summit,charging-timeout = <382>;
  35. summit,pre-charge-timeout = <48>;
  36. summit,therm-current-ua = <10>;
  37. summit,temperature-min = <4>; /* 0 C */
  38. summit,temperature-max = <3>; /* 45 C */
  39. };
  40. };
  41. wlan0: qca,wlan {
  42. cell-index = <0>;
  43. compatible = "qca,ar6004-hsic";
  44. qca,chip-pwd-l-gpios = <&msmgpio 62 0>;
  45. qca,pm-enable-gpios = <&pm8019_gpios 3 0x0>;
  46. qca,vdd-io-supply = <&pm8019_l11>;
  47. };
  48. qca,wlan_ar6003 {
  49. cell-index = <0>;
  50. compatible = "qca,ar6003-sdio";
  51. qca,chip-pwd-l-gpios = <&msmgpio 62 0>;
  52. qca,pm-enable-gpios = <&pm8019_gpios 3 0x0>;
  53. qca,vdd-io-supply = <&pm8019_l11>;
  54. };
  55. };
  56. /* PM8019 GPIO and MPP configuration */
  57. &pm8019_gpios {
  58. gpio@c000 { /* GPIO 1 */
  59. };
  60. gpio@c100 { /* GPIO 2 */
  61. };
  62. gpio@c200 { /* GPIO 3 */
  63. };
  64. gpio@c300 { /* GPIO 4 */
  65. /* ext_2p95v regulator enable config */
  66. qcom,mode = <1>; /* Digital output */
  67. qcom,output-type = <0>; /* CMOS */
  68. qcom,invert = <0>; /* Output low */
  69. qcom,out-strength = <1>; /* Low */
  70. qcom,vin-sel = <2>; /* PM8019 L11 - 1.8V */
  71. qcom,src-sel = <0>; /* Constant */
  72. qcom,master-en = <1>; /* Enable GPIO */
  73. };
  74. gpio@c400 { /* GPIO 5 */
  75. };
  76. gpio@c500 { /* GPIO 6 */
  77. };
  78. };
  79. &pm8019_mpps {
  80. mpp@a000 { /* MPP 1 */
  81. };
  82. mpp@a100 { /* MPP 2 */
  83. };
  84. mpp@a200 { /* MPP 3 */
  85. };
  86. mpp@a300 { /* MPP 4 */
  87. /* VADC channel 19 */
  88. qcom,mode = <4>;
  89. qcom,ain-route = <3>; /* AMUX 8 */
  90. qcom,master-en = <1>;
  91. qcom,src-sel = <0>; /* Function constant */
  92. qcom,invert = <1>;
  93. };
  94. mpp@a400 { /* MPP 5 */
  95. };
  96. mpp@a500 { /* MPP 6 */
  97. /* channel 21 */
  98. qcom,mode = <4>;
  99. qcom,ain-route = <1>; /* AMUX 6 */
  100. qcom,master-en = <1>;
  101. qcom,src-sel = <0>; /* Function constant */
  102. qcom,invert = <1>;
  103. };
  104. };