Lines Matching +full:bias +full:- +full:pull +full:- +full:up
1 // SPDX-License-Identifier: BSD-3-Clause
12 #include <dt-bindings/input/input.h>
13 #include <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
15 #include <dt-bindings/pinctrl/qcom,pmic-mpp.h>
17 /delete-node/ &adsp_mem;
18 /delete-node/ &slpi_mem;
19 /delete-node/ &venus_mem;
20 /delete-node/ &gpu_mem;
23 qcom,msm-id = <246 0x30001>; /* MSM8996 V3.1 (Final) */
24 qcom,board-id = <8 0>;
28 * Due to an unknown-for-a-few-years regression,
34 reserved-memory {
38 record-size = <0x20000>;
39 console-size = <0x40000>;
40 ftrace-size = <0x20000>;
41 pmsg-size = <0x20000>;
42 ecc-size = <16>;
47 no-map;
51 compatible = "shared-dma-pool";
53 no-map;
58 no-map;
63 no-map;
67 panel_tvdd: tvdd-regulator {
68 compatible = "regulator-fixed";
69 regulator-name = "panel_tvdd";
71 pinctrl-0 = <&tp_vddio_en>;
72 pinctrl-names = "default";
75 usb3_id: usb3-id {
76 compatible = "linux,extcon-usb-gpio";
77 id-gpio = <&tlmm 25 GPIO_ACTIVE_LOW>;
78 pinctrl-names = "default";
79 pinctrl-0 = <&usb_detect>;
82 vph_pwr: vph-pwr-regulator {
83 compatible = "regulator-fixed";
84 regulator-min-microvolt = <3700000>;
85 regulator-max-microvolt = <3700000>;
86 regulator-name = "vph_pwr";
87 regulator-always-on;
88 regulator-boot-on;
91 wlan_en: wlan-en-1-8v {
92 compatible = "regulator-fixed";
93 regulator-name = "wlan-en-regulator";
94 regulator-min-microvolt = <1800000>;
95 regulator-max-microvolt = <1800000>;
97 pinctrl-names = "default";
98 pinctrl-0 = <&wl_reg_on>;
101 startup-delay-us = <70000>;
102 enable-active-high;
108 clock-frequency = <355000>;
122 clock-frequency = <355000>;
124 /* FUSB301 USB-C controller */
129 clock-frequency = <355000>;
132 compatible = "syna,rmi4-i2c";
134 interrupt-parent = <&tlmm>;
136 vdd-supply = <&panel_tvdd>;
138 syna,reset-delay-ms = <220>;
139 syna,startup-delay-ms = <220>;
140 #address-cells = <1>;
141 #size-cells = <0>;
143 rmi4-f01@1 {
145 syna,nosleep-mode = <1>;
148 rmi4-f11@11 {
150 syna,sensor-type = <1>;
160 drive-strength = <2>;
161 output-low;
165 drive-strength = <2>;
166 output-low;
171 drive-strength = <2>;
172 output-low;
176 drive-strength = <2>;
177 output-low;
181 drive-strength = <2>;
182 output-low;
188 vdd-supply = <&pm8994_l28>;
189 vdda-pll-supply = <&pm8994_l12>;
190 vdda-phy-dpdm-supply = <&pm8994_l24>;
194 vdd-gfx-supply = <&vdd_gfx>;
199 perst-gpios = <&tlmm 35 GPIO_ACTIVE_LOW>;
200 wake-gpios = <&tlmm 37 GPIO_ACTIVE_HIGH>;
201 vddpe-3v3-supply = <&wlan_en>;
202 vdda-supply = <&pm8994_l28>;
208 vdda-phy-supply = <&pm8994_l28>;
209 vdda-pll-supply = <&pm8994_l12>;
213 pinctrl-names = "default";
214 pinctrl-0 = <&pm8994_gpios_defaults>;
215 gpio-line-names =
241 * we do know is that if a vendor sets the pins to a non-default state, there's
244 pm8994_gpios_defaults: pm8994-gpios-default-state {
245 pm8994-gpio1-nc-pins {
248 drive-push-pull;
249 bias-high-impedance;
252 vol-down-n-pins {
255 drive-push-pull;
256 input-enable;
257 bias-pull-up;
258 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
259 power-source = <PM8994_GPIO_S4>;
262 vol-up-n-pins {
265 drive-push-pull;
266 input-enable;
267 bias-pull-up;
268 power-source = <PM8994_GPIO_S4>;
271 camera-snapshot-n-pins {
274 drive-push-pull;
275 input-enable;
276 bias-pull-up;
277 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
278 power-source = <PM8994_GPIO_S4>;
281 camera-focus-n-pins {
284 drive-push-pull;
285 input-enable;
286 bias-pull-up;
287 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
288 power-source = <PM8994_GPIO_S4>;
291 pm8994-gpio6-nc-pins {
294 drive-push-pull;
295 bias-high-impedance;
296 power-source = <PM8994_GPIO_VPH>;
299 nfc-download-pins {
302 output-low;
303 drive-push-pull;
304 bias-disable;
305 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
306 power-source = <PM8994_GPIO_S4>;
309 pm8994-gpio8-nc-pins {
312 output-low;
313 drive-push-pull;
314 bias-high-impedance;
315 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
316 power-source = <PM8994_GPIO_VPH>;
319 pm8994-gpio9-nc-pins {
322 output-high;
323 drive-push-pull;
324 bias-high-impedance;
325 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
326 power-source = <PM8994_GPIO_VPH>;
329 nfc-clock-pins {
332 input-enable;
333 drive-push-pull;
334 bias-pull-down;
335 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
336 power-source = <PM8994_GPIO_S4>;
339 pm8994-gpio11-nc-pins {
342 drive-push-pull;
343 bias-high-impedance;
344 power-source = <PM8994_GPIO_VPH>;
347 pm8994-gpio12-nc-pins {
350 drive-push-pull;
351 bias-high-impedance;
352 power-source = <PM8994_GPIO_VPH>;
355 ear-enable-pins {
358 output-high;
359 drive-push-pull;
360 bias-disable;
361 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
362 power-source = <PM8994_GPIO_S4>;
365 pm8994-gpio14-nc-pins {
368 drive-push-pull;
369 input-enable;
370 bias-high-impedance;
371 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
372 power-source = <PM8994_GPIO_VPH>;
375 pm-divclk1-gpio-pins {
378 output-high;
379 drive-push-pull;
380 bias-high-impedance;
381 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
382 power-source = <PM8994_GPIO_VPH>;
385 pmi-clk-gpio-pins {
388 drive-push-pull;
391 pm8994-gpio17-nc-pins {
394 drive-push-pull;
395 bias-high-impedance;
396 power-source = <PM8994_GPIO_VPH>;
399 rome-sleep-pins {
402 output-low;
403 drive-push-pull;
404 bias-disable;
405 qcom,drive-strength = <PMIC_GPIO_STRENGTH_MED>;
406 power-source = <PM8994_GPIO_S4>;
409 pm8994-gpio19-nc-pins {
412 output-low;
413 drive-push-pull;
414 bias-high-impedance;
415 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
416 power-source = <PM8994_GPIO_VPH>;
419 pm8994-gpio22-nc-pins {
422 drive-push-pull;
423 bias-high-impedance;
424 power-source = <PM8994_GPIO_VPH>;
430 pinctrl-names = "default";
431 pinctrl-0 = <&pm8994_mpps_defaults>;
433 gpio-line-names =
443 pm8994_mpps_defaults: pm8994-mpps-default-state {
444 lcd-id_adc-mpp-pins {
447 input-enable;
448 qcom,amux-route = <PMIC_MPP_AMUX_ROUTE_CH6>;
451 pm-mpp4-nc-pins {
454 bias-high-impedance;
455 power-source = <PM8994_GPIO_VPH>;
458 flash-therm-mpp-pins {
461 input-enable;
462 qcom,amux-route = <PMIC_MPP_AMUX_ROUTE_CH5>;
465 mpp6-nc-pins {
468 bias-high-impedance;
471 rf-id-mpp-pins {
474 input-enable;
475 qcom,amux-route = <PMIC_MPP_AMUX_ROUTE_CH8>;
486 pinctrl-names = "default";
487 pinctrl-0 = <&pmi8994_gpios_defaults>;
489 gpio-line-names =
501 pmi8994_gpios_defaults: pmi8994-gpios-default-state {
502 vib-ldo-en-gpio-pins {
505 drive-push-pull;
506 output-low;
507 bias-disable;
508 power-source = <PM8994_GPIO_S4>;
511 pmi-gpio2-nc-pins {
514 drive-push-pull;
515 input-enable;
516 bias-high-impedance;
517 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
518 power-source = <PM8994_GPIO_VPH>;
521 pmi-gpio3-nc-pins {
524 drive-push-pull;
525 input-enable;
526 bias-high-impedance;
527 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
528 power-source = <PM8994_GPIO_VPH>;
531 pmi-gpio4-nc-pins {
534 drive-push-pull;
535 output-high;
536 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
537 power-source = <PM8994_GPIO_S4>;
540 pmi-gpio5-nc-pins {
543 drive-push-pull;
544 output-high;
545 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
546 power-source = <PM8994_GPIO_S4>;
549 pmi-gpio6-nc-pins {
552 drive-push-pull;
553 output-high;
554 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
555 power-source = <PM8994_GPIO_S4>;
558 pmi-gpio7-nc-pins {
561 drive-push-pull;
562 output-high;
563 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
564 power-source = <PM8994_GPIO_S4>;
567 pmi-gpio8-nc-pins {
570 drive-push-pull;
571 output-high;
572 qcom,drive-strength = <PMIC_GPIO_STRENGTH_LOW>;
573 power-source = <PM8994_GPIO_S4>;
576 usb-switch-sel-pins {
579 drive-push-pull;
582 pmi-gpio10-nc-pins {
585 output-low;
586 drive-push-pull;
587 bias-disable;
588 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
589 power-source = <PM8994_GPIO_S4>;
595 qcom,saw-reg = <&saw3>;
598 qcom,saw-slave;
602 qcom,saw-slave;
606 qcom,saw-leader;
607 regulator-name = "vdd_apcc";
608 regulator-always-on;
609 regulator-min-microvolt = <470000>;
610 regulator-max-microvolt = <1140000>;
618 regulator-min-microvolt = <1015000>;
619 regulator-max-microvolt = <1015000>;
620 regulator-name = "vdd_gfx";
621 regulator-always-on;
627 default-brightness = <512>;
628 qcom,num-strings = <3>;
632 pm8994-regulators {
633 compatible = "qcom,rpm-pm8994-regulators";
635 vdd_s1-supply = <&vph_pwr>;
636 vdd_s2-supply = <&vph_pwr>;
637 vdd_s3-supply = <&vph_pwr>;
638 vdd_s4-supply = <&vph_pwr>;
639 vdd_s5-supply = <&vph_pwr>;
640 vdd_s6-supply = <&vph_pwr>;
641 vdd_s7-supply = <&vph_pwr>;
642 vdd_s8-supply = <&vph_pwr>;
643 vdd_s9-supply = <&vph_pwr>;
644 vdd_s10-supply = <&vph_pwr>;
645 vdd_s11-supply = <&vph_pwr>;
646 vdd_s12-supply = <&vph_pwr>;
647 vdd_l1-supply = <&pm8994_s3>;
648 vdd_l2_l26_l28-supply = <&pm8994_s3>;
649 vdd_l3_l11-supply = <&pm8994_s3>;
650 vdd_l4_l27_l31-supply = <&pm8994_s3>;
651 vdd_l5_l7-supply = <&pm8994_s5>;
652 vdd_l6_l12_l32-supply = <&pm8994_s5>;
653 vdd_l8_l16_l30-supply = <&vph_pwr>;
654 vdd_l14_l15-supply = <&pm8994_s5>;
655 vdd_l20_l21-supply = <&pm8994_s5>;
656 vdd_l25-supply = <&pm8994_s3>;
657 vdd_lvs1_2-supply = <&pm8994_s4>;
660 regulator-min-microvolt = <1300000>;
661 regulator-max-microvolt = <1300000>;
665 regulator-min-microvolt = <1800000>;
666 regulator-max-microvolt = <1800000>;
667 regulator-system-load = <325000>;
668 regulator-always-on;
672 regulator-min-microvolt = <2150000>;
673 regulator-max-microvolt = <2150000>;
677 regulator-min-microvolt = <800000>;
678 regulator-max-microvolt = <800000>;
682 regulator-min-microvolt = <1000000>;
683 regulator-max-microvolt = <1000000>;
687 regulator-min-microvolt = <1250000>;
688 regulator-max-microvolt = <1250000>;
692 regulator-min-microvolt = <1100000>;
693 regulator-max-microvolt = <1100000>;
697 regulator-min-microvolt = <1225000>;
698 regulator-max-microvolt = <1225000>;
704 regulator-min-microvolt = <1800000>;
705 regulator-max-microvolt = <1800000>;
709 regulator-min-microvolt = <1800000>;
710 regulator-max-microvolt = <1800000>;
714 regulator-min-microvolt = <1800000>;
715 regulator-max-microvolt = <1800000>;
719 regulator-min-microvolt = <1100000>;
720 regulator-max-microvolt = <1100000>;
724 regulator-min-microvolt = <1800000>;
725 regulator-max-microvolt = <1800000>;
726 regulator-allow-set-load;
730 regulator-min-microvolt = <1800000>;
731 regulator-max-microvolt = <2950000>;
732 regulator-system-load = <22000>;
733 regulator-allow-set-load;
737 regulator-min-microvolt = <1700000>;
738 regulator-max-microvolt = <1900000>;
742 regulator-min-microvolt = <1800000>;
743 regulator-max-microvolt = <1800000>;
747 regulator-min-microvolt = <2700000>;
748 regulator-max-microvolt = <2700000>;
752 regulator-min-microvolt = <2200000>;
753 regulator-max-microvolt = <2500000>;
757 regulator-min-microvolt = <1800000>;
758 regulator-max-microvolt = <1800000>;
762 regulator-min-microvolt = <3000000>;
763 regulator-max-microvolt = <3000000>;
767 regulator-min-microvolt = <2950000>;
768 regulator-max-microvolt = <2950000>;
769 regulator-system-load = <570000>;
770 regulator-allow-set-load;
774 regulator-min-microvolt = <2950000>;
775 regulator-max-microvolt = <2950000>;
776 regulator-system-load = <800000>;
777 regulator-allow-set-load;
781 regulator-min-microvolt = <3000000>;
782 regulator-max-microvolt = <3000000>;
786 regulator-min-microvolt = <2700000>;
787 regulator-max-microvolt = <2700000>;
791 regulator-min-microvolt = <3075000>;
792 regulator-max-microvolt = <3075000>;
793 regulator-allow-set-load;
797 regulator-min-microvolt = <1200000>;
798 regulator-max-microvolt = <1200000>;
799 regulator-allow-set-load;
803 regulator-min-microvolt = <1000000>;
804 regulator-max-microvolt = <1200000>;
808 regulator-min-microvolt = <925000>;
809 regulator-max-microvolt = <925000>;
810 regulator-allow-set-load;
814 regulator-min-microvolt = <2700000>;
815 regulator-max-microvolt = <2700000>;
821 regulator-min-microvolt = <1800000>;
822 regulator-max-microvolt = <1800000>;
831 vmmc-supply = <&pm8994_l20>;
832 vqmmc-supply = <&pm8994_s4>;
833 mmc-hs400-1_8v;
834 mmc-hs200-1_8v;
840 cd-gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
841 vmmc-supply = <&pm8994_l21>;
842 vqmmc-supply = <&pm8994_l13>;
846 gpio-reserved-ranges = <0 4>;
847 pinctrl-0 = <&sw_service_gpio>;
848 pinctrl-names = "default";
850 disp_reset_n_gpio: disp-reset-n {
853 drive-strength = <2>;
854 bias-disable;
857 mdp_vsync_p_gpio: mdp-vsync-p {
860 drive-strength = <2>;
861 bias-disable;
864 sw_service_gpio: sw-service-gpio {
867 drive-strength = <2>;
868 bias-pull-up;
871 usb_detect: usb-detect {
874 drive-strength = <2>;
875 bias-disable;
876 output-high;
879 uim_detect_en: uim-detect-en {
882 drive-strength = <2>;
883 bias-disable;
884 output-high;
887 tray_det_pin: tray-det {
890 drive-strength = <2>;
891 bias-disable;
894 tp_vddio_en: tp-vddio-en {
897 drive-strength = <2>;
898 bias-disable;
899 output-high;
902 lcd_vddio_en: lcd-vddio-en {
905 drive-strength = <2>;
906 bias-disable;
907 output-low;
910 wl_host_wake: wl-host-wake {
913 drive-strength = <2>;
914 bias-pull-down;
915 input-high;
918 wl_reg_on: wl-reg-on {
921 drive-strength = <2>;
922 bias-disable;
923 output-low;
926 ts_reset_n: ts-rst-n {
929 drive-strength = <2>;
932 touch_int_n: touch-int-n {
935 drive-strength = <2>;
936 bias-pull-up;
939 touch_int_sleep: touch-int-sleep {
942 drive-strength = <2>;
943 bias-pull-down;
949 * 6 minutes to wake up (nothing interesting in kernel logs), but then it works as it should.
953 qcom,select-utmi-as-pipe-clk;
960 phy-names = "usb2-phy";
961 snps,hird-threshold = /bits/ 8 <0>;