treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / arm64 / boot / dts / qcom / msm8998-mtp.dtsi
blob5f101a20a20a23a1364a9ecc05cb8b5f6cd5d8bc
1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) 2016, The Linux Foundation. All rights reserved. */
4 #include "msm8998.dtsi"
5 #include "pm8998.dtsi"
6 #include "pmi8998.dtsi"
7 #include "pm8005.dtsi"
9 / {
10         aliases {
11                 serial0 = &blsp2_uart1;
12         };
14         chosen {
15                 stdout-path = "serial0:115200n8";
16         };
18         vph_pwr: vph-pwr-regulator {
19                 compatible = "regulator-fixed";
20                 regulator-name = "vph_pwr";
21                 regulator-always-on;
22                 regulator-boot-on;
23         };
26 &blsp1_uart3 {
27         status = "okay";
29         bluetooth {
30                 compatible = "qcom,wcn3990-bt";
32                 vddio-supply = <&vreg_s4a_1p8>;
33                 vddxo-supply = <&vreg_l7a_1p8>;
34                 vddrf-supply = <&vreg_l17a_1p3>;
35                 vddch0-supply = <&vreg_l25a_3p3>;
36                 max-speed = <3200000>;
37         };
40 &blsp2_uart1 {
41         status = "okay";
44 &etf {
45         status = "okay";
48 &etm1 {
49         status = "okay";
52 &etm2 {
53         status = "okay";
56 &etm3 {
57         status = "okay";
60 &etm4 {
61         status = "okay";
64 &etm5 {
65         status = "okay";
68 &etm6 {
69         status = "okay";
72 &etm7 {
73         status = "okay";
76 &etm8 {
77         status = "okay";
80 &etr {
81         status = "okay";
84 &funnel1 {
85         status = "okay";
88 &funnel2 {
89         status = "okay";
92 &funnel3 {
93         status = "okay";
96 &funnel4 {
97         status = "okay";
100 &funnel5 {
101         status = "okay";
104 &pm8005_lsid1 {
105         pm8005-regulators {
106                 compatible = "qcom,pm8005-regulators";
108                 vdd_s1-supply = <&vph_pwr>;
110                 pm8005_s1: s1 { /* VDD_GFX supply */
111                         regulator-min-microvolt = <524000>;
112                         regulator-max-microvolt = <1100000>;
113                         regulator-enable-ramp-delay = <500>;
115                         /* hack until we rig up the gpu consumer */
116                         regulator-always-on;
117                 };
118         };
121 &qusb2phy {
122         status = "okay";
124         vdda-pll-supply = <&vreg_l12a_1p8>;
125         vdda-phy-dpdm-supply = <&vreg_l24a_3p075>;
128 &replicator1 {
129         status = "okay";
132 &rpm_requests {
133         pm8998-regulators {
134                 compatible = "qcom,rpm-pm8998-regulators";
136                 vdd_s1-supply = <&vph_pwr>;
137                 vdd_s2-supply = <&vph_pwr>;
138                 vdd_s3-supply = <&vph_pwr>;
139                 vdd_s4-supply = <&vph_pwr>;
140                 vdd_s5-supply = <&vph_pwr>;
141                 vdd_s6-supply = <&vph_pwr>;
142                 vdd_s7-supply = <&vph_pwr>;
143                 vdd_s8-supply = <&vph_pwr>;
144                 vdd_s9-supply = <&vph_pwr>;
145                 vdd_s10-supply = <&vph_pwr>;
146                 vdd_s11-supply = <&vph_pwr>;
147                 vdd_s12-supply = <&vph_pwr>;
148                 vdd_s13-supply = <&vph_pwr>;
149                 vdd_l1_l27-supply = <&vreg_s7a_1p025>;
150                 vdd_l2_l8_l17-supply = <&vreg_s3a_1p35>;
151                 vdd_l3_l11-supply = <&vreg_s7a_1p025>;
152                 vdd_l4_l5-supply = <&vreg_s7a_1p025>;
153                 vdd_l6-supply = <&vreg_s5a_2p04>;
154                 vdd_l7_l12_l14_l15-supply = <&vreg_s5a_2p04>;
155                 vdd_l9-supply = <&vreg_bob>;
156                 vdd_l10_l23_l25-supply = <&vreg_bob>;
157                 vdd_l13_l19_l21-supply = <&vreg_bob>;
158                 vdd_l16_l28-supply = <&vreg_bob>;
159                 vdd_l18_l22-supply = <&vreg_bob>;
160                 vdd_l20_l24-supply = <&vreg_bob>;
161                 vdd_l26-supply = <&vreg_s3a_1p35>;
162                 vdd_lvs1_lvs2-supply = <&vreg_s4a_1p8>;
164                 vreg_s3a_1p35: s3 {
165                         regulator-min-microvolt = <1352000>;
166                         regulator-max-microvolt = <1352000>;
167                 };
168                 vreg_s4a_1p8: s4 {
169                         regulator-min-microvolt = <1800000>;
170                         regulator-max-microvolt = <1800000>;
171                         regulator-allow-set-load;
172                 };
173                 vreg_s5a_2p04: s5 {
174                         regulator-min-microvolt = <1904000>;
175                         regulator-max-microvolt = <2040000>;
176                 };
177                 vreg_s7a_1p025: s7 {
178                         regulator-min-microvolt = <900000>;
179                         regulator-max-microvolt = <1028000>;
180                 };
181                 vreg_l1a_0p875: l1 {
182                         regulator-min-microvolt = <880000>;
183                         regulator-max-microvolt = <880000>;
184                 };
185                 vreg_l2a_1p2: l2 {
186                         regulator-min-microvolt = <1200000>;
187                         regulator-max-microvolt = <1200000>;
188                 };
189                 vreg_l3a_1p0: l3 {
190                         regulator-min-microvolt = <1000000>;
191                         regulator-max-microvolt = <1000000>;
192                 };
193                 vreg_l5a_0p8: l5 {
194                         regulator-min-microvolt = <800000>;
195                         regulator-max-microvolt = <800000>;
196                 };
197                 vreg_l6a_1p8: l6 {
198                         regulator-min-microvolt = <1808000>;
199                         regulator-max-microvolt = <1808000>;
200                 };
201                 vreg_l7a_1p8: l7 {
202                         regulator-min-microvolt = <1800000>;
203                         regulator-max-microvolt = <1800000>;
204                 };
205                 vreg_l8a_1p2: l8 {
206                         regulator-min-microvolt = <1200000>;
207                         regulator-max-microvolt = <1200000>;
208                 };
209                 vreg_l9a_1p8: l9 {
210                         regulator-min-microvolt = <1808000>;
211                         regulator-max-microvolt = <2960000>;
212                 };
213                 vreg_l10a_1p8: l10 {
214                         regulator-min-microvolt = <1808000>;
215                         regulator-max-microvolt = <2960000>;
216                 };
217                 vreg_l11a_1p0: l11 {
218                         regulator-min-microvolt = <1000000>;
219                         regulator-max-microvolt = <1000000>;
220                 };
221                 vreg_l12a_1p8: l12 {
222                         regulator-min-microvolt = <1800000>;
223                         regulator-max-microvolt = <1800000>;
224                 };
225                 vreg_l13a_2p95: l13 {
226                         regulator-min-microvolt = <1808000>;
227                         regulator-max-microvolt = <2960000>;
228                 };
229                 vreg_l14a_1p88: l14 {
230                         regulator-min-microvolt = <1880000>;
231                         regulator-max-microvolt = <1880000>;
232                 };
233                 vreg_15a_1p8: l15 {
234                         regulator-min-microvolt = <1800000>;
235                         regulator-max-microvolt = <1800000>;
236                 };
237                 vreg_l16a_2p7: l16 {
238                         regulator-min-microvolt = <2704000>;
239                         regulator-max-microvolt = <2704000>;
240                 };
241                 vreg_l17a_1p3: l17 {
242                         regulator-min-microvolt = <1304000>;
243                         regulator-max-microvolt = <1304000>;
244                 };
245                 vreg_l18a_2p7: l18 {
246                         regulator-min-microvolt = <2704000>;
247                         regulator-max-microvolt = <2704000>;
248                 };
249                 vreg_l19a_3p0: l19 {
250                         regulator-min-microvolt = <3008000>;
251                         regulator-max-microvolt = <3008000>;
252                 };
253                 vreg_l20a_2p95: l20 {
254                         regulator-min-microvolt = <2960000>;
255                         regulator-max-microvolt = <2960000>;
256                         regulator-allow-set-load;
257                 };
258                 vreg_l21a_2p95: l21 {
259                         regulator-min-microvolt = <2960000>;
260                         regulator-max-microvolt = <2960000>;
261                         regulator-allow-set-load;
262                         regulator-system-load = <800000>;
263                 };
264                 vreg_l22a_2p85: l22 {
265                         regulator-min-microvolt = <2864000>;
266                         regulator-max-microvolt = <2864000>;
267                 };
268                 vreg_l23a_3p3: l23 {
269                         regulator-min-microvolt = <3312000>;
270                         regulator-max-microvolt = <3312000>;
271                 };
272                 vreg_l24a_3p075: l24 {
273                         regulator-min-microvolt = <3088000>;
274                         regulator-max-microvolt = <3088000>;
275                 };
276                 vreg_l25a_3p3: l25 {
277                         regulator-min-microvolt = <3104000>;
278                         regulator-max-microvolt = <3312000>;
279                 };
280                 vreg_l26a_1p2: l26 {
281                         regulator-min-microvolt = <1200000>;
282                         regulator-max-microvolt = <1200000>;
283                         regulator-allow-set-load;
284                 };
285                 vreg_l28_3p0: l28 {
286                         regulator-min-microvolt = <3008000>;
287                         regulator-max-microvolt = <3008000>;
288                 };
290                 vreg_lvs1a_1p8: lvs1 {
291                         regulator-min-microvolt = <1800000>;
292                         regulator-max-microvolt = <1800000>;
293                 };
295                 vreg_lvs2a_1p8: lvs2 {
296                         regulator-min-microvolt = <1800000>;
297                         regulator-max-microvolt = <1800000>;
298                 };
300         };
302         pmi8998-regulators {
303                 compatible = "qcom,rpm-pmi8998-regulators";
305                 vdd_bob-supply = <&vph_pwr>;
307                 vreg_bob: bob {
308                         regulator-min-microvolt = <3312000>;
309                         regulator-max-microvolt = <3600000>;
310                 };
311         };
314 &tlmm {
315         gpio-reserved-ranges = <0 4>, <81 4>;
318 &sdhc2 {
319         status = "okay";
320         cd-gpios = <&tlmm 95 GPIO_ACTIVE_LOW>;
322         vmmc-supply = <&vreg_l21a_2p95>;
323         vqmmc-supply = <&vreg_l13a_2p95>;
325         pinctrl-names = "default", "sleep";
326         pinctrl-0 = <&sdc2_clk_on  &sdc2_cmd_on  &sdc2_data_on  &sdc2_cd_on>;
327         pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
330 &stm {
331         status = "okay";
334 &ufshc {
335         vcc-supply = <&vreg_l20a_2p95>;
336         vccq-supply = <&vreg_l26a_1p2>;
337         vccq2-supply = <&vreg_s4a_1p8>;
338         vcc-max-microamp = <750000>;
339         vccq-max-microamp = <560000>;
340         vccq2-max-microamp = <750000>;
343 &ufsphy {
344         vdda-phy-supply = <&vreg_l1a_0p875>;
345         vdda-pll-supply = <&vreg_l2a_1p2>;
346         vddp-ref-clk-supply = <&vreg_l26a_1p2>;
347         vdda-phy-max-microamp = <51400>;
348         vdda-pll-max-microamp = <14600>;
349         vddp-ref-clk-max-microamp = <100>;
350         vddp-ref-clk-always-on;
353 &usb3 {
354         status = "okay";
357 &usb3_dwc3 {
358         dr_mode = "host"; /* Force to host until we have Type-C hooked up */
361 &usb3phy {
362         status = "okay";
364         vdda-phy-supply = <&vreg_l1a_0p875>;
365         vdda-pll-supply = <&vreg_l2a_1p2>;