msm8610-camera-sensor-cdp-mtp.dtsi 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. /*
  2. * Copyright (c) 2013, The Linux Foundation. All rights reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 and
  6. * only version 2 as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. &i2c {
  14. led_flash0: qcom,led-flash@60 {
  15. cell-index = <0>;
  16. reg = <0x60>;
  17. qcom,slave-id = <0x60 0x00 0x0011>;
  18. compatible = "qcom,led-flash";
  19. qcom,flash-name = "adp1600";
  20. qcom,flash-type = <1>;
  21. qcom,gpio-no-mux = <0>;
  22. gpios = <&msmgpio 18 0>,
  23. <&msmgpio 19 0>;
  24. qcom,gpio-flash-en = <0>;
  25. qcom,gpio-flash-now = <1>;
  26. qcom,gpio-req-tbl-num = <0 1>;
  27. qcom,gpio-req-tbl-flags = <0 0>;
  28. qcom,gpio-req-tbl-label = "FLASH_EN",
  29. "FLASH_NOW";
  30. };
  31. actuator0: qcom,actuator@6e {
  32. cell-index = <3>;
  33. reg = <0x6c>;
  34. compatible = "qcom,actuator";
  35. qcom,cci-master = <0>;
  36. };
  37. eeprom0: qcom,eeprom@6a {
  38. cell-index = <0>;
  39. reg = <0x6a 0x0>;
  40. qcom,eeprom-name = "truly_cm7700";
  41. compatible = "qcom,msm_eeprom";
  42. qcom,slave-addr = <0x6c>;
  43. qcom,num-blocks = <9>;
  44. qcom,page0 = <1 0x0100 2 0x01 1 1>;
  45. qcom,poll0 = <0 0x0 2 0 1 1>;
  46. qcom,mem0 = <0 0x0 2 0 1 0>;
  47. qcom,page1 = <1 0x3d84 2 0x8 1 1>;
  48. qcom,pageen1 = <1 0x3d81 2 0x01 1 10>;
  49. qcom,poll1 = <0 0x0 2 0 1 1>;
  50. qcom,mem1 = <32 0x3d00 2 0 1 0>;
  51. qcom,page2 = <1 0x3d84 2 0x9 1 1>;
  52. qcom,pageen2 = <1 0x3d81 2 0x01 1 10>;
  53. qcom,poll2 = <0 0x0 2 0 1 1>;
  54. qcom,mem2 = <32 0x3d00 2 0 1 0>;
  55. qcom,page3 = <1 0x3d84 2 0xa 1 1>;
  56. qcom,pageen3 = <1 0x3d81 2 0x01 1 10>;
  57. qcom,poll3 = <0 0x0 2 0 1 1>;
  58. qcom,mem3 = <32 0x3d00 2 0 1 0>;
  59. qcom,page4 = <1 0x3d84 2 0xb 1 1>;
  60. qcom,pageen4 = <1 0x3d81 2 0x01 1 10>;
  61. qcom,poll4 = <0 0x0 2 0 1 1>;
  62. qcom,mem4 = <32 0x3d00 2 0 1 0>;
  63. qcom,page5 = <1 0x3d84 2 0xc 1 1>;
  64. qcom,pageen5 = <1 0x3d81 2 0x01 1 10>;
  65. qcom,poll5 = <0 0x0 2 0 1 1>;
  66. qcom,mem5 = <32 0x3d00 2 0 1 0>;
  67. qcom,page6 = <1 0x3d84 2 0xd 1 1>;
  68. qcom,pageen6 = <1 0x3d81 2 0x01 1 10>;
  69. qcom,poll6 = <0 0x0 2 0 1 1>;
  70. qcom,mem6 = <32 0x3d00 2 0 1 0>;
  71. qcom,page7 = <1 0x3d84 2 0xe 1 1>;
  72. qcom,pageen7 = <1 0x3d81 2 0x01 1 10>;
  73. qcom,poll7 = <0 0x0 2 0 1 1>;
  74. qcom,mem7 = <32 0x3d00 2 0 1 0>;
  75. qcom,page8 = <1 0x3d84 2 0xf 1 1>;
  76. qcom,pageen8 = <1 0x3d81 2 0x01 1 10>;
  77. qcom,poll8 = <0 0x0 2 0 1 1>;
  78. qcom,mem8 = <32 0x3d00 2 0 1 0>;
  79. cam_vdig-supply = <&pm8110_l2>;
  80. cam_vio-supply = <&pm8110_l14>;
  81. qcom,cam-vreg-name = "cam_vdig", "cam_vio";
  82. qcom,cam-vreg-type = <0 0 0 0>;
  83. qcom,cam-vreg-min-voltage = <1200000 1800000>;
  84. qcom,cam-vreg-max-voltage = <1200000 1800000>;
  85. qcom,cam-vreg-op-mode = <200000 8000>;
  86. qcom,gpio-no-mux = <0>;
  87. gpios = <&msmgpio 13 0>,
  88. <&msmgpio 21 0>,
  89. <&msmgpio 20 0>;
  90. qcom,gpio-reset = <1>;
  91. qcom,gpio-standby = <2>;
  92. qcom,gpio-req-tbl-num = <0 1 2>;
  93. qcom,gpio-req-tbl-flags = <1 0 0>;
  94. qcom,gpio-req-tbl-label = "CAMIF_MCLK",
  95. "CAM_RESET1",
  96. "CAM_STANDBY";
  97. qcom,cam-power-seq-type = "sensor_vreg",
  98. "sensor_vreg", "sensor_clk",
  99. "sensor_gpio", "sensor_gpio";
  100. qcom,cam-power-seq-val = "cam_vdig",
  101. "cam_vio", "sensor_cam_mclk",
  102. "sensor_gpio_reset",
  103. "sensor_gpio_standby";
  104. qcom,cam-power-seq-cfg-val = <1 1 24000000 1 1>;
  105. qcom,cam-power-seq-delay = <1 1 5 5 10>;
  106. };
  107. qcom,camera@6f {
  108. compatible = "qcom,ov8825";
  109. reg = <0x6f>;
  110. qcom,slave-id = <0x6c 0x300a 0x8825>;
  111. qcom,csiphy-sd-index = <0>;
  112. qcom,csid-sd-index = <0>;
  113. qcom,actuator-src = <&actuator0>;
  114. qcom,led-flash-src = <&led_flash0>;
  115. qcom,eeprom-src = <&eeprom0>;
  116. qcom,mount-angle = <90>;
  117. qcom,sensor-name = "ov8825";
  118. cam_vdig-supply = <&pm8110_l2>;
  119. cam_vana-supply = <&pm8110_l19>;
  120. cam_vio-supply = <&pm8110_l14>;
  121. cam_vaf-supply = <&pm8110_l16>;
  122. qcom,cam-vreg-name = "cam_vdig", "cam_vio", "cam_vana",
  123. "cam_vaf";
  124. qcom,cam-vreg-type = <0 0 0 0>;
  125. qcom,cam-vreg-min-voltage = <1200000 1800000 2850000 3000000>;
  126. qcom,cam-vreg-max-voltage = <1200000 1800000 2850000 3000000>;
  127. qcom,cam-vreg-op-mode = <200000 8000 80000 100000>;
  128. qcom,gpio-no-mux = <0>;
  129. gpios = <&msmgpio 13 0>,
  130. <&msmgpio 21 0>,
  131. <&msmgpio 20 0>;
  132. qcom,gpio-reset = <1>;
  133. qcom,gpio-standby = <2>;
  134. qcom,gpio-req-tbl-num = <0 1 2>;
  135. qcom,gpio-req-tbl-flags = <1 0 0>;
  136. qcom,gpio-req-tbl-label = "CAMIF_MCLK",
  137. "CAM_RESET1",
  138. "CAM_STANDBY";
  139. qcom,csi-lane-assign = <0xe4>;
  140. qcom,csi-lane-mask = <0x3>;
  141. qcom,sensor-position = <0>;
  142. qcom,sensor-mode = <1>;
  143. qcom,cci-master = <0>;
  144. };
  145. qcom,camera@34 {
  146. compatible = "sne,imx134";
  147. reg = <0x34>;
  148. qcom,slave-id = <0x34 0x0016 0x0134>;
  149. qcom,csiphy-sd-index = <0>;
  150. qcom,csid-sd-index = <0>;
  151. qcom,actuator-src = <&actuator0>;
  152. qcom,led-flash-src = <&led_flash0>;
  153. qcom,mount-angle = <90>;
  154. qcom,sensor-name = "imx134";
  155. cam_vdig-supply = <&pm8110_l2>;
  156. cam_vana-supply = <&pm8110_l19>;
  157. cam_vio-supply = <&pm8110_l14>;
  158. cam_vaf-supply = <&pm8110_l16>;
  159. qcom,cam-vreg-name = "cam_vdig", "cam_vio", "cam_vana",
  160. "cam_vaf";
  161. qcom,cam-vreg-type = <0 0 0 0>;
  162. qcom,cam-vreg-min-voltage = <1200000 1800000 2850000 3000000>;
  163. qcom,cam-vreg-max-voltage = <1200000 1800000 2850000 3000000>;
  164. qcom,cam-vreg-op-mode = <200000 8000 80000 100000>;
  165. qcom,gpio-no-mux = <0>;
  166. gpios = <&msmgpio 13 0>,
  167. <&msmgpio 21 0>,
  168. <&msmgpio 20 0>;
  169. qcom,gpio-reset = <1>;
  170. qcom,gpio-standby = <2>;
  171. qcom,gpio-req-tbl-num = <0 1 2>;
  172. qcom,gpio-req-tbl-flags = <1 0 0>;
  173. qcom,gpio-req-tbl-label = "CAMIF_MCLK",
  174. "CAM_RESET1",
  175. "CAM_STANDBY";
  176. qcom,csi-lane-assign = <0xe4>;
  177. qcom,csi-lane-mask = <0x3>;
  178. qcom,sensor-position = <0>;
  179. qcom,sensor-mode = <1>;
  180. qcom,cci-master = <0>;
  181. };
  182. qcom,camera@6d {
  183. compatible = "qcom,ov9724";
  184. reg = <0x6d>;
  185. qcom,slave-id = <0x20 0x0 0x9724>;
  186. qcom,csiphy-sd-index = <1>;
  187. qcom,csid-sd-index = <1>;
  188. qcom,mount-angle = <270>;
  189. qcom,sensor-name = "ov9724";
  190. cam_vdig-supply = <&pm8110_l4>;
  191. cam_vana-supply = <&pm8110_l19>;
  192. cam_vio-supply = <&pm8110_l14>;
  193. qcom,cam-vreg-name = "cam_vdig", "cam_vio", "cam_vana";
  194. qcom,cam-vreg-type = <0 1 0>;
  195. qcom,cam-vreg-min-voltage = <1200000 0 2850000>;
  196. qcom,cam-vreg-max-voltage = <1200000 0 2850000>;
  197. qcom,cam-vreg-op-mode = <200000 0 80000>;
  198. qcom,gpio-no-mux = <0>;
  199. gpios = <&msmgpio 13 0>,
  200. <&msmgpio 15 0>,
  201. <&msmgpio 8 0>;
  202. qcom,gpio-reset = <1>;
  203. qcom,gpio-standby = <2>;
  204. qcom,gpio-req-tbl-num = <0 1 2>;
  205. qcom,gpio-req-tbl-flags = <1 0 0>;
  206. qcom,gpio-req-tbl-label = "CAMIF_MCLK",
  207. "CAM_RESET",
  208. "CAM_STANDBY";
  209. qcom,gpio-set-tbl-num = <1 1>;
  210. qcom,gpio-set-tbl-flags = <0 2>;
  211. qcom,gpio-set-tbl-delay = <1000 4000>;
  212. qcom,csi-lane-assign = <0xe4>;
  213. qcom,csi-lane-mask = <0x3>;
  214. qcom,sensor-position = <1>;
  215. qcom,sensor-mode = <1>;
  216. qcom,cci-master = <0>;
  217. status = "ok";
  218. };
  219. qcom,camera@78 {
  220. compatible = "qcom,sp1628";
  221. reg = <0x78>;
  222. qcom,slave-id = <0x78 0x0 0x1628>;
  223. qcom,csiphy-sd-index = <1>;
  224. qcom,csid-sd-index = <1>;
  225. qcom,mount-angle = <90>;
  226. qcom,sensor-name = "sp1628";
  227. cam_vdig-supply = <&pm8110_l2>;
  228. cam_vana-supply = <&pm8110_l19>;
  229. cam_vio-supply = <&pm8110_l14>;
  230. qcom,cam-vreg-name = "cam_vdig", "cam_vio", "cam_vana";
  231. qcom,cam-vreg-type = <0 0 0>;
  232. qcom,cam-vreg-min-voltage = <1200000 1800000 2850000>;
  233. qcom,cam-vreg-max-voltage = <1200000 1800000 2850000>;
  234. qcom,cam-vreg-op-mode = <200000 80000 80000>;
  235. qcom,gpio-no-mux = <0>;
  236. gpios = <&msmgpio 14 0>,
  237. <&msmgpio 15 0>,
  238. <&msmgpio 8 0>;
  239. qcom,gpio-reset = <1>;
  240. qcom,gpio-standby = <2>;
  241. qcom,gpio-req-tbl-num = <0 1 2>;
  242. qcom,gpio-req-tbl-flags = <1 0 0>;
  243. qcom,gpio-req-tbl-label = "CAMIF_MCLK",
  244. "CAM_RESET",
  245. "CAM_STANDBY";
  246. qcom,gpio-set-tbl-num = <1 1>;
  247. qcom,gpio-set-tbl-flags = <0 2>;
  248. qcom,gpio-set-tbl-delay = <1000 4000>;
  249. qcom,csi-lane-assign = <0xe4>;
  250. qcom,csi-lane-mask = <0x3>;
  251. qcom,sensor-position = <1>;
  252. qcom,sensor-mode = <1>;
  253. qcom,cci-master = <0>;
  254. };
  255. qcom,camera@0 {
  256. cell-index = <0>;
  257. compatible = "qcom,camera";
  258. reg = <0x0>;
  259. qcom,csiphy-sd-index = <0>;
  260. qcom,csid-sd-index = <0>;
  261. qcom,mount-angle = <90>;
  262. qcom,actuator-src = <&actuator0>;
  263. qcom,led-flash-src = <&led_flash0>;
  264. cam_vdig-supply = <&pm8110_l2>;
  265. cam_vana-supply = <&pm8110_l19>;
  266. cam_vio-supply = <&pm8110_l14>;
  267. cam_vaf-supply = <&pm8110_l16>;
  268. qcom,cam-vreg-name = "cam_vdig", "cam_vio", "cam_vana",
  269. "cam_vaf";
  270. qcom,cam-vreg-type = <0 0 0 0>;
  271. qcom,cam-vreg-min-voltage = <1200000 1800000 2850000 3000000>;
  272. qcom,cam-vreg-max-voltage = <1200000 1800000 2850000 3000000>;
  273. qcom,cam-vreg-op-mode = <200000 8000 80000 100000>;
  274. qcom,gpio-no-mux = <0>;
  275. gpios = <&msmgpio 13 0>,
  276. <&msmgpio 21 0>,
  277. <&msmgpio 20 0>;
  278. qcom,gpio-reset = <1>;
  279. qcom,gpio-standby = <2>;
  280. qcom,gpio-req-tbl-num = <0 1 2>;
  281. qcom,gpio-req-tbl-flags = <1 0 0>;
  282. qcom,gpio-req-tbl-label = "CAMIF_MCLK",
  283. "CAM_RESET1",
  284. "CAM_STANDBY";
  285. qcom,sensor-position = <0>;
  286. qcom,sensor-mode = <0>;
  287. qcom,cci-master = <0>;
  288. status = "ok";
  289. };
  290. qcom,camera@1 {
  291. cell-index = <1>;
  292. compatible = "qcom,camera";
  293. reg = <0x1>;
  294. qcom,csiphy-sd-index = <1>;
  295. qcom,csid-sd-index = <1>;
  296. qcom,mount-angle = <90>;
  297. cam_vdig-supply = <&pm8110_l4>;
  298. cam_vana-supply = <&pm8110_l19>;
  299. cam_vio-supply = <&pm8110_l14>;
  300. qcom,cam-vreg-name = "cam_vdig", "cam_vio", "cam_vana";
  301. qcom,cam-vreg-type = <0 1 0>;
  302. qcom,cam-vreg-min-voltage = <1200000 0 2850000>;
  303. qcom,cam-vreg-max-voltage = <1200000 0 2850000>;
  304. qcom,cam-vreg-op-mode = <200000 0 80000>;
  305. qcom,gpio-no-mux = <0>;
  306. gpios = <&msmgpio 14 0>,
  307. <&msmgpio 15 0>,
  308. <&msmgpio 8 0>;
  309. qcom,gpio-reset = <1>;
  310. qcom,gpio-standby = <2>;
  311. qcom,gpio-req-tbl-num = <0 1 2>;
  312. qcom,gpio-req-tbl-flags = <1 0 0>;
  313. qcom,gpio-req-tbl-label = "CAMIF_MCLK",
  314. "CAM_RESET",
  315. "CAM_STANDBY";
  316. qcom,sensor-position = <1>;
  317. qcom,sensor-mode = <0>;
  318. qcom,cci-master = <0>;
  319. status = "ok";
  320. };
  321. };