msm8916-longcheer-l8910.dts 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  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/leds/common.h>
  7. / {
  8. model = "BQ Aquaris X5 (Longcheer L8910)";
  9. compatible = "longcheer,l8910", "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. };
  27. };
  28. leds {
  29. compatible = "gpio-leds";
  30. led-0 {
  31. gpios = <&msmgpio 17 GPIO_ACTIVE_HIGH>;
  32. color = <LED_COLOR_ID_WHITE>;
  33. default-state = "off";
  34. function = LED_FUNCTION_KBD_BACKLIGHT;
  35. pinctrl-names = "default";
  36. pinctrl-0 = <&button_backlight_default>;
  37. };
  38. };
  39. usb_id: usb-id {
  40. compatible = "linux,extcon-usb-gpio";
  41. id-gpio = <&msmgpio 110 GPIO_ACTIVE_HIGH>;
  42. pinctrl-names = "default";
  43. pinctrl-0 = <&usb_id_default>;
  44. };
  45. };
  46. &blsp_i2c3 {
  47. status = "okay";
  48. magnetometer@d {
  49. compatible = "asahi-kasei,ak09911";
  50. reg = <0x0d>;
  51. vdd-supply = <&pm8916_l17>;
  52. vid-supply = <&pm8916_l6>;
  53. reset-gpios = <&msmgpio 111 GPIO_ACTIVE_LOW>;
  54. pinctrl-names = "default";
  55. pinctrl-0 = <&mag_reset_default>;
  56. };
  57. imu@68 {
  58. compatible = "bosch,bmi160";
  59. reg = <0x68>;
  60. vdd-supply = <&pm8916_l17>;
  61. vddio-supply = <&pm8916_l6>;
  62. mount-matrix = "0", "1", "0",
  63. "-1", "0", "0",
  64. "0", "0", "1";
  65. };
  66. };
  67. &blsp1_uart2 {
  68. status = "okay";
  69. };
  70. &pm8916_resin {
  71. status = "okay";
  72. linux,code = <KEY_VOLUMEDOWN>;
  73. };
  74. &pm8916_vib {
  75. status = "okay";
  76. };
  77. &pronto {
  78. status = "okay";
  79. };
  80. &sdhc_1 {
  81. status = "okay";
  82. pinctrl-names = "default", "sleep";
  83. pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
  84. pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
  85. };
  86. &sdhc_2 {
  87. status = "okay";
  88. pinctrl-names = "default", "sleep";
  89. pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
  90. pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
  91. cd-gpios = <&msmgpio 38 GPIO_ACTIVE_LOW>;
  92. };
  93. &usb {
  94. status = "okay";
  95. extcon = <&usb_id>, <&usb_id>;
  96. };
  97. &usb_hs_phy {
  98. extcon = <&usb_id>;
  99. };
  100. &smd_rpm_regulators {
  101. vdd_l1_l2_l3-supply = <&pm8916_s3>;
  102. vdd_l4_l5_l6-supply = <&pm8916_s4>;
  103. vdd_l7-supply = <&pm8916_s4>;
  104. s3 {
  105. regulator-min-microvolt = <1200000>;
  106. regulator-max-microvolt = <1300000>;
  107. };
  108. s4 {
  109. regulator-min-microvolt = <1800000>;
  110. regulator-max-microvolt = <2100000>;
  111. };
  112. l1 {
  113. regulator-min-microvolt = <1225000>;
  114. regulator-max-microvolt = <1225000>;
  115. };
  116. l2 {
  117. regulator-min-microvolt = <1200000>;
  118. regulator-max-microvolt = <1200000>;
  119. };
  120. l4 {
  121. regulator-min-microvolt = <2050000>;
  122. regulator-max-microvolt = <2050000>;
  123. };
  124. l5 {
  125. regulator-min-microvolt = <1800000>;
  126. regulator-max-microvolt = <1800000>;
  127. };
  128. l6 {
  129. regulator-min-microvolt = <1800000>;
  130. regulator-max-microvolt = <1800000>;
  131. };
  132. l7 {
  133. regulator-min-microvolt = <1800000>;
  134. regulator-max-microvolt = <1800000>;
  135. };
  136. l8 {
  137. regulator-min-microvolt = <2850000>;
  138. regulator-max-microvolt = <2900000>;
  139. };
  140. l9 {
  141. regulator-min-microvolt = <3300000>;
  142. regulator-max-microvolt = <3300000>;
  143. };
  144. l10 {
  145. regulator-min-microvolt = <2700000>;
  146. regulator-max-microvolt = <2800000>;
  147. };
  148. l11 {
  149. regulator-min-microvolt = <1800000>;
  150. regulator-max-microvolt = <2950000>;
  151. regulator-allow-set-load;
  152. regulator-system-load = <200000>;
  153. };
  154. l12 {
  155. regulator-min-microvolt = <1800000>;
  156. regulator-max-microvolt = <2950000>;
  157. };
  158. l13 {
  159. regulator-min-microvolt = <3075000>;
  160. regulator-max-microvolt = <3075000>;
  161. };
  162. l14 {
  163. regulator-min-microvolt = <1800000>;
  164. regulator-max-microvolt = <3300000>;
  165. };
  166. l15 {
  167. regulator-min-microvolt = <1800000>;
  168. regulator-max-microvolt = <3300000>;
  169. };
  170. l16 {
  171. regulator-min-microvolt = <1800000>;
  172. regulator-max-microvolt = <3300000>;
  173. };
  174. l17 {
  175. regulator-min-microvolt = <2850000>;
  176. regulator-max-microvolt = <2850000>;
  177. };
  178. l18 {
  179. regulator-min-microvolt = <2700000>;
  180. regulator-max-microvolt = <2700000>;
  181. };
  182. };
  183. &msmgpio {
  184. button_backlight_default: button-backlight-default {
  185. pins = "gpio17";
  186. function = "gpio";
  187. drive-strength = <2>;
  188. bias-disable;
  189. };
  190. gpio_keys_default: gpio-keys-default {
  191. pins = "gpio107";
  192. function = "gpio";
  193. drive-strength = <2>;
  194. bias-pull-up;
  195. };
  196. mag_reset_default: mag-reset-default {
  197. pins = "gpio111";
  198. function = "gpio";
  199. drive-strength = <2>;
  200. bias-disable;
  201. };
  202. usb_id_default: usb-id-default {
  203. pins = "gpio110";
  204. function = "gpio";
  205. drive-strength = <8>;
  206. bias-pull-up;
  207. };
  208. };