2 * Copyright (c) 2013-2014, NVIDIA CORPORATION. All rights reserved.
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
8 * This program is distributed in the hope it will be useful, but WITHOUT
9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #include <dt-bindings/gpio/tegra-gpio.h>
22 compatible = "ti,palmas";
24 interrupts = <0 86 0>;
26 #interrupt-cells = <2>;
30 compatible = "ti,palmas-gpio";
36 compatible = "ti,palmas-rtc";
37 interrupt-parent = <&palmas>;
42 compatible = "ti,tps65913-pinctrl";
43 pinctrl-names = "default";
44 pinctrl-0 = <&palmas_default>;
46 palmas_default: pinmux {
49 function = "powergood";
70 pins = "gpio2", "gpio3", "gpio4", "gpio6", "gpio7";
76 function = "clk32kgaudio";
82 compatible = "ti,palmas-usb";
83 extcon-name = "palmas-extcon";
85 ti,enable-id-detection;
86 ti,enable-vbus-detection;
90 compatible = "ti,palmas-watchdog";
91 ti,system-watchdog-timer-period = <64>;
96 compatible = "ti,palmas-pm";
97 system-pmic-power-off;
101 compatible = "ti,palmas-ldousb-in";
102 ti,ldousb-in-threshold-voltage = <3500000>;
103 ti,threshold-voltage-tolerance = <100000>;
104 ti,enable-in1-above-threshold;
105 ldousb-in1-supply = <&vdd_ac_bat_reg>;
106 ldousb-in2-supply = <&palmas_smps10_out2>;
110 compatible = "ti,palmas-gpadc";
111 interrupt-parent = <&palmas>;
115 ti,channel0-current-microamp = <5>;
116 ti,channel3-current-microamp = <400>;
117 ti,enable-channel3-dual-current;
118 ti,enable-extended-delay;
121 ti,adc-channel-number = <0>;
122 ti,adc-consumer-device = "1-000b";
123 ti,adc-consumer-channel ="batt_id";
127 ti,adc-channel-number = <1>;
128 ti,adc-consumer-device = "generic-adc-thermal.1";
129 ti,adc-consumer-channel ="thermistor";
133 ti,adc-channel-number = <3>;
134 ti,adc-consumer-device = "generic-adc-thermal.2";
135 ti,adc-consumer-channel ="tdiode";
139 ti,adc-channel-number = <5>;
140 ti,adc-consumer-device = "generic-adc-thermal.0";
141 ti,adc-consumer-channel ="battery-temp-channel";
148 compatible = "ti,palmas-clk";
151 ti,clock-boot-enable;
155 ti,clock-boot-enable;
160 compatible = "ti,tps65913-pmic", "ti,palmas-pmic";
161 ldo1-in-supply = <&palmas_smps6>;
162 ldo5-in-supply = <&palmas_smps8>;
163 ldo9-in-supply = <&palmas_smps9>;
164 ldoln-in-supply = <&palmas_smps10_out2>;
165 ldousb-in-supply = <&palmas_smps10_out2>;
169 regulator-name = "vdd-cpu";
170 regulator-min-microvolt = <700000>;
171 regulator-max-microvolt = <1400000>;
175 ti,config-flags = <8>;
179 regulator-consumer-supply = "vdd_cpu";
185 regulator-name = "vdd-gpu";
186 regulator-min-microvolt = <700000>;
187 regulator-max-microvolt = <1400000>;
188 regulator-init-microvolt = <1000000>;
193 regulator-consumer-supply = "vdd_gpu";
198 palmas_smps6: smps6 {
199 regulator-name = "vddio-ddr";
205 regulator-consumer-supply = "vddio_ddr";
208 regulator-consumer-supply = "vddio_ddr_mclk";
211 regulator-consumer-supply = "vddio_ddr3";
214 regulator-consumer-supply = "vcore1_ddr3";
220 regulator-name = "vdd-core";
221 regulator-min-microvolt = <700000>;
222 regulator-max-microvolt = <1400000>;
228 regulator-consumer-supply = "vdd_core";
233 palmas_smps8: smps8 {
234 regulator-name = "vdd-1v8";
240 regulator-consumer-supply = "dbvdd";
241 regulator-consumer-device = "tegra-snd-rt5639.0";
244 regulator-consumer-supply = "avdd";
245 regulator-consumer-device = "tegra-snd-rt5639.0";
248 regulator-consumer-supply = "avdd_osc";
251 regulator-consumer-supply = "vddio_sys";
254 regulator-consumer-supply = "vddio_sys_2";
257 regulator-consumer-supply = "vddio_gmi";
260 regulator-consumer-supply = "vddio_sdmmc";
261 regulator-consumer-device = "sdhci-tegra.0";
264 regulator-consumer-supply = "vddio_sdmmc";
265 regulator-consumer-device = "sdhci-tegra.3";
268 regulator-consumer-supply = "avdd_pll_utmip";
269 regulator-consumer-device = "tegra-udc.0";
272 regulator-consumer-supply = "avdd_pll_utmip";
273 regulator-consumer-device = "tegra-ehci.0";
276 regulator-consumer-supply = "avdd_pll_utmip";
277 regulator-consumer-device = "tegra-ehci.1";
280 regulator-consumer-supply = "avdd_pll_utmip";
281 regulator-consumer-device = "tegra-ehci.2";
284 regulator-consumer-supply = "vddio_audio";
287 regulator-consumer-supply = "vddio_uart";
290 regulator-consumer-supply = "vddio_bb";
293 regulator-consumer-supply = "vdd_1v8_eeprom";
296 regulator-consumer-supply = "vlogic";
297 regulator-consumer-device = "0-0069";
300 regulator-consumer-supply = "vdd";
301 regulator-consumer-device = "0-0069";
304 regulator-consumer-supply = "dmicvdd";
305 regulator-consumer-device = "tegra-snd-rt5639.0";
308 regulator-consumer-supply = "dmicvdd";
309 regulator-consumer-device = "tegra-snd-rt5645.0";
312 regulator-consumer-supply = "vid";
313 regulator-consumer-device = "0-000d";
316 regulator-consumer-supply = "pwrdet_nand";
319 regulator-consumer-supply = "pwrdet_sdmmc1";
322 regulator-consumer-supply = "pwrdet_sdmmc4";
325 regulator-consumer-supply = "pwrdet_audio";
328 regulator-consumer-supply = "pwrdet_uart";
331 regulator-consumer-supply = "pwrdet_bb";
336 palmas_smps9: smps9 {
337 regulator-name = "vdd-snsr";
338 regulator-min-microvolt = <3300000>;
339 regulator-max-microvolt = <3300000>;
345 regulator-consumer-supply = "vddio_sd_slot";
346 regulator-consumer-device = "sdhci-tegra.3";
349 regulator-consumer-supply = "vdd";
350 regulator-consumer-device = "0-000d";
353 regulator-consumer-supply = "vdd";
354 regulator-consumer-device = "0-004c";
357 regulator-consumer-supply = "vdd";
358 regulator-consumer-device = "0-004d";
363 palmas_smps10_out1: smps10_out1 {
364 regulator-name = "vdd-out1-5v0";
365 regulator-min-microvolt = <5000000>;
366 regulator-max-microvolt = <5000000>;
370 palmas_smps10_out2: smps10_out2 {
371 regulator-name = "vdd-out2-5v0";
372 regulator-min-microvolt = <5000000>;
373 regulator-max-microvolt = <5000000>;
377 regulator-consumer-supply = "spkvdd";
378 regulator-consumer-device = "tegra-snd-rt5639.0";
381 regulator-consumer-supply = "spkvdd";
382 regulator-consumer-device = "tegra-snd-rt5645.0";
388 regulator-name = "avdd-pll";
395 regulator-consumer-supply = "avdd_pll_m";
398 regulator-consumer-supply = "avdd_pll_ap_c2_c3";
401 regulator-consumer-supply = "avdd_pll_cud2dpd";
404 regulator-consumer-supply = "avdd_pll_c4";
407 regulator-consumer-supply = "vddio_ddr_hs";
410 regulator-consumer-supply = "avdd_pll_erefe";
413 regulator-consumer-supply = "avdd_pll_cg";
416 regulator-consumer-supply = "avdd_pll_x";
422 regulator-name = "avdd-lcd";
423 regulator-min-microvolt = <3300000>;
424 regulator-max-microvolt = <3300000>;
428 regulator-consumer-supply = "avdd_lcd";
429 regulator-consumer-device = "tegradc.0";
436 regulator-name = "vdd-touch";
437 regulator-min-microvolt = <3000000>;
438 regulator-max-microvolt = <3000000>;
442 regulator-name = "avdd-cam1";
443 regulator-min-microvolt = <2700000>;
444 regulator-max-microvolt = <2700000>;
448 regulator-consumer-supply = "avdd_ov5693";
449 regulator-consumer-device = "2-0010";
455 regulator-name = "avdd-dsi-csi";
459 regulator-consumer-supply = "vddio_hsic";
460 regulator-consumer-device = "tegra-ehci.1";
463 regulator-consumer-supply = "vddio_hsic";
464 regulator-consumer-device = "tegra-ehci.2";
467 regulator-consumer-supply = "avdd_dsi_csi";
468 regulator-consumer-device = "tegradc.0";
471 regulator-consumer-supply = "avdd_dsi_csi";
472 regulator-consumer-device = "tegradc.1";
475 regulator-consumer-supply = "avdd_dsi_csi";
476 regulator-consumer-device = "vi.0";
479 regulator-consumer-supply = "avdd_dsi_csi";
480 regulator-consumer-device = "vi.1";
483 regulator-consumer-supply = "vdd_lcd_bl";
484 regulator-consumer-device = "tegradc.0";
487 regulator-consumer-supply = "pwrdet_mipi";
493 regulator-name = "vpp-fuse";
494 regulator-min-microvolt = <1800000>;
495 regulator-max-microvolt = <1800000>;
499 regulator-name = "avdd-cam-af";
500 regulator-min-microvolt = <2700000>;
501 regulator-max-microvolt = <2700000>;
505 regulator-consumer-supply = "avdd_af1_cam";
508 regulator-consumer-supply = "avdd_cam2_cam";
511 regulator-consumer-supply = "vdd_af1";
512 regulator-consumer-device = "2-0010";
515 regulator-consumer-supply = "vdd";
516 regulator-consumer-device = "2-000c";
519 regulator-consumer-supply = "vana";
520 regulator-consumer-device = "2-0048";
523 regulator-consumer-supply = "vana";
524 regulator-consumer-device = "2-0036";
527 regulator-consumer-supply = "vin";
528 regulator-consumer-device = "2-0030";
531 regulator-consumer-supply = "vana";
532 regulator-consumer-device = "2-0010";
538 regulator-name = "vdd-rtc";
539 regulator-min-microvolt = <950000>;
540 regulator-max-microvolt = <950000>;
546 regulator-consumer-supply = "vdd_rtc";
552 regulator-name = "vddio-sdmmc-2";
553 regulator-min-microvolt = <1800000>;
554 regulator-max-microvolt = <3300000>;
558 regulator-consumer-supply = "vddio_sdmmc";
559 regulator-consumer-device = "sdhci-tegra.2";
562 regulator-consumer-supply = "pwrdet_sdmmc3";
568 regulator-name = "vddio-hv";
574 regulator-consumer-supply = "vddio_hv";
575 regulator-consumer-device = "tegradc.1";
578 regulator-consumer-supply = "avdd_hdmi";
579 regulator-consumer-device = "tegradc.1";
583 regulator-consumer-supply = "pwrdet_hv";
586 regulator-consumer-supply = "vddio_pex_ctl";
587 regulator-consumer-device = "tegra-pcie";
593 regulator-name = "avdd-usb";
599 regulator-consumer-supply = "pwrdet_pex_ctl";
602 regulator-consumer-supply = "avdd_usb";
603 regulator-consumer-device = "tegra-udc.0";
606 regulator-consumer-supply = "avdd_usb";
607 regulator-consumer-device = "tegra-ehci.0";
610 regulator-consumer-supply = "avdd_usb";
611 regulator-consumer-device = "tegra-ehci.1";
614 regulator-consumer-supply = "avdd_usb";
615 regulator-consumer-device = "tegra-ehci.2";
618 regulator-consumer-supply = "hvdd_pex";
619 regulator-consumer-device = "tegra-pcie";
622 regulator-consumer-supply = "hvdd_pex_pll_e";
623 regulator-consumer-device = "tegra-pcie";
636 compatible = "maxim,max17048";
639 interrupt-parent = <&gpio>;
640 interrupts = <TEGRA_GPIO(Q, 5) 0x0>;
641 tz-name = "battery-temp";
642 alert-threshold = <0>; /* 1% SOC */
643 one-percent-alerts = <1>;
644 valert-max = <5100>; /* not use */
645 valert-min = <0>; /* not use */
646 vreset-threshold = <2400>;
647 vreset-disable = <1>; /* not use */
648 hib-threshold = <48>; /* 9.984%/hr */
649 hib-active-threshold = <128>; /* 160mV */
652 rcomp-seg = <0x0200>;
656 data-tbl = <0x98 0x80 0xB3 0x50 0xB7 0x90 0xB9 0x00
657 0xBA 0x70 0xBC 0x10 0xBC 0x50 0xBC 0xA0
658 0xBD 0x20 0xBE 0x30 0xBF 0x40 0xC2 0xF0
659 0xC4 0x20 0xC7 0xE0 0xCB 0xF0 0xD0 0x90
660 0x00 0x40 0x06 0x70 0x0E 0x50 0x12 0x00
661 0x18 0xD0 0x33 0x10 0x31 0x40 0x35 0xD0
662 0x18 0xD0 0x19 0x00 0x0B 0xF0 0x0C 0x10
663 0x0D 0x10 0x07 0x90 0x08 0x00 0x08 0x00>;
667 compatible = "onsemi,lc709203f";
669 interrupt-parent = <&gpio>;
670 interrupts = <TEGRA_GPIO(Q, 5) 0x0>;
671 onsemi,thermistor-beta = <0x0d6b>;
672 onsemi,kernel-maximum-soc = <88>;
673 onsemi,alert-low-rsoc = <0x0>;
674 onsemi,alert-low-voltage = <0x0>;
679 compatible = "ti,bq2419x";
682 interrupt-parent = <&gpio>;
683 interrupts = <TEGRA_GPIO(J, 0) 0x0>;
687 regulator-name = "batt_regulator";
688 regulator-max-microamp = <3000000>;
689 ti,watchdog-timeout = <40>;
690 ti,rtc-alarm-time = <3600>;
691 ti,auto-recharge-time = <1800>;
692 ti,disbale-suspend-during-charging;
693 ti,charge-voltage-limit-millivolt = <4200>;
694 ti,charge-term-current-limit-milliamp = <260>;
695 ti,temp-range = <10 15 60>;
696 ti,charge-current-limit = <1024 2048 5200>;
697 ti,thermal-zone = "battery";
698 ti,temp-polling-time-sec = <5>;
699 ti,ir-comp-voltage-millivolt = <1>;
700 ti,ir-comp-resister-ohm = <70>;
701 ti,auto-recharge-time-power-off = <3600>;
702 ti,auto-recharge-time-suspend = <3600>;
705 regulator-consumer-supply = "usb_bat_chg";
706 regulator-consumer-device = "tegra-udc.0";
709 regulator-consumer-supply = "usb_bat_chg";
710 regulator-consumer-device = "tegra-otg";
716 regulator-name = "vbus_regulator";
717 ti,otg-iusb-gpio = <&gpio TEGRA_GPIO(I, 4) 0>;
720 regulator-consumer-supply = "usb_vbus";
721 regulator-consumer-device = "tegra-ehci.0";
725 regulator-consumer-supply = "usb_vbus";
726 regulator-consumer-device = "tegra-otg";
733 /* Populate fuse supply */
735 vpp_fuse-supply = <&vpp_fuse>;