msm8916-asus-z00l.dts 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  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. #include <dt-bindings/interrupt-controller/irq.h>
  7. / {
  8. model = "Asus Zenfone 2 Laser";
  9. compatible = "asus,z00l", "qcom,msm8916";
  10. chassis-type = "handset";
  11. aliases {
  12. serial0 = &blsp1_uart2;
  13. };
  14. chosen {
  15. stdout-path = "serial0";
  16. };
  17. gpio-keys {
  18. compatible = "gpio-keys";
  19. pinctrl-names = "default";
  20. pinctrl-0 = <&gpio_keys_default>;
  21. label = "GPIO Buttons";
  22. button-volume-up {
  23. label = "Volume Up";
  24. gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>;
  25. linux,code = <KEY_VOLUMEUP>;
  26. debounce-interval = <15>;
  27. };
  28. button-volume-down {
  29. label = "Volume Down";
  30. gpios = <&msmgpio 117 GPIO_ACTIVE_LOW>;
  31. linux,code = <KEY_VOLUMEDOWN>;
  32. debounce-interval = <15>;
  33. };
  34. };
  35. reg_sd_vmmc: regulator-sdcard-vmmc {
  36. compatible = "regulator-fixed";
  37. regulator-name = "sdcard-vmmc";
  38. regulator-min-microvolt = <2950000>;
  39. regulator-max-microvolt = <2950000>;
  40. gpio = <&msmgpio 87 GPIO_ACTIVE_HIGH>;
  41. enable-active-high;
  42. startup-delay-us = <200>;
  43. pinctrl-names = "default";
  44. pinctrl-0 = <&sd_vmmc_en_default>;
  45. };
  46. usb_id: usb-id {
  47. compatible = "linux,extcon-usb-gpio";
  48. id-gpios = <&msmgpio 110 GPIO_ACTIVE_HIGH>;
  49. pinctrl-names = "default";
  50. pinctrl-0 = <&usb_id_default>;
  51. };
  52. };
  53. &blsp_i2c2 {
  54. status = "okay";
  55. magnetometer@c {
  56. compatible = "asahi-kasei,ak09911";
  57. reg = <0x0c>;
  58. vdd-supply = <&pm8916_l8>;
  59. vid-supply = <&pm8916_l6>;
  60. reset-gpios = <&msmgpio 112 GPIO_ACTIVE_LOW>;
  61. pinctrl-names = "default";
  62. pinctrl-0 = <&mag_reset_default>;
  63. };
  64. imu@68 {
  65. compatible = "invensense,mpu6515";
  66. reg = <0x68>;
  67. interrupt-parent = <&msmgpio>;
  68. interrupts = <36 IRQ_TYPE_EDGE_RISING>;
  69. vdd-supply = <&pm8916_l17>;
  70. vddio-supply = <&pm8916_l6>;
  71. pinctrl-names = "default";
  72. pinctrl-0 = <&imu_default>;
  73. mount-matrix = "1", "0", "0",
  74. "0", "-1", "0",
  75. "0", "0", "1";
  76. };
  77. };
  78. &blsp_i2c5 {
  79. status = "okay";
  80. touchscreen@38 {
  81. compatible = "edt,edt-ft5306";
  82. reg = <0x38>;
  83. interrupt-parent = <&msmgpio>;
  84. interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
  85. reset-gpios = <&msmgpio 12 GPIO_ACTIVE_LOW>;
  86. vcc-supply = <&pm8916_l11>;
  87. iovcc-supply = <&pm8916_l6>;
  88. touchscreen-size-x = <720>;
  89. touchscreen-size-y = <1280>;
  90. pinctrl-names = "default";
  91. pinctrl-0 = <&touchscreen_default>;
  92. };
  93. };
  94. &blsp1_uart2 {
  95. status = "okay";
  96. };
  97. &pronto {
  98. status = "okay";
  99. };
  100. &sdhc_1 {
  101. status = "okay";
  102. pinctrl-names = "default", "sleep";
  103. pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
  104. pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
  105. };
  106. &sdhc_2 {
  107. status = "okay";
  108. vmmc-supply = <&reg_sd_vmmc>;
  109. pinctrl-names = "default", "sleep";
  110. pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
  111. pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
  112. cd-gpios = <&msmgpio 38 GPIO_ACTIVE_LOW>;
  113. };
  114. &usb {
  115. status = "okay";
  116. extcon = <&usb_id>, <&usb_id>;
  117. };
  118. &usb_hs_phy {
  119. extcon = <&usb_id>;
  120. };
  121. &smd_rpm_regulators {
  122. vdd_l1_l2_l3-supply = <&pm8916_s3>;
  123. vdd_l4_l5_l6-supply = <&pm8916_s4>;
  124. vdd_l7-supply = <&pm8916_s4>;
  125. s3 {
  126. regulator-min-microvolt = <1200000>;
  127. regulator-max-microvolt = <1300000>;
  128. };
  129. s4 {
  130. regulator-min-microvolt = <1800000>;
  131. regulator-max-microvolt = <2100000>;
  132. };
  133. l1 {
  134. regulator-min-microvolt = <1225000>;
  135. regulator-max-microvolt = <1225000>;
  136. };
  137. l2 {
  138. regulator-min-microvolt = <1200000>;
  139. regulator-max-microvolt = <1200000>;
  140. };
  141. l4 {
  142. regulator-min-microvolt = <2050000>;
  143. regulator-max-microvolt = <2050000>;
  144. };
  145. l5 {
  146. regulator-min-microvolt = <1800000>;
  147. regulator-max-microvolt = <1800000>;
  148. };
  149. l6 {
  150. regulator-min-microvolt = <1800000>;
  151. regulator-max-microvolt = <1800000>;
  152. };
  153. l7 {
  154. regulator-min-microvolt = <1800000>;
  155. regulator-max-microvolt = <1800000>;
  156. };
  157. l8 {
  158. regulator-min-microvolt = <2850000>;
  159. regulator-max-microvolt = <2900000>;
  160. };
  161. l9 {
  162. regulator-min-microvolt = <3300000>;
  163. regulator-max-microvolt = <3300000>;
  164. };
  165. l10 {
  166. regulator-min-microvolt = <2700000>;
  167. regulator-max-microvolt = <2800000>;
  168. };
  169. l11 {
  170. regulator-min-microvolt = <1800000>;
  171. regulator-max-microvolt = <2950000>;
  172. regulator-allow-set-load;
  173. regulator-system-load = <200000>;
  174. };
  175. l12 {
  176. regulator-min-microvolt = <1800000>;
  177. regulator-max-microvolt = <2950000>;
  178. };
  179. l13 {
  180. regulator-min-microvolt = <3075000>;
  181. regulator-max-microvolt = <3075000>;
  182. };
  183. l14 {
  184. regulator-min-microvolt = <1800000>;
  185. regulator-max-microvolt = <3300000>;
  186. };
  187. l15 {
  188. regulator-min-microvolt = <1800000>;
  189. regulator-max-microvolt = <3300000>;
  190. };
  191. l16 {
  192. regulator-min-microvolt = <1800000>;
  193. regulator-max-microvolt = <3300000>;
  194. };
  195. l17 {
  196. regulator-min-microvolt = <2850000>;
  197. regulator-max-microvolt = <2850000>;
  198. };
  199. l18 {
  200. regulator-min-microvolt = <2700000>;
  201. regulator-max-microvolt = <2700000>;
  202. };
  203. };
  204. &msmgpio {
  205. gpio_keys_default: gpio-keys-default {
  206. pins = "gpio107", "gpio117";
  207. function = "gpio";
  208. drive-strength = <2>;
  209. bias-pull-up;
  210. };
  211. imu_default: imu-default {
  212. pins = "gpio36";
  213. function = "gpio";
  214. drive-strength = <2>;
  215. bias-disable;
  216. };
  217. mag_reset_default: mag-reset-default {
  218. pins = "gpio112";
  219. function = "gpio";
  220. drive-strength = <2>;
  221. bias-disable;
  222. };
  223. sd_vmmc_en_default: sd-vmmc-en-default {
  224. pins = "gpio87";
  225. function = "gpio";
  226. drive-strength = <2>;
  227. bias-disable;
  228. };
  229. touchscreen_default: touchscreen-default {
  230. pins = "gpio13";
  231. function = "gpio";
  232. drive-strength = <2>;
  233. bias-pull-up;
  234. reset {
  235. pins = "gpio12";
  236. function = "gpio";
  237. drive-strength = <2>;
  238. bias-disable;
  239. };
  240. };
  241. usb_id_default: usb-id-default {
  242. pins = "gpio110";
  243. function = "gpio";
  244. drive-strength = <8>;
  245. bias-pull-up;
  246. };
  247. };