]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/blob - arch/arm64/boot/dts/tegra210-platforms/tegra210-t18x-interposer-pmic-p3310-1000-a00-00.dtsi
gpu: nvgpu: recycle the cmdbuf instead of freeing after job done
[sojka/nv-tegra/linux-3.10.git] / arch / arm64 / boot / dts / tegra210-platforms / tegra210-t18x-interposer-pmic-p3310-1000-a00-00.dtsi
1 /*
2  * Copyright (c) 2014-2015, NVIDIA CORPORATION.  All rights reserved.
3  *
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.
8  *
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
12  * more details.
13  */
14
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>
19
20 / {
21         i2c@7000d000 {
22                 nvidia,bit-banging-xfer-after-shutdown;
23
24                 max77620: max77620@3c {
25                         compatible = "maxim,max77620";
26                         reg = <0x3c>;
27                         interrupts = <0 86 IRQ_TYPE_NONE>;
28
29                         #interrupt-cells = <2>;
30                         interrupt-controller;
31
32                         gpio-controller;
33                         #gpio-cells = <2>;
34
35                         maxim,enable-clock32k-out;
36
37                         maxim,system-pmic-power-off;
38
39                         maxim,hot-die-threshold-temp = <110000>;
40                         #thermal-sensor-cells = <0>;
41
42                         pinctrl-names = "default";
43                         pinctrl-0 = <&max77620_default>;
44
45                         gpio-init-names = "default";
46                         gpio-init-0 = <&max77620_gpio_default>;
47
48                         max77620_default: pinmux@0 {
49                                 pin_gpio0 {
50                                         pins = "gpio0";
51                                         function = "gpio";
52                                 };
53
54                                 pin_gpio1 {
55                                         pins = "gpio1";
56                                         function = "fps-out";
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>;
61                                 };
62
63                                 pin_gpio2_3 {
64                                         pins = "gpio2", "gpio3";
65                                         function = "fps-out";
66                                         drive-open-drain = <1>;
67                                         maxim,fps-source = <FPS_SRC_0>;
68                                 };
69
70                                 pin_gpio4 {
71                                         pins = "gpio4";
72                                         function = "32k-out1";
73                                 };
74
75                                 pin_gpio5_6_7 {
76                                         pins = "gpio5", "gpio6", "gpio7";
77                                         function = "gpio";
78                                         drive-push-pull = <1>;
79                                 };
80                         };
81
82                         max77620_gpio_default:gpio_default {
83                                 gpio-output-high = <2>;
84                         };
85
86                         watchdog {
87                                 maxim,wdt-timeout = <16>;
88                                 maxim,wdt-clear-time = <13>;
89                                 status = "okay";
90                                 dt-override-status-odm-data = <0x00020000 0x00020000>;
91                         };
92
93                         fps {
94                                 #address-cells = <1>;
95                                 #size-cells = <0>;
96                                 fps@0 {
97                                         reg = <0>;
98                                         maxim,fps-time-period = <2560>;
99                                         maxim,fps-enable-input = <FPS_EN_SRC_EN0>;
100                                 };
101
102                                 fps@1 {
103                                         reg = <1>;
104                                         maxim,fps-time-period = <2560>;
105                                         maxim,fps-enable-input = <FPS_EN_SRC_EN1>;
106                                         maxim,enable-sleep;
107                                 };
108
109                                 fps@2 {
110                                         reg = <2>;
111                                         maxim,fps-enable-input = <FPS_EN_SRC_EN0>;
112                                 };
113                         };
114
115                         backup-battery {
116                                 maxim,backup-battery-charging-current = <100>;
117                                 maxim,backup-battery-charging-voltage = <3000000>;
118                                 maxim,backup-battery-output-resister = <100>;
119                         };
120
121                         regulators {
122                                 in-ldo0-1-supply = <&max77620_sd2>;
123                                 in-ldo7-8-supply = <&max77620_sd2>;
124
125                                 max77620_sd0: sd0 {
126                                         regulator-name = "vdd_core";
127                                         regulator-min-microvolt = <600000>;
128                                         regulator-max-microvolt = <1400000>;
129                                         regulator-boot-on;
130                                         regulator-always-on;
131                                         maxim,fps-source = <FPS_SRC_1>;
132                                         regulator-init-mode = <REGULATOR_MODE_NORMAL>;
133                                 };
134
135                                 max77620_sd1: sd1 {
136                                         regulator-name = "vddio-ddr";
137                                         regulator-always-on;
138                                         regulator-boot-on;
139                                         regulator-init-mode = <REGULATOR_MODE_NORMAL>;
140                                         maxim,fps-source = <FPS_SRC_0>;
141                                 };
142
143                                 max77620_sd2: sd2 {
144                                         regulator-name = "vdd-pre-reg";
145                                         regulator-min-microvolt = <1350000>;
146                                         regulator-max-microvolt = <1350000>;
147                                         maxim,fps-source = <FPS_SRC_1>;
148                                 };
149
150                                 max77620_sd3: sd3 {
151                                         regulator-name = "vdd-1v8";
152                                         regulator-min-microvolt = <1800000>;
153                                         regulator-max-microvolt = <1800000>;
154                                         regulator-always-on;
155                                         regulator-boot-on;
156                                         maxim,fps-source = <FPS_SRC_0>;
157                                         regulator-init-mode = <REGULATOR_MODE_NORMAL>;
158                                         consumers {
159                                                 c7 {
160                                                         regulator-consumer-supply = "avdd_pll_utmip";
161                                                         regulator-consumer-device = "tegra-ehci.0";
162                                                 };
163                                                 c8 {
164                                                         regulator-consumer-supply = "avdd_pll_utmip";
165                                                         regulator-consumer-device = "tegra-ehci.1";
166                                                 };
167                                                 c9 {
168                                                         regulator-consumer-supply = "avdd_pll_utmip";
169                                                         regulator-consumer-device = "tegra-ehci.2";
170                                                 };
171                                                 c18 {
172                                                         regulator-consumer-supply = "vdd";
173                                                         regulator-consumer-device = "2-004c";
174                                                 };
175                                                 c19 {
176                                                         regulator-consumer-supply = "vdd";
177                                                         regulator-consumer-device = "0-004c";
178                                                 };
179                                         };
180                                 };
181
182                                 max77620_ldo0: ldo0 {
183                                         regulator-name = "avdd-sys";
184                                         regulator-min-microvolt = <1200000>;
185                                         regulator-max-microvolt = <1200000>;
186                                         regulator-always-on;
187                                         regulator-boot-on;
188                                         maxim,fps-source = <FPS_SRC_NONE>;
189                                         consumers {
190                                                 c0 {
191                                                         regulator-consumer-supply = "vddio_hsic";
192                                                         regulator-consumer-device = "tegra-ehci.1";
193                                                 };
194                                                 c1 {
195                                                         regulator-consumer-supply = "vddio_hsic";
196                                                         regulator-consumer-device = "tegra-ehci.2";
197                                                 };
198                                                 c2 {
199                                                         regulator-consumer-supply = "vdig";
200                                                 };
201                                         };
202                                 };
203
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>;
209                                 };
210
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>;
216                                 };
217
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>;
223                                         consumers {
224                                                 c0 {
225                                                         regulator-consumer-supply = "vana";
226                                                 };
227                                         };
228                                 };
229
230                                 max77620_ldo4: ldo4 {
231                                         regulator-name = "vdd-rtc";
232                                         regulator-min-microvolt = <850000>;
233                                         regulator-max-microvolt = <850000>;
234                                         regulator-always-on;
235                                         regulator-boot-on;
236                                         maxim,fps-source = <FPS_SRC_0>;
237                                 };
238
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>;
244                                 };
245
246                                 max77620_ldo6: ldo6 {
247                                         regulator-name = "vdd-ts";
248                                         regulator-min-microvolt = <1800000>;
249                                         regulator-max-microvolt = <1800000>;
250                                         regulator-always-on;
251                                         regulator-boot-on;
252                                         maxim,fps-source = <FPS_SRC_0>;
253                                         maxim,fps-power-up-period = <7>;
254                                         maxim,fps-power-down-period = <0>;
255                                 };
256
257                                 max77620_ldo7: ldo7 {
258                                         regulator-name = "vdd-gen-pll-edp";
259                                         regulator-min-microvolt = <1050000>;
260                                         regulator-max-microvolt = <1050000>;
261                                         regulator-always-on;
262                                         regulator-boot-on;
263                                         maxim,fps-source = <FPS_SRC_1>;
264                                 };
265
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>;
271                                 };
272                         };
273                 };
274         };
275
276         dummy_cool_dev: dummy-cool-dev {
277                 compatible = "dummy-cooling-dev";
278                 #cooling-cells = <2>; /* min followed by max */
279         };
280
281         thermal-zones {
282                 PMIC-Die {
283                         polling-delay = <0>; /* milliseconds */
284                         polling-delay-passive = <0>; /* milliseconds */
285
286                         thermal-sensors = <&max77620>;
287                         trips {
288                                 die_temp_thresh: hot-die {
289                                         temperature = <120000>;
290                                         type = "active";
291                                         hysteresis = <0>;
292                                 };
293                         };
294
295                         cooling-maps {
296                                 map0 {
297                                         trip = <&die_temp_thresh>;
298                                         cooling-device = <&dummy_cool_dev THERMAL_NO_LIMIT
299                                                                 THERMAL_NO_LIMIT>;
300                                         contribution = <100>;
301                                         cdev-type = "emergency-balanced";
302                                 };
303                         };
304                 };
305         };
306
307         extcon {
308                 compatible = "simple-bus";
309                 device_type = "external-connection";
310                 #address-cells = <1>;
311                 #size-cells = <0>;
312         };
313 };