Lines Matching +full:battery +full:- +full:detect +full:- +full:gpios
23 #include <dt-bindings/input/input.h>
24 #include <dt-bindings/gpio/gpio.h>
25 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
26 #include <dt-bindings/pinctrl/qcom,pmic-mpp.h>
27 #include "qcom-msm8660.dtsi"
31 compatible = "qcom,apq8060-dragonboard", "qcom,msm8660";
38 stdout-path = "serial0:115200n8";
42 compatible = "simple-bus";
45 vph: regulator-fixed {
46 compatible = "regulator-fixed";
47 regulator-min-microvolt = <3700000>;
48 regulator-max-microvolt = <3700000>;
49 regulator-name = "VPH";
50 regulator-type = "voltage";
51 regulator-always-on;
52 regulator-boot-on;
57 compatible = "regulator-fixed";
58 regulator-name = "XC6222A331MR-G";
59 regulator-min-microvolt = <3300000>;
60 regulator-max-microvolt = <3300000>;
61 vin-supply = <&vph>;
63 enable-active-high;
64 pinctrl-names = "default";
65 pinctrl-0 = <&dragon_veth_gpios>;
66 regulator-always-on;
71 compatible = "regulator-fixed";
72 regulator-name = "NDS332P";
73 regulator-min-microvolt = <1800000>;
74 regulator-max-microvolt = <1800000>;
75 vin-supply = <&pm8058_s3>;
80 compatible = "regulator-fixed";
81 regulator-name = "Dragon SDCC levelshifter";
82 vin-supply = <&pm8058_l14>;
83 regulator-always-on;
93 vdd-supply = <&pm8058_l14>; // 2.85V
94 aset-gpios = <&pm8058_gpio 35 GPIO_ACTIVE_LOW>;
95 capella,aset-resistance-ohms = <100000>;
96 /* Trig on both edges - getting close or far away */
97 interrupts-extended = <&pm8058_gpio 34 IRQ_TYPE_EDGE_BOTH>;
99 io-channels = <&xoadc 0x00 0x05>;
100 io-channel-names = "aout";
101 pinctrl-names = "default";
102 pinctrl-0 = <&dragon_cm3605_gpios>, <&dragon_cm3605_mpps>;
118 drive-strength = <16>;
119 bias-disable;
123 drive-strength = <10>;
124 bias-pull-up;
130 drive-strength = <10>;
131 bias-pull-up;
136 * The SDCC3 pins are hardcoded (non-muxable) but need some pin
142 drive-strength = <8>;
143 bias-disable;
147 drive-strength = <8>;
148 bias-pull-up;
152 drive-strength = <8>;
153 bias-pull-up;
166 drive-strength = <16>;
167 bias-disable;
171 drive-strength = <10>;
172 bias-pull-up;
177 drive-strength = <10>;
178 bias-pull-up;
189 drive-strength = <16>;
190 /* These have external pull-up 2.2kOhm to 1.8V */
191 bias-disable;
202 drive-strength = <16>;
203 /* These have external pull-up 4.7kOhm to 1.8V */
204 bias-disable;
216 drive-strength = <8>;
217 bias-disable;
221 drive-strength = <2>;
222 bias-pull-up;
260 bias-pull-up;
292 keypad,num-rows = <6>;
293 keypad,num-columns = <5>;
297 dragon_ethernet_gpios: ethernet-gpios {
301 input-enable;
302 bias-disable;
303 power-source = <PM8058_GPIO_S3>;
306 dragon_bmp085_gpios: bmp085-gpios {
310 input-enable;
311 bias-disable;
312 power-source = <PM8058_GPIO_S3>;
315 dragon_mpu3050_gpios: mpu3050-gpios {
319 input-enable;
320 bias-disable;
321 power-source = <PM8058_GPIO_S3>;
324 dragon_sdcc3_gpios: sdcc3-gpios {
328 input-enable;
329 bias-disable;
330 power-source = <PM8058_GPIO_S3>;
333 dragon_sdcc5_gpios: sdcc5-gpios {
337 input-enable;
338 bias-pull-up;
339 qcom,pull-up-strength = <PMIC_GPIO_PULL_UP_30>;
340 power-source = <PM8058_GPIO_S3>;
343 dragon_ak8975_gpios: ak8975-gpios {
347 input-enable;
348 bias-disable;
349 power-source = <PM8058_GPIO_S3>;
352 dragon_cm3605_gpios: cm3605-gpios {
357 input-enable;
358 bias-disable;
359 power-source = <PM8058_GPIO_S3>;
365 output-high;
366 bias-disable;
367 power-source = <PM8058_GPIO_S3>;
370 dragon_veth_gpios: veth-gpios {
374 bias-disable;
375 drive-push-pull;
381 dragon_cm3605_mpps: cm3605-mpps {
385 input-enable;
386 bias-high-impedance;
388 qcom,amux-route = <PMIC_MPP_AMUX_ROUTE_CH5>;
389 power-source = <PM8058_GPIO_S3>;
396 xoadc-ref-supply = <&pm8058_l18>;
398 /* Board-specific channels */
408 /* Connected to battery thermistor */
412 /* Connected to battery ID detector */
430 compatible = "qcom,pm8058-keypad-led";
433 default-state = "off";
434 linux,default-trigger = "cm3605";
437 compatible = "qcom,pm8058-led";
440 default-state = "off";
447 compatible = "qcom,pm8058-led";
450 default-state = "off";
451 linux,default-trigger = "mmc0";
454 compatible = "qcom,pm8058-led";
457 default-state = "on";
458 linux,default-trigger = "heartbeat";
469 pinctrl-names = "default";
470 pinctrl-0 = <&dragon_gsbi8_i2c_pins>;
476 vcc-supply = <&pm8058_s3>;
484 AVDD-supply = <&pm8058_l16>;
485 CPVDD-supply = <&pm8058_l16>;
486 DBVDD-supply = <&pm8058_s3>;
487 DCVDD-supply = <&pm8058_l0>;
489 gpio-controller;
490 #gpio-cells = <2>;
492 micdet-cfg = <0>;
493 micdet-delay = <100>;
494 gpio-cfg = <0xffffffff 0xffffffff 0 0xffffffff 0xffffffff>;
505 pinctrl-names = "default";
506 pinctrl-0 = <&dragon_gsbi12_serial_pins>;
511 pinctrl-names = "default";
512 pinctrl-0 = <&dragon_gsbi12_i2c_pins>;
515 compatible = "asahi-kasei,ak8975";
517 interrupt-parent = <&pm8058_gpio>;
519 pinctrl-names = "default";
520 pinctrl-0 = <&dragon_ak8975_gpios>;
521 vid-supply = <&pm8058_lvs0>; // 1.8V
522 vdd-supply = <&pm8058_l14>; // 2.85V
527 interrupt-parent = <&pm8058_gpio>;
529 reset-gpios = <&tlmm 86 GPIO_ACTIVE_LOW>;
530 pinctrl-names = "default";
531 pinctrl-0 = <&dragon_bmp085_gpios>;
532 vddd-supply = <&pm8058_lvs0>; // 1.8V
533 vdda-supply = <&pm8058_l14>; // 2.85V
543 interrupts-extended = <&pm8058_gpio 17 IRQ_TYPE_EDGE_FALLING>;
544 pinctrl-names = "default";
545 pinctrl-0 = <&dragon_mpu3050_gpios>;
546 vlogic-supply = <&pm8058_lvs0>; // 1.8V
547 vdd-supply = <&pm8058_l14>; // 2.85V
550 * The MPU-3050 acts as a hub for the
553 i2c-gate {
554 #address-cells = <1>;
555 #size-cells = <0>;
560 interrupt-parent = <&tlmm>;
562 pinctrl-names = "default";
563 pinctrl-0 = <&dragon_kxsd9_gpios>;
564 iovdd-supply = <&pm8058_lvs0>; // 1.8V
565 vdd-supply = <&pm8058_l14>; // 2.85V
572 external-bus@1a100000 {
575 pinctrl-names = "default";
576 pinctrl-0 = <&dragon_ebi2_pins>;
579 * An on-board SMSC LAN9221 chip for "debug ethernet",
584 ethernet-ebi2@2,0 {
591 interrupts-extended = <&pm8058_gpio 7 IRQ_TYPE_EDGE_FALLING>,
593 reset-gpios = <&tlmm 30 GPIO_ACTIVE_LOW>;
594 vdd33a-supply = <&dragon_veth>;
595 vddvario-supply = <&dragon_vario>;
596 pinctrl-names = "default";
597 pinctrl-0 = <&dragon_ethernet_gpios>;
598 phy-mode = "mii";
599 reg-io-width = <2>;
600 smsc,force-external-phy;
602 smsc,irq-active-low;
603 smsc,irq-push-pull;
611 qcom,xmem-recovery-cycles = <0>;
612 qcom,xmem-write-hold-cycles = <3>;
613 qcom,xmem-write-delta-cycles = <31>;
614 qcom,xmem-read-delta-cycles = <28>;
615 qcom,xmem-write-wait-cycles = <9>;
616 qcom,xmem-read-wait-cycles = <9>;
626 pm8901-regulators {
627 vdd_l0-supply = <&pm8901_s4>;
628 vdd_l1-supply = <&vph>;
629 vdd_l2-supply = <&vph>;
630 vdd_l3-supply = <&vph>;
631 vdd_l4-supply = <&vph>;
632 vdd_l5-supply = <&vph>;
633 vdd_l6-supply = <&vph>;
634 /* vdd_s0-supply, vdd_s1-supply: SAW regulators */
635 vdd_s2-supply = <&vph>;
636 vdd_s3-supply = <&vph>;
637 vdd_s4-supply = <&vph>;
638 lvs0_in-supply = <&pm8058_s3>;
639 lvs1_in-supply = <&pm8901_s4>;
640 lvs2_in-supply = <&pm8058_l0>;
641 lvs3_in-supply = <&pm8058_s2>;
642 mvs_in-supply = <&pm8058_s3>;
645 regulator-min-microvolt = <1200000>;
646 regulator-max-microvolt = <1200000>;
647 bias-pull-down;
650 regulator-min-microvolt = <3300000>;
651 regulator-max-microvolt = <3300000>;
652 bias-pull-down;
655 regulator-min-microvolt = <2850000>;
656 regulator-max-microvolt = <3300000>;
657 bias-pull-down;
660 regulator-min-microvolt = <3300000>;
661 regulator-max-microvolt = <3300000>;
662 bias-pull-down;
665 regulator-min-microvolt = <2600000>;
666 regulator-max-microvolt = <2600000>;
667 bias-pull-down;
670 regulator-min-microvolt = <2850000>;
671 regulator-max-microvolt = <2850000>;
672 bias-pull-down;
675 regulator-min-microvolt = <2200000>;
676 regulator-max-microvolt = <2200000>;
677 bias-pull-down;
682 regulator-min-microvolt = <1300000>;
683 regulator-max-microvolt = <1300000>;
684 qcom,switch-mode-frequency = <1600000>;
685 bias-pull-down;
688 regulator-min-microvolt = <1100000>;
689 regulator-max-microvolt = <1100000>;
690 qcom,switch-mode-frequency = <1600000>;
691 bias-pull-down;
694 regulator-min-microvolt = <1225000>;
695 regulator-max-microvolt = <1225000>;
696 qcom,switch-mode-frequency = <1600000>;
697 bias-pull-down;
702 regulator-always-on;
711 pm8058-regulators {
712 vdd_l0_l1_lvs-supply = <&pm8058_s3>;
713 vdd_l2_l11_l12-supply = <&vph>;
714 vdd_l3_l4_l5-supply = <&vph>;
715 vdd_l6_l7-supply = <&vph>;
716 vdd_l8-supply = <&vph>;
717 vdd_l9-supply = <&vph>;
718 vdd_l10-supply = <&vph>;
719 vdd_l13_l16-supply = <&pm8058_s4>;
720 vdd_l14_l15-supply = <&vph>;
721 vdd_l17_l18-supply = <&vph>;
722 vdd_l19_l20-supply = <&vph>;
723 vdd_l21-supply = <&pm8058_s3>;
724 vdd_l22-supply = <&pm8058_s3>;
725 vdd_l23_l24_l25-supply = <&pm8058_s3>;
726 vdd_s0-supply = <&vph>;
727 vdd_s1-supply = <&vph>;
728 vdd_s2-supply = <&vph>;
729 vdd_s3-supply = <&vph>;
730 vdd_s4-supply = <&vph>;
731 vdd_ncp-supply = <&vph>;
734 regulator-min-microvolt = <1200000>;
735 regulator-max-microvolt = <1200000>;
736 bias-pull-down;
739 regulator-min-microvolt = <1200000>;
740 regulator-max-microvolt = <1200000>;
741 bias-pull-down;
744 regulator-min-microvolt = <1800000>;
745 regulator-max-microvolt = <2600000>;
746 bias-pull-down;
749 regulator-min-microvolt = <1800000>;
750 regulator-max-microvolt = <1800000>;
751 bias-pull-down;
754 regulator-min-microvolt = <2850000>;
755 regulator-max-microvolt = <2850000>;
756 bias-pull-down;
759 regulator-min-microvolt = <2850000>;
760 regulator-max-microvolt = <2850000>;
761 bias-pull-down;
764 regulator-min-microvolt = <3000000>;
765 regulator-max-microvolt = <3600000>;
766 bias-pull-down;
769 regulator-min-microvolt = <1800000>;
770 regulator-max-microvolt = <1800000>;
771 bias-pull-down;
774 regulator-min-microvolt = <2900000>;
775 regulator-max-microvolt = <3050000>;
776 bias-pull-down;
779 regulator-min-microvolt = <1800000>;
780 regulator-max-microvolt = <1800000>;
781 bias-pull-down;
784 regulator-min-microvolt = <2600000>;
785 regulator-max-microvolt = <2600000>;
786 bias-pull-down;
789 regulator-min-microvolt = <1500000>;
790 regulator-max-microvolt = <1500000>;
791 bias-pull-down;
794 regulator-min-microvolt = <2900000>;
795 regulator-max-microvolt = <2900000>;
796 bias-pull-down;
799 regulator-min-microvolt = <2050000>;
800 regulator-max-microvolt = <2050000>;
801 bias-pull-down;
804 regulator-min-microvolt = <2850000>;
805 regulator-max-microvolt = <2850000>;
808 regulator-min-microvolt = <2850000>;
809 regulator-max-microvolt = <2850000>;
810 bias-pull-down;
813 regulator-min-microvolt = <1800000>;
814 regulator-max-microvolt = <1800000>;
815 bias-pull-down;
816 regulator-always-on;
820 regulator-min-microvolt = <2600000>;
821 regulator-max-microvolt = <2600000>;
822 bias-pull-down;
825 regulator-min-microvolt = <2200000>;
826 regulator-max-microvolt = <2200000>;
827 bias-pull-down;
830 regulator-min-microvolt = <2500000>;
831 regulator-max-microvolt = <2500000>;
832 bias-pull-down;
835 regulator-min-microvolt = <1800000>;
836 regulator-max-microvolt = <1800000>;
837 bias-pull-down;
841 regulator-min-microvolt = <1200000>;
842 regulator-max-microvolt = <1200000>;
843 bias-pull-down;
844 regulator-always-on;
848 regulator-min-microvolt = <1150000>;
849 regulator-max-microvolt = <1150000>;
850 bias-pull-down;
854 regulator-min-microvolt = <1200000>;
855 regulator-max-microvolt = <1200000>;
856 bias-pull-down;
860 regulator-min-microvolt = <1200000>;
861 regulator-max-microvolt = <1200000>;
862 bias-pull-down;
865 regulator-min-microvolt = <1200000>;
866 regulator-max-microvolt = <1200000>;
867 bias-pull-down;
871 // regulator-min-microvolt = <500000>;
872 // regulator-max-microvolt = <1325000>;
873 regulator-min-microvolt = <1100000>;
874 regulator-max-microvolt = <1100000>;
875 qcom,switch-mode-frequency = <1600000>;
876 bias-pull-down;
879 // regulator-min-microvolt = <500000>;
880 // regulator-max-microvolt = <1250000>;
881 regulator-min-microvolt = <1100000>;
882 regulator-max-microvolt = <1100000>;
883 qcom,switch-mode-frequency = <1600000>;
884 bias-pull-down;
888 regulator-min-microvolt = <1200000>;
889 regulator-max-microvolt = <1400000>;
890 qcom,switch-mode-frequency = <1600000>;
891 bias-pull-down;
894 regulator-min-microvolt = <1800000>;
895 regulator-max-microvolt = <1800000>;
896 qcom,switch-mode-frequency = <1600000>;
897 regulator-always-on;
898 bias-pull-down;
901 regulator-min-microvolt = <2200000>;
902 regulator-max-microvolt = <2200000>;
903 qcom,switch-mode-frequency = <1600000>;
904 regulator-always-on;
905 bias-pull-down;
910 bias-pull-down;
913 bias-pull-down;
917 regulator-min-microvolt = <1800000>;
918 regulator-max-microvolt = <1800000>;
919 qcom,switch-mode-frequency = <1600000>;
927 pinctrl-names = "default";
928 pinctrl-0 = <&dragon_sdcc1_pins>;
929 vmmc-supply = <&pm8901_l5>;
930 vqmmc-supply = <&pm8901_lvs0>;
936 /* Enable SSBI GPIO 22 as input, use for card detect */
937 pinctrl-names = "default";
938 pinctrl-0 = <&dragon_sdcc3_pins>, <&dragon_sdcc3_gpios>;
939 cd-gpios = <&pm8058_gpio 22 GPIO_ACTIVE_LOW>;
940 wp-gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>;
941 vmmc-supply = <&pm8058_l14>;
950 /* Enable SSBI GPIO 26 as input, use for card detect */
951 pinctrl-names = "default";
952 pinctrl-0 = <&dragon_sdcc5_pins>, <&dragon_sdcc5_gpios>;
953 cd-gpios = <&pm8058_gpio 26 GPIO_ACTIVE_LOW>;
954 wp-gpios = <&tlmm 106 GPIO_ACTIVE_HIGH>;
955 vmmc-supply = <&pm8058_l14>;
956 vqmmc-supply = <&dragon_vio_txb>;