qcom-apq8026-asus-sparrow.dts 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. // SPDX-License-Identifier: BSD-3-Clause
  2. /*
  3. * Copyright (c) 2022, 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 = "ASUS ZenWatch 2";
  11. compatible = "asus,sparrow", "qcom,apq8026";
  12. chassis-type = "watch";
  13. qcom,msm-id = <199 0x20000>;
  14. qcom,board-id = <8 3005>;
  15. reserved-memory {
  16. sbl_region: sbl@2f00000 {
  17. reg = <0x02f00000 0x100000>;
  18. no-map;
  19. };
  20. external_image_region: external-image@3100000 {
  21. reg = <0x3100000 0x200000>;
  22. no-map;
  23. };
  24. peripheral_region: peripheral@3300000 {
  25. reg = <0x3300000 0x600000>;
  26. no-map;
  27. };
  28. adsp_region: adsp@3900000 {
  29. reg = <0x3900000 0x1400000>;
  30. no-map;
  31. };
  32. modem_region: modem@4d00000 {
  33. reg = <0x4d00000 0x1b00000>;
  34. no-map;
  35. };
  36. modem_efs_region: modem-efs@7f00000 {
  37. reg = <0x7f00000 0x100000>;
  38. no-map;
  39. };
  40. };
  41. vreg_wlan: wlan-regulator {
  42. compatible = "regulator-fixed";
  43. regulator-name = "wl-reg";
  44. regulator-min-microvolt = <2950000>;
  45. regulator-max-microvolt = <2950000>;
  46. gpio = <&tlmm 35 GPIO_ACTIVE_HIGH>;
  47. enable-active-high;
  48. pinctrl-names = "default";
  49. pinctrl-0 = <&wlan_regulator_default_state>;
  50. };
  51. };
  52. &adsp {
  53. status = "okay";
  54. };
  55. &blsp1_uart1 {
  56. status = "okay";
  57. pinctrl-names = "default";
  58. pinctrl-0 = <&blsp1_uart1_default_state>;
  59. bluetooth {
  60. compatible = "brcm,bcm43430a1-bt";
  61. max-speed = <3000000>;
  62. pinctrl-names = "default";
  63. pinctrl-0 = <&bluetooth_default_state>;
  64. host-wakeup-gpios = <&tlmm 48 GPIO_ACTIVE_HIGH>;
  65. device-wakeup-gpios = <&tlmm 61 GPIO_ACTIVE_HIGH>;
  66. shutdown-gpios = <&tlmm 34 GPIO_ACTIVE_HIGH>;
  67. };
  68. };
  69. &pm8226_vib {
  70. status = "okay";
  71. };
  72. &rpm_requests {
  73. pm8226-regulators {
  74. compatible = "qcom,rpm-pm8226-regulators";
  75. pm8226_s3: s3 {
  76. regulator-min-microvolt = <1200000>;
  77. regulator-max-microvolt = <1300000>;
  78. };
  79. pm8226_s4: s4 {
  80. regulator-min-microvolt = <1800000>;
  81. regulator-max-microvolt = <2200000>;
  82. };
  83. pm8226_s5: s5 {
  84. regulator-min-microvolt = <1150000>;
  85. regulator-max-microvolt = <1150000>;
  86. };
  87. pm8226_l1: l1 {
  88. regulator-min-microvolt = <1225000>;
  89. regulator-max-microvolt = <1225000>;
  90. };
  91. pm8226_l2: l2 {
  92. regulator-min-microvolt = <1200000>;
  93. regulator-max-microvolt = <1200000>;
  94. };
  95. pm8226_l3: l3 {
  96. regulator-min-microvolt = <750000>;
  97. regulator-max-microvolt = <1337500>;
  98. };
  99. pm8226_l4: l4 {
  100. regulator-min-microvolt = <1200000>;
  101. regulator-max-microvolt = <1200000>;
  102. };
  103. pm8226_l5: l5 {
  104. regulator-min-microvolt = <1200000>;
  105. regulator-max-microvolt = <1200000>;
  106. };
  107. pm8226_l6: l6 {
  108. regulator-min-microvolt = <1800000>;
  109. regulator-max-microvolt = <1800000>;
  110. };
  111. pm8226_l7: l7 {
  112. regulator-min-microvolt = <1900000>;
  113. regulator-max-microvolt = <1900000>;
  114. };
  115. pm8226_l8: l8 {
  116. regulator-min-microvolt = <1800000>;
  117. regulator-max-microvolt = <1800000>;
  118. };
  119. pm8226_l9: l9 {
  120. regulator-min-microvolt = <1800000>;
  121. regulator-max-microvolt = <1800000>;
  122. };
  123. pm8226_l10: l10 {
  124. regulator-min-microvolt = <1800000>;
  125. regulator-max-microvolt = <1800000>;
  126. };
  127. pm8226_l12: l12 {
  128. regulator-min-microvolt = <1800000>;
  129. regulator-max-microvolt = <1800000>;
  130. };
  131. pm8226_l14: l14 {
  132. regulator-min-microvolt = <2750000>;
  133. regulator-max-microvolt = <2750000>;
  134. };
  135. pm8226_l15: l15 {
  136. regulator-min-microvolt = <3000000>;
  137. regulator-max-microvolt = <3000000>;
  138. };
  139. pm8226_l16: l16 {
  140. regulator-min-microvolt = <3000000>;
  141. regulator-max-microvolt = <3000000>;
  142. };
  143. pm8226_l17: l17 {
  144. regulator-min-microvolt = <2950000>;
  145. regulator-max-microvolt = <2950000>;
  146. };
  147. pm8226_l18: l18 {
  148. regulator-min-microvolt = <2950000>;
  149. regulator-max-microvolt = <2950000>;
  150. };
  151. pm8226_l19: l19 {
  152. regulator-min-microvolt = <2850000>;
  153. regulator-max-microvolt = <2850000>;
  154. };
  155. pm8226_l20: l20 {
  156. regulator-min-microvolt = <3075000>;
  157. regulator-max-microvolt = <3075000>;
  158. };
  159. pm8226_l21: l21 {
  160. regulator-min-microvolt = <1800000>;
  161. regulator-max-microvolt = <2950000>;
  162. };
  163. pm8226_l22: l22 {
  164. regulator-min-microvolt = <1800000>;
  165. regulator-max-microvolt = <2950000>;
  166. };
  167. pm8226_l23: l23 {
  168. regulator-min-microvolt = <1800000>;
  169. regulator-max-microvolt = <1800000>;
  170. };
  171. pm8226_l24: l24 {
  172. regulator-min-microvolt = <1300000>;
  173. regulator-max-microvolt = <1350000>;
  174. };
  175. pm8226_l25: l25 {
  176. regulator-min-microvolt = <1775000>;
  177. regulator-max-microvolt = <2125000>;
  178. };
  179. pm8226_l26: l26 {
  180. regulator-min-microvolt = <1225000>;
  181. regulator-max-microvolt = <1225000>;
  182. };
  183. pm8226_l27: l27 {
  184. regulator-min-microvolt = <2050000>;
  185. regulator-max-microvolt = <2050000>;
  186. };
  187. pm8226_l28: l28 {
  188. regulator-min-microvolt = <1800000>;
  189. regulator-max-microvolt = <2950000>;
  190. };
  191. pm8226_lvs1: lvs1 {};
  192. };
  193. };
  194. &sdhc_1 {
  195. status = "okay";
  196. vmmc-supply = <&pm8226_l17>;
  197. vqmmc-supply = <&pm8226_l6>;
  198. bus-width = <8>;
  199. non-removable;
  200. };
  201. &sdhc_3 {
  202. status = "okay";
  203. max-frequency = <100000000>;
  204. non-removable;
  205. vmmc-supply = <&vreg_wlan>;
  206. vqmmc-supply = <&pm8226_l6>;
  207. #address-cells = <1>;
  208. #size-cells = <0>;
  209. wifi@1 {
  210. compatible = "brcm,bcm43430a1-fmac", "brcm,bcm4329-fmac";
  211. reg = <1>;
  212. interrupts-extended = <&tlmm 46 IRQ_TYPE_EDGE_FALLING>;
  213. interrupt-names = "host-wake";
  214. pinctrl-names = "default";
  215. pinctrl-0 = <&wlan_hostwake_default_state>;
  216. };
  217. };
  218. &smbb {
  219. qcom,fast-charge-safe-current = <1500000>;
  220. qcom,fast-charge-current-limit = <350000>;
  221. qcom,fast-charge-safe-voltage = <4430000>;
  222. qcom,fast-charge-high-threshold-voltage = <4400000>;
  223. qcom,auto-recharge-threshold-voltage = <4300000>;
  224. qcom,minimum-input-voltage = <4400000>;
  225. };
  226. &tlmm {
  227. blsp1_uart1_default_state: blsp1-uart1-default-state {
  228. pins = "gpio0", "gpio1", "gpio2", "gpio3";
  229. function = "blsp_uart1";
  230. drive-strength = <8>;
  231. bias-disable;
  232. };
  233. bluetooth_default_state: bluetooth-default-state {
  234. pins = "gpio48", "gpio61";
  235. function = "gpio";
  236. drive-strength = <8>;
  237. bias-disable;
  238. input-enable;
  239. };
  240. wlan_hostwake_default_state: wlan-hostwake-default-state {
  241. pins = "gpio46";
  242. function = "gpio";
  243. drive-strength = <2>;
  244. bias-disable;
  245. input-enable;
  246. };
  247. wlan_regulator_default_state: wlan-regulator-default-state {
  248. pins = "gpio35";
  249. function = "gpio";
  250. drive-strength = <2>;
  251. bias-pull-up;
  252. };
  253. };
  254. &usb {
  255. status = "okay";
  256. extcon = <&smbb>;
  257. dr_mode = "peripheral";
  258. };
  259. &usb_hs_phy {
  260. extcon = <&smbb>;
  261. v1p8-supply = <&pm8226_l10>;
  262. v3p3-supply = <&pm8226_l20>;
  263. };