msm8610-qrd.dtsi 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  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. /* This is a QRD reference design common file. The common device
  13. * tree approach would help OEM during development of their extended
  14. * device tree. Each new QRD OEM target can select its own include
  15. * files and provide board specific overrides in the top level DTS
  16. * file.
  17. *
  18. * For example:
  19. * msm8xxx-qrd.dtsi: QRD reference common node
  20. * msm8xxx-qrd-skuxx.dts:
  21. * /include/ "msm8610-qrd.dtsi"
  22. * / {
  23. * List skuxx specific node which is different with QRD
  24. * reference design.
  25. * };
  26. */
  27. &soc {
  28. i2c@f9923000{
  29. focaltech@38{
  30. compatible = "focaltech,5x06";
  31. reg = <0x38>;
  32. interrupt-parent = <&msmgpio>;
  33. interrupts = <1 0x2>;
  34. vdd-supply = <&pm8110_l19>;
  35. vcc_i2c-supply = <&pm8110_l14>;
  36. focaltech,name = "ft6x06";
  37. focaltech,family-id = <0x06>;
  38. focaltech,reset-gpio = <&msmgpio 0 0x00>;
  39. focaltech,irq-gpio = <&msmgpio 1 0x00>;
  40. focaltech,display-coords = <0 0 480 800>;
  41. focaltech,panel-coords = <0 0 480 800>;
  42. focaltech,button-map= <139 102 158>;
  43. focaltech,no-force-update;
  44. focaltech,i2c-pull-up;
  45. focaltech,group-id = <1>;
  46. focaltech,hard-reset-delay-ms = <20>;
  47. focaltech,soft-reset-delay-ms = <150>;
  48. focaltech,num-max-touches = <2>;
  49. focaltech,fw-name = "ft_8610_qrd_fw.bin";
  50. focaltech,fw-delay-aa-ms = <100>;
  51. focaltech,fw-delay-55-ms = <30>;
  52. focaltech,fw-upgrade-id1 = <0x79>;
  53. focaltech,fw-upgrade-id2 = <0x08>;
  54. focaltech,fw-delay-readid-ms = <10>;
  55. focaltech,fw-delay-era-flsh-ms = <2000>;
  56. };
  57. };
  58. gen-vkeys {
  59. compatible = "qcom,gen-vkeys";
  60. label = "ft5x06_ts";
  61. qcom,disp-maxx = <480>;
  62. qcom,disp-maxy = <800>;
  63. qcom,panel-maxx = <481>;
  64. qcom,panel-maxy = <940>;
  65. qcom,key-codes = <139 0 102 158 0 0 0>;
  66. qcom,y-offset = <0>;
  67. };
  68. serial@f991e000 {
  69. status = "ok";
  70. };
  71. i2c@f9925000 { /* BLSP-1 QUP-3 */
  72. kionix@f {
  73. compatible = "kionix,kxtj9";
  74. reg = <0x0f>;
  75. interrupt-parent = <&msmgpio>;
  76. interrupts = <81 0x2>;
  77. vdd-supply = <&pm8110_l19>;
  78. vio-supply = <&pm8110_l14>;
  79. kionix,min-interval = <5>;
  80. kionix,init-interval = <200>;
  81. kionix,axis-map-x = <1>;
  82. kionix,axis-map-y = <0>;
  83. kionix,axis-map-z = <2>;
  84. kionix,g-range = <2>;
  85. kionix,negate-x;
  86. kionix,negate-y;
  87. kionix,negate-z;
  88. kionix,res-12bit;
  89. };
  90. };
  91. flashlight {
  92. compatible = "qcom,leds-gpio-flash";
  93. status = "okay";
  94. qcom,flash-en = <&msmgpio 18 0>;
  95. qcom,flash-now = <&msmgpio 19 0>;
  96. linux,name = "flashlight";
  97. linux,default-trigger = "flashlight-trigger";
  98. };
  99. qcom,wdt@f9017000 {
  100. qcom,bark-time = <13000>;
  101. };
  102. gpio_keys {
  103. compatible = "gpio-keys";
  104. input-name = "gpio-keys";
  105. camera_snapshot {
  106. label = "camera_snapshot";
  107. gpios = <&msmgpio 73 0x1>;
  108. linux,input-type = <1>;
  109. linux,code = <0x2fe>;
  110. gpio-key,wakeup;
  111. debounce-interval = <15>;
  112. };
  113. camera_focus {
  114. label = "camera_focus";
  115. gpios = <&msmgpio 74 0x1>;
  116. linux,input-type = <1>;
  117. linux,code = <0x210>;
  118. gpio-key,wakeup;
  119. debounce-interval = <15>;
  120. };
  121. vol_up {
  122. label = "volume_up";
  123. gpios = <&msmgpio 72 0x1>;
  124. linux,input-type = <1>;
  125. linux,code = <115>;
  126. gpio-key,wakeup;
  127. debounce-interval = <15>;
  128. };
  129. };
  130. sound {
  131. qcom,audio-routing =
  132. "RX_BIAS", "MCLK",
  133. "INT_LDO_H", "MCLK",
  134. "MIC BIAS Internal1", "Handset Mic",
  135. "MIC BIAS Internal2", "Headset Mic",
  136. "AMIC1", "MIC BIAS Internal1",
  137. "AMIC2", "MIC BIAS Internal2";
  138. qcom,mbhc-bias-internal;
  139. };
  140. };
  141. &i2c_cdc {
  142. msm8x10_wcd_codec@0d{
  143. compatible = "qcom,msm8x10-wcd-i2c";
  144. reg = <0x0d>;
  145. interrupt-parent = <&wcd9xxx_intc>;
  146. interrupts = <0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
  147. 17 18 19 20 21 22 23>;
  148. cdc-vdda-cp-supply = <&pm8110_s4>;
  149. qcom,cdc-vdda-cp-voltage = <1800000 2150000>;
  150. qcom,cdc-vdda-cp-current = <650000>;
  151. cdc-vdda-h-supply = <&pm8110_l6>;
  152. qcom,cdc-vdda-h-voltage = <1800000 1800000>;
  153. qcom,cdc-vdda-h-current = <25000>;
  154. cdc-vdd-px-supply = <&pm8110_l6>;
  155. qcom,cdc-vdd-px-voltage = <1800000 1800000>;
  156. qcom,cdc-vdd-px-current = <10000>;
  157. cdc-vdd-1p2v-supply = <&pm8110_l4>;
  158. qcom,cdc-vdd-1p2v-voltage = <1200000 1200000>;
  159. qcom,cdc-vdd-1p2v-current = <5000>;
  160. cdc-vdd-mic-bias-supply = <&pm8110_l20>;
  161. qcom,cdc-vdd-mic-bias-voltage = <3075000 3075000>;
  162. qcom,cdc-vdd-mic-bias-current = <25000>;
  163. qcom,cdc-micbias-ldoh-v = <0x3>;
  164. qcom,cdc-micbias-cfilt-sel = <0x0>;
  165. qcom,cdc-micbias-cfilt-mv = <2700>;
  166. qcom,cdc-mclk-clk-rate = <12288000>;
  167. qcom,cdc-static-supplies = "cdc-vdda-h",
  168. "cdc-vdd-px",
  169. "cdc-vdd-1p2v";
  170. qcom,cdc-on-demand-supplies = "cdc-vdda-cp",
  171. "cdc-vdd-mic-bias";
  172. };
  173. msm8x10_wcd_codec@77{
  174. compatible = "qcom,msm8x10-wcd-i2c";
  175. reg = <0x77>;
  176. };
  177. msm8x10_wcd_codec@66{
  178. compatible = "qcom,msm8x10-wcd-i2c";
  179. reg = <0x66>;
  180. };
  181. msm8x10_wcd_codec@55{
  182. compatible = "qcom,msm8x10-wcd-i2c";
  183. reg = <0x55>;
  184. };
  185. };
  186. &spmi_bus {
  187. qcom,pm8110@0 {
  188. qcom,leds@a100 {
  189. status = "okay";
  190. qcom,led_mpp_2 {
  191. label = "mpp";
  192. linux,name = "button-backlight";
  193. linux,default-trigger = "hr-trigger";
  194. qcom,current-setting = <20>;
  195. qcom,default-state = "off";
  196. qcom,max-current = <40>;
  197. qcom,id = <6>;
  198. qcom,source-sel = <1>;
  199. qcom,mode-ctrl = <0x61>;
  200. qcom,mode = "manual";
  201. };
  202. };
  203. qcom,leds@a200 {
  204. status = "okay";
  205. qcom,led_mpp_3 {
  206. label = "mpp";
  207. linux,name = "wled-backlight";
  208. linux,default-trigger = "bkl-trigger";
  209. qcom,default-state = "on";
  210. qcom,max-current = <40>;
  211. qcom,id = <6>;
  212. qcom,source-sel = <8>;
  213. qcom,mode-ctrl = <0x10>;
  214. qcom,pwm-channel = <0>;
  215. qcom,pwm-us = <27>;
  216. qcom,vin-ctrl = <0x03>;
  217. qcom,mode = "pwm";
  218. };
  219. };
  220. };
  221. };
  222. &spmi_bus {
  223. qcom,pm8110@1 {
  224. qcom,vibrator@c000 {
  225. status = "okay";
  226. qcom,vib-timeout-ms = <15000>;
  227. qcom,vib-vtg-level-mV = <3100>;
  228. };
  229. };
  230. };
  231. &sdhc_1 {
  232. vdd-supply = <&pm8110_l17>;
  233. qcom,vdd-voltage-level = <2900000 2900000>;
  234. qcom,vdd-current-level = <200 400000>;
  235. vdd-io-supply = <&pm8110_l6>;
  236. qcom,vdd-io-always-on;
  237. qcom,vdd-io-voltage-level = <1800000 1800000>;
  238. qcom,vdd-io-current-level = <200 60000>;
  239. qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
  240. qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
  241. qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
  242. qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
  243. qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>;
  244. qcom,bus-speed-mode = "HS200_1p8v", "DDR_1p8v";
  245. qcom,nonremovable;
  246. status = "ok";
  247. };
  248. &sdhc_2 {
  249. vdd-supply = <&pm8110_l18>;
  250. qcom,vdd-voltage-level = <2950000 2950000>;
  251. qcom,vdd-current-level = <15000 400000>;
  252. vdd-io-supply = <&pm8110_l21>;
  253. qcom,vdd-io-voltage-level = <1800000 2950000>;
  254. qcom,vdd-io-current-level = <200 50000>;
  255. qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
  256. qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
  257. qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
  258. qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
  259. qcom,clk-rates = <400000 25000000 50000000>;
  260. #address-cells = <0>;
  261. interrupt-parent = <&sdhc_2>;
  262. interrupts = <0 1 2>;
  263. #interrupt-cells = <1>;
  264. interrupt-map-mask = <0xffffffff>;
  265. interrupt-map = <0 &intc 0 125 0
  266. 1 &intc 0 221 0
  267. 2 &msmgpio 42 0x3>;
  268. interrupt-names = "hc_irq", "pwr_irq", "status_irq";
  269. cd-gpios = <&msmgpio 42 0x1>;
  270. status = "ok";
  271. };
  272. &pm8110_chg {
  273. status = "ok";
  274. qcom,chgr@1000 {
  275. status = "ok";
  276. qcom,tchg-mins = <250>;
  277. };
  278. qcom,buck@1100 {
  279. status = "ok";
  280. };
  281. qcom,bat-if@1200 {
  282. status = "ok";
  283. };
  284. qcom,usb-chgpth@1300 {
  285. status = "ok";
  286. };
  287. qcom,chg-misc@1600 {
  288. status = "ok";
  289. };
  290. };
  291. &pm8110_gpios {
  292. gpio@c000 { /* GPIO 1 */
  293. };
  294. gpio@c100 { /* GPIO 2 */
  295. };
  296. gpio@c200 { /* GPIO 3 */
  297. };
  298. gpio@c300 { /* GPIO 4 */
  299. };
  300. };
  301. &pm8110_mpps {
  302. mpp@a000 { /* MPP 1 */
  303. };
  304. mpp@a100 { /* MPP 2 */
  305. status = "disabled";
  306. };
  307. mpp@a200 { /* MPP 3 */
  308. status = "disabled";
  309. };
  310. mpp@a300 { /* MPP 4 */
  311. };
  312. };
  313. &pm8110_vadc {
  314. chan@30 {
  315. label = "batt_therm";
  316. qcom,scale-function = <6>;
  317. };
  318. };
  319. &android_usb {
  320. qcom,android-usb-cdrom;
  321. qcom,android-usb-internal-ums;
  322. };
  323. &mdss_mdp {
  324. batfet-supply = <&pm8110_chg_batif>;
  325. };