Lines Matching +full:wcd9340 +full:- +full:gpio
1 // SPDX-License-Identifier: BSD-3-Clause
7 /dts-v1/;
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
11 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
12 #include <dt-bindings/input/linux-event-codes.h>
13 #include <dt-bindings/sound/qcom,q6afe.h>
14 #include <dt-bindings/sound/qcom,q6asm.h>
16 #include "sdm845-wcd9340.dtsi"
25 /delete-node/ &rmtfs_mem;
26 /delete-node/ &adsp_mem;
27 /delete-node/ &wlan_msa_mem;
28 /delete-node/ &mpss_region;
29 /delete-node/ &venus_mem;
30 /delete-node/ &cdsp_mem;
31 /delete-node/ &mba_region;
32 /delete-node/ &slpi_mem;
33 /delete-node/ &spss_mem;
38 chassis-type = "handset";
41 qcom,msm-id = <0x141 0x20001>;
42 qcom,board-id = <0x2a 0x0>;
49 gpio-keys {
50 compatible = "gpio-keys";
53 pinctrl-names = "default";
54 pinctrl-0 = <&volume_up_gpio>;
56 key-vol-up {
60 debounce-interval = <15>;
64 reserved-memory {
67 no-map;
72 no-map;
77 no-map;
82 no-map;
87 no-map;
92 no-map;
97 no-map;
102 no-map;
106 compatible = "qcom,rmtfs-mem";
108 no-map;
110 qcom,client-id = <1>;
116 compatible = "simple-battery";
118 charge-full-design-microamp-hours = <3400000>;
119 voltage-min-design-microvolt = <3400000>;
120 voltage-max-design-microvolt = <4400000>;
123 vreg_tp_vddio: vreg-tp-vddio {
124 compatible = "regulator-fixed";
125 regulator-name = "vreg_tp_vddio";
127 regulator-min-microvolt = <1800000>;
128 regulator-max-microvolt = <1800000>;
130 gpio = <&tlmm 23 GPIO_ACTIVE_HIGH>;
131 regulator-always-on;
132 regulator-boot-on;
133 enable-active-high;
136 vreg_s4a_1p8: vreg-s4a-1p8 {
137 compatible = "regulator-fixed";
138 regulator-name = "vreg_s4a_1p8";
140 regulator-min-microvolt = <1800000>;
141 regulator-max-microvolt = <1800000>;
142 regulator-always-on;
147 regulators-0 {
148 compatible = "qcom,pm8998-rpmh-regulators";
149 qcom,pmic-id = "a";
152 regulator-min-microvolt = <1100000>;
153 regulator-max-microvolt = <1100000>;
157 regulator-min-microvolt = <1352000>;
158 regulator-max-microvolt = <1352000>;
162 regulator-min-microvolt = <1904000>;
163 regulator-max-microvolt = <2040000>;
167 regulator-min-microvolt = <900000>;
168 regulator-max-microvolt = <1028000>;
174 regulator-min-microvolt = <880000>;
175 regulator-max-microvolt = <880000>;
176 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
180 regulator-min-microvolt = <1200000>;
181 regulator-max-microvolt = <1200000>;
182 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
183 regulator-always-on;
187 regulator-min-microvolt = <1000000>;
188 regulator-max-microvolt = <1000000>;
189 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
193 regulator-min-microvolt = <800000>;
194 regulator-max-microvolt = <800000>;
195 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
199 regulator-min-microvolt = <1856000>;
200 regulator-max-microvolt = <1856000>;
201 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
205 regulator-min-microvolt = <1800000>;
206 regulator-max-microvolt = <1800000>;
207 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
211 regulator-min-microvolt = <1200000>;
212 regulator-max-microvolt = <1248000>;
213 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
217 regulator-min-microvolt = <1704000>;
218 regulator-max-microvolt = <2928000>;
219 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
223 regulator-min-microvolt = <1704000>;
224 regulator-max-microvolt = <2928000>;
225 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
229 regulator-min-microvolt = <1000000>;
230 regulator-max-microvolt = <1048000>;
231 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
235 regulator-min-microvolt = <1800000>;
236 regulator-max-microvolt = <1800000>;
237 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
241 regulator-min-microvolt = <1800000>;
242 regulator-max-microvolt = <2960000>;
243 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
247 regulator-min-microvolt = <1800000>;
248 regulator-max-microvolt = <1880000>;
249 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
250 regulator-always-on;
254 regulator-min-microvolt = <1800000>;
255 regulator-max-microvolt = <1800000>;
256 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
260 regulator-min-microvolt = <2704000>;
261 regulator-max-microvolt = <2704000>;
262 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
266 regulator-min-microvolt = <1304000>;
267 regulator-max-microvolt = <1304000>;
268 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
269 regulator-always-on;
273 regulator-min-microvolt = <2704000>;
274 regulator-max-microvolt = <2960000>;
275 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
279 regulator-min-microvolt = <2856000>;
280 regulator-max-microvolt = <3104000>;
281 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
285 regulator-min-microvolt = <2704000>;
286 regulator-max-microvolt = <2960000>;
287 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
291 regulator-min-microvolt = <2704000>;
292 regulator-max-microvolt = <2960000>;
293 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
297 regulator-min-microvolt = <2864000>;
298 regulator-max-microvolt = <3312000>;
299 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
303 regulator-min-microvolt = <3000000>;
304 regulator-max-microvolt = <3312000>;
305 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
309 regulator-min-microvolt = <3088000>;
310 regulator-max-microvolt = <3088000>;
311 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
315 regulator-min-microvolt = <3000000>;
316 regulator-max-microvolt = <3312000>;
317 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
318 regulator-always-on;
324 regulator-min-microvolt = <1200000>;
325 regulator-max-microvolt = <1200000>;
326 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
330 regulator-min-microvolt = <2856000>;
331 regulator-max-microvolt = <3008000>;
332 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
333 regulator-always-on;
337 regulator-min-microvolt = <1800000>;
338 regulator-max-microvolt = <1800000>;
342 regulator-min-microvolt = <1800000>;
343 regulator-max-microvolt = <1800000>;
347 regulators-1 {
348 compatible = "qcom,pmi8998-rpmh-regulators";
349 qcom,pmic-id = "b";
352 regulator-min-microvolt = <3312000>;
353 regulator-max-microvolt = <3600000>;
354 regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
355 regulator-allow-bypass;
359 regulators-2 {
360 compatible = "qcom,pm8005-rpmh-regulators";
361 qcom,pmic-id = "c";
364 regulator-min-microvolt = <600000>;
365 regulator-max-microvolt = <600000>;
366 regulator-always-on;
372 firmware-name = "qcom/sdm845/polaris/cdsp.mbn";
377 protected-clocks = <GCC_QSPI_CORE_CLK>,
399 zap-shader {
400 memory-region = <&gpu_mem>;
401 firmware-name = "qcom/sdm845/polaris/a630_zap.mbn";
406 regulator-min-microvolt = <4600000>;
407 regulator-max-microvolt = <6000000>;
408 regulator-over-current-protection;
409 regulator-pull-down;
410 regulator-soft-start;
411 qcom,discharge-resistor-kohms = <300>;
415 qcom,gsi-loader = "self";
416 memory-region = <&ipa_fw_mem>;
417 firmware-name = "qcom/sdm845/polaris/ipa_fws.mbn";
422 clock-frequency = <400000>;
426 compatible = "syna,rmi4-i2c";
428 #address-cells = <1>;
429 #size-cells = <0>;
430 interrupts-extended = <&tlmm 125 0x2008>;
432 pinctrl-names = "default", "sleep";
433 pinctrl-0 = <&ts_int_default &ts_reset_default>;
434 pinctrl-1 = <&ts_int_sleep &ts_reset_sleep>;
436 vdd-supply = <&vreg_l28a_3p0>;
437 vio-supply = <&vreg_tp_vddio>;
439 syna,startup-delay-ms = <0xc8>;
440 syna,reset-delay-ms = <0xc8>;
442 rmi4-f01@1 {
443 syna,nosleep-mode = <0x1>;
447 rmi4-f12@12 {
449 syna,rezero-wait-ms = <0xc8>;
450 syna,clip-x-high = <0x438>;
451 syna,clip-y-high = <0x870>;
452 syna,sensor-type = <0x1>;
453 syna,clip-x-low = <0x0>;
454 syna,clip-y-low = <0x0>;
460 regulator-min-microvolt = <4600000>;
461 regulator-max-microvolt = <6000000>;
462 regulator-soft-start;
463 regulator-pull-down;
471 vdda-supply = <&vdda_mipi_dsi0_1p2>;
475 compatible = "jdi,fhd-nt35596s";
476 #address-cells = <1>;
477 #size-cells = <0>;
480 reset-gpios = <&tlmm 6 GPIO_ACTIVE_LOW>;
481 vddio-supply = <&vreg_l14a_1p8>;
483 vddpos-supply = <&lab>;
484 vddneg-supply = <&ibb>;
486 pinctrl-names = "default", "sleep";
487 pinctrl-0 = <&sde_dsi_active>;
488 pinctrl-1 = <&sde_dsi_suspend>;
492 remote-endpoint = <&mdss_dsi0_out>;
499 remote-endpoint = <&panel_in>;
500 data-lanes = <0 1 2 3>;
504 vdds-supply = <&vdda_mipi_dsi0_pll>;
509 firmware-name = "qcom/sdm845/polaris/mba.mbn", "qcom/sdm845/polaris/modem.mbn";
514 qcom,current-limit-microamp = <20000>;
515 qcom,current-boost-limit = <970>;
516 qcom,ovp-millivolt = <19600>;
517 qcom,switching-freq = <600>;
518 qcom,num-strings = <4>;
525 volume_up_gpio: pm8998-gpio6-state {
527 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
530 input-enable;
531 bias-pull-up;
544 qcom,sd-lines = <0>;
571 drive-strength = <2>;
572 bias-disable;
576 gpio-reserved-ranges = <0 4>, <81 4>;
578 ts_reset_default: ts-reset-default-state {
580 function = "gpio";
581 drive-strength = <16>;
582 output-high;
585 ts_int_default: ts-int-default-state {
587 function = "gpio";
588 bias-pull-down;
589 drive-strength = <16>;
592 ts_reset_sleep: ts-reset-sleep-state {
594 function = "gpio";
595 bias-disable;
596 drive-strength = <2>;
599 ts_int_sleep: ts-int-sleep-state {
601 function = "gpio";
602 bias-pull-down;
603 drive-strength = <2>;
606 sde_dsi_active: sde-dsi-active-state {
608 function = "gpio";
609 drive-strength = <8>;
610 bias-disable;
613 sde_dsi_suspend: sde-dsi-suspend-state {
615 function = "gpio";
616 drive-strength = <2>;
617 bias-pull-down;
624 pinctrl-0 = <&qup_uart6_4pin>;
627 compatible = "qcom,wcn3990-bt";
630 firmware-name = "polaris/crnv21.bin";
632 vddio-supply = <&vreg_s4a_1p8>;
633 vddxo-supply = <&vreg_l7a_1p8>;
634 vddrf-supply = <&vreg_l17a_1p3>;
635 vddch0-supply = <&vreg_l25a_3p3>;
636 max-speed = <3200000>;
642 qcom,select-utmi-as-pipe-clk;
650 maximum-speed = "high-speed";
654 phy-names = "usb2-phy";
658 vdda-phy-dpdm-supply = <&vreg_l24a_3p075>;
659 vdda-pll-supply = <&vreg_l12a_1p8>;
660 vdd-supply = <&vreg_l1a_0p875>;
662 qcom,preemphasis-width = <QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT>;
663 qcom,preemphasis-level = <QUSB2_V2_PREEMPHASIS_5_PERCENT>;
664 qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_21_6_MA>;
665 qcom,imp-res-offset-value = <8>;
671 vdda-pll-supply = <&vreg_l1a_0p875>;
672 vdda-phy-supply = <&vreg_l26a_1p2>;
677 reset-gpios = <&tlmm 150 GPIO_ACTIVE_LOW>;
678 vcc-supply = <&vreg_l20a_2p95>;
679 vcc-max-microamp = <800000>;
684 vdda-phy-supply = <&vdda_ufs1_core>;
685 vdda-pll-supply = <&vdda_ufs1_1p2>;
690 firmware-name = "qcom/sdm845/polaris/venus.mbn";
694 &wcd9340 {
695 reset-gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>;
696 vdd-buck-sido-supply = <&vreg_s4a_1p8>;
697 vdd-buck-supply = <&vreg_s4a_1p8>;
698 vdd-tx-supply = <&vreg_s4a_1p8>;
699 vdd-rx-supply = <&vreg_s4a_1p8>;
700 vdd-io-supply = <&vreg_s4a_1p8>;
702 qcom,micbias1-microvolt = <2700000>;
703 qcom,micbias2-microvolt = <1800000>;
704 qcom,micbias3-microvolt = <2700000>;
705 qcom,micbias4-microvolt = <2700000>;
709 vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>;
710 vdd-1.8-xo-supply = <&vreg_l7a_1p8>;
711 vdd-1.3-rfa-supply = <&vreg_l17a_1p3>;
712 vdd-3.3-ch0-supply = <&vreg_l25a_3p3>;
713 vdd-3.3-ch1-supply = <&vreg_l23a_3p3>;