qcom-apq8026-lg-lenok.dts 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  1. // SPDX-License-Identifier: BSD-3-Clause
  2. /*
  3. * Copyright (c) 2021, Luca Weiss <[email protected]>
  4. */
  5. /dts-v1/;
  6. #include "qcom-msm8226.dtsi"
  7. #include "qcom-pm8226.dtsi"
  8. /delete-node/ &adsp_region;
  9. / {
  10. model = "LG G Watch R";
  11. compatible = "lg,lenok", "qcom,apq8026";
  12. qcom,board-id = <132 0x0a>;
  13. qcom,msm-id = <199 0x20000>;
  14. aliases {
  15. serial0 = &blsp1_uart3;
  16. serial1 = &blsp1_uart4;
  17. };
  18. chosen {
  19. stdout-path = "serial0:115200n8";
  20. };
  21. reserved-memory {
  22. sbl_region: sbl@2f00000 {
  23. reg = <0x02f00000 0x100000>;
  24. no-map;
  25. };
  26. external_image_region: external-image@3100000 {
  27. reg = <0x03100000 0x200000>;
  28. no-map;
  29. };
  30. adsp_region: adsp@3300000 {
  31. reg = <0x03300000 0x1400000>;
  32. no-map;
  33. };
  34. };
  35. vreg_wlan: wlan-regulator {
  36. compatible = "regulator-fixed";
  37. regulator-name = "wl-reg";
  38. regulator-min-microvolt = <2950000>;
  39. regulator-max-microvolt = <2950000>;
  40. gpio = <&tlmm 46 GPIO_ACTIVE_HIGH>;
  41. enable-active-high;
  42. pinctrl-names = "default";
  43. pinctrl-0 = <&wlan_regulator_default_state>;
  44. };
  45. };
  46. &adsp {
  47. status = "okay";
  48. };
  49. &blsp1_i2c1 {
  50. status = "okay";
  51. fuel-gauge@55 {
  52. compatible = "ti,bq27421";
  53. reg = <0x55>;
  54. };
  55. };
  56. &blsp1_i2c5 {
  57. status = "okay";
  58. clock-frequency = <384000>;
  59. touchscreen@20 {
  60. compatible = "syna,rmi4-i2c";
  61. reg = <0x20>;
  62. interrupts-extended = <&tlmm 17 IRQ_TYPE_EDGE_FALLING>;
  63. vdd-supply = <&pm8226_l15>;
  64. vio-supply = <&pm8226_l22>;
  65. pinctrl-names = "default";
  66. pinctrl-0 = <&touch_pins>;
  67. #address-cells = <1>;
  68. #size-cells = <0>;
  69. rmi4-f01@1 {
  70. reg = <0x1>;
  71. syna,nosleep-mode = <1>;
  72. };
  73. rmi4-f12@12 {
  74. reg = <0x12>;
  75. syna,sensor-type = <1>;
  76. };
  77. };
  78. };
  79. &blsp1_uart3 {
  80. status = "okay";
  81. };
  82. &blsp1_uart4 {
  83. status = "okay";
  84. pinctrl-names = "default";
  85. pinctrl-0 = <&blsp1_uart4_default_state>;
  86. bluetooth {
  87. compatible = "brcm,bcm43430a0-bt";
  88. max-speed = <3000000>;
  89. pinctrl-names = "default";
  90. pinctrl-0 = <&bluetooth_default_state>;
  91. host-wakeup-gpios = <&tlmm 48 GPIO_ACTIVE_HIGH>;
  92. device-wakeup-gpios = <&tlmm 47 GPIO_ACTIVE_HIGH>;
  93. shutdown-gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
  94. };
  95. };
  96. &rpm_requests {
  97. pm8226-regulators {
  98. compatible = "qcom,rpm-pm8226-regulators";
  99. pm8226_s3: s3 {
  100. regulator-min-microvolt = <1200000>;
  101. regulator-max-microvolt = <1350000>;
  102. };
  103. pm8226_s4: s4 {
  104. regulator-min-microvolt = <1800000>;
  105. regulator-max-microvolt = <2200000>;
  106. };
  107. pm8226_s5: s5 {
  108. regulator-min-microvolt = <1150000>;
  109. regulator-max-microvolt = <1150000>;
  110. };
  111. pm8226_l1: l1 {
  112. regulator-min-microvolt = <1225000>;
  113. regulator-max-microvolt = <1225000>;
  114. };
  115. pm8226_l2: l2 {
  116. regulator-min-microvolt = <1200000>;
  117. regulator-max-microvolt = <1200000>;
  118. };
  119. pm8226_l3: l3 {
  120. regulator-min-microvolt = <750000>;
  121. regulator-max-microvolt = <1337500>;
  122. };
  123. pm8226_l4: l4 {
  124. regulator-min-microvolt = <1200000>;
  125. regulator-max-microvolt = <1200000>;
  126. };
  127. pm8226_l5: l5 {
  128. regulator-min-microvolt = <1200000>;
  129. regulator-max-microvolt = <1200000>;
  130. };
  131. pm8226_l6: l6 {
  132. regulator-min-microvolt = <1800000>;
  133. regulator-max-microvolt = <1800000>;
  134. };
  135. pm8226_l7: l7 {
  136. regulator-min-microvolt = <1850000>;
  137. regulator-max-microvolt = <1850000>;
  138. };
  139. pm8226_l8: l8 {
  140. regulator-min-microvolt = <1800000>;
  141. regulator-max-microvolt = <1800000>;
  142. };
  143. pm8226_l9: l9 {
  144. regulator-min-microvolt = <2050000>;
  145. regulator-max-microvolt = <2050000>;
  146. };
  147. pm8226_l10: l10 {
  148. regulator-min-microvolt = <1800000>;
  149. regulator-max-microvolt = <1800000>;
  150. };
  151. pm8226_l12: l12 {
  152. regulator-min-microvolt = <1800000>;
  153. regulator-max-microvolt = <1800000>;
  154. };
  155. pm8226_l14: l14 {
  156. regulator-min-microvolt = <2750000>;
  157. regulator-max-microvolt = <2750000>;
  158. };
  159. pm8226_l15: l15 {
  160. regulator-min-microvolt = <3300000>;
  161. regulator-max-microvolt = <3300000>;
  162. };
  163. pm8226_l16: l16 {
  164. regulator-min-microvolt = <3000000>;
  165. regulator-max-microvolt = <3350000>;
  166. };
  167. pm8226_l17: l17 {
  168. regulator-min-microvolt = <2950000>;
  169. regulator-max-microvolt = <2950000>;
  170. };
  171. pm8226_l18: l18 {
  172. regulator-min-microvolt = <3000000>;
  173. regulator-max-microvolt = <3300000>;
  174. };
  175. pm8226_l19: l19 {
  176. regulator-min-microvolt = <3000000>;
  177. regulator-max-microvolt = <3000000>;
  178. };
  179. pm8226_l20: l20 {
  180. regulator-min-microvolt = <3075000>;
  181. regulator-max-microvolt = <3075000>;
  182. };
  183. pm8226_l21: l21 {
  184. regulator-min-microvolt = <1800000>;
  185. regulator-max-microvolt = <2950000>;
  186. };
  187. pm8226_l22: l22 {
  188. regulator-min-microvolt = <1800000>;
  189. regulator-max-microvolt = <1800000>;
  190. };
  191. pm8226_l23: l23 {
  192. regulator-min-microvolt = <1800000>;
  193. regulator-max-microvolt = <2950000>;
  194. };
  195. pm8226_l24: l24 {
  196. regulator-min-microvolt = <1300000>;
  197. regulator-max-microvolt = <1350000>;
  198. };
  199. pm8226_l25: l25 {
  200. regulator-min-microvolt = <1775000>;
  201. regulator-max-microvolt = <2125000>;
  202. };
  203. pm8226_l26: l26 {
  204. regulator-min-microvolt = <1225000>;
  205. regulator-max-microvolt = <1225000>;
  206. };
  207. pm8226_l27: l27 {
  208. regulator-min-microvolt = <2050000>;
  209. regulator-max-microvolt = <2050000>;
  210. };
  211. pm8226_l28: l28 {
  212. regulator-min-microvolt = <2700000>;
  213. regulator-max-microvolt = <3000000>;
  214. };
  215. pm8226_lvs1: lvs1 {};
  216. };
  217. };
  218. &sdhc_1 {
  219. status = "okay";
  220. vmmc-supply = <&pm8226_l17>;
  221. vqmmc-supply = <&pm8226_l6>;
  222. bus-width = <8>;
  223. non-removable;
  224. };
  225. &sdhc_3 {
  226. status = "okay";
  227. max-frequency = <100000000>;
  228. non-removable;
  229. vmmc-supply = <&vreg_wlan>;
  230. vqmmc-supply = <&pm8226_l6>;
  231. #address-cells = <1>;
  232. #size-cells = <0>;
  233. wifi@1 {
  234. compatible = "brcm,bcm43430a0-fmac", "brcm,bcm4329-fmac";
  235. reg = <1>;
  236. interrupts-extended = <&tlmm 37 IRQ_TYPE_EDGE_FALLING>;
  237. interrupt-names = "host-wake";
  238. pinctrl-names = "default";
  239. pinctrl-0 = <&wlan_hostwake_default_state>;
  240. };
  241. };
  242. &smbb {
  243. qcom,fast-charge-safe-current = <450000>;
  244. qcom,fast-charge-current-limit = <400000>;
  245. qcom,fast-charge-safe-voltage = <4350000>;
  246. qcom,fast-charge-high-threshold-voltage = <4350000>;
  247. qcom,auto-recharge-threshold-voltage = <4240000>;
  248. qcom,minimum-input-voltage = <4450000>;
  249. };
  250. &tlmm {
  251. blsp1_uart4_default_state: blsp1-uart4-default-state {
  252. pins = "gpio12", "gpio13", "gpio14", "gpio15";
  253. function = "blsp_uart4";
  254. drive-strength = <8>;
  255. bias-disable;
  256. };
  257. bluetooth_default_state: bluetooth-default-state {
  258. pins = "gpio47", "gpio48";
  259. function = "gpio";
  260. drive-strength = <2>;
  261. bias-disable;
  262. input-enable;
  263. };
  264. touch_pins: touch {
  265. irq {
  266. pins = "gpio17";
  267. function = "gpio";
  268. drive-strength = <8>;
  269. bias-pull-down;
  270. input-enable;
  271. };
  272. reset {
  273. pins = "gpio16";
  274. function = "gpio";
  275. drive-strength = <8>;
  276. bias-disable;
  277. output-high;
  278. };
  279. };
  280. wlan_hostwake_default_state: wlan-hostwake-default-state {
  281. pins = "gpio37";
  282. function = "gpio";
  283. drive-strength = <2>;
  284. bias-disable;
  285. input-enable;
  286. };
  287. wlan_regulator_default_state: wlan-regulator-default-state {
  288. pins = "gpio46";
  289. function = "gpio";
  290. drive-strength = <2>;
  291. bias-pull-up;
  292. };
  293. };
  294. &usb {
  295. status = "okay";
  296. extcon = <&smbb>;
  297. dr_mode = "peripheral";
  298. };
  299. &usb_hs_phy {
  300. extcon = <&smbb>;
  301. v1p8-supply = <&pm8226_l10>;
  302. v3p3-supply = <&pm8226_l20>;
  303. };