]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/blob - arch/arm64/boot/dts/tegra210-jetson-cv-base-p2597-2180-a00.dts
ARM64: dtsi: Enable ov5693 sensor on Jetson-CV
[sojka/nv-tegra/linux-3.10.git] / arch / arm64 / boot / dts / tegra210-jetson-cv-base-p2597-2180-a00.dts
1 /*
2  * arch/arm64/boot/dts/tegra210-jetson-cv-base-p2597-2180-a00.dts
3  *
4  * Copyright (c) 2015, NVIDIA CORPORATION.  All rights reserved.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; version 2 of the License.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13  * more details.
14  *
15  */
16
17 /dts-v1/;
18
19 /memreserve/ 0x80000000 0x00020000;
20
21 #include "tegra210-common.dtsi"
22 #include "tegra210-platforms/tegra210-audio.dtsi"
23 #include "tegra210-platforms/tegra210-jetson-cv-power-tree-p2597-2180-a00.dtsi"
24 #include "tegra210-platforms/tegra210-jetson-cv-pinmux-p2597-2180-a00.dtsi"
25 #include "tegra210-platforms/tegra210-jetson-cv-sdmmc-drv-p2597-2180-a00.dtsi"
26 #include "tegra210-platforms/tegra210-jetson-cv-prods.dtsi"
27 #include "tegra210-platforms/tegra210-comms-p2530-0930.dtsi"
28 #include "tegra210-platforms/tegra210-jetson-cv-camera-e3326-a00.dtsi"
29 #include "tegra210-platforms/tegra210-pwm-fan-p2530-0930.dtsi"
30 #include "panel-a-wuxga-8-0.dtsi"
31 #include "panel-s-edp-uhdtv-15-6.dtsi"
32 #include "tegra210-platforms/tegra210-ers-hdmi-e2190-1100-a00.dtsi"
33 #include "tegra210-platforms/tegra210-sdhci.dtsi"
34 #include "tegra210-platforms/tegra210-p2180-common.dtsi"
35 #include "tegra210-platforms/tegra210-thermal-fan-est-p2530-0930.dtsi"
36 #include "tegra210-platforms/tegra210-jetson-cv-keys-p2597-2180-a00.dtsi"
37 #include <dt-bindings/iio/meter/ina3221x.h>
38 #include "tegra210-platforms/tegra210-foster-e-extcon-p2530-0930-e01.dtsi"
39 #include "tegra210-platforms/tegra210-jetson-cv-emc-p2180-1000-a00.dtsi"
40 #include "tegra210-platforms/tegra210-edp.dtsi"
41 #include "tegra210-platforms/tegra210-sysedp.dtsi"
42 #include "tegra210-platforms/tegra210-thermal-nct72-p2530.dtsi"
43 #include "tegra210-platforms/tegra210-thermal-Tboard-Tdiode.dtsi"
44 #include "tegra210-platforms/tegra210-jetson-cv-powermon-p2180-1000-a00.dtsi"
45
46
47 / {
48         model = "jetson_cv";
49         compatible = "nvidia,jetson-cv", "nvidia,tegra210";
50         nvidia,dtsfilename = __FILE__;
51
52         nvidia,boardids = "2597:2180:A0";
53         nvidia,proc-boardid = "2597:2180:A0";
54         nvidia,pmu-boardid = "2597:2180:A0";
55         #address-cells = <2>;
56         #size-cells = <2>;
57
58         chosen {
59                 board-has-eeprom;
60         };
61
62         pmc@7000e400 {
63                 nvidia,invert-interrupt;
64         };
65
66         memory@80000000 {
67                 device_type = "memory";
68                 reg = < 0x0 0x80000000 0x0 0x80000000 >;
69         };
70
71         sdhci@700b0600 { /* SDMMC4 for EMMC */
72                 uhs-mask = <0x0>;
73                 built-in;
74                 power-off-rail;
75                 status = "okay";
76         };
77
78         sdhci@700b0400 { /* SDMMC3 for EMMC */
79                 tap-delay = <1>;
80                 trim-delay = <3>;
81                 nvidia,is-ddr-tap-delay;
82                 nvidia,ddr-tap-delay = <0>;
83                 mmc-ocr-mask = <0>;
84                 power-off-rail;
85                 max-clk-limit = <200000000>;
86                 ddr-clk-limit = <48000000>;
87                 uhs-mask = <0x60>;
88                 bus-width = <4>;
89                 built-in;
90                 nvidia,is-emmc;
91                 calib-3v3-offsets = <0x007D>;
92                 calib-1v8-offsets = <0x7B7B>;
93                 compad-vref-3v3 = <0x7>;
94                 compad-vref-1v8 = <0x7>;
95                 pll_source = "pll_p";
96                 nvidia,en-io-trim-volt;
97                 nvidia,en-periodic-calib;
98                 status = "disabled";
99         };
100
101         sdhci@700b0200 { /* SDMMC2 for Wifi */
102                 uhs-mask = <0x8>;
103                 power-off-rail;
104                 status = "okay";
105         };
106
107         sdhci@700b0000 { /* SDMMC1 for SD card */
108                 uhs-mask = <0xc>;
109                 power-off-rail;
110                 nvidia,update-pinctrl-settings;
111                 pinctrl-names = "sdmmc_schmitt_enable", "sdmmc_schmitt_disable", "sdmmc_clk_schmitt_enable", "sdmmc_clk_schmitt_disable", "sdmmc_drv_code", "sdmmc_default_drv_code";
112                 pinctrl-0 = <&sdmmc1_schmitt_enable_state>;
113                 pinctrl-1 = <&sdmmc1_schmitt_disable_state>;
114                 pinctrl-2 = <&sdmmc1_clk_schmitt_enable_state>;
115                 pinctrl-3 = <&sdmmc1_clk_schmitt_disable_state>;
116                 pinctrl-4 = <&sdmmc1_drv_code_1_8V>;
117                 pinctrl-5 = <&sdmmc1_default_drv_code_3_3V>;
118                 nvidia,sd-device;
119                 wp-gpios = <&gpio TEGRA_GPIO_PZ4 0>;
120                 nvidia,sdmmc-pin-gpios = <
121                                 &gpio TEGRA_GPIO(M, 0) 0
122                                 &gpio TEGRA_GPIO(M, 1) 0
123                                 &gpio TEGRA_GPIO(M, 2) 0
124                                 &gpio TEGRA_GPIO(M, 3) 0
125                                 &gpio TEGRA_GPIO(M, 4) 0
126                                 &gpio TEGRA_GPIO(M, 5) 0
127                                 >;
128                 status = "okay";
129         };
130
131         adma@702e2000  {
132                 interrupts = <0 24 0x04
133                               0 25 0x04
134                               0 26 0x04
135                               0 27 0x04
136                               0 28 0x04
137                               0 29 0x04
138                               0 30 0x04
139                               0 31 0x04
140                               0 32 0x04
141                               0 33 0x04>;
142                 dma-channels = <10>;
143                 status = "okay";
144         };
145
146         ahub {
147                 i2s@702d1000 {
148                         pinctrl-names = "dap_active", "dap_inactive";
149                         pinctrl-0 = <>;
150                         pinctrl-1 = <>;
151                         regulator-supplies = "vdd-1v8-audio-hv", "vdd-1v8-audio-hv-bias";
152                         vdd-1v8-audio-hv-supply = <&max77620_sd3>;
153                         vdd-1v8-audio-hv-bias-supply = <&max77620_sd3>;
154                 };
155
156                 i2s@702d1300 {
157                         pinctrl-names = "dap_active", "dap_inactive";
158                         pinctrl-0 = <>;
159                         pinctrl-1 = <>;
160                         regulator-supplies = "vddio-dmic";
161                         vddio-dmic-supply = <&max77620_sd3>;
162                 };
163
164                 i2s@702d1100 {
165                         pinctrl-names = "dap_active", "dap_inactive";
166                         pinctrl-0 = <>;
167                         pinctrl-1 = <>;
168                         regulator-supplies = "vdd-1v8-spi-hv", "vdd-1v8-spi-hv-bias";
169                         vdd-1v8-spi-hv-supply = <&max77620_sd3>;
170                         vdd-1v8-spi-hv-bias-supply = <&max77620_sd3>;
171                         fsync-width = <0>;
172                 };
173         };
174
175         sata@70020000 {
176                 compatible = "nvidia,tegra210-ahci-sata";
177                 nvidia,enable-sata-port;
178                 status = "okay";
179         };
180
181         backlight {
182                 compatible = "pwm-backlight";
183                 status = "okay";
184                 panel-a-wuxga-8-0-bl {
185                         pwms = <&tegra_pwm 0 40161>;
186                 };
187                 panel-s-edp-uhdtv-15-6-bl {
188                         pwms = <&tegra_pwm 0 1000000>;
189                 };
190         };
191
192         pcie-controller {
193                 nvidia,wake-gpio = <&gpio TEGRA_GPIO(A, 2) 0>;
194                 nvidia,lane-map = <0x14>;
195                 dvdd-pex-pll-supply = <&max77620_ldo1>;
196                 l0-dvddio-pex-supply = <&max77620_ldo1>;
197                 l1-dvddio-pex-supply = <&max77620_ldo1>;
198                 l2-dvddio-pex-supply = <&max77620_ldo1>;
199                 l3-dvddio-pex-supply = <&max77620_ldo1>;
200                 l4-dvddio-pex-supply = <&max77620_ldo1>;
201                 l5-dvddio-pex-supply = <&max77620_ldo1>;
202                 l6-dvddio-pex-supply = <&max77620_ldo1>;
203                 hvdd-pex-pll-e-supply = <&max77620_sd3>;
204                 l0-hvddio-pex-supply = <&max77620_sd3>;
205                 l1-hvddio-pex-supply = <&max77620_sd3>;
206                 l2-hvddio-pex-supply = <&max77620_sd3>;
207                 l3-hvddio-pex-supply = <&max77620_sd3>;
208                 l4-hvddio-pex-supply = <&max77620_sd3>;
209                 l5-hvddio-pex-supply = <&max77620_sd3>;
210                 l6-hvddio-pex-supply = <&max77620_sd3>;
211                 vddio-pex-ctl-supply = <&max77620_sd3>;
212                 status = "okay";
213
214                 pci@1,0 {
215                         status = "okay";
216                 };
217
218                 pci@2,0 {
219                         status = "okay";
220                 };
221         };
222
223         host1x {
224                 /* tegradc.0 */
225                 dc@54200000 {
226                         status = "okay";
227                         nvidia,dc-flags = <TEGRA_DC_FLAG_ENABLED>;
228                         nvidia,emc-clk-rate = <300000000>;
229                         nvidia,fb-bpp = <32>; /* bits per pixel */
230                         nvidia,fb-flags = <TEGRA_FB_FLIP_ON_PROBE>;
231                 };
232
233                 /* tegradc.1 */
234                 dc@54240000 {
235                         status = "okay";
236                         nvidia,dc-flags = <TEGRA_DC_FLAG_ENABLED>;
237                         nvidia,emc-clk-rate = <300000000>;
238                         nvidia,cmu-enable = <1>;
239                         nvidia,fb-bpp = <32>; /* bits per pixel */
240                         nvidia,fb-flags = <TEGRA_FB_FLIP_ON_PROBE>;
241                 };
242
243                 dsi {
244                         nvidia,dsi-controller-vs = <DSI_VS_1>;
245                         status = "okay";
246                         panel-a-wuxga-8-0 {
247                                 status = "okay";
248                                 nvidia,dsi-dpd-pads = <DSIC_DPD_EN DSID_DPD_EN>;
249                                 nvidia,panel-rst-gpio = <&gpio TEGRA_GPIO(V, 2) 0>; /* PV2 */
250                                 nvidia,panel-bl-pwm-gpio = <&gpio TEGRA_GPIO(V, 0) 0>; /* PV0 */
251                                 disp-default-out {
252                                         nvidia,out-flags = <TEGRA_DC_OUT_CONTINUOUS_MODE>;
253                                 };
254                         };
255                 };
256
257                 sor {
258                         nvidia,hpd-gpio = <&gpio TEGRA_GPIO(CC, 6) 0>; /* PCC6 */
259                         panel-s-edp-uhdtv-15-6 {
260                                 nvidia,panel-bl-pwm-gpio = <&gpio TEGRA_GPIO(V, 0) 0>; /* PV0 */
261                                 nvidia,panel-rst-gpio = <&gpio TEGRA_GPIO(V, 2) 0>; /* PV2 */
262                         };
263                 };
264         };
265
266         serial@70006040 {
267                 status = "okay";
268         };
269
270         spi@7000da00 {
271                 status = "ok";
272         };
273
274         spi@7000d400 {
275                 status = "okay";
276         };
277
278         sound {
279                 compatible = "nvidia,tegra-audio-t210ref-mobile-rt565x";
280                 nvidia,model = "tegra-snd-t210ref-mobile-rt565x";
281                 nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(E, 6) GPIO_ACTIVE_HIGH>;
282
283                 /* backup link when audio codec not connected */
284                 nvidia,dummy-codec-dai = <&spdif_dit3>;
285                 nvidia,dummy-codec-dai-name = "dit-hifi";
286
287                 nvidia,num-codec-link = <4>;
288
289                 nvidia,audio-routing =
290                         "x Headphone Jack",     "x HPO L Playback",
291                         "x Headphone Jack",     "x HPO R Playback",
292                         "x MICBIAS1",           "x Mic Jack",
293                         "x IN1P",               "x Mic Jack",
294                         "x Mic Det Power",      "x Mic Jack",
295                         "x Int Spk",            "x SPO Playback",
296                         "x DMIC L1",            "x Int Mic",
297                         "x DMIC L2",            "x Int Mic",
298                         "x DMIC R1",            "x Int Mic",
299                         "x DMIC R2",            "x Int Mic",
300                         "y Headphone",          "y OUT",
301                         "y IN",                 "y Mic",
302                         "l IN",                 "l OUT";
303
304                 nvidia,xbar = <&tegra_axbar>;
305
306                 nvidia,dai-link-1 {
307                         link-name = "rt565x-playback";
308                         cpu-dai = <&tegra_i2s1>;
309                         codec-dai = <&rt5659>;
310                         cpu-dai-name = "I2S1";
311                         codec-dai-name = "rt5659-aif1";
312                         format = "i2s";
313                         bitclock-slave;
314                         frame-slave;
315                         bitclock-noninversion;
316                         frame-noninversion;
317                         bit-format = "s16_le";
318                         bclk_ratio = <0>;
319                         srate = <48000>;
320                         num-channel = <2>;
321                         name-prefix = "x";
322                 };
323
324                 nvidia,dai-link-2 {
325                         link-name = "spdif-dit-1";
326                         cpu-dai = <&tegra_i2s2>;
327                         codec-dai = <&spdif_dit1>;
328                         cpu-dai-name = "I2S2";
329                         codec-dai-name = "dit-hifi";
330                         format = "dsp_a";
331                         bitclock-slave;
332                         frame-slave;
333                         bitclock-inversion;
334                         frame-inversion;
335                         bit-format = "s16_le";
336                         bclk_ratio = <4>;
337                         srate = <8000>;
338                         num-channel = <1>;
339                         name-prefix = "y";
340                 };
341
342                 nvidia,dai-link-3 {
343                         link-name = "spdif-dit-2";
344                         cpu-dai = <&tegra_dmic3>;
345                         codec-dai = <&spdif_dit2>;
346                         cpu-dai-name = "DMIC3";
347                         codec-dai-name = "dit-hifi";
348                         format = "i2s";
349                         bit-format = "s16_le";
350                         srate = <48000>;
351                         num-channel = <2>;
352                         name-prefix = "z";
353                 };
354
355                 nvidia,dai-link-4 {
356                         link-name = "spdif-dit-3";
357                         cpu-dai = <&tegra_i2s3>;
358                         codec-dai = <&spdif_dit3>;
359                         cpu-dai-name = "I2S3";
360                         codec-dai-name = "dit-hifi";
361                         format = "i2s";
362                         bitclock-slave;
363                         frame-slave;
364                         bitclock-noninversion;
365                         frame-noninversion;
366                         bit-format = "s16_le";
367                         bclk_ratio = <0>;
368                         srate = <48000>;
369                         num-channel = <2>;
370                         name-prefix = "l";
371                 };
372         };
373
374         adsp_audio {
375                 compr-ops = <1>;
376                 num-plugin = <5>;
377                 plugin-info-1 {
378                         plugin-name = "mp3-dec1";
379                         firmware-name = "nvmp3dec.elf";
380                         widget-name = "MP3-DEC1";
381                 };
382                 plugin-info-2 {
383                         plugin-name = "spkprot";
384                         firmware-name = "nvspkprot.elf";
385                         widget-name = "SPKPROT-SW";
386                 };
387                 plugin-info-3 {
388                         plugin-name = "src";
389                         firmware-name = "nvsrc.elf";
390                         widget-name = "SRC";
391                 };
392                 plugin-info-4 {
393                         plugin-name = "aac-dec1";
394                         firmware-name = "nvaacdec.elf";
395                         widget-name = "AAC-DEC1";
396                 };
397                 plugin-info-5 {
398                         plugin-name = "aec";
399                         firmware-name = "libnvaecfx.elf";
400                         widget-name = "AEC";
401                         param-type = <2>; /* SNDRV_CTL_ELEM_TYPE_INTEGER */
402                 };
403         };
404
405         extcon {
406                 extcon@0 {
407                         status = "disabled";
408                 };
409         };
410
411         udc@7d000000 {
412                 nvidia,port-otg;
413                 nvidia,charging-supported;
414                 #extcon-cells = <1>;
415                 status = "okay";
416         };
417
418         otg@7d000000 {
419                 #extcon-cells = <1>;
420                 status = "okay";
421         };
422
423         xusb_pad_ctl: padctl@0 { /* Put common control config here */
424                 nvidia,ss_portmap = <0x21>;
425                 nvidia,lane_owner = <0xff56>; /* Use 0xF to disable lane assign */
426                 status = "okay";
427         };
428
429         xusb@70090000 {
430                 /* nvidia,uses_external_pmic;
431                 /* nvidia,gpio_controls_muxed_ss_lanes; */
432                 nvidia,gpio_ss1_sata = <0>;
433                 nvidia,ulpicap = <0>; /* No ulpi support. can we remove */
434                 nvidia,portmap = <0x0e03>;
435                 nvidia,common_padctl = <&xusb_pad_ctl>;
436                 status = "okay";
437         };
438
439         xudc@700d0000 {
440                 nvidia,common_padctl = <&xusb_pad_ctl>;
441                 nvidia,portmap = <0x0108>;
442                 #extcon-cells = <1>;
443                 status = "disabled";
444         };
445
446         xotg {
447                 #extcon-cells = <1>;
448                 nvidia,common_padctl = <&xusb_pad_ctl>;
449                 status = "disabled";
450         };
451
452         gpu-dvfs-rework {
453                 status = "ok";
454         };
455
456         thermal-fan-est {
457                 compatible = "thermal-fan-est";
458                 active_trip_temps = <0 51000 61000 71000 82000
459                                 140000 150000 160000 170000 180000>;
460                 active_hysteresis = <0 15000 9000 9000 10000
461                                 0 0 0 0 0>;
462         };
463
464         pwm-fan {
465                 compatible = "pwm-fan";
466                 shared_data = <&pwm_fan_shared_data>;
467                 active_pwm = <0 80 120 160 255 255 255 255 255 255>;
468         };
469
470         pwm_fan_shared_data: pfsd {
471                 tach_gpio =  <TEGRA_GPIO(K, 7)>; /* TEGRA_GPIO_PK7 */
472         };
473
474         i2c@7000c000 {
475                 rt5659: rt5659.0-001b@1b {
476                         compatible = "realtek,rt5659";
477                         reg = <0x1b>;
478                 };
479         };
480
481         i2c@7000c400 {
482                 nvidia,clock-always-on;
483
484                 lp8557-backlight-a-wuxga-8-0@2c {
485                         status = "ok";
486                         disable-on-kernel-charging;
487                         compatible = "ti,lp8557";
488                         reg = <0x2c>;
489
490                         bl-name = "pwm-backlight"; /* Match liblights naming expectations */
491                         init-brt = /bits/ 8 <0xFF>; /* Max brightness */
492                         dev-ctrl = /bits/ 8 <0x80>; /* PWM, enable standby mode */
493                         pwm-period = <29334>;
494
495                         pwm-names = "lp8557";
496                         pwms = <&tegra_pwm 0 29334>;
497
498                         bl-measured = < 0 1 2 3 4 5 6 7
499                                         8 9 10 11 12 13 14 15
500                                         16 17 18 19 20 21 22 23
501                                         24 25 26 27 28 29 30 31
502                                         32 33 34 35 36 37 38 39
503                                         40 41 42 43 44 45 46 47
504                                         48 49 50 51 52 53 54 55
505                                         56 57 58 59 60 61 62 63
506                                         64 65 66 67 68 69 70 71
507                                         72 73 74 75 76 77 78 79
508                                         80 81 82 83 84 85 86 87
509                                         88 89 90 91 92 93 94 95
510                                         96 97 98 99 100 101 102 103
511                                         104 105 106 107 108 109 110 111
512                                         112 113 114 115 116 117 118 119
513                                         120 121 122 123 124 125 126 127
514                                         128 129 130 131 132 133 134 135
515                                         136 137 138 139 140 141 142 143
516                                         144 145 146 147 148 149 150 151
517                                         152 153 154 155 156 157 158 159
518                                         160 161 162 163 164 165 166 167
519                                         168 169 170 171 172 173 174 175
520                                         176 177 178 179 180 181 182 183
521                                         184 185 186 187 188 189 190 191
522                                         192 193 194 195 196 197 198 199
523                                         200 201 202 203 204 205 206 207
524                                         208 209 210 211 212 213 214 215
525                                         216 217 218 219 220 221 222 223
526                                         224 225 226 227 228 229 230 231
527                                         232 233 234 235 236 237 238 239
528                                         240 241 242 243 244 245 246 247
529                                         248 249 250 251 252 253 254 255 >;
530
531                         /* 20 mA max current */
532                         rom_11h {
533                                 rom-addr = /bits/ 8 <0x11>;
534                                 rom-val = /bits/ 8 <0x05>;
535                         };
536
537                         /* 3 LED string */
538                         rom_14h {
539                                 rom-addr = /bits/ 8 <0x14>;
540                                 rom-val = /bits/ 8 <0x87>;
541                         };
542
543                         /*Boost freq 1MHZ*/
544                         rom_13h {
545                                 rom-addr = /bits/ 8 <0x13>;
546                                 rom-val = /bits/ 8 <0x01>;
547                         };
548                 };
549
550                 tca9539_74: tca9539@74 {
551                         compatible = "ti,tca9539";
552                         gpio-controller;
553                         #gpio-cells = <2>;
554                         reg = <0x74>;
555                         interrupt-parent = <&gpio>;
556                         interrupts = <TEGRA_GPIO(L, 1) 0x0>;
557                         #interrupt-cells = <2>;
558                         interrupt-controller;
559                 };
560
561                 tca9539_77: tca9539@77 {
562                         compatible = "ti,tca9539";
563                         gpio-controller;
564                         #gpio-cells = <2>;
565                         reg = <0x77>;
566                         interrupt-parent = <&gpio>;
567                         interrupts = <TEGRA_GPIO(Z, 2) 0x0>;
568                         #interrupt-cells = <2>;
569                         interrupt-controller;
570                 };
571         };
572
573         i2c@546c0000 {
574                 bus-pullup-supply = <&max77620_sd3>;
575                 avdd_dsi_csi-supply = <&max77620_sd3>;
576         };
577
578         sysedp {
579                 compatible = "nvidia,tegra124-sysedp";
580                 nvidia,margin = <0>;
581                 nvidia,min_budget = <0>;
582                 nvidia,initial_budget = <40000>;
583         };
584
585         sysedp_reactive_capping@1 {
586                 compatible = "nvidia,tegra124-sysedp_reactive_capping";
587                 nvidia,max_capping_mw = <0>;
588                 nvidia,step_alarm_mw = <0>;
589                 nvidia,step_relax_mw = <0>;
590                 nvidia,relax_ms = <0>;
591                 nvidia,threshold_warning = "WARNING - SYSTEM Voltage Droop detected, please refer to the Jetson Power management application note";
592                 interrupt-parent = <&soctherm>;
593                 interrupts = <1 0x2002>;
594                 sysedpc {
595                         nvidia,name = "voltmon_oc1";
596                 };
597         };
598
599         sysedp_reactive_capping@3 {
600                 compatible = "nvidia,tegra124-sysedp_reactive_capping";
601                 nvidia,max_capping_mw = <0>;
602                 nvidia,step_alarm_mw = <0>;
603                 nvidia,step_relax_mw = <0>;
604                 nvidia,relax_ms = <0>;
605                 nvidia,threshold_warning = "WARNING - Battery Over Current Limit hit, please refer to the Jetson Power management application note";
606                 interrupt-parent = <&soctherm>;
607                 interrupts = <3 0x2002>;
608                 sysedpc {
609                         nvidia,name = "batmon_oc3";
610                 };
611         };
612
613         sysedp-dynamic-capping {
614                 compatible = "nvidia,tegra124-sysedp-dynamic-capping";
615                 nvidia,throttle_depth = <75>;
616                 nvidia,cap_method = <1>;
617         };
618
619         bcmdhd_wlan {
620                 edp-consumer-name = "primary-wifi";
621         };
622
623         cpu_edp {
624                 status = "okay";
625                 nvidia,edp_limit = <25000>;
626         };
627
628         gpu_edp {
629                 status = "okay";
630                 nvidia,edp_limit = <25000>;
631         };
632
633         soctherm@0x700E2000 {
634                 throttle@oc1 {
635                         device_type = "throttlectl";
636                         oc-alarm-id = <1>;
637                         priority = <50>;
638                         mode = "brief";
639                         intr;
640                         active_low;
641                         count_threshold = <100>;
642                         filter = <5100000>;
643                         throttle_dev = <&{/soctherm@0x700E2000/throttle_dev@cpu_medium}
644                                         &{/soctherm@0x700E2000/throttle_dev@gpu_medium}>;
645                 };
646                 throttle@oc3 {
647                         device_type = "throttlectl";
648                         oc-alarm-id = <3>;
649                         priority = <40>;
650                         mode = "brief";
651                         intr;
652                         active_low;
653                         count_threshold = <5>;
654                         filter = <5100000>;
655                         throttle_dev = <&{/soctherm@0x700E2000/throttle_dev@cpu_none}
656                                         &{/soctherm@0x700E2000/throttle_dev@gpu_none}>;
657                 };
658                 throttle_dev@cpu_none {
659                         dividend = <255>;
660                         divisor = <255>;
661                         duration = <0>;
662                         step = <0>;
663                 };
664                 throttle_dev@gpu_none {
665                         level = "no_throttling";
666                 };
667                 throttle_dev@cpu_medium {
668                         dividend = <63>;
669                         divisor = <255>;
670                         duration = <0>;
671                         step = <0>;
672                 };
673                 throttle_dev@gpu_medium {
674                         level = "medium_throttling";
675                 };
676         };
677
678         thermal-zones {
679                 CPU-therm {
680                         thermal-zone-params {
681                                 governor-name = "pid_thermal_gov";
682                                 max_err_temp = <9000>;
683                                 max_err_gain = <1000>;
684                                 gain_p = <1000>;
685                                 gain_d = <0>;
686                                 up_compensation = <20>;
687                                 down_compensation = <20>;
688                         };
689                         trips {
690                                 cpu_critical {
691                                         temperature = <102500>;
692                                         hysteresis = <0>;
693                                         type = "critical";
694                                         writable;
695                                 };
696                                 cpu_heavy {
697                                         temperature = <98500>;
698                                         hysteresis = <0>;
699                                         type = "hot";
700                                         writable;
701                                 };
702                                 cpu_throttle {
703                                         temperature = <89000>;
704                                         hysteresis = <0>;
705                                         type = "passive";
706                                         writable;
707                                 };
708                         };
709                         cooling-maps {
710                                 map0 {
711                                         trip = <&{/thermal-zones/CPU-therm/trips/cpu_critical}>;
712                                         cdev-type = "tegra-shutdown";
713                                         cooling-device = <&{/soctherm@0x700E2000/throttle@critical}
714                                                 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
715                                 };
716                                 map1 {
717                                         trip = <&{/thermal-zones/CPU-therm/trips/cpu_heavy}>;
718                                         cdev-type = "tegra-heavy";
719                                         cooling-device = <&{/soctherm@0x700E2000/throttle@heavy}
720                                                 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
721                                 };
722                                 map2 {
723                                         trip = <&{/thermal-zones/CPU-therm/trips/cpu_throttle}>;
724                                         cdev-type = "cpu-balanced";
725                                         cooling-device = <&{/bthrot_cdev/cpu_balanced}
726                                                 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
727                                 };
728                         };
729                 };
730                 GPU-therm {
731                         thermal-zone-params {
732                                 governor-name = "pid_thermal_gov";
733                                 max_err_temp = <9000>;
734                                 max_err_gain = <1000>;
735                                 gain_p = <1000>;
736                                 gain_d = <0>;
737                                 up_compensation = <20>;
738                                 down_compensation = <20>;
739                         };
740                         trips {
741                                 gpu_critical {
742                                         temperature = <103000>;
743                                         hysteresis = <0>;
744                                         type = "critical";
745                                         writable;
746                                 };
747                                 gpu_heavy {
748                                         temperature = <100000>;
749                                         hysteresis = <0>;
750                                         type = "hot";
751                                         writable;
752                                 };
753                                 gpu_throttle {
754                                         temperature = <90500>;
755                                         hysteresis = <0>;
756                                         type = "passive";
757                                         writable;
758                                 };
759                         };
760                         cooling-maps {
761                                 map0 {
762                                         trip = <&{/thermal-zones/GPU-therm/trips/gpu_critical}>;
763                                         cdev-type = "tegra-shutdown";
764                                         cooling-device = <&{/soctherm@0x700E2000/throttle@critical}
765                                                 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
766                                 };
767                                 map1 {
768                                         trip = <&{/thermal-zones/GPU-therm/trips/gpu_heavy}>;
769                                         cdev-type = "tegra-heavy";
770                                         cooling-device = <&{/soctherm@0x700E2000/throttle@heavy}
771                                                 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
772                                 };
773                                 map2 {
774                                         trip = <&{/thermal-zones/GPU-therm/trips/gpu_throttle}>;
775                                         cdev-type = "gpu-balanced";
776                                         cooling-device = <&{/bthrot_cdev/gpu_balanced}
777                                                 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
778                                 };
779                         };
780                 };
781                 LCPU-therm {
782                         thermal-zone-params {
783                                 governor-name = "pid_thermal_gov";
784                                 max_err_temp = <9000>;
785                                 max_err_gain = <1000>;
786                                 gain_p = <1000>;
787                                 gain_d = <0>;
788                                 up_compensation = <20>;
789                                 down_compensation = <20>;
790                         };
791                         trips {
792                                 lcpu_critical {
793                                         temperature = <103000>; /* must be same as GPU's critical temp */
794                                         hysteresis = <0>;
795                                         type = "critical";
796                                         writable;
797                                 };
798                                 lcpu_heavy {
799                                         temperature = <101500>;
800                                         hysteresis = <0>;
801                                         type = "hot";
802                                         writable;
803                                 };
804                                 lcpu_throttle {
805                                         temperature = <92000>;
806                                         hysteresis = <0>;
807                                         type = "passive";
808                                         writable;
809                                 };
810                         };
811                         cooling-maps {
812                                 map0 {
813                                         trip = <&{/thermal-zones/LCPU-therm/trips/lcpu_critical}>;
814                                         cdev-type = "tegra-shutdown";
815                                         cooling-device = <&{/soctherm@0x700E2000/throttle@critical}
816                                                 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
817                                 };
818                                 map1 {
819                                         trip = <&{/thermal-zones/LCPU-therm/trips/lcpu_heavy}>;
820                                         cdev-type = "tegra-heavy";
821                                         cooling-device = <&{/soctherm@0x700E2000/throttle@heavy}
822                                                 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
823                                 };
824                                 map2 {
825                                         trip = <&{/thermal-zones/LCPU-therm/trips/lcpu_throttle}>;
826                                         cdev-type = "cpu-balanced";
827                                         cooling-device = <&{/bthrot_cdev/cpu_balanced}
828                                                 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
829                                 };
830                         };
831                 };
832                 PLL-therm {
833                         thermal-zone-params {
834                                 governor-name = "pid_thermal_gov";
835                                 max_err_temp = <9000>;
836                                 max_err_gain = <1000>;
837                                 gain_p = <1000>;
838                                 gain_d = <0>;
839                                 up_compensation = <20>;
840                                 down_compensation = <20>;
841                         };
842                 };
843
844                 Tboard_tegra {
845                         status = "okay";
846                 };
847                 Tdiode_tegra {
848                         status = "okay";
849                 };
850                 AO-therm {
851                         status = "okay";
852                 };
853         };
854
855         bcmdhd_wlan {
856                 country_code_map {
857                         CC1 {
858                                 iso_abbrev = "XV";
859                                 custom_locale = "XV";
860                                 custom_locale_rev = <997>;
861                         };
862                         CC2 {
863                                 iso_abbrev = "US";
864                                 custom_locale = "Q2";
865                                 custom_locale_rev = <998>;
866                         };
867                         CC3 {
868                                 iso_abbrev = "CA";
869                                 custom_locale = "Q2";
870                                 custom_locale_rev = <998>;
871                         };
872                         CC4 {
873                                 iso_abbrev = "AT";
874                                 custom_locale = "E0";
875                                 custom_locale_rev = <994>;
876                         };
877                         CC5 {
878                                 iso_abbrev = "BE";
879                                 custom_locale = "E0";
880                                 custom_locale_rev = <994>;
881                         };
882                         CC6 {
883                                 iso_abbrev = "BG";
884                                 custom_locale = "E0";
885                                 custom_locale_rev = <994>;
886                         };
887                         CC7 {
888                                 iso_abbrev = "HR";
889                                 custom_locale = "E0";
890                                 custom_locale_rev = <994>;
891                         };
892                         CC8 {
893                                 iso_abbrev = "CZ";
894                                 custom_locale = "E0";
895                                 custom_locale_rev = <994>;
896                         };
897                         CC9 {
898                                 iso_abbrev = "DK";
899                                 custom_locale = "E0";
900                                 custom_locale_rev = <994>;
901                         };
902                         CC10 {
903                                 iso_abbrev = "FR";
904                                 custom_locale = "E0";
905                                 custom_locale_rev = <994>;
906                         };
907                         CC11 {
908                                 iso_abbrev = "DE";
909                                 custom_locale = "E0";
910                                 custom_locale_rev = <994>;
911                         };
912                         CC12 {
913                                 iso_abbrev = "GR";
914                                 custom_locale = "E0";
915                                 custom_locale_rev = <994>;
916                         };
917                         CC13 {
918                                 iso_abbrev = "HU";
919                                 custom_locale = "E0";
920                                 custom_locale_rev = <994>;
921                         };
922                         CC14 {
923                                 iso_abbrev = "IT";
924                                 custom_locale = "E0";
925                                 custom_locale_rev = <994>;
926                         };
927                         CC15 {
928                                 iso_abbrev = "NL";
929                                 custom_locale = "E0";
930                                 custom_locale_rev = <994>;
931                         };
932                         CC16 {
933                                 iso_abbrev = "NO";
934                                 custom_locale = "E0";
935                                 custom_locale_rev = <994>;
936                         };
937                         CC17 {
938                                 iso_abbrev = "PL";
939                                 custom_locale = "E0";
940                                 custom_locale_rev = <994>;
941                         };
942                         CC18 {
943                                 iso_abbrev = "PT";
944                                 custom_locale = "E0";
945                                 custom_locale_rev = <994>;
946                         };
947                         CC19 {
948                                 iso_abbrev = "RO";
949                                 custom_locale = "E0";
950                                 custom_locale_rev = <994>;
951                         };
952                         CC20 {
953                                 iso_abbrev = "SK";
954                                 custom_locale = "E0";
955                                 custom_locale_rev = <994>;
956                         };
957                         CC21 {
958                                 iso_abbrev = "ES";
959                                 custom_locale = "E0";
960                                 custom_locale_rev = <994>;
961                         };
962                         CC22 {
963                                 iso_abbrev = "SE";
964                                 custom_locale = "E0";
965                                 custom_locale_rev = <994>;
966                         };
967                         CC23 {
968                                 iso_abbrev = "CH";
969                                 custom_locale = "E0";
970                                 custom_locale_rev = <994>;
971                         };
972                         CC24 {
973                                 iso_abbrev = "GB";
974                                 custom_locale = "E0";
975                                 custom_locale_rev = <994>;
976                         };
977                         CC25 {
978                                 iso_abbrev = "EU";
979                                 custom_locale = "E0";
980                                 custom_locale_rev = <994>;
981                         };
982                         CC26 {
983                                 iso_abbrev = "E0";
984                                 custom_locale = "E0";
985                                 custom_locale_rev = <994>;
986                         };
987                         CC27 {
988                                 iso_abbrev = "IN";
989                                 custom_locale = "Q2";
990                                 custom_locale_rev = <998>;
991                         };
992                 };
993         };
994
995         camera-pcl {
996                 profiles {
997                         ov5693-pcl@2_0036 {
998                                 use_of_node = "yes";
999                                 dev_name = "ov5693";
1000                                 num = <1>;
1001                                 vana-supply = <&en_vdd_cam_hv_2v8>;
1002                                 vif-supply = <&en_vdd_cam>;
1003                                 cam2-gpios = <&gpio CAM0_PWDN GPIO_ACTIVE_HIGH>;
1004                                 reset-gpios = <&gpio CAM0_RST_L GPIO_ACTIVE_HIGH>;
1005                         };
1006                 };
1007         };
1008
1009         serial@70006300 {
1010                 dma-names = "tx";
1011         };
1012
1013         i2c@7000c400 {
1014                 clock-frequency = <400000>;
1015         };
1016
1017         i2c@7000d000 {
1018                 clock-frequency = <1000000>;
1019         };
1020
1021         dfll-max77621@70110000 {
1022                 dfll-max77621-integration {
1023                         i2c-fs-rate = <1000000>;
1024                 };
1025
1026                 dfll-max77621-board-params {
1027                         sample-rate = <20000>;
1028                 };
1029         };
1030 };