qcom-apq8074-dragonboard.dts 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include <dt-bindings/gpio/gpio.h>
  3. #include "qcom-msm8974.dtsi"
  4. #include "qcom-pm8841.dtsi"
  5. #include "qcom-pm8941.dtsi"
  6. / {
  7. model = "Qualcomm APQ8074 Dragonboard";
  8. compatible = "qcom,apq8074-dragonboard", "qcom,apq8074";
  9. aliases {
  10. serial0 = &blsp1_uart2;
  11. usid0 = &pm8941_0;
  12. usid4 = &pm8841_0;
  13. };
  14. chosen {
  15. stdout-path = "serial0:115200n8";
  16. };
  17. };
  18. &blsp1_uart2 {
  19. status = "okay";
  20. };
  21. &blsp2_dma {
  22. qcom,controlled-remotely;
  23. };
  24. &blsp2_i2c5 {
  25. status = "okay";
  26. clock-frequency = <200000>;
  27. eeprom: eeprom@52 {
  28. compatible = "atmel,24c128";
  29. reg = <0x52>;
  30. pagesize = <32>;
  31. read-only;
  32. };
  33. };
  34. &otg {
  35. status = "okay";
  36. phys = <&usb_hs2_phy>;
  37. phy-select = <&tcsr 0xb000 1>;
  38. extcon = <&smbb>, <&usb_id>;
  39. vbus-supply = <&chg_otg>;
  40. hnp-disable;
  41. srp-disable;
  42. adp-disable;
  43. ulpi {
  44. phy@b {
  45. status = "okay";
  46. v3p3-supply = <&pm8941_l24>;
  47. v1p8-supply = <&pm8941_l6>;
  48. extcon = <&smbb>;
  49. qcom,init-seq = /bits/ 8 <0x1 0x63>;
  50. };
  51. };
  52. };
  53. &rpm_requests {
  54. pm8841-regulators {
  55. compatible = "qcom,rpm-pm8841-regulators";
  56. pm8841_s1: s1 {
  57. regulator-min-microvolt = <675000>;
  58. regulator-max-microvolt = <1050000>;
  59. };
  60. pm8841_s2: s2 {
  61. regulator-min-microvolt = <500000>;
  62. regulator-max-microvolt = <1050000>;
  63. };
  64. pm8841_s3: s3 {
  65. regulator-min-microvolt = <500000>;
  66. regulator-max-microvolt = <1050000>;
  67. };
  68. pm8841_s4: s4 {
  69. regulator-min-microvolt = <500000>;
  70. regulator-max-microvolt = <1050000>;
  71. };
  72. };
  73. pm8941-regulators {
  74. compatible = "qcom,rpm-pm8941-regulators";
  75. vdd_l1_l3-supply = <&pm8941_s1>;
  76. vdd_l2_lvs1_2_3-supply = <&pm8941_s3>;
  77. vdd_l4_l11-supply = <&pm8941_s1>;
  78. vdd_l5_l7-supply = <&pm8941_s2>;
  79. vdd_l6_l12_l14_l15-supply = <&pm8941_s2>;
  80. vin_5vs-supply = <&pm8941_5v>;
  81. pm8941_s1: s1 {
  82. regulator-min-microvolt = <1300000>;
  83. regulator-max-microvolt = <1300000>;
  84. regulator-always-on;
  85. regulator-boot-on;
  86. };
  87. pm8941_s2: s2 {
  88. regulator-min-microvolt = <2150000>;
  89. regulator-max-microvolt = <2150000>;
  90. regulator-boot-on;
  91. };
  92. pm8941_s3: s3 {
  93. regulator-min-microvolt = <1800000>;
  94. regulator-max-microvolt = <1800000>;
  95. regulator-always-on;
  96. regulator-boot-on;
  97. };
  98. pm8941_l1: l1 {
  99. regulator-min-microvolt = <1225000>;
  100. regulator-max-microvolt = <1225000>;
  101. regulator-always-on;
  102. regulator-boot-on;
  103. };
  104. pm8941_l2: l2 {
  105. regulator-min-microvolt = <1200000>;
  106. regulator-max-microvolt = <1200000>;
  107. };
  108. pm8941_l3: l3 {
  109. regulator-min-microvolt = <1225000>;
  110. regulator-max-microvolt = <1225000>;
  111. };
  112. pm8941_l4: l4 {
  113. regulator-min-microvolt = <1225000>;
  114. regulator-max-microvolt = <1225000>;
  115. };
  116. pm8941_l5: l5 {
  117. regulator-min-microvolt = <1800000>;
  118. regulator-max-microvolt = <1800000>;
  119. };
  120. pm8941_l6: l6 {
  121. regulator-min-microvolt = <1800000>;
  122. regulator-max-microvolt = <1800000>;
  123. regulator-boot-on;
  124. };
  125. pm8941_l7: l7 {
  126. regulator-min-microvolt = <1800000>;
  127. regulator-max-microvolt = <1800000>;
  128. regulator-boot-on;
  129. };
  130. pm8941_l8: l8 {
  131. regulator-min-microvolt = <1800000>;
  132. regulator-max-microvolt = <1800000>;
  133. };
  134. pm8941_l9: l9 {
  135. regulator-min-microvolt = <1800000>;
  136. regulator-max-microvolt = <2950000>;
  137. };
  138. pm8941_l10: l10 {
  139. regulator-min-microvolt = <1800000>;
  140. regulator-max-microvolt = <1800000>;
  141. regulator-always-on;
  142. };
  143. pm8941_l11: l11 {
  144. regulator-min-microvolt = <1300000>;
  145. regulator-max-microvolt = <1300000>;
  146. };
  147. pm8941_l12: l12 {
  148. regulator-min-microvolt = <1800000>;
  149. regulator-max-microvolt = <1800000>;
  150. regulator-always-on;
  151. regulator-boot-on;
  152. };
  153. pm8941_l13: l13 {
  154. regulator-min-microvolt = <1800000>;
  155. regulator-max-microvolt = <2950000>;
  156. regulator-boot-on;
  157. };
  158. pm8941_l14: l14 {
  159. regulator-min-microvolt = <1800000>;
  160. regulator-max-microvolt = <1800000>;
  161. };
  162. pm8941_l15: l15 {
  163. regulator-min-microvolt = <2050000>;
  164. regulator-max-microvolt = <2050000>;
  165. };
  166. pm8941_l16: l16 {
  167. regulator-min-microvolt = <2700000>;
  168. regulator-max-microvolt = <2700000>;
  169. };
  170. pm8941_l17: l17 {
  171. regulator-min-microvolt = <2700000>;
  172. regulator-max-microvolt = <2700000>;
  173. };
  174. pm8941_l18: l18 {
  175. regulator-min-microvolt = <2850000>;
  176. regulator-max-microvolt = <2850000>;
  177. };
  178. pm8941_l19: l19 {
  179. regulator-min-microvolt = <3300000>;
  180. regulator-max-microvolt = <3300000>;
  181. regulator-always-on;
  182. };
  183. pm8941_l20: l20 {
  184. regulator-min-microvolt = <2950000>;
  185. regulator-max-microvolt = <2950000>;
  186. regulator-system-load = <200000>;
  187. regulator-allow-set-load;
  188. regulator-boot-on;
  189. };
  190. pm8941_l21: l21 {
  191. regulator-min-microvolt = <2950000>;
  192. regulator-max-microvolt = <2950000>;
  193. regulator-boot-on;
  194. };
  195. pm8941_l22: l22 {
  196. regulator-min-microvolt = <3000000>;
  197. regulator-max-microvolt = <3000000>;
  198. };
  199. pm8941_l23: l23 {
  200. regulator-min-microvolt = <3000000>;
  201. regulator-max-microvolt = <3000000>;
  202. };
  203. pm8941_l24: l24 {
  204. regulator-min-microvolt = <3075000>;
  205. regulator-max-microvolt = <3075000>;
  206. regulator-boot-on;
  207. };
  208. };
  209. };
  210. &sdhc_1 {
  211. status = "okay";
  212. vmmc-supply = <&pm8941_l20>;
  213. vqmmc-supply = <&pm8941_s3>;
  214. pinctrl-names = "default", "sleep";
  215. pinctrl-0 = <&sdc1_on>;
  216. pinctrl-1 = <&sdc1_off>;
  217. };
  218. &sdhc_2 {
  219. status = "okay";
  220. cd-gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
  221. vmmc-supply = <&pm8941_l21>;
  222. vqmmc-supply = <&pm8941_l13>;
  223. pinctrl-names = "default", "sleep";
  224. pinctrl-0 = <&sdc2_on>;
  225. pinctrl-1 = <&sdc2_off>;
  226. };
  227. &tlmm {
  228. sdc1_on: sdc1-on {
  229. clk {
  230. pins = "sdc1_clk";
  231. drive-strength = <16>;
  232. bias-disable;
  233. };
  234. cmd-data {
  235. pins = "sdc1_cmd", "sdc1_data";
  236. drive-strength = <10>;
  237. bias-pull-up;
  238. };
  239. };
  240. sdc2_on: sdc2-on {
  241. clk {
  242. pins = "sdc2_clk";
  243. drive-strength = <10>;
  244. bias-disable;
  245. };
  246. cmd-data {
  247. pins = "sdc2_cmd", "sdc2_data";
  248. drive-strength = <6>;
  249. bias-pull-up;
  250. };
  251. cd {
  252. pins = "gpio62";
  253. function = "gpio";
  254. drive-strength = <2>;
  255. bias-disable;
  256. };
  257. };
  258. };