2 * Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 #include <dt-bindings/mfd/max77620.h>
16 #include <dt-bindings/regulator/regulator.h>
17 #include <dt-bindings/gpio/tegra-gpio.h>
18 #include <dt-bindings/thermal/thermal.h>
22 nvidia,bit-banging-xfer-after-shutdown;
24 max77620: max77620@3c {
25 compatible = "maxim,max77620";
27 interrupts = <0 86 IRQ_TYPE_NONE>;
29 #interrupt-cells = <2>;
35 maxim,enable-clock32k-out;
37 maxim,system-pmic-power-off;
39 maxim,hot-die-threshold-temp = <110000>;
40 #thermal-sensor-cells = <0>;
42 pinctrl-names = "default";
43 pinctrl-0 = <&max77620_default>;
45 gpio-init-names = "default";
46 gpio-init-0 = <&max77620_gpio_default>;
48 max77620_default: pinmux@0 {
57 drive-push-pull = <1>;
58 maxim,fps-source = <FPS_SRC_0>;
59 maxim,fps-power-up-period = <7>;
60 maxim,fps-power-down-period = <0>;
64 pins = "gpio2", "gpio3";
66 drive-open-drain = <1>;
67 maxim,fps-source = <FPS_SRC_0>;
72 function = "32k-out1";
76 pins = "gpio5", "gpio6", "gpio7";
78 drive-push-pull = <1>;
82 max77620_gpio_default:gpio_default {
83 gpio-output-high = <2>;
87 maxim,wdt-timeout = <16>;
88 maxim,wdt-clear-time = <13>;
90 dt-override-status-odm-data = <0x00020000 0x00020000>;
98 maxim,fps-time-period = <2560>;
99 maxim,fps-enable-input = <FPS_EN_SRC_EN0>;
104 maxim,fps-time-period = <2560>;
105 maxim,fps-enable-input = <FPS_EN_SRC_EN1>;
111 maxim,fps-enable-input = <FPS_EN_SRC_EN0>;
116 maxim,backup-battery-charging-current = <100>;
117 maxim,backup-battery-charging-voltage = <3000000>;
118 maxim,backup-battery-output-resister = <100>;
122 in-ldo0-1-supply = <&max77620_sd2>;
123 in-ldo7-8-supply = <&max77620_sd2>;
126 regulator-name = "vdd_core";
127 regulator-min-microvolt = <600000>;
128 regulator-max-microvolt = <1400000>;
131 maxim,fps-source = <FPS_SRC_1>;
132 regulator-init-mode = <REGULATOR_MODE_NORMAL>;
136 regulator-name = "vddio-ddr";
139 regulator-init-mode = <REGULATOR_MODE_NORMAL>;
140 maxim,fps-source = <FPS_SRC_0>;
144 regulator-name = "vdd-pre-reg";
145 regulator-min-microvolt = <1350000>;
146 regulator-max-microvolt = <1350000>;
147 maxim,fps-source = <FPS_SRC_1>;
151 regulator-name = "vdd-1v8";
152 regulator-min-microvolt = <1800000>;
153 regulator-max-microvolt = <1800000>;
156 maxim,fps-source = <FPS_SRC_0>;
157 regulator-init-mode = <REGULATOR_MODE_NORMAL>;
160 regulator-consumer-supply = "avdd_pll_utmip";
161 regulator-consumer-device = "tegra-ehci.0";
164 regulator-consumer-supply = "avdd_pll_utmip";
165 regulator-consumer-device = "tegra-ehci.1";
168 regulator-consumer-supply = "avdd_pll_utmip";
169 regulator-consumer-device = "tegra-ehci.2";
172 regulator-consumer-supply = "vdd";
173 regulator-consumer-device = "2-004c";
176 regulator-consumer-supply = "vdd";
177 regulator-consumer-device = "0-004c";
182 max77620_ldo0: ldo0 {
183 regulator-name = "avdd-sys";
184 regulator-min-microvolt = <1200000>;
185 regulator-max-microvolt = <1200000>;
188 maxim,fps-source = <FPS_SRC_NONE>;
191 regulator-consumer-supply = "vddio_hsic";
192 regulator-consumer-device = "tegra-ehci.1";
195 regulator-consumer-supply = "vddio_hsic";
196 regulator-consumer-device = "tegra-ehci.2";
199 regulator-consumer-supply = "vdig";
204 max77620_ldo1: ldo1 {
205 regulator-name = "vdd-pex";
206 regulator-min-microvolt = <1050000>;
207 regulator-max-microvolt = <1050000>;
208 maxim,fps-source = <FPS_SRC_NONE>;
211 max77620_ldo2: ldo2 {
212 regulator-name = "vddio-sdmmc1";
213 regulator-min-microvolt = <1800000>;
214 regulator-max-microvolt = <3300000>;
215 maxim,fps-source = <FPS_SRC_NONE>;
218 max77620_ldo3: ldo3 {
219 regulator-name = "vdd-cam-hv";
220 regulator-min-microvolt = <2800000>;
221 regulator-max-microvolt = <2800000>;
222 maxim,fps-source = <FPS_SRC_NONE>;
225 regulator-consumer-supply = "vana";
230 max77620_ldo4: ldo4 {
231 regulator-name = "vdd-rtc";
232 regulator-min-microvolt = <850000>;
233 regulator-max-microvolt = <850000>;
236 maxim,fps-source = <FPS_SRC_0>;
239 max77620_ldo5: ldo5 {
240 regulator-name = "avdd-ts-hv";
241 regulator-min-microvolt = <3300000>;
242 regulator-max-microvolt = <3300000>;
243 maxim,fps-source = <FPS_SRC_NONE>;
246 max77620_ldo6: ldo6 {
247 regulator-name = "vdd-ts";
248 regulator-min-microvolt = <1800000>;
249 regulator-max-microvolt = <1800000>;
252 maxim,fps-source = <FPS_SRC_0>;
253 maxim,fps-power-up-period = <7>;
254 maxim,fps-power-down-period = <0>;
257 max77620_ldo7: ldo7 {
258 regulator-name = "vdd-gen-pll-edp";
259 regulator-min-microvolt = <1050000>;
260 regulator-max-microvolt = <1050000>;
263 maxim,fps-source = <FPS_SRC_1>;
266 max77620_ldo8: ldo8 {
267 regulator-name = "vdd-hdmi-dp";
268 regulator-min-microvolt = <1050000>;
269 regulator-max-microvolt = <1050000>;
270 maxim,fps-source = <FPS_SRC_NONE>;
276 dummy_cool_dev: dummy-cool-dev {
277 compatible = "dummy-cooling-dev";
278 #cooling-cells = <2>; /* min followed by max */
283 polling-delay = <0>; /* milliseconds */
284 polling-delay-passive = <0>; /* milliseconds */
286 thermal-sensors = <&max77620>;
288 die_temp_thresh: hot-die {
289 temperature = <120000>;
297 trip = <&die_temp_thresh>;
298 cooling-device = <&dummy_cool_dev THERMAL_NO_LIMIT
300 contribution = <100>;
301 cdev-type = "emergency-balanced";
308 compatible = "simple-bus";
309 device_type = "external-connection";
310 #address-cells = <1>;