qcs404-evb.dtsi 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. // SPDX-License-Identifier: GPL-2.0
  2. // Copyright (c) 2018, Linaro Limited
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include "qcs404.dtsi"
  5. #include "pms405.dtsi"
  6. #include <dt-bindings/gpio/gpio.h>
  7. #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
  8. / {
  9. aliases {
  10. serial0 = &blsp1_uart2;
  11. serial1 = &blsp1_uart3;
  12. };
  13. chosen {
  14. stdout-path = "serial0";
  15. };
  16. vph_pwr: vph-pwr-regulator {
  17. compatible = "regulator-fixed";
  18. regulator-name = "vph_pwr";
  19. regulator-always-on;
  20. regulator-boot-on;
  21. };
  22. vdd_ch0_3p3:
  23. vdd_esmps3_3p3: vdd-esmps3-3p3-regulator {
  24. compatible = "regulator-fixed";
  25. regulator-name = "eSMPS3_3P3";
  26. regulator-min-microvolt = <3300000>;
  27. regulator-max-microvolt = <3300000>;
  28. regulator-always-on;
  29. };
  30. usb3_vbus_reg: regulator-usb3-vbus {
  31. compatible = "regulator-fixed";
  32. regulator-name = "VBUS_BOOST_5V";
  33. regulator-min-microvolt = <5000000>;
  34. regulator-max-microvolt = <5000000>;
  35. gpio = <&pms405_gpios 3 GPIO_ACTIVE_HIGH>;
  36. pinctrl-names = "default";
  37. pinctrl-0 = <&usb_vbus_boost_pin>;
  38. vin-supply = <&vph_pwr>;
  39. enable-active-high;
  40. /* TODO: Drop this when introducing role switching */
  41. regulator-always-on;
  42. };
  43. };
  44. &blsp1_uart3 {
  45. status = "okay";
  46. bluetooth {
  47. compatible = "qcom,wcn3990-bt";
  48. vddio-supply = <&vreg_l6_1p8>;
  49. vddxo-supply = <&vreg_l5_1p8>;
  50. vddrf-supply = <&vreg_l1_1p3>;
  51. vddch0-supply = <&vdd_ch0_3p3>;
  52. local-bd-address = [ 02 00 00 00 5a ad ];
  53. max-speed = <3200000>;
  54. };
  55. };
  56. &blsp1_dma {
  57. qcom,controlled-remotely;
  58. };
  59. &blsp2_dma {
  60. qcom,controlled-remotely;
  61. };
  62. &gcc {
  63. protected-clocks = <GCC_BIMC_CDSP_CLK>,
  64. <GCC_CDSP_CFG_AHB_CLK>,
  65. <GCC_CDSP_BIMC_CLK_SRC>,
  66. <GCC_CDSP_TBU_CLK>,
  67. <141>, /* GCC_WCSS_Q6_AHB_CLK */
  68. <142>; /* GCC_WCSS_Q6_AXIM_CLK */
  69. };
  70. &pms405_spmi_regulators {
  71. vdd_s3-supply = <&vph_pwr>;
  72. pms405_s3: s3 {
  73. regulator-always-on;
  74. regulator-boot-on;
  75. regulator-name = "vdd_apc";
  76. regulator-initial-mode = <1>;
  77. regulator-min-microvolt = <1048000>;
  78. regulator-max-microvolt = <1384000>;
  79. };
  80. };
  81. &pcie {
  82. status = "okay";
  83. perst-gpios = <&tlmm 43 GPIO_ACTIVE_LOW>;
  84. pinctrl-names = "default";
  85. pinctrl-0 = <&perst_state>;
  86. };
  87. &pcie_phy {
  88. status = "okay";
  89. vdda-vp-supply = <&vreg_l3_1p05>;
  90. vdda-vph-supply = <&vreg_l5_1p8>;
  91. };
  92. &remoteproc_adsp {
  93. status = "okay";
  94. };
  95. &remoteproc_cdsp {
  96. status = "okay";
  97. };
  98. &remoteproc_wcss {
  99. status = "okay";
  100. };
  101. &rpm_requests {
  102. pms405-regulators {
  103. compatible = "qcom,rpm-pms405-regulators";
  104. vdd_s1-supply = <&vph_pwr>;
  105. vdd_s2-supply = <&vph_pwr>;
  106. vdd_s3-supply = <&vph_pwr>;
  107. vdd_s4-supply = <&vph_pwr>;
  108. vdd_s5-supply = <&vph_pwr>;
  109. vdd_l1_l2-supply = <&vreg_s5_1p35>;
  110. vdd_l3_l8-supply = <&vreg_s5_1p35>;
  111. vdd_l4-supply = <&vreg_s5_1p35>;
  112. vdd_l5_l6-supply = <&vreg_s4_1p8>;
  113. vdd_l7-supply = <&vph_pwr>;
  114. vdd_l9-supply = <&vreg_s5_1p35>;
  115. vdd_l10_l11_l12_l13-supply = <&vph_pwr>;
  116. vreg_s4_1p8: s4 {
  117. regulator-min-microvolt = <1728000>;
  118. regulator-max-microvolt = <1920000>;
  119. };
  120. vreg_s5_1p35: s5 {
  121. regulator-min-microvolt = <1352000>;
  122. regulator-max-microvolt = <1352000>;
  123. };
  124. vreg_l1_1p3: l1 {
  125. regulator-min-microvolt = <1240000>;
  126. regulator-max-microvolt = <1352000>;
  127. };
  128. vreg_l2_1p275: l2 {
  129. regulator-min-microvolt = <1048000>;
  130. regulator-max-microvolt = <1280000>;
  131. };
  132. vreg_l3_1p05: l3 {
  133. regulator-min-microvolt = <1048000>;
  134. regulator-max-microvolt = <1160000>;
  135. };
  136. vreg_l4_1p2: l4 {
  137. regulator-min-microvolt = <1144000>;
  138. regulator-max-microvolt = <1256000>;
  139. };
  140. vreg_l5_1p8: l5 {
  141. regulator-min-microvolt = <1800000>;
  142. regulator-max-microvolt = <1800000>;
  143. };
  144. vreg_l6_1p8: l6 {
  145. regulator-min-microvolt = <1800000>;
  146. regulator-max-microvolt = <1800000>;
  147. regulator-always-on;
  148. };
  149. vreg_l7_1p8: l7 {
  150. regulator-min-microvolt = <1616000>;
  151. regulator-max-microvolt = <3000000>;
  152. };
  153. vreg_l8_1p2: l8 {
  154. regulator-min-microvolt = <1136000>;
  155. regulator-max-microvolt = <1352000>;
  156. };
  157. vreg_l10_3p3: l10 {
  158. regulator-min-microvolt = <2936000>;
  159. regulator-max-microvolt = <3088000>;
  160. };
  161. vreg_l11_sdc2: l11 {
  162. regulator-min-microvolt = <2696000>;
  163. regulator-max-microvolt = <3304000>;
  164. };
  165. vreg_l12_3p3: l12 {
  166. regulator-min-microvolt = <3050000>;
  167. regulator-max-microvolt = <3300000>;
  168. };
  169. vreg_l13_3p3: l13 {
  170. regulator-min-microvolt = <3000000>;
  171. regulator-max-microvolt = <3300000>;
  172. };
  173. };
  174. };
  175. &sdcc1 {
  176. status = "okay";
  177. supports-cqe;
  178. mmc-ddr-1_8v;
  179. mmc-hs400-1_8v;
  180. bus-width = <8>;
  181. non-removable;
  182. pinctrl-names = "default", "sleep";
  183. pinctrl-0 = <&sdc1_on>;
  184. pinctrl-1 = <&sdc1_off>;
  185. };
  186. &tlmm {
  187. perst_state: perst {
  188. pins = "gpio43";
  189. function = "gpio";
  190. drive-strength = <2>;
  191. bias-disable;
  192. output-low;
  193. };
  194. sdc1_on: sdc1-on {
  195. clk {
  196. pins = "sdc1_clk";
  197. bias-disable;
  198. drive-strength = <16>;
  199. };
  200. cmd {
  201. pins = "sdc1_cmd";
  202. bias-pull-up;
  203. drive-strength = <10>;
  204. };
  205. data {
  206. pins = "sdc1_data";
  207. bias-pull-up;
  208. drive-strength = <10>;
  209. };
  210. rclk {
  211. pins = "sdc1_rclk";
  212. bias-pull-down;
  213. };
  214. };
  215. sdc1_off: sdc1-off {
  216. clk {
  217. pins = "sdc1_clk";
  218. bias-disable;
  219. drive-strength = <2>;
  220. };
  221. cmd {
  222. pins = "sdc1_cmd";
  223. bias-pull-up;
  224. drive-strength = <2>;
  225. };
  226. data {
  227. pins = "sdc1_data";
  228. bias-pull-up;
  229. drive-strength = <2>;
  230. };
  231. rclk {
  232. pins = "sdc1_rclk";
  233. bias-pull-down;
  234. };
  235. };
  236. usb3_id_pin: usb3-id-pin {
  237. pinmux {
  238. pins = "gpio116";
  239. function = "gpio";
  240. };
  241. pinconf {
  242. pins = "gpio116";
  243. drive-strength = <2>;
  244. bias-pull-up;
  245. input-enable;
  246. };
  247. };
  248. };
  249. &pms405_gpios {
  250. usb_vbus_boost_pin: usb-vbus-boost-state {
  251. pinconf {
  252. pins = "gpio3";
  253. function = PMIC_GPIO_FUNC_NORMAL;
  254. output-low;
  255. power-source = <1>;
  256. };
  257. };
  258. usb3_vbus_pin: usb3-vbus-state {
  259. pinconf {
  260. pins = "gpio12";
  261. function = PMIC_GPIO_FUNC_NORMAL;
  262. input-enable;
  263. bias-pull-down;
  264. power-source = <1>;
  265. };
  266. };
  267. };
  268. &usb2 {
  269. status = "okay";
  270. };
  271. &usb2_phy_sec {
  272. vdd-supply = <&vreg_l4_1p2>;
  273. vdda1p8-supply = <&vreg_l5_1p8>;
  274. vdda3p3-supply = <&vreg_l12_3p3>;
  275. status = "okay";
  276. };
  277. &usb3 {
  278. status = "okay";
  279. };
  280. &usb3_dwc3 {
  281. dr_mode = "host";
  282. };
  283. &usb2_phy_prim {
  284. vdd-supply = <&vreg_l4_1p2>;
  285. vdda1p8-supply = <&vreg_l5_1p8>;
  286. vdda3p3-supply = <&vreg_l12_3p3>;
  287. status = "okay";
  288. };
  289. &usb3_phy {
  290. vdd-supply = <&vreg_l3_1p05>;
  291. vdda1p8-supply = <&vreg_l5_1p8>;
  292. status = "okay";
  293. };
  294. &wifi {
  295. status = "okay";
  296. vdd-0.8-cx-mx-supply = <&vreg_l2_1p275>;
  297. vdd-1.8-xo-supply = <&vreg_l5_1p8>;
  298. vdd-1.3-rfa-supply = <&vreg_l1_1p3>;
  299. };
  300. /* PINCTRL - additions to nodes defined in qcs404.dtsi */
  301. &blsp1_uart2_default {
  302. rx {
  303. drive-strength = <2>;
  304. bias-disable;
  305. };
  306. tx {
  307. drive-strength = <2>;
  308. bias-disable;
  309. };
  310. };
  311. &blsp1_uart3_default {
  312. cts {
  313. pins = "gpio84";
  314. bias-disable;
  315. };
  316. rts-tx {
  317. pins = "gpio85", "gpio82";
  318. drive-strength = <2>;
  319. bias-disable;
  320. };
  321. rx {
  322. pins = "gpio83";
  323. bias-pull-up;
  324. };
  325. };