~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/scripts/dtc/include-prefixes/arm64/qcom/sm8650-qrd.dts

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: BSD-3-Clause
  2 /*
  3  * Copyright (c) 2023, Linaro Limited
  4  */
  5 
  6 /dts-v1/;
  7 
  8 #include <dt-bindings/leds/common.h>
  9 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
 10 #include "sm8650.dtsi"
 11 #include "pm8010.dtsi"
 12 #include "pm8550.dtsi"
 13 #include "pm8550b.dtsi"
 14 #define PMK8550VE_SID 8
 15 #include "pm8550ve.dtsi"
 16 #include "pm8550vs.dtsi"
 17 #include "pmk8550.dtsi"
 18 #include "pmr735d_a.dtsi"
 19 
 20 / {
 21         model = "Qualcomm Technologies, Inc. SM8650 QRD";
 22         compatible = "qcom,sm8650-qrd", "qcom,sm8650";
 23 
 24         aliases {
 25                 serial0 = &uart15;
 26                 serial1 = &uart14;
 27         };
 28 
 29         chosen {
 30                 stdout-path = "serial0:115200n8";
 31         };
 32 
 33         gpio-keys {
 34                 compatible = "gpio-keys";
 35 
 36                 pinctrl-0 = <&volume_up_n>;
 37                 pinctrl-names = "default";
 38 
 39                 key-volume-up {
 40                         label = "Volume Up";
 41                         linux,code = <KEY_VOLUMEUP>;
 42                         gpios = <&pm8550_gpios 6 GPIO_ACTIVE_LOW>;
 43                         debounce-interval = <15>;
 44                         linux,can-disable;
 45                         wakeup-source;
 46                 };
 47         };
 48 
 49         pmic-glink {
 50                 compatible = "qcom,sm8650-pmic-glink",
 51                              "qcom,sm8550-pmic-glink",
 52                              "qcom,pmic-glink";
 53                 #address-cells = <1>;
 54                 #size-cells = <0>;
 55                 orientation-gpios = <&tlmm 29 GPIO_ACTIVE_HIGH>;
 56 
 57                 connector@0 {
 58                         compatible = "usb-c-connector";
 59                         reg = <0>;
 60 
 61                         power-role = "dual";
 62                         data-role = "dual";
 63 
 64                         ports {
 65                                 #address-cells = <1>;
 66                                 #size-cells = <0>;
 67 
 68                                 port@0 {
 69                                         reg = <0>;
 70 
 71                                         pmic_glink_hs_in: endpoint {
 72                                                 remote-endpoint = <&usb_1_dwc3_hs>;
 73                                         };
 74                                 };
 75 
 76                                 port@1 {
 77                                         reg = <1>;
 78 
 79                                         pmic_glink_ss_in: endpoint {
 80                                                 remote-endpoint = <&redriver_ss_out>;
 81                                         };
 82                                 };
 83 
 84                                 port@2 {
 85                                         reg = <2>;
 86 
 87                                         pmic_glink_sbu: endpoint {
 88                                                 remote-endpoint = <&wcd_usbss_sbu_mux>;
 89                                     };
 90                                 };
 91                         };
 92                 };
 93         };
 94 
 95         sound {
 96                 compatible = "qcom,sm8650-sndcard", "qcom,sm8450-sndcard";
 97                 model = "SM8650-QRD";
 98                 audio-routing = "SpkrLeft IN", "WSA_SPK1 OUT",
 99                                 "SpkrRight IN", "WSA_SPK2 OUT",
100                                 "IN1_HPHL", "HPHL_OUT",
101                                 "IN2_HPHR", "HPHR_OUT",
102                                 "AMIC1", "MIC BIAS1",
103                                 "AMIC2", "MIC BIAS2",
104                                 "AMIC3", "MIC BIAS3",
105                                 "AMIC4", "MIC BIAS3",
106                                 "AMIC5", "MIC BIAS4",
107                                 "TX SWR_INPUT0", "ADC1_OUTPUT",
108                                 "TX SWR_INPUT1", "ADC2_OUTPUT",
109                                 "TX SWR_INPUT2", "ADC3_OUTPUT",
110                                 "TX SWR_INPUT3", "ADC4_OUTPUT";
111 
112                 wcd-playback-dai-link {
113                         link-name = "WCD Playback";
114 
115                         cpu {
116                                 sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>;
117                         };
118 
119                         codec {
120                                 sound-dai = <&wcd939x 0>, <&swr1 0>, <&lpass_rxmacro 0>;
121                         };
122 
123                         platform {
124                                 sound-dai = <&q6apm>;
125                         };
126                 };
127 
128                 wcd-capture-dai-link {
129                         link-name = "WCD Capture";
130 
131                         cpu {
132                                 sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>;
133                         };
134 
135                         codec {
136                                 sound-dai = <&wcd939x 1>, <&swr2 0>, <&lpass_txmacro 0>;
137                         };
138 
139                         platform {
140                                 sound-dai = <&q6apm>;
141                         };
142                 };
143 
144                 wsa-dai-link {
145                         link-name = "WSA Playback";
146 
147                         cpu {
148                                 sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>;
149                         };
150 
151                         codec {
152                                 sound-dai = <&left_spkr>, <&right_spkr>, <&swr0 0>, <&lpass_wsamacro 0>;
153                         };
154 
155                         platform {
156                                 sound-dai = <&q6apm>;
157                         };
158                 };
159         };
160 
161         vph_pwr: vph-pwr-regulator {
162                 compatible = "regulator-fixed";
163 
164                 regulator-name = "vph_pwr";
165                 regulator-min-microvolt = <3700000>;
166                 regulator-max-microvolt = <3700000>;
167 
168                 regulator-always-on;
169                 regulator-boot-on;
170         };
171 
172         wcd939x: audio-codec {
173                 compatible = "qcom,wcd9395-codec", "qcom,wcd9390-codec";
174 
175                 pinctrl-0 = <&wcd_default>;
176                 pinctrl-names = "default";
177 
178                 qcom,micbias1-microvolt = <1800000>;
179                 qcom,micbias2-microvolt = <1800000>;
180                 qcom,micbias3-microvolt = <1800000>;
181                 qcom,micbias4-microvolt = <1800000>;
182                 qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>;
183                 qcom,mbhc-headset-vthreshold-microvolt = <1700000>;
184                 qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
185                 qcom,rx-device = <&wcd_rx>;
186                 qcom,tx-device = <&wcd_tx>;
187 
188                 reset-gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
189 
190                 vdd-buck-supply = <&vreg_l15b_1p8>;
191                 vdd-rxtx-supply = <&vreg_l15b_1p8>;
192                 vdd-io-supply = <&vreg_l15b_1p8>;
193                 vdd-mic-bias-supply = <&vreg_bob1>;
194 
195                 #sound-dai-cells = <1>;
196 
197                 mode-switch;
198                 orientation-switch;
199 
200                 port {
201                         wcd_codec_headset_in: endpoint {
202                                 remote-endpoint = <&wcd_usbss_headset_out>;
203                         };
204                 };
205         };
206 
207         wcn7850-pmu {
208                 compatible = "qcom,wcn7850-pmu";
209 
210                 pinctrl-names = "default";
211                 pinctrl-0 = <&wlan_en>, <&bt_default>;
212 
213                 wlan-enable-gpios = <&tlmm 16 GPIO_ACTIVE_HIGH>;
214                 bt-enable-gpios = <&tlmm 17 GPIO_ACTIVE_HIGH>;
215 
216                 vdd-supply = <&vreg_s4i_0p85>;
217                 vddio-supply = <&vreg_l15b_1p8>;
218                 vddio1p2-supply = <&vreg_l3c_1p2>;
219                 vddaon-supply = <&vreg_s2c_0p8>;
220                 vdddig-supply = <&vreg_s3c_0p9>;
221                 vddrfa1p2-supply = <&vreg_s1c_1p2>;
222                 vddrfa1p8-supply = <&vreg_s6c_1p8>;
223 
224                 clocks = <&rpmhcc RPMH_RF_CLK1>;
225 
226                 regulators {
227                         vreg_pmu_rfa_cmn: ldo0 {
228                                 regulator-name = "vreg_pmu_rfa_cmn";
229                         };
230 
231                         vreg_pmu_aon_0p59: ldo1 {
232                                 regulator-name = "vreg_pmu_aon_0p59";
233                         };
234 
235                         vreg_pmu_wlcx_0p8: ldo2 {
236                                 regulator-name = "vreg_pmu_wlcx_0p8";
237                         };
238 
239                         vreg_pmu_wlmx_0p85: ldo3 {
240                                 regulator-name = "vreg_pmu_wlmx_0p85";
241                         };
242 
243                         vreg_pmu_btcmx_0p85: ldo4 {
244                                 regulator-name = "vreg_pmu_btcmx_0p85";
245                         };
246 
247                         vreg_pmu_rfa_0p8: ldo5 {
248                                 regulator-name = "vreg_pmu_rfa_0p8";
249                         };
250 
251                         vreg_pmu_rfa_1p2: ldo6 {
252                                 regulator-name = "vreg_pmu_rfa_1p2";
253                         };
254 
255                         vreg_pmu_rfa_1p8: ldo7 {
256                                 regulator-name = "vreg_pmu_rfa_1p8";
257                         };
258 
259                         vreg_pmu_pcie_0p9: ldo8 {
260                                 regulator-name = "vreg_pmu_pcie_0p9";
261                         };
262 
263                         vreg_pmu_pcie_1p8: ldo9 {
264                                 regulator-name = "vreg_pmu_pcie_1p8";
265                         };
266                 };
267         };
268 };
269 
270 &apps_rsc {
271         regulators-0 {
272                 compatible = "qcom,pm8550-rpmh-regulators";
273 
274                 vdd-bob1-supply = <&vph_pwr>;
275                 vdd-bob2-supply = <&vph_pwr>;
276                 vdd-l2-l13-l14-supply = <&vreg_bob1>;
277                 vdd-l3-supply = <&vreg_s1c_1p2>;
278                 vdd-l5-l16-supply = <&vreg_bob1>;
279                 vdd-l6-l7-supply = <&vreg_bob1>;
280                 vdd-l8-l9-supply = <&vreg_bob1>;
281                 vdd-l11-supply = <&vreg_s1c_1p2>;
282                 vdd-l12-supply = <&vreg_s6c_1p8>;
283                 vdd-l15-supply = <&vreg_s6c_1p8>;
284                 vdd-l17-supply = <&vreg_bob2>;
285 
286                 qcom,pmic-id = "b";
287 
288                 vreg_bob1: bob1 {
289                         regulator-name = "vreg_bob1";
290                         regulator-min-microvolt = <3296000>;
291                         regulator-max-microvolt = <3960000>;
292                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
293                 };
294 
295                 vreg_bob2: bob2 {
296                         regulator-name = "vreg_bob2";
297                         regulator-min-microvolt = <2720000>;
298                         regulator-max-microvolt = <3008000>;
299                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
300                 };
301 
302                 vreg_l2b_3p0: ldo2 {
303                         regulator-name = "vreg_l2b_3p0";
304                         regulator-min-microvolt = <3008000>;
305                         regulator-max-microvolt = <3008000>;
306                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
307                         regulator-allow-set-load;
308                         regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
309                                                    RPMH_REGULATOR_MODE_HPM>;
310                 };
311 
312                 vreg_l5b_3p1: ldo5 {
313                         regulator-name = "vreg_l5b_3p1";
314                         regulator-min-microvolt = <3104000>;
315                         regulator-max-microvolt = <3104000>;
316                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
317                         regulator-allow-set-load;
318                         regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
319                                                    RPMH_REGULATOR_MODE_HPM>;
320                 };
321 
322                 vreg_l6b_1p8: ldo6 {
323                         regulator-name = "vreg_l6b_1p8";
324                         regulator-min-microvolt = <1800000>;
325                         regulator-max-microvolt = <3008000>;
326                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
327                         regulator-allow-set-load;
328                         regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
329                                                    RPMH_REGULATOR_MODE_HPM>;
330                 };
331 
332                 vreg_l7b_1p8: ldo7 {
333                         regulator-name = "vreg_l7b_1p8";
334                         regulator-min-microvolt = <1800000>;
335                         regulator-max-microvolt = <3008000>;
336                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
337                 };
338 
339                 vreg_l8b_1p8: ldo8 {
340                         regulator-name = "vreg_l8b_1p8";
341                         regulator-min-microvolt = <1800000>;
342                         regulator-max-microvolt = <3008000>;
343                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
344                         regulator-allow-set-load;
345                         regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
346                                                    RPMH_REGULATOR_MODE_HPM>;
347                 };
348 
349                 vreg_l11b_1p2: ldo11 {
350                         regulator-name = "vreg_l11b_1p2";
351                         regulator-min-microvolt = <1200000>;
352                         regulator-max-microvolt = <1504000>;
353                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
354                         regulator-allow-set-load;
355                         regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
356                                                    RPMH_REGULATOR_MODE_HPM>;
357                 };
358 
359                 vreg_l12b_1p8: ldo12 {
360                         regulator-name = "vreg_l12b_1p8";
361                         regulator-min-microvolt = <1800000>;
362                         regulator-max-microvolt = <1800000>;
363                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
364                         regulator-allow-set-load;
365                         regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
366                                                    RPMH_REGULATOR_MODE_HPM>;
367                 };
368 
369                 vreg_l13b_3p0: ldo13 {
370                         regulator-name = "vreg_l13b_3p0";
371                         regulator-min-microvolt = <3000000>;
372                         regulator-max-microvolt = <3000000>;
373                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
374                         regulator-allow-set-load;
375                         regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
376                                                    RPMH_REGULATOR_MODE_HPM>;
377                 };
378 
379                 vreg_l14b_3p2: ldo14 {
380                         regulator-name = "vreg_l14b_3p2";
381                         regulator-min-microvolt = <3200000>;
382                         regulator-max-microvolt = <3200000>;
383                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
384                         regulator-allow-set-load;
385                         regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
386                                                    RPMH_REGULATOR_MODE_HPM>;
387                 };
388 
389                 vreg_l15b_1p8: ldo15 {
390                         regulator-name = "vreg_l15b_1p8";
391                         regulator-min-microvolt = <1800000>;
392                         regulator-max-microvolt = <1800000>;
393                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
394                         regulator-allow-set-load;
395                         regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
396                                                    RPMH_REGULATOR_MODE_HPM>;
397                 };
398 
399                 vreg_l16b_2p8: ldo16 {
400                         regulator-name = "vreg_l16b_2p8";
401                         regulator-min-microvolt = <2800000>;
402                         regulator-max-microvolt = <2800000>;
403                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
404                         regulator-allow-set-load;
405                         regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
406                                                    RPMH_REGULATOR_MODE_HPM>;
407                 };
408 
409                 vreg_l17b_2p5: ldo17 {
410                         regulator-name = "vreg_l17b_2p5";
411                         regulator-min-microvolt = <2504000>;
412                         regulator-max-microvolt = <2504000>;
413                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
414                         regulator-allow-set-load;
415                         regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
416                                                    RPMH_REGULATOR_MODE_HPM>;
417                 };
418         };
419 
420         regulators-1 {
421                 compatible = "qcom,pm8550vs-rpmh-regulators";
422 
423                 vdd-l1-supply = <&vreg_s1c_1p2>;
424                 vdd-l2-supply = <&vreg_s1c_1p2>;
425                 vdd-l3-supply = <&vreg_s1c_1p2>;
426                 vdd-s1-supply = <&vph_pwr>;
427                 vdd-s2-supply = <&vph_pwr>;
428                 vdd-s3-supply = <&vph_pwr>;
429                 vdd-s4-supply = <&vph_pwr>;
430                 vdd-s5-supply = <&vph_pwr>;
431                 vdd-s6-supply = <&vph_pwr>;
432 
433                 qcom,pmic-id = "c";
434 
435                 vreg_s1c_1p2: smps1 {
436                         regulator-name = "vreg_s1c_1p2";
437                         regulator-min-microvolt = <1256000>;
438                         regulator-max-microvolt = <1348000>;
439                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
440                 };
441 
442                 vreg_s2c_0p8: smps2 {
443                         regulator-name = "vreg_s2c_0p8";
444                         regulator-min-microvolt = <852000>;
445                         regulator-max-microvolt = <1036000>;
446                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
447                 };
448 
449                 vreg_s3c_0p9: smps3 {
450                         regulator-name = "vreg_s3c_0p9";
451                         regulator-min-microvolt = <976000>;
452                         regulator-max-microvolt = <1064000>;
453                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
454                 };
455 
456                 vreg_s4c_1p2: smps4 {
457                         regulator-name = "vreg_s4c_1p2";
458                         regulator-min-microvolt = <1224000>;
459                         regulator-max-microvolt = <1280000>;
460                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
461                 };
462 
463                 vreg_s5c_0p7: smps5 {
464                         regulator-name = "vreg_s5c_0p7";
465                         regulator-min-microvolt = <752000>;
466                         regulator-max-microvolt = <900000>;
467                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
468                 };
469 
470                 vreg_s6c_1p8: smps6 {
471                         regulator-name = "vreg_s6c_1p8";
472                         regulator-min-microvolt = <1856000>;
473                         regulator-max-microvolt = <2000000>;
474                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
475                 };
476 
477                 vreg_l1c_1p2: ldo1 {
478                         regulator-name = "vreg_l1c_1p2";
479                         regulator-min-microvolt = <1200000>;
480                         regulator-max-microvolt = <1200000>;
481                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
482                         regulator-allow-set-load;
483                         regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
484                                                    RPMH_REGULATOR_MODE_HPM>;
485                 };
486 
487                 vreg_l3c_1p2: ldo3 {
488                         regulator-name = "vreg_l3c_1p2";
489                         regulator-min-microvolt = <1200000>;
490                         regulator-max-microvolt = <1200000>;
491                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
492                         regulator-allow-set-load;
493                         regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
494                                                    RPMH_REGULATOR_MODE_HPM>;
495                 };
496         };
497 
498         regulators-2 {
499                 compatible = "qcom,pm8550vs-rpmh-regulators";
500 
501                 vdd-l1-supply = <&vreg_s3c_0p9>;
502 
503                 qcom,pmic-id = "d";
504 
505                 vreg_l1d_0p88: ldo1 {
506                         regulator-name = "vreg_l1d_0p88";
507                         regulator-min-microvolt = <912000>;
508                         regulator-max-microvolt = <920000>;
509                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
510                         regulator-allow-set-load;
511                         regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
512                                                    RPMH_REGULATOR_MODE_HPM>;
513                 };
514         };
515 
516         regulators-3 {
517                 compatible = "qcom,pm8550vs-rpmh-regulators";
518 
519                 vdd-l3-supply = <&vreg_s3c_0p9>;
520 
521                 qcom,pmic-id = "e";
522 
523                 vreg_l3e_0p9: ldo3 {
524                         regulator-name = "vreg_l3e_0p9";
525                         regulator-min-microvolt = <880000>;
526                         regulator-max-microvolt = <920000>;
527                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
528                         regulator-allow-set-load;
529                         regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
530                                                    RPMH_REGULATOR_MODE_HPM>;
531                 };
532         };
533 
534         regulators-4 {
535                 compatible = "qcom,pm8550vs-rpmh-regulators";
536 
537                 vdd-l1-supply = <&vreg_s3c_0p9>;
538                 vdd-l3-supply = <&vreg_s3c_0p9>;
539 
540                 qcom,pmic-id = "g";
541 
542                 vreg_l1g_0p91: ldo1 {
543                         regulator-name = "vreg_l1g_0p91";
544                         regulator-min-microvolt = <912000>;
545                         regulator-max-microvolt = <920000>;
546                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
547                         regulator-allow-set-load;
548                         regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
549                                                    RPMH_REGULATOR_MODE_HPM>;
550                 };
551 
552                 vreg_l3g_0p91: ldo3 {
553                         regulator-name = "vreg_l3g_0p91";
554                         regulator-min-microvolt = <880000>;
555                         regulator-max-microvolt = <912000>;
556                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
557                         regulator-allow-set-load;
558                         regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
559                                                    RPMH_REGULATOR_MODE_HPM>;
560                 };
561         };
562 
563         regulators-5 {
564                 compatible = "qcom,pm8550ve-rpmh-regulators";
565 
566                 vdd-l1-supply = <&vreg_s3c_0p9>;
567                 vdd-l2-supply = <&vreg_s3c_0p9>;
568                 vdd-l3-supply = <&vreg_s1c_1p2>;
569                 vdd-s4-supply = <&vph_pwr>;
570 
571                 qcom,pmic-id = "i";
572 
573                 vreg_s4i_0p85: smps4 {
574                         regulator-name = "vreg_s4i_0p85";
575                         regulator-min-microvolt = <852000>;
576                         regulator-max-microvolt = <1004000>;
577                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
578                 };
579 
580                 vreg_l1i_0p88: ldo1 {
581                         regulator-name = "vreg_l1i_0p88";
582                         regulator-min-microvolt = <880000>;
583                         regulator-max-microvolt = <912000>;
584                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
585                         regulator-allow-set-load;
586                         regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
587                                                    RPMH_REGULATOR_MODE_HPM>;
588                 };
589 
590                 vreg_l2i_0p88: ldo2 {
591                         regulator-name = "vreg_l2i_0p88";
592                         regulator-min-microvolt = <880000>;
593                         regulator-max-microvolt = <912000>;
594                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
595                         regulator-allow-set-load;
596                         regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
597                                                    RPMH_REGULATOR_MODE_HPM>;
598                 };
599 
600                 vreg_l3i_1p2: ldo3 {
601                         regulator-name = "vreg_l3i_0p91";
602                         regulator-min-microvolt = <1200000>;
603                         regulator-max-microvolt = <1200000>;
604                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
605                         regulator-allow-set-load;
606                         regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
607                                                    RPMH_REGULATOR_MODE_HPM>;
608                 };
609         };
610 
611         regulators-6 {
612                 compatible = "qcom,pm8010-rpmh-regulators";
613                 qcom,pmic-id = "m";
614 
615                 vdd-l1-l2-supply = <&vreg_s1c_1p2>;
616                 vdd-l3-l4-supply = <&vreg_bob2>;
617                 vdd-l5-supply = <&vreg_s6c_1p8>;
618                 vdd-l6-supply = <&vreg_bob1>;
619                 vdd-l7-supply = <&vreg_bob1>;
620 
621                 vreg_l1m_1p1: ldo1 {
622                         regulator-name = "vreg_l1m_1p1";
623                         regulator-min-microvolt = <1104000>;
624                         regulator-max-microvolt = <1104000>;
625                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
626                         regulator-allow-set-load;
627                         regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
628                                                    RPMH_REGULATOR_MODE_HPM>;
629                 };
630 
631                 vreg_l2m_1p056: ldo2 {
632                         regulator-name = "vreg_l2m_1p056";
633                         regulator-min-microvolt = <1056000>;
634                         regulator-max-microvolt = <1056000>;
635                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
636                         regulator-allow-set-load;
637                         regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
638                                                    RPMH_REGULATOR_MODE_HPM>;
639                 };
640 
641                 vreg_l3m_2p8: ldo3 {
642                         regulator-name = "vreg_l3m_2p8";
643                         regulator-min-microvolt = <2800000>;
644                         regulator-max-microvolt = <2800000>;
645                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
646                 };
647 
648                 vreg_l4m_2p8: ldo4 {
649                         regulator-name = "vreg_l4m_2p8";
650                         regulator-min-microvolt = <2800000>;
651                         regulator-max-microvolt = <2800000>;
652                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
653                 };
654 
655                 vreg_l5m_1p8: ldo5 {
656                         regulator-name = "vreg_l5m_1p8";
657                         regulator-min-microvolt = <1800000>;
658                         regulator-max-microvolt = <1800000>;
659                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
660                 };
661 
662                 vreg_l6m_2p8: ldo6 {
663                         regulator-name = "vreg_l6m_2p8";
664                         regulator-min-microvolt = <2800000>;
665                         regulator-max-microvolt = <2800000>;
666                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
667                 };
668 
669                 vreg_l7m_2p96: ldo7 {
670                         regulator-name = "vreg_l7m_2p96";
671                         regulator-min-microvolt = <2960000>;
672                         regulator-max-microvolt = <2960000>;
673                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
674                 };
675         };
676 
677         regulators-7 {
678                 compatible = "qcom,pm8010-rpmh-regulators";
679                 qcom,pmic-id = "n";
680 
681                 vdd-l1-l2-supply = <&vreg_s1c_1p2>;
682                 vdd-l3-l4-supply = <&vreg_s6c_1p8>;
683                 vdd-l5-supply = <&vreg_bob2>;
684                 vdd-l6-supply = <&vreg_bob2>;
685                 vdd-l7-supply = <&vreg_bob1>;
686 
687                 vreg_l1n_1p1: ldo1 {
688                         regulator-name = "vreg_l1n_1p1";
689                         regulator-min-microvolt = <1104000>;
690                         regulator-max-microvolt = <1104000>;
691                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
692                         regulator-allow-set-load;
693                         regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
694                                                    RPMH_REGULATOR_MODE_HPM>;
695                 };
696 
697                 vreg_l2n_1p056: ldo2 {
698                         regulator-name = "vreg_l2n_1p056";
699                         regulator-min-microvolt = <1056000>;
700                         regulator-max-microvolt = <1056000>;
701                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
702                         regulator-allow-set-load;
703                         regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM
704                                                    RPMH_REGULATOR_MODE_HPM>;
705                 };
706 
707                 vreg_l3n_1p8: ldo3 {
708                         regulator-name = "vreg_l3n_1p8";
709                         regulator-min-microvolt = <1800000>;
710                         regulator-max-microvolt = <1800000>;
711                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
712                 };
713 
714                 vreg_l4n_1p8: ldo4 {
715                         regulator-name = "vreg_l4n_1p8";
716                         regulator-min-microvolt = <1800000>;
717                         regulator-max-microvolt = <1800000>;
718                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
719                 };
720 
721                 vreg_l5n_2p8: ldo5 {
722                         regulator-name = "vreg_l5n_2p8";
723                         regulator-min-microvolt = <2800000>;
724                         regulator-max-microvolt = <2800000>;
725                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
726                 };
727 
728                 vreg_l6n_2p8: ldo6 {
729                         regulator-name = "vreg_l6n_2p8";
730                         regulator-min-microvolt = <2800000>;
731                         regulator-max-microvolt = <2800000>;
732                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
733                 };
734 
735                 vreg_l7n_3p3: ldo7 {
736                         regulator-name = "vreg_l7n_3p3";
737                         regulator-min-microvolt = <3304000>;
738                         regulator-max-microvolt = <3304000>;
739                         regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
740                 };
741         };
742 };
743 
744 &dispcc {
745         status = "okay";
746 };
747 
748 &gpi_dma1 {
749         status = "okay";
750 };
751 
752 &i2c3 {
753        status = "okay";
754 
755        wcd_usbss: typec-mux@e {
756                 compatible = "qcom,wcd9395-usbss", "qcom,wcd9390-usbss";
757                 reg = <0xe>;
758 
759                 vdd-supply = <&vreg_l15b_1p8>;
760                 reset-gpios = <&tlmm 152 GPIO_ACTIVE_HIGH>;
761 
762                 mode-switch;
763                 orientation-switch;
764 
765                 ports {
766                         #address-cells = <1>;
767                         #size-cells = <0>;
768 
769                         port@0 {
770                                 reg = <0>;
771 
772                                 wcd_usbss_sbu_mux: endpoint {
773                                         remote-endpoint = <&pmic_glink_sbu>;
774                                 };
775                         };
776 
777                         port@1 {
778                                 reg = <1>;
779 
780                                 wcd_usbss_headset_out: endpoint {
781                                         remote-endpoint = <&wcd_codec_headset_in>;
782                                 };
783                         };
784                 };
785        };
786 };
787 
788 &i2c6 {
789         status = "okay";
790 
791         typec-mux@1c {
792                 compatible = "onnn,nb7vpq904m";
793                 reg = <0x1c>;
794 
795                 vcc-supply = <&vreg_l15b_1p8>;
796 
797                 retimer-switch;
798                 orientation-switch;
799 
800                 ports {
801                         #address-cells = <1>;
802                         #size-cells = <0>;
803 
804                         port@0 {
805                                 reg = <0>;
806 
807                                 redriver_ss_out: endpoint {
808                                         remote-endpoint = <&pmic_glink_ss_in>;
809                                 };
810                         };
811 
812                         port@1 {
813                                 reg = <1>;
814 
815                                 redriver_ss_in: endpoint {
816                                         data-lanes = <3 2 1 0>;
817                                         remote-endpoint = <&usb_dp_qmpphy_out>;
818                                 };
819                         };
820                 };
821         };
822 };
823 
824 &ipa {
825         qcom,gsi-loader = "self";
826         memory-region = <&ipa_fw_mem>;
827         firmware-name = "qcom/sm8650/ipa_fws.mbn";
828         status = "okay";
829 };
830 
831 &gpu {
832         status = "okay";
833 
834         zap-shader {
835                 firmware-name = "qcom/sm8650/gen70900_zap.mbn";
836         };
837 };
838 
839 &lpass_tlmm {
840         spkr_1_sd_n_active: spkr-1-sd-n-active-state {
841                 pins = "gpio21";
842                 function = "gpio";
843                 drive-strength = <16>;
844                 bias-disable;
845                 output-low;
846         };
847 };
848 
849 &mdss {
850         status = "okay";
851 };
852 
853 &mdss_dsi0 {
854         vdda-supply = <&vreg_l3i_1p2>;
855 
856         status = "okay";
857 
858         panel@0 {
859                 compatible = "visionox,vtdr6130";
860                 reg = <0>;
861 
862                 reset-gpios = <&tlmm 133 GPIO_ACTIVE_LOW>;
863 
864                 vddio-supply = <&vreg_l12b_1p8>;
865                 vci-supply = <&vreg_l13b_3p0>;
866                 vdd-supply = <&vreg_l11b_1p2>;
867 
868                 pinctrl-0 = <&disp0_reset_n_active>, <&mdp_vsync_active>;
869                 pinctrl-1 = <&disp0_reset_n_suspend>, <&mdp_vsync_suspend>;
870                 pinctrl-names = "default", "sleep";
871 
872                 port {
873                         panel0_in: endpoint {
874                                 remote-endpoint = <&mdss_dsi0_out>;
875                         };
876                 };
877         };
878 };
879 
880 &mdss_dsi0_out {
881         remote-endpoint = <&panel0_in>;
882         data-lanes = <0 1 2 3>;
883 };
884 
885 &mdss_dsi0_phy {
886         vdds-supply = <&vreg_l1i_0p88>;
887 
888         status = "okay";
889 };
890 
891 &mdss_dp0 {
892         status = "okay";
893 };
894 
895 &mdss_dp0_out {
896         data-lanes = <0 1>;
897 };
898 
899 &pcie0 {
900         wake-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>;
901         perst-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>;
902 
903         pinctrl-0 = <&pcie0_default_state>;
904         pinctrl-names = "default";
905 
906         status = "okay";
907 };
908 
909 &pcieport0 {
910         wifi@0 {
911                 compatible = "pci17cb,1107";
912                 reg = <0x10000 0x0 0x0 0x0 0x0>;
913 
914                 vddrfacmn-supply = <&vreg_pmu_rfa_cmn>;
915                 vddaon-supply = <&vreg_pmu_aon_0p59>;
916                 vddwlcx-supply = <&vreg_pmu_wlcx_0p8>;
917                 vddwlmx-supply = <&vreg_pmu_wlmx_0p85>;
918                 vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>;
919                 vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>;
920                 vddrfa1p8-supply = <&vreg_pmu_rfa_1p8>;
921                 vddpcie0p9-supply = <&vreg_pmu_pcie_0p9>;
922                 vddpcie1p8-supply = <&vreg_pmu_pcie_1p8>;
923         };
924 };
925 
926 &pcie0_phy {
927         vdda-phy-supply = <&vreg_l1i_0p88>;
928         vdda-pll-supply = <&vreg_l3i_1p2>;
929 
930         status = "okay";
931 };
932 
933 &pon_pwrkey {
934         status = "okay";
935 };
936 
937 &pon_resin {
938         linux,code = <KEY_VOLUMEDOWN>;
939 
940         status = "okay";
941 };
942 
943 &pm8550_flash {
944         status = "okay";
945 
946         led-0 {
947                 function = LED_FUNCTION_FLASH;
948                 color = <LED_COLOR_ID_YELLOW>;
949                 led-sources = <1>, <4>;
950                 led-max-microamp = <500000>;
951                 flash-max-microamp = <2000000>;
952                 flash-max-timeout-us = <1280000>;
953                 function-enumerator = <0>;
954         };
955 
956         led-1 {
957                 function = LED_FUNCTION_FLASH;
958                 color = <LED_COLOR_ID_WHITE>;
959                 led-sources = <2>, <3>;
960                 led-max-microamp = <500000>;
961                 flash-max-microamp = <2000000>;
962                 flash-max-timeout-us = <1280000>;
963                 function-enumerator = <1>;
964         };
965 };
966 
967 &pm8550_gpios {
968         volume_up_n: volume-up-n-state {
969                 pins = "gpio6";
970                 function = "normal";
971                 bias-pull-up;
972                 input-enable;
973                 power-source = <1>;
974         };
975 };
976 
977 &pm8550_pwm {
978         status = "okay";
979 
980         multi-led {
981                 color = <LED_COLOR_ID_RGB>;
982                 function = LED_FUNCTION_STATUS;
983 
984                 #address-cells = <1>;
985                 #size-cells = <0>;
986 
987                 led@1 {
988                         reg = <1>;
989                         color = <LED_COLOR_ID_RED>;
990                 };
991 
992                 led@2 {
993                         reg = <2>;
994                         color = <LED_COLOR_ID_GREEN>;
995                 };
996 
997                 led@3 {
998                         reg = <3>;
999                         color = <LED_COLOR_ID_BLUE>;
1000                 };
1001         };
1002 };
1003 
1004 &pm8550b_eusb2_repeater {
1005         vdd18-supply = <&vreg_l15b_1p8>;
1006         vdd3-supply = <&vreg_l5b_3p1>;
1007 };
1008 
1009 &pmk8550_rtc {
1010         status = "okay";
1011 };
1012 
1013 &qup_i2c3_data_clk {
1014         /* Use internal I2C pull-up */
1015         bias-pull-up = <2200>;
1016 };
1017 
1018 &qupv3_id_0 {
1019         status = "okay";
1020 };
1021 
1022 &qupv3_id_1 {
1023         status = "okay";
1024 };
1025 
1026 &remoteproc_adsp {
1027         firmware-name = "qcom/sm8650/adsp.mbn",
1028                         "qcom/sm8650/adsp_dtb.mbn";
1029 
1030         status = "okay";
1031 };
1032 
1033 &remoteproc_cdsp {
1034         firmware-name = "qcom/sm8650/cdsp.mbn",
1035                         "qcom/sm8650/cdsp_dtb.mbn";
1036 
1037         status = "okay";
1038 };
1039 
1040 &remoteproc_mpss {
1041         firmware-name = "qcom/sm8650/modem.mbn",
1042                         "qcom/sm8650/modem_dtb.mbn";
1043 
1044         status = "okay";
1045 };
1046 
1047 &sleep_clk {
1048         clock-frequency = <32000>;
1049 };
1050 
1051 &spi4 {
1052         status = "okay";
1053 
1054         touchscreen@0 {
1055                 compatible = "goodix,gt9916";
1056                 reg = <0>;
1057 
1058                 interrupt-parent = <&tlmm>;
1059                 interrupts = <162 IRQ_TYPE_LEVEL_LOW>;
1060 
1061                 reset-gpios = <&tlmm 161 GPIO_ACTIVE_LOW>;
1062 
1063                 avdd-supply = <&vreg_l14b_3p2>;
1064 
1065                 spi-max-frequency = <1000000>;
1066 
1067                 touchscreen-size-x = <1080>;
1068                 touchscreen-size-y = <2400>;
1069 
1070                 pinctrl-0 = <&ts_irq>, <&ts_reset>;
1071                 pinctrl-names = "default";
1072         };
1073 };
1074 
1075 &swr0 {
1076         status = "okay";
1077 
1078         /* WSA8845, Speaker Left */
1079         left_spkr: speaker@0,0 {
1080                 compatible = "sdw20217020400";
1081                 reg = <0 0>;
1082                 pinctrl-0 = <&spkr_1_sd_n_active>;
1083                 pinctrl-names = "default";
1084                 powerdown-gpios = <&lpass_tlmm 21 GPIO_ACTIVE_LOW>;
1085                 #sound-dai-cells = <0>;
1086                 sound-name-prefix = "SpkrLeft";
1087                 vdd-1p8-supply = <&vreg_l15b_1p8>;
1088                 vdd-io-supply = <&vreg_l3c_1p2>;
1089 
1090                 /*
1091                  * WSA8845 Port 1 (DAC)     <=> SWR0 Port 1 (SPKR_L)
1092                  * WSA8845 Port 2 (COMP)    <=> SWR0 Port 2 (SPKR_L_COMP)
1093                  * WSA8845 Port 3 (BOOST)   <=> SWR0 Port 3 (SPKR_L_BOOST)
1094                  * WSA8845 Port 4 (PBR)     <=> SWR0 Port 7 (PBR)
1095                  * WSA8845 Port 5 (VISENSE) <=> SWR0 Port 10 (SPKR_L_VI)
1096                  * WSA8845 Port 6 (CPS)     <=> SWR0 Port 13 (CPS)
1097                  */
1098                 qcom,port-mapping = <1 2 3 7 10 13>;
1099         };
1100 
1101         /* WSA8845, Speaker Right */
1102         right_spkr: speaker@0,1 {
1103                 compatible = "sdw20217020400";
1104                 reg = <0 1>;
1105                 pinctrl-0 = <&spkr_2_sd_n_active>;
1106                 pinctrl-names = "default";
1107                 powerdown-gpios = <&tlmm 77 GPIO_ACTIVE_LOW>;
1108                 #sound-dai-cells = <0>;
1109                 sound-name-prefix = "SpkrRight";
1110                 vdd-1p8-supply = <&vreg_l15b_1p8>;
1111                 vdd-io-supply = <&vreg_l3c_1p2>;
1112 
1113                 /*
1114                  * WSA8845 Port 1 (DAC)     <=> SWR0 Port 4 (SPKR_R)
1115                  * WSA8845 Port 2 (COMP)    <=> SWR0 Port 5 (SPKR_R_COMP)
1116                  * WSA8845 Port 3 (BOOST)   <=> SWR0 Port 6 (SPKR_R_BOOST)
1117                  * WSA8845 Port 4 (PBR)     <=> SWR0 Port 7 (PBR)
1118                  * WSA8845 Port 5 (VISENSE) <=> SWR0 Port 11 (SPKR_R_VI)
1119                  * WSA8845 Port 6 (CPS)     <=> SWR0 Port 13 (CPS)
1120                  */
1121                 qcom,port-mapping = <4 5 6 7 11 13>;
1122         };
1123 };
1124 
1125 &swr1 {
1126         status = "okay";
1127 
1128         /* WCD9395 RX */
1129         wcd_rx: codec@0,4 {
1130                 compatible = "sdw20217010e00";
1131                 reg = <0 4>;
1132 
1133                 /*
1134                  * WCD9395 RX Port 1 (HPH_L/R)      <=> SWR1 Port 1 (HPH_L/R)
1135                  * WCD9395 RX Port 2 (CLSH)         <=> SWR1 Port 2 (CLSH)
1136                  * WCD9395 RX Port 3 (COMP_L/R)     <=> SWR1 Port 3 (COMP_L/R)
1137                  * WCD9395 RX Port 4 (LO)           <=> SWR1 Port 4 (LO)
1138                  * WCD9395 RX Port 5 (DSD_L/R)      <=> SWR1 Port 5 (DSD_L/R)
1139                  * WCD9395 RX Port 6 (HIFI_PCM_L/R) <=> SWR1 Port 9 (HIFI_PCM_L/R)
1140                  */
1141                 qcom,rx-port-mapping = <1 2 3 4 5 9>;
1142         };
1143 };
1144 
1145 &swr2 {
1146         status = "okay";
1147 
1148         /* WCD9395 TX */
1149         wcd_tx: codec@0,3 {
1150                 compatible = "sdw20217010e00";
1151                 reg = <0 3>;
1152 
1153                 /*
1154                  * WCD9395 TX Port 1 (ADC1,2,3,4)         <=> SWR2 Port 2 (TX SWR_INPUT 0,1,2,3)
1155                  * WCD9395 TX Port 2 (ADC3,4 & DMIC0,1)   <=> SWR2 Port 2 (TX SWR_INPUT 0,1,2,3)
1156                  * WCD9395 TX Port 3 (DMIC0,1,2,3 & MBHC) <=> SWR2 Port 3 (TX SWR_INPUT 4,5,6,7)
1157                  * WCD9395 TX Port 4 (DMIC4,5,6,7)        <=> SWR2 Port 4 (TX SWR_INPUT 8,9,10,11)
1158                  */
1159                 qcom,tx-port-mapping = <2 2 3 4>;
1160         };
1161 };
1162 
1163 &tlmm {
1164         /* Reserved I/Os for NFC */
1165         gpio-reserved-ranges = <32 8>, <74 1>;
1166 
1167         bt_default: bt-default-state {
1168                 bt-en-pins {
1169                         pins = "gpio17";
1170                         function = "gpio";
1171                         drive-strength = <16>;
1172                         bias-disable;
1173                 };
1174 
1175                 sw-ctrl-pins {
1176                         pins = "gpio18";
1177                         function = "gpio";
1178                         bias-pull-down;
1179                 };
1180         };
1181 
1182         disp0_reset_n_active: disp0-reset-n-active-state {
1183                 pins = "gpio133";
1184                 function = "gpio";
1185                 drive-strength = <8>;
1186                 bias-disable;
1187         };
1188 
1189         disp0_reset_n_suspend: disp0-reset-n-suspend-state {
1190                 pins = "gpio133";
1191                 function = "gpio";
1192                 drive-strength = <2>;
1193                 bias-pull-down;
1194         };
1195 
1196         mdp_vsync_active: mdp-vsync-active-state {
1197                 pins = "gpio86";
1198                 function = "mdp_vsync";
1199                 drive-strength = <2>;
1200                 bias-pull-down;
1201         };
1202 
1203         mdp_vsync_suspend: mdp-vsync-suspend-state {
1204                 pins = "gpio86";
1205                 function = "mdp_vsync";
1206                 drive-strength = <2>;
1207                 bias-pull-down;
1208         };
1209 
1210         spkr_2_sd_n_active: spkr-2-sd-n-active-state {
1211                 pins = "gpio77";
1212                 function = "gpio";
1213                 drive-strength = <16>;
1214                 bias-disable;
1215                 output-low;
1216         };
1217 
1218         ts_irq: ts-irq-state {
1219                 pins = "gpio161";
1220                 function = "gpio";
1221                 drive-strength = <8>;
1222                 bias-pull-up;
1223                 output-disable;
1224         };
1225 
1226         ts_reset: ts-reset-state {
1227                 pins = "gpio162";
1228                 function = "gpio";
1229                 drive-strength = <8>;
1230                 bias-pull-up;
1231         };
1232 
1233         wcd_default: wcd-reset-n-active-state {
1234                 pins = "gpio107";
1235                 function = "gpio";
1236                 drive-strength = <16>;
1237                 bias-disable;
1238                 output-low;
1239         };
1240 
1241         wlan_en: wlan-en-state {
1242                 pins = "gpio16";
1243                 function = "gpio";
1244                 drive-strength = <8>;
1245                 bias-pull-down;
1246         };
1247 };
1248 
1249 &uart14 {
1250         status = "okay";
1251 
1252         bluetooth {
1253                 compatible = "qcom,wcn7850-bt";
1254 
1255                 vddrfacmn-supply = <&vreg_pmu_rfa_cmn>;
1256                 vddaon-supply = <&vreg_pmu_aon_0p59>;
1257                 vddwlcx-supply = <&vreg_pmu_wlcx_0p8>;
1258                 vddwlmx-supply = <&vreg_pmu_wlmx_0p85>;
1259                 vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>;
1260                 vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>;
1261                 vddrfa1p8-supply = <&vreg_pmu_rfa_1p8>;
1262 
1263                 max-speed = <3200000>;
1264         };
1265 };
1266 
1267 &uart15 {
1268         status = "okay";
1269 };
1270 
1271 &ufs_mem_hc {
1272         reset-gpios = <&tlmm 210 GPIO_ACTIVE_LOW>;
1273 
1274         vcc-supply = <&vreg_l17b_2p5>;
1275         vcc-max-microamp = <1300000>;
1276         vccq-supply = <&vreg_l1c_1p2>;
1277         vccq-max-microamp = <1200000>;
1278 
1279         status = "okay";
1280 };
1281 
1282 &ufs_mem_phy {
1283         vdda-phy-supply = <&vreg_l1d_0p88>;
1284         vdda-pll-supply = <&vreg_l3i_1p2>;
1285 
1286         status = "okay";
1287 };
1288 
1289 /*
1290  * DPAUX -> WCD9395 -> USB_SBU -> USB-C
1291  * eUSB2 DP/DM -> PM85550HS -> eUSB2 DP/DM -> WCD9395 -> USB-C
1292  * USB SS -> NB7VPQ904MMUTWG -> USB-C
1293  */
1294 
1295 &usb_1 {
1296         status = "okay";
1297 };
1298 
1299 &usb_1_dwc3 {
1300         dr_mode = "otg";
1301         usb-role-switch;
1302 };
1303 
1304 &usb_1_dwc3_hs {
1305         remote-endpoint = <&pmic_glink_hs_in>;
1306 };
1307 
1308 &usb_1_hsphy {
1309         vdd-supply = <&vreg_l1i_0p88>;
1310         vdda12-supply = <&vreg_l3i_1p2>;
1311 
1312         phys = <&pm8550b_eusb2_repeater>;
1313 
1314         status = "okay";
1315 };
1316 
1317 &usb_dp_qmpphy {
1318         vdda-phy-supply = <&vreg_l3i_1p2>;
1319         vdda-pll-supply = <&vreg_l3g_0p91>;
1320 
1321         status = "okay";
1322 };
1323 
1324 &usb_dp_qmpphy_out {
1325         remote-endpoint = <&redriver_ss_in>;
1326 };
1327 
1328 &xo_board {
1329         clock-frequency = <76800000>;
1330 };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php