msm8916-alcatel-idol347.dts 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /dts-v1/;
  3. #include "msm8916-pm8916.dtsi"
  4. #include <dt-bindings/gpio/gpio.h>
  5. #include <dt-bindings/input/input.h>
  6. / {
  7. model = "Alcatel OneTouch Idol 3 (4.7)";
  8. compatible = "alcatel,idol347", "qcom,msm8916";
  9. chassis-type = "handset";
  10. aliases {
  11. serial0 = &blsp1_uart2;
  12. };
  13. chosen {
  14. stdout-path = "serial0";
  15. };
  16. gpio-keys {
  17. compatible = "gpio-keys";
  18. pinctrl-names = "default";
  19. pinctrl-0 = <&gpio_keys_default>;
  20. label = "GPIO Buttons";
  21. button-volume-up {
  22. label = "Volume Up";
  23. gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>;
  24. linux,code = <KEY_VOLUMEUP>;
  25. };
  26. };
  27. usb_id: usb-id {
  28. compatible = "linux,extcon-usb-gpio";
  29. id-gpio = <&msmgpio 69 GPIO_ACTIVE_HIGH>;
  30. pinctrl-names = "default";
  31. pinctrl-0 = <&usb_id_default>;
  32. };
  33. };
  34. &blsp1_uart2 {
  35. status = "okay";
  36. };
  37. &blsp_i2c4 {
  38. status = "okay";
  39. touchscreen@26 {
  40. compatible = "mstar,msg2638";
  41. reg = <0x26>;
  42. interrupt-parent = <&msmgpio>;
  43. interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
  44. reset-gpios = <&msmgpio 100 GPIO_ACTIVE_LOW>;
  45. pinctrl-names = "default";
  46. pinctrl-0 = <&ts_int_reset_default>;
  47. vdd-supply = <&pm8916_l17>;
  48. vddio-supply = <&pm8916_l5>;
  49. touchscreen-size-x = <2048>;
  50. touchscreen-size-y = <2048>;
  51. };
  52. };
  53. &blsp_i2c5 {
  54. status = "okay";
  55. magnetometer@c {
  56. compatible = "asahi-kasei,ak09911";
  57. reg = <0x0c>;
  58. vdd-supply = <&pm8916_l17>;
  59. vid-supply = <&pm8916_l6>;
  60. reset-gpios = <&msmgpio 8 GPIO_ACTIVE_LOW>;
  61. pinctrl-names = "default";
  62. pinctrl-0 = <&mag_reset_default>;
  63. mount-matrix = "0", "1", "0",
  64. "-1", "0", "0",
  65. "0", "0", "1";
  66. };
  67. accelerometer@f {
  68. compatible = "kionix,kxtj21009";
  69. reg = <0x0f>;
  70. vdd-supply = <&pm8916_l17>;
  71. vddio-supply = <&pm8916_l6>;
  72. interrupt-parent = <&msmgpio>;
  73. interrupts = <31 IRQ_TYPE_EDGE_RISING>;
  74. pinctrl-names = "default";
  75. pinctrl-0 = <&accel_int_default>;
  76. mount-matrix = "-1", "0", "0",
  77. "0", "1", "0",
  78. "0", "0", "-1";
  79. };
  80. proximity@48 {
  81. compatible = "sensortek,stk3310";
  82. reg = <0x48>;
  83. interrupt-parent = <&msmgpio>;
  84. interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
  85. pinctrl-names = "default";
  86. pinctrl-0 = <&proximity_int_default>;
  87. };
  88. gyroscope@68 {
  89. compatible = "bosch,bmg160";
  90. reg = <0x68>;
  91. vdd-supply = <&pm8916_l17>;
  92. vddio-supply = <&pm8916_l6>;
  93. interrupt-parent = <&msmgpio>;
  94. interrupts = <97 IRQ_TYPE_EDGE_RISING>,
  95. <98 IRQ_TYPE_EDGE_RISING>;
  96. pinctrl-names = "default";
  97. pinctrl-0 = <&gyro_int_default>;
  98. };
  99. };
  100. &pm8916_resin {
  101. status = "okay";
  102. linux,code = <KEY_VOLUMEDOWN>;
  103. };
  104. &pm8916_vib {
  105. status = "okay";
  106. };
  107. &pronto {
  108. status = "okay";
  109. };
  110. &sdhc_1 {
  111. status = "okay";
  112. pinctrl-names = "default", "sleep";
  113. pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
  114. pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
  115. };
  116. &sdhc_2 {
  117. status = "okay";
  118. pinctrl-names = "default", "sleep";
  119. pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
  120. pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
  121. cd-gpios = <&msmgpio 38 GPIO_ACTIVE_LOW>;
  122. };
  123. &usb {
  124. status = "okay";
  125. extcon = <&usb_id>, <&usb_id>;
  126. };
  127. &usb_hs_phy {
  128. extcon = <&usb_id>;
  129. };
  130. &smd_rpm_regulators {
  131. vdd_l1_l2_l3-supply = <&pm8916_s3>;
  132. vdd_l4_l5_l6-supply = <&pm8916_s4>;
  133. vdd_l7-supply = <&pm8916_s4>;
  134. s3 {
  135. regulator-min-microvolt = <1200000>;
  136. regulator-max-microvolt = <1300000>;
  137. };
  138. s4 {
  139. regulator-min-microvolt = <1800000>;
  140. regulator-max-microvolt = <2100000>;
  141. };
  142. l1 {
  143. regulator-min-microvolt = <1225000>;
  144. regulator-max-microvolt = <1225000>;
  145. };
  146. l2 {
  147. regulator-min-microvolt = <1200000>;
  148. regulator-max-microvolt = <1200000>;
  149. };
  150. l4 {
  151. regulator-min-microvolt = <2050000>;
  152. regulator-max-microvolt = <2050000>;
  153. };
  154. l5 {
  155. regulator-min-microvolt = <1800000>;
  156. regulator-max-microvolt = <1800000>;
  157. };
  158. l6 {
  159. regulator-min-microvolt = <1800000>;
  160. regulator-max-microvolt = <1800000>;
  161. };
  162. l7 {
  163. regulator-min-microvolt = <1800000>;
  164. regulator-max-microvolt = <1800000>;
  165. };
  166. l8 {
  167. regulator-min-microvolt = <2850000>;
  168. regulator-max-microvolt = <2900000>;
  169. };
  170. l9 {
  171. regulator-min-microvolt = <3300000>;
  172. regulator-max-microvolt = <3300000>;
  173. };
  174. l10 {
  175. regulator-min-microvolt = <2700000>;
  176. regulator-max-microvolt = <2800000>;
  177. };
  178. l11 {
  179. regulator-min-microvolt = <1800000>;
  180. regulator-max-microvolt = <2950000>;
  181. regulator-allow-set-load;
  182. regulator-system-load = <200000>;
  183. };
  184. l12 {
  185. regulator-min-microvolt = <1800000>;
  186. regulator-max-microvolt = <2950000>;
  187. };
  188. l13 {
  189. regulator-min-microvolt = <3075000>;
  190. regulator-max-microvolt = <3075000>;
  191. };
  192. l14 {
  193. regulator-min-microvolt = <1800000>;
  194. regulator-max-microvolt = <3300000>;
  195. };
  196. l15 {
  197. regulator-min-microvolt = <1800000>;
  198. regulator-max-microvolt = <3300000>;
  199. };
  200. l16 {
  201. regulator-min-microvolt = <1800000>;
  202. regulator-max-microvolt = <3300000>;
  203. };
  204. l17 {
  205. regulator-min-microvolt = <2850000>;
  206. regulator-max-microvolt = <2850000>;
  207. };
  208. l18 {
  209. regulator-min-microvolt = <2700000>;
  210. regulator-max-microvolt = <2700000>;
  211. };
  212. };
  213. &msmgpio {
  214. accel_int_default: accel-int-default {
  215. pins = "gpio31";
  216. function = "gpio";
  217. drive-strength = <2>;
  218. bias-disable;
  219. };
  220. gpio_keys_default: gpio-keys-default {
  221. pins = "gpio107";
  222. function = "gpio";
  223. drive-strength = <2>;
  224. bias-pull-up;
  225. };
  226. gyro_int_default: gyro-int-default {
  227. pins = "gpio97", "gpio98";
  228. function = "gpio";
  229. drive-strength = <2>;
  230. bias-disable;
  231. };
  232. mag_reset_default: mag-reset-default {
  233. pins = "gpio8";
  234. function = "gpio";
  235. drive-strength = <2>;
  236. bias-disable;
  237. };
  238. proximity_int_default: proximity-int-default {
  239. pins = "gpio12";
  240. function = "gpio";
  241. drive-strength = <6>;
  242. bias-pull-up;
  243. };
  244. ts_int_reset_default: ts-int-reset-default {
  245. pins = "gpio13", "gpio100";
  246. function = "gpio";
  247. drive-strength = <2>;
  248. bias-disable;
  249. };
  250. usb_id_default: usb-id-default {
  251. pins = "gpio69";
  252. function = "gpio";
  253. drive-strength = <8>;
  254. bias-pull-up;
  255. };
  256. };