Lines Matching +full:hall +full:- +full:enable
1 // SPDX-License-Identifier: BSD-3-Clause
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/leds/common.h>
10 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
18 qcom,msm-id = <0x124 0x20000>, <0x124 0x20001>; /* 8998v2, v2.1 */
19 qcom,board-id = <8 0>;
23 compatible = "gpio-gate-clock";
24 pinctrl-0 = <&div_clk1>;
25 pinctrl-names = "default";
27 #clock-cells = <0>;
28 enable-gpios = <&pm8998_gpios 13 GPIO_ACTIVE_HIGH>;
32 board_vbat: vbat-regulator {
33 compatible = "regulator-fixed";
34 regulator-name = "VBAT";
36 regulator-min-microvolt = <4000000>;
37 regulator-max-microvolt = <4000000>;
38 regulator-always-on;
39 regulator-boot-on;
42 cam0_vdig_vreg: cam0-vdig {
43 compatible = "regulator-fixed";
44 regulator-name = "cam0_vdig";
45 startup-delay-us = <0>;
46 enable-active-high;
48 pinctrl-names = "default";
49 pinctrl-0 = <&main_cam_pwr_en>;
52 cam1_vdig_vreg: cam1-vdig {
53 compatible = "regulator-fixed";
54 regulator-name = "cam1_vdig";
55 startup-delay-us = <0>;
56 enable-active-high;
58 pinctrl-names = "default";
59 pinctrl-0 = <&chat_cam_pwr_en>;
60 vin-supply = <&vreg_s3a_1p35>;
63 cam_vio_vreg: cam-vio-vreg {
64 compatible = "regulator-fixed";
65 regulator-name = "cam_vio_vreg";
66 startup-delay-us = <0>;
67 enable-active-high;
69 pinctrl-names = "default";
70 pinctrl-0 = <&main_cam_pwr_io_en>;
71 vin-supply = <&vreg_lvs1a_1p8>;
74 touch_vddio_vreg: touch-vddio-vreg {
75 compatible = "regulator-fixed";
76 regulator-name = "touch_vddio_vreg";
77 startup-delay-us = <10000>;
79 pinctrl-names = "default";
80 pinctrl-0 = <&ts_vddio_en>;
83 vph_pwr: vph-pwr-regulator {
84 compatible = "regulator-fixed";
85 regulator-name = "vph_pwr";
86 regulator-always-on;
87 regulator-boot-on;
90 extcon_usb: extcon-usb {
91 compatible = "linux,extcon-usb-gpio";
92 id-gpios = <&tlmm 38 GPIO_ACTIVE_HIGH>;
93 vbus-gpios = <&tlmm 128 GPIO_ACTIVE_HIGH>;
94 pinctrl-names = "default";
95 pinctrl-0 = <&cc_dir_default &usb_detect_en>;
98 gpio-keys {
99 compatible = "gpio-keys";
101 pinctrl-names = "default";
102 pinctrl-0 = <&vol_down_n &focus_n &snapshot_n>;
103 button-vol-down {
106 linux,input-type = <EV_KEY>;
108 wakeup-source;
109 debounce-interval = <15>;
112 button-camera-snapshot {
115 linux,input-type = <EV_KEY>;
117 debounce-interval = <15>;
120 button-camera-focus {
123 linux,input-type = <EV_KEY>;
125 debounce-interval = <15>;
129 gpio-hall-sensor {
130 compatible = "gpio-keys";
131 label = "Hall sensors";
132 pinctrl-names = "default";
133 pinctrl-0 = <&acc_cover_open>;
135 event-hall-sensor0 {
136 label = "Cover Hall Sensor";
138 linux,input-type = <EV_SW>;
140 wakeup-source;
141 debounce-interval = <30>;
145 reserved-memory {
146 #address-cells = <2>;
147 #size-cells = <2>;
152 no-map;
157 no-map;
161 compatible = "shared-dma-pool";
163 no-map;
168 no-map;
173 no-map;
179 record-size = <0x10000>;
180 console-size = <0x60000>;
181 ftrace-size = <0x10000>;
182 pmsg-size = <0x20000>;
183 ecc-size = <16>;
188 compatible = "gpio-vibrator";
189 enable-gpios = <&pmi8998_gpios 5 GPIO_ACTIVE_HIGH>;
190 pinctrl-names = "default";
191 pinctrl-0 = <&vib_ldo_en>;
197 clock-frequency = <355000>;
200 compatible = "syna,rmi4-i2c";
202 #address-cells = <1>;
203 #size-cells = <0>;
204 interrupts-extended = <&tlmm 125 IRQ_TYPE_EDGE_FALLING>;
206 pinctrl-names = "default";
207 pinctrl-0 = <&ts_int_n>;
209 vdd-supply = <&vreg_l28_3p0>;
210 vio-supply = <&touch_vddio_vreg>;
212 syna,reset-delay-ms = <220>;
213 syna,startup-delay-ms = <1000>;
215 rmi4-f01@1 {
217 syna,nosleep-mode = <1>;
220 rmi4-f11@11 {
222 syna,sensor-type = <1>;
228 bias-disable;
235 compatible = "qcom,wcn3990-bt";
237 vddio-supply = <&vreg_s4a_1p8>;
238 vddxo-supply = <&vreg_l7a_1p8>;
239 vddrf-supply = <&vreg_l17a_1p3>;
240 vddch0-supply = <&vreg_l25a_3p3>;
241 max-speed = <3200000>;
258 interrupt-parent = <&tlmm>;
261 reset-gpios = <&tlmm 27 GPIO_ACTIVE_LOW>;
262 vdd-supply = <&cam_vio_vreg>;
264 pinctrl-names = "default";
265 pinctrl-0 = <&tof_int_n &tof_reset>;
270 regulator-min-microamp = <800000>;
271 regulator-max-microamp = <800000>;
272 regulator-enable-ramp-delay = <200>;
273 regulator-over-current-protection;
274 regulator-pull-down;
275 regulator-ramp-delay = <1>;
276 regulator-settling-time-up-us = <600>;
277 regulator-settling-time-down-us = <1000>;
278 regulator-soft-start;
279 qcom,discharge-resistor-kohms = <300>;
283 regulator-min-microamp = <200000>;
284 regulator-max-microamp = <200000>;
285 regulator-enable-ramp-delay = <500>;
286 regulator-over-current-protection;
287 regulator-pull-down;
288 regulator-ramp-delay = <1>;
289 regulator-settling-time-up-us = <50000>;
290 regulator-settling-time-down-us = <3000>;
291 regulator-soft-start;
295 gpio-line-names = "NC", /* GPIO_1 */
304 regulator-min-microvolt = <524000>;
305 regulator-max-microvolt = <1088000>;
306 regulator-enable-ramp-delay = <500>;
308 regulator-always-on;
313 gpio-line-names = "UIM_BATT_ALARM", /* GPIO_1 */
340 vol_down_n: vol-down-n-state {
343 bias-pull-up;
344 input-enable;
345 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
348 focus_n: focus-n-state {
351 bias-pull-up;
352 input-enable;
353 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
356 snapshot_n: snapshot-n-state {
359 bias-pull-up;
360 input-enable;
361 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
364 div_clk1: div-clk1-state {
367 power-source = <0>;
372 gpio-line-names = "MAIN_CAM_PWR_IO_EN", /* GPIO_1 */
387 main_cam_pwr_io_en: main-cam-pwr-io-en-state {
390 bias-disable;
391 drive-push-pull;
392 output-low;
393 qcom,drive-strength = <PMIC_GPIO_STRENGTH_HIGH>;
394 power-source = <1>;
397 vib_ldo_en: vib-ldo-en-state {
400 bias-disable;
401 drive-push-pull;
402 output-low;
403 qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
404 power-source = <0>;
416 vdda-pll-supply = <&vreg_l12a_1p8>;
417 vdda-phy-dpdm-supply = <&vreg_l24a_3p075>;
421 regulators-0 {
422 compatible = "qcom,rpm-pm8998-regulators";
424 vdd_s1-supply = <&vph_pwr>;
425 vdd_s2-supply = <&vph_pwr>;
426 vdd_s3-supply = <&vph_pwr>;
427 vdd_s4-supply = <&vph_pwr>;
428 vdd_s5-supply = <&vph_pwr>;
429 vdd_s6-supply = <&vph_pwr>;
430 vdd_s7-supply = <&vph_pwr>;
431 vdd_s8-supply = <&vph_pwr>;
432 vdd_s9-supply = <&vph_pwr>;
433 vdd_s10-supply = <&vph_pwr>;
434 vdd_s11-supply = <&vph_pwr>;
435 vdd_s12-supply = <&vph_pwr>;
436 vdd_s13-supply = <&vph_pwr>;
437 vdd_l1_l27-supply = <&vreg_s7a_1p025>;
438 vdd_l2_l8_l17-supply = <&vreg_s3a_1p35>;
439 vdd_l3_l11-supply = <&vreg_s7a_1p025>;
440 vdd_l4_l5-supply = <&vreg_s7a_1p025>;
441 vdd_l6-supply = <&vreg_s5a_2p04>;
442 vdd_l7_l12_l14_l15-supply = <&vreg_s5a_2p04>;
443 vdd_l9-supply = <&vreg_bob>;
444 vdd_l10_l23_l25-supply = <&vreg_bob>;
445 vdd_l13_l19_l21-supply = <&vreg_bob>;
446 vdd_l16_l28-supply = <&vreg_bob>;
447 vdd_l18_l22-supply = <&vreg_bob>;
448 vdd_l20_l24-supply = <&vreg_bob>;
449 vdd_l26-supply = <&vreg_s3a_1p35>;
450 vdd_lvs1_lvs2-supply = <&vreg_s4a_1p8>;
453 regulator-min-microvolt = <1352000>;
454 regulator-max-microvolt = <1352000>;
458 regulator-min-microvolt = <1800000>;
459 regulator-max-microvolt = <1800000>;
460 regulator-system-load = <100000>;
461 regulator-allow-set-load;
465 regulator-min-microvolt = <1904000>;
466 regulator-max-microvolt = <2032000>;
470 regulator-min-microvolt = <900000>;
471 regulator-max-microvolt = <1028000>;
475 regulator-min-microvolt = <880000>;
476 regulator-max-microvolt = <880000>;
477 regulator-system-load = <73400>;
478 regulator-allow-set-load;
482 regulator-min-microvolt = <1200000>;
483 regulator-max-microvolt = <1200000>;
484 regulator-system-load = <12560>;
485 regulator-allow-set-load;
489 regulator-min-microvolt = <1000000>;
490 regulator-max-microvolt = <1000000>;
494 regulator-min-microvolt = <800000>;
495 regulator-max-microvolt = <800000>;
499 regulator-min-microvolt = <1800000>;
500 regulator-max-microvolt = <1800000>;
504 regulator-min-microvolt = <1800000>;
505 regulator-max-microvolt = <1800000>;
509 regulator-min-microvolt = <1200000>;
510 regulator-max-microvolt = <1200000>;
514 regulator-min-microvolt = <1808000>;
515 regulator-max-microvolt = <2960000>;
519 regulator-min-microvolt = <1808000>;
520 regulator-max-microvolt = <2960000>;
524 regulator-min-microvolt = <1000000>;
525 regulator-max-microvolt = <1000000>;
529 regulator-min-microvolt = <1800000>;
530 regulator-max-microvolt = <1800000>;
534 regulator-min-microvolt = <1808000>;
535 regulator-max-microvolt = <2960000>;
536 regulator-allow-set-load;
540 regulator-min-microvolt = <1848000>;
541 regulator-max-microvolt = <1856000>;
542 regulator-system-load = <32000>;
543 regulator-allow-set-load;
547 regulator-min-microvolt = <1800000>;
548 regulator-max-microvolt = <1800000>;
552 regulator-min-microvolt = <2704000>;
553 regulator-max-microvolt = <2704000>;
557 regulator-min-microvolt = <1304000>;
558 regulator-max-microvolt = <1304000>;
564 regulator-min-microvolt = <2696000>;
565 regulator-max-microvolt = <2704000>;
569 regulator-min-microvolt = <2960000>;
570 regulator-max-microvolt = <2960000>;
571 regulator-system-load = <10000>;
572 regulator-allow-set-load;
576 regulator-min-microvolt = <2960000>;
577 regulator-max-microvolt = <2960000>;
578 regulator-system-load = <800000>;
579 regulator-allow-set-load;
585 regulator-min-microvolt = <3312000>;
586 regulator-max-microvolt = <3312000>;
590 regulator-min-microvolt = <3088000>;
591 regulator-max-microvolt = <3088000>;
595 regulator-min-microvolt = <3104000>;
596 regulator-max-microvolt = <3312000>;
600 regulator-min-microvolt = <1200000>;
601 regulator-max-microvolt = <1200000>;
602 regulator-allow-set-load;
606 regulator-min-microvolt = <3000000>;
607 regulator-max-microvolt = <3000000>;
615 regulators-1 {
616 compatible = "qcom,rpm-pmi8998-regulators";
618 vdd_bob-supply = <&vph_pwr>;
621 regulator-min-microvolt = <3312000>;
622 regulator-max-microvolt = <3600000>;
629 cd-gpios = <&tlmm 95 GPIO_ACTIVE_HIGH>;
631 vmmc-supply = <&vreg_l21a_2p95>;
632 vqmmc-supply = <&vreg_l13a_2p95>;
634 pinctrl-names = "default", "sleep";
635 pinctrl-0 = <&sdc2_on &sdc2_cd>;
636 pinctrl-1 = <&sdc2_off &sdc2_cd>;
640 gpio-reserved-ranges = <0 4>, <81 4>;
641 gpio-line-names = "", /* GPIO_0 */
792 mdp_vsync_p: mdp-vsync-p-state {
795 drive-strength = <2>;
796 bias-pull-down;
799 nfc_ven: nfc-ven-state {
802 bias-disable;
803 drive-strength = <2>;
804 output-low;
807 cam_mclk0_active: cam-mclk0-active-state {
810 drive-strength = <2>;
811 bias-disable;
814 cam_mclk1_active: cam-mclk1-active-state {
817 drive-strength = <2>;
818 bias-disable;
821 cci0_default: cci0-default-state {
824 bias-disable;
825 drive-strength = <2>;
828 cci1_default: cci1-default-state {
831 bias-disable;
832 drive-strength = <2>;
835 main_cam_pwr_en: main-cam-pwr-en-default-state {
838 bias-disable;
839 drive-strength = <2>;
842 tof_int_n: tof-int-n-state {
845 bias-pull-up;
846 drive-strength = <2>;
849 chat_cam_pwr_en: chat-cam-pwr-en-default-state {
852 bias-disable;
853 drive-strength = <2>;
856 tof_reset: tof-reset-state {
859 bias-disable;
860 drive-strength = <2>;
863 cc_dir_default: cc-dir-active-state {
866 bias-disable;
867 drive-strength = <16>;
870 acc_cover_open: acc-cover-open-state {
873 bias-disable;
874 drive-strength = <2>;
877 ts_int_n: ts-int-n-state {
880 drive-strength = <8>;
881 bias-pull-up;
884 usb_detect_en: usb-detect-en-active-state {
887 bias-disable;
888 drive-strength = <2>;
889 output-low;
892 ts_vddio_en: ts-vddio-en-default-state {
895 bias-disable;
896 drive-strength = <2>;
897 output-low;
903 * Disable UFS until card quirks are in to avoid unrecoverable hard-brick
920 /* Force to peripheral until we have Type-C hooked up */
928 vdda-phy-supply = <&vreg_l1a_0p875>;
929 vdda-pll-supply = <&vreg_l2a_1p2>;