]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/blob - arch/arm64/boot/dts/tegra210-platforms/tegra210-camera-e3333-a00.dtsi
arch: arm64: boot: dts: VI mode updates
[sojka/nv-tegra/linux-3.10.git] / arch / arm64 / boot / dts / tegra210-platforms / tegra210-camera-e3333-a00.dtsi
1 /*
2  * Copyright (c) 2015-2016, 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  * You should have received a copy of the GNU General Public License
15  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16  */
17
18 #include <dt-bindings/media/camera.h>
19 #include <dt-bindings/platform/t210/t210.h>
20
21 /* camera control gpio definitions */
22 / {
23         host1x {
24                 vi {
25                         num-channels = <6>;
26                         ports {
27                                 #address-cells = <1>;
28                                 #size-cells = <0>;
29                                 port@0 {
30                                         reg = <0>;
31                                         e3333_vi_in0: endpoint {
32                                                 csi-port = <0>;
33                                                 bus-width = <2>;
34                                                 remote-endpoint = <&e3333_ov5693_out0>;
35                                         };
36                                 };
37                                 port@1 {
38                                         reg = <1>;
39                                         e3333_vi_in1: endpoint {
40                                                 csi-port = <1>;
41                                                 bus-width = <2>;
42                                                 remote-endpoint = <&e3333_ov5693_out1>;
43                                         };
44                                 };
45                                 port@2 {
46                                         reg = <2>;
47                                         e3333_vi_in2: endpoint {
48                                                 csi-port = <2>;
49                                                 bus-width = <2>;
50                                                 remote-endpoint = <&e3333_ov5693_out2>;
51                                         };
52                                 };
53                                 port@3 {
54                                         reg = <3>;
55                                         e3333_vi_in3: endpoint {
56                                                 csi-port = <3>;
57                                                 bus-width = <2>;
58                                                 remote-endpoint = <&e3333_ov5693_out3>;
59                                         };
60                                 };
61                                 port@4 {
62                                         reg = <4>;
63                                         e3333_vi_in4: endpoint {
64                                                 csi-port = <4>;
65                                                 bus-width = <2>;
66                                                 remote-endpoint = <&e3333_ov5693_out4>;
67                                         };
68                                 };
69                                 port@5 {
70                                         reg = <5>;
71                                         e3333_vi_in5: endpoint {
72                                                 csi-port = <5>;
73                                                 bus-width = <2>;
74                                                 remote-endpoint = <&e3333_ov5693_out5>;
75                                         };
76                                 };
77                         };
78                 };
79
80                 i2c@546c0000 {
81                         avdd_dsi_csi-supply = <&max77620_gpio7>;
82
83                         status = "okay";
84                         #address-cells = <1>;
85                         #size-cells = <0>;
86
87                         tca9548@77 {
88                                 i2c@0 {
89                                         ov5693_a@36 {
90                                                 compatible = "nvidia,ov5693";
91                                                 reg = <0x36>;
92                                                 avdd-reg = "vana";
93                                                 iovdd-reg = "vif";
94                                                 devnode = "video0";
95                                                 physical_w = "3.674";
96                                                 physical_h = "2.738";
97                                                 mode0 { // OV5693_MODE_2592X1944
98                                                         mclk_khz = "24000";
99                                                         num_lanes = "2";
100                                                         tegra_sinterface = "serial_a";
101                                                         discontinuous_clk = "no";
102                                                         dpcm_enable = "false";
103                                                         cil_settletime = "0";
104                                                         active_w = "2592";
105                                                         active_h = "1944";
106                                                         pixel_t = "bayer_bggr";
107                                                         readout_orientation = "90";
108                                                         line_length = "2688";
109                                                         inherent_gain = "1";
110                                                         mclk_multiplier = "17.0";
111                                                         pix_clk_hz = "160000000";
112                                                         min_gain_val = "1.0";
113                                                         max_gain_val = "16";
114                                                         min_hdr_ratio = "1";
115                                                         max_hdr_ratio = "64";
116                                                         min_framerate = "1.816577";
117                                                         max_framerate = "30";
118                                                         min_exp_time = "34";
119                                                         max_exp_time = "550385";
120                                                 };
121                                                 mode1 { //OV5693_MODE_2592X1458
122                                                         mclk_khz = "24000";
123                                                         num_lanes = "2";
124                                                         tegra_sinterface = "serial_a";
125                                                         discontinuous_clk = "no";
126                                                         dpcm_enable = "false";
127                                                         cil_settletime = "0";
128                                                         active_w = "2592";
129                                                         active_h = "1458";
130                                                         pixel_t = "bayer_bggr";
131                                                         readout_orientation = "90";
132                                                         line_length = "2688";
133                                                         inherent_gain = "1";
134                                                         mclk_multiplier = "17.0";
135                                                         pix_clk_hz = "160000000";
136                                                         min_gain_val = "1.0";
137                                                         max_gain_val = "16";
138                                                         min_hdr_ratio = "1";
139                                                         max_hdr_ratio = "64";
140                                                         min_framerate = "1.816577";
141                                                         max_framerate = "30";
142                                                         min_exp_time = "34";
143                                                         max_exp_time = "550385";
144                                                 };
145                                                 mode2 { //OV5693_MODE_1280X720
146                                                         mclk_khz = "24000";
147                                                         num_lanes = "2";
148                                                         tegra_sinterface = "serial_a";
149                                                         discontinuous_clk = "no";
150                                                         dpcm_enable = "false";
151                                                         cil_settletime = "0";
152                                                         active_w = "1280";
153                                                         active_h = "720";
154                                                         pixel_t = "bayer_bggr";
155                                                         readout_orientation = "90";
156                                                         line_length = "1752";
157                                                         inherent_gain = "1";
158                                                         mclk_multiplier = "17.0";
159                                                         pix_clk_hz = "160000000";
160                                                         min_gain_val = "1.0";
161                                                         max_gain_val = "16";
162                                                         min_hdr_ratio = "1";
163                                                         max_hdr_ratio = "64";
164                                                         min_framerate = "2.787078";
165                                                         max_framerate = "120";
166                                                         min_exp_time = "22";
167                                                         max_exp_time = "358733";
168                                                 };
169                                                 // HDR Modes
170                                                 mode3 { //OV5693_MODE_2592X1944_HDR
171                                                         mclk_khz = "24000";
172                                                         num_lanes = "2";
173                                                         tegra_sinterface = "serial_a";
174                                                         discontinuous_clk = "no";
175                                                         dpcm_enable = "false";
176                                                         cil_settletime = "0";
177                                                         active_w = "2592";
178                                                         active_h = "1944";
179                                                         pixel_t = "hdr_bggr";
180                                                         readout_orientation = "90";
181                                                         line_length = "3696";
182                                                         inherent_gain = "1";
183                                                         mclk_multiplier = "19.0";
184                                                         pix_clk_hz = "176000000";
185                                                         min_gain_val = "1.0";
186                                                         max_gain_val = "16";
187                                                         min_hdr_ratio = "1";
188                                                         max_hdr_ratio = "64";
189                                                         min_framerate = "1.453262";
190                                                         max_framerate = "24";
191                                                         min_exp_time = "42";
192                                                         max_exp_time = "687981";
193                                                 };
194                                                 ports {
195                                                         #address-cells = <1>;
196                                                         #size-cells = <0>;
197                                                         port@0 {
198                                                                 reg = <0>;
199                                                                 e3333_ov5693_out0: endpoint {
200                                                                         csi-port = <0>;
201                                                                         bus-width = <2>;
202                                                                         remote-endpoint = <&e3333_vi_in0>;
203                                                                 };
204                                                         };
205                                                 };
206                                         };
207                                 };
208                                 i2c@1 {
209                                         ov5693_b@36 {
210                                                 compatible = "nvidia,ov5693";
211                                                 reg = <0x36>;
212                                                 avdd-reg = "vana";
213                                                 iovdd-reg = "vif";
214                                                 devnode = "video1";
215                                                 physical_w = "3.674";
216                                                 physical_h = "2.738";
217                                                 mode0 { // OV5693_MODE_2592X1944
218                                                         mclk_khz = "24000";
219                                                         num_lanes = "2";
220                                                         tegra_sinterface = "serial_b";
221                                                         discontinuous_clk = "no";
222                                                         dpcm_enable = "false";
223                                                         cil_settletime = "0";
224                                                         active_w = "2592";
225                                                         active_h = "1944";
226                                                         pixel_t = "bayer_bggr";
227                                                         readout_orientation = "90";
228                                                         line_length = "2688";
229                                                         inherent_gain = "1";
230                                                         mclk_multiplier = "17.0";
231                                                         pix_clk_hz = "160000000";
232                                                         min_gain_val = "1.0";
233                                                         max_gain_val = "16";
234                                                         min_hdr_ratio = "1";
235                                                         max_hdr_ratio = "64";
236                                                         min_framerate = "1.816577";
237                                                         max_framerate = "30";
238                                                         min_exp_time = "34";
239                                                         max_exp_time = "550385";
240                                                 };
241                                                 mode1 { //OV5693_MODE_2592X1458
242                                                         mclk_khz = "24000";
243                                                         num_lanes = "2";
244                                                         tegra_sinterface = "serial_b";
245                                                         discontinuous_clk = "no";
246                                                         dpcm_enable = "false";
247                                                         cil_settletime = "0";
248                                                         active_w = "2592";
249                                                         active_h = "1458";
250                                                         pixel_t = "bayer_bggr";
251                                                         readout_orientation = "90";
252                                                         line_length = "2688";
253                                                         inherent_gain = "1";
254                                                         mclk_multiplier = "17.0";
255                                                         pix_clk_hz = "160000000";
256                                                         min_gain_val = "1.0";
257                                                         max_gain_val = "16";
258                                                         min_hdr_ratio = "1";
259                                                         max_hdr_ratio = "64";
260                                                         min_framerate = "1.816577";
261                                                         max_framerate = "30";
262                                                         min_exp_time = "34";
263                                                         max_exp_time = "550385";
264                                                 };
265                                                 mode2 { //OV5693_MODE_1280X720
266                                                         mclk_khz = "24000";
267                                                         num_lanes = "2";
268                                                         tegra_sinterface = "serial_b";
269                                                         discontinuous_clk = "no";
270                                                         dpcm_enable = "false";
271                                                         cil_settletime = "0";
272                                                         active_w = "1280";
273                                                         active_h = "720";
274                                                         pixel_t = "bayer_bggr";
275                                                         readout_orientation = "90";
276                                                         line_length = "1752";
277                                                         inherent_gain = "1";
278                                                         mclk_multiplier = "17.0";
279                                                         pix_clk_hz = "160000000";
280                                                         min_gain_val = "1.0";
281                                                         max_gain_val = "16";
282                                                         min_hdr_ratio = "1";
283                                                         max_hdr_ratio = "64";
284                                                         min_framerate = "2.787078";
285                                                         max_framerate = "120";
286                                                         min_exp_time = "22";
287                                                         max_exp_time = "358733";
288                                                 };
289                                                 // HDR Modes
290                                                 mode3 { //OV5693_MODE_2592X1944_HDR
291                                                         mclk_khz = "24000";
292                                                         num_lanes = "2";
293                                                         tegra_sinterface = "serial_b";
294                                                         discontinuous_clk = "no";
295                                                         dpcm_enable = "false";
296                                                         cil_settletime = "0";
297                                                         active_w = "2592";
298                                                         active_h = "1944";
299                                                         pixel_t = "hdr_bggr";
300                                                         readout_orientation = "90";
301                                                         line_length = "3696";
302                                                         inherent_gain = "1";
303                                                         mclk_multiplier = "19.0";
304                                                         pix_clk_hz = "176000000";
305                                                         min_gain_val = "1.0";
306                                                         max_gain_val = "16";
307                                                         min_hdr_ratio = "1";
308                                                         max_hdr_ratio = "64";
309                                                         min_framerate = "1.453262";
310                                                         max_framerate = "24";
311                                                         min_exp_time = "42";
312                                                         max_exp_time = "687981";
313                                                 };
314                                                 ports {
315                                                         #address-cells = <1>;
316                                                         #size-cells = <0>;
317                                                         port@0 {
318                                                                 reg = <0>;
319                                                                 e3333_ov5693_out1: endpoint {
320                                                                         csi-port = <1>;
321                                                                         bus-width = <2>;
322                                                                         remote-endpoint = <&e3333_vi_in1>;
323                                                                 };
324                                                         };
325                                                 };
326                                         };
327                                 };
328                                 i2c@2 {
329                                         ov5693_c@36 {
330                                                 compatible = "nvidia,ov5693";
331                                                 reg = <0x36>;
332                                                 avdd-reg = "vana";
333                                                 iovdd-reg = "vif";
334                                                 devnode = "video2";
335                                                 physical_w = "3.674";
336                                                 physical_h = "2.738";
337                                                 mode0 { // OV5693_MODE_2592X1944
338                                                         mclk_khz = "24000";
339                                                         num_lanes = "2";
340                                                         tegra_sinterface = "serial_c";
341                                                         discontinuous_clk = "no";
342                                                         dpcm_enable = "false";
343                                                         cil_settletime = "0";
344                                                         active_w = "2592";
345                                                         active_h = "1944";
346                                                         pixel_t = "bayer_bggr";
347                                                         readout_orientation = "90";
348                                                         line_length = "2688";
349                                                         inherent_gain = "1";
350                                                         mclk_multiplier = "17.0";
351                                                         pix_clk_hz = "160000000";
352                                                         min_gain_val = "1.0";
353                                                         max_gain_val = "16";
354                                                         min_hdr_ratio = "1";
355                                                         max_hdr_ratio = "64";
356                                                         min_framerate = "1.816577";
357                                                         max_framerate = "30";
358                                                         min_exp_time = "34";
359                                                         max_exp_time = "550385";
360                                                 };
361                                                 mode1 { //OV5693_MODE_2592X1458
362                                                         mclk_khz = "24000";
363                                                         num_lanes = "2";
364                                                         tegra_sinterface = "serial_c";
365                                                         discontinuous_clk = "no";
366                                                         dpcm_enable = "false";
367                                                         cil_settletime = "0";
368                                                         active_w = "2592";
369                                                         active_h = "1458";
370                                                         pixel_t = "bayer_bggr";
371                                                         readout_orientation = "90";
372                                                         line_length = "2688";
373                                                         inherent_gain = "1";
374                                                         mclk_multiplier = "17.0";
375                                                         pix_clk_hz = "160000000";
376                                                         min_gain_val = "1.0";
377                                                         max_gain_val = "16";
378                                                         min_hdr_ratio = "1";
379                                                         max_hdr_ratio = "64";
380                                                         min_framerate = "1.816577";
381                                                         max_framerate = "30";
382                                                         min_exp_time = "34";
383                                                         max_exp_time = "550385";
384                                                 };
385                                                 mode2 { //OV5693_MODE_1280X720
386                                                         mclk_khz = "24000";
387                                                         num_lanes = "2";
388                                                         tegra_sinterface = "serial_c";
389                                                         discontinuous_clk = "no";
390                                                         dpcm_enable = "false";
391                                                         cil_settletime = "0";
392                                                         active_w = "1280";
393                                                         active_h = "720";
394                                                         pixel_t = "bayer_bggr";
395                                                         readout_orientation = "90";
396                                                         line_length = "1752";
397                                                         inherent_gain = "1";
398                                                         mclk_multiplier = "17.0";
399                                                         pix_clk_hz = "160000000";
400                                                         min_gain_val = "1.0";
401                                                         max_gain_val = "16";
402                                                         min_hdr_ratio = "1";
403                                                         max_hdr_ratio = "64";
404                                                         min_framerate = "2.787078";
405                                                         max_framerate = "120";
406                                                         min_exp_time = "22";
407                                                         max_exp_time = "358733";
408                                                 };
409                                                 // HDR Modes
410                                                 mode3 { //OV5693_MODE_2592X1944_HDR
411                                                         mclk_khz = "24000";
412                                                         num_lanes = "2";
413                                                         tegra_sinterface = "serial_c";
414                                                         discontinuous_clk = "no";
415                                                         dpcm_enable = "false";
416                                                         cil_settletime = "0";
417                                                         active_w = "2592";
418                                                         active_h = "1944";
419                                                         pixel_t = "hdr_bggr";
420                                                         readout_orientation = "90";
421                                                         line_length = "3696";
422                                                         inherent_gain = "1";
423                                                         mclk_multiplier = "19.0";
424                                                         pix_clk_hz = "176000000";
425                                                         min_gain_val = "1.0";
426                                                         max_gain_val = "16";
427                                                         min_hdr_ratio = "1";
428                                                         max_hdr_ratio = "64";
429                                                         min_framerate = "1.453262";
430                                                         max_framerate = "24";
431                                                         min_exp_time = "42";
432                                                         max_exp_time = "687981";
433                                                 };
434                                                 ports {
435                                                         #address-cells = <1>;
436                                                         #size-cells = <0>;
437                                                         port@0 {
438                                                                 reg = <0>;
439                                                                 e3333_ov5693_out2: endpoint {
440                                                                         csi-port = <2>;
441                                                                         bus-width = <2>;
442                                                                         remote-endpoint = <&e3333_vi_in2>;
443                                                                 };
444                                                         };
445                                                 };
446                                         };
447                                 };
448                                 i2c@3 {
449                                         ov5693_d@36 {
450                                                 compatible = "nvidia,ov5693";
451                                                 reg = <0x36>;
452                                                 avdd-reg = "vana";
453                                                 iovdd-reg = "vif";
454                                                 devnode = "video3";
455                                                 physical_w = "3.674";
456                                                 physical_h = "2.738";
457                                                 mode0 { // OV5693_MODE_2592X1944
458                                                         mclk_khz = "24000";
459                                                         num_lanes = "2";
460                                                         tegra_sinterface = "serial_d";
461                                                         discontinuous_clk = "no";
462                                                         dpcm_enable = "false";
463                                                         cil_settletime = "0";
464                                                         active_w = "2592";
465                                                         active_h = "1944";
466                                                         pixel_t = "bayer_bggr";
467                                                         readout_orientation = "90";
468                                                         line_length = "2688";
469                                                         inherent_gain = "1";
470                                                         mclk_multiplier = "17.0";
471                                                         pix_clk_hz = "160000000";
472                                                         min_gain_val = "1.0";
473                                                         max_gain_val = "16";
474                                                         min_hdr_ratio = "1";
475                                                         max_hdr_ratio = "64";
476                                                         min_framerate = "1.816577";
477                                                         max_framerate = "30";
478                                                         min_exp_time = "34";
479                                                         max_exp_time = "550385";
480                                                 };
481                                                 mode1 { //OV5693_MODE_2592X1458
482                                                         mclk_khz = "24000";
483                                                         num_lanes = "2";
484                                                         tegra_sinterface = "serial_d";
485                                                         discontinuous_clk = "no";
486                                                         dpcm_enable = "false";
487                                                         cil_settletime = "0";
488                                                         active_w = "2592";
489                                                         active_h = "1458";
490                                                         pixel_t = "bayer_bggr";
491                                                         readout_orientation = "90";
492                                                         line_length = "2688";
493                                                         inherent_gain = "1";
494                                                         mclk_multiplier = "17.0";
495                                                         pix_clk_hz = "160000000";
496                                                         min_gain_val = "1.0";
497                                                         max_gain_val = "16";
498                                                         min_hdr_ratio = "1";
499                                                         max_hdr_ratio = "64";
500                                                         min_framerate = "1.816577";
501                                                         max_framerate = "30";
502                                                         min_exp_time = "34";
503                                                         max_exp_time = "550385";
504                                                 };
505                                                 mode2 { //OV5693_MODE_1280X720
506                                                         mclk_khz = "24000";
507                                                         num_lanes = "2";
508                                                         tegra_sinterface = "serial_d";
509                                                         discontinuous_clk = "no";
510                                                         dpcm_enable = "false";
511                                                         cil_settletime = "0";
512                                                         active_w = "1280";
513                                                         active_h = "720";
514                                                         pixel_t = "bayer_bggr";
515                                                         readout_orientation = "90";
516                                                         line_length = "1752";
517                                                         inherent_gain = "1";
518                                                         mclk_multiplier = "17.0";
519                                                         pix_clk_hz = "160000000";
520                                                         min_gain_val = "1.0";
521                                                         max_gain_val = "16";
522                                                         min_hdr_ratio = "1";
523                                                         max_hdr_ratio = "64";
524                                                         min_framerate = "2.787078";
525                                                         max_framerate = "120";
526                                                         min_exp_time = "22";
527                                                         max_exp_time = "358733";
528                                                 };
529                                                 // HDR Modes
530                                                 mode3 { //OV5693_MODE_2592X1944_HDR
531                                                         mclk_khz = "24000";
532                                                         num_lanes = "2";
533                                                         tegra_sinterface = "serial_d";
534                                                         discontinuous_clk = "no";
535                                                         dpcm_enable = "false";
536                                                         cil_settletime = "0";
537                                                         active_w = "2592";
538                                                         active_h = "1944";
539                                                         pixel_t = "hdr_bggr";
540                                                         readout_orientation = "90";
541                                                         line_length = "3696";
542                                                         inherent_gain = "1";
543                                                         mclk_multiplier = "19.0";
544                                                         pix_clk_hz = "176000000";
545                                                         min_gain_val = "1.0";
546                                                         max_gain_val = "16";
547                                                         min_hdr_ratio = "1";
548                                                         max_hdr_ratio = "64";
549                                                         min_framerate = "1.453262";
550                                                         max_framerate = "24";
551                                                         min_exp_time = "42";
552                                                         max_exp_time = "687981";
553                                                 };
554                                                 ports {
555                                                         #address-cells = <1>;
556                                                         #size-cells = <0>;
557                                                         port@0 {
558                                                                 reg = <0>;
559                                                                 e3333_ov5693_out3: endpoint {
560                                                                         csi-port = <3>;
561                                                                         bus-width = <2>;
562                                                                         remote-endpoint = <&e3333_vi_in3>;
563                                                                 };
564                                                         };
565                                                 };
566                                         };
567                                 };
568                                 i2c@4 {
569                                         ov5693_e@36 {
570                                                 compatible = "nvidia,ov5693";
571                                                 reg = <0x36>;
572                                                 avdd-reg = "vana";
573                                                 iovdd-reg = "vif";
574                                                 devnode = "video4";
575                                                 physical_w = "3.674";
576                                                 physical_h = "2.738";
577                                                 mode0 { // OV5693_MODE_2592X1944
578                                                         mclk_khz = "24000";
579                                                         num_lanes = "2";
580                                                         tegra_sinterface = "serial_e";
581                                                         discontinuous_clk = "no";
582                                                         dpcm_enable = "false";
583                                                         cil_settletime = "0";
584                                                         active_w = "2592";
585                                                         active_h = "1944";
586                                                         pixel_t = "bayer_bggr";
587                                                         readout_orientation = "90";
588                                                         line_length = "2688";
589                                                         inherent_gain = "1";
590                                                         mclk_multiplier = "17.0";
591                                                         pix_clk_hz = "160000000";
592                                                         min_gain_val = "1.0";
593                                                         max_gain_val = "16";
594                                                         min_hdr_ratio = "1";
595                                                         max_hdr_ratio = "64";
596                                                         min_framerate = "1.816577";
597                                                         max_framerate = "30";
598                                                         min_exp_time = "34";
599                                                         max_exp_time = "550385";
600                                                 };
601                                                 mode1 { //OV5693_MODE_2592X1458
602                                                         mclk_khz = "24000";
603                                                         num_lanes = "2";
604                                                         tegra_sinterface = "serial_e";
605                                                         discontinuous_clk = "no";
606                                                         dpcm_enable = "false";
607                                                         cil_settletime = "0";
608                                                         active_w = "2592";
609                                                         active_h = "1458";
610                                                         pixel_t = "bayer_bggr";
611                                                         readout_orientation = "90";
612                                                         line_length = "2688";
613                                                         inherent_gain = "1";
614                                                         mclk_multiplier = "17.0";
615                                                         pix_clk_hz = "160000000";
616                                                         min_gain_val = "1.0";
617                                                         max_gain_val = "16";
618                                                         min_hdr_ratio = "1";
619                                                         max_hdr_ratio = "64";
620                                                         min_framerate = "1.816577";
621                                                         max_framerate = "30";
622                                                         min_exp_time = "34";
623                                                         max_exp_time = "550385";
624                                                 };
625                                                 mode2 { //OV5693_MODE_1280X720
626                                                         mclk_khz = "24000";
627                                                         num_lanes = "2";
628                                                         tegra_sinterface = "serial_e";
629                                                         discontinuous_clk = "no";
630                                                         dpcm_enable = "false";
631                                                         cil_settletime = "0";
632                                                         active_w = "1280";
633                                                         active_h = "720";
634                                                         pixel_t = "bayer_bggr";
635                                                         readout_orientation = "90";
636                                                         line_length = "1752";
637                                                         inherent_gain = "1";
638                                                         mclk_multiplier = "17.0";
639                                                         pix_clk_hz = "160000000";
640                                                         min_gain_val = "1.0";
641                                                         max_gain_val = "16";
642                                                         min_hdr_ratio = "1";
643                                                         max_hdr_ratio = "64";
644                                                         min_framerate = "2.787078";
645                                                         max_framerate = "120";
646                                                         min_exp_time = "22";
647                                                         max_exp_time = "358733";
648                                                 };
649                                                 // HDR Modes
650                                                 mode3 { //OV5693_MODE_2592X1944_HDR
651                                                         mclk_khz = "24000";
652                                                         num_lanes = "2";
653                                                         tegra_sinterface = "serial_e";
654                                                         discontinuous_clk = "no";
655                                                         dpcm_enable = "false";
656                                                         cil_settletime = "0";
657                                                         active_w = "2592";
658                                                         active_h = "1944";
659                                                         pixel_t = "hdr_bggr";
660                                                         readout_orientation = "90";
661                                                         line_length = "3696";
662                                                         inherent_gain = "1";
663                                                         mclk_multiplier = "19.0";
664                                                         pix_clk_hz = "176000000";
665                                                         min_gain_val = "1.0";
666                                                         max_gain_val = "16";
667                                                         min_hdr_ratio = "1";
668                                                         max_hdr_ratio = "64";
669                                                         min_framerate = "1.453262";
670                                                         max_framerate = "24";
671                                                         min_exp_time = "42";
672                                                         max_exp_time = "687981";
673                                                 };
674                                                 ports {
675                                                         #address-cells = <1>;
676                                                         #size-cells = <0>;
677                                                         port@0 {
678                                                                 reg = <0>;
679                                                                 e3333_ov5693_out4: endpoint {
680                                                                         csi-port = <4>;
681                                                                         bus-width = <2>;
682                                                                         remote-endpoint = <&e3333_vi_in4>;
683                                                                 };
684                                                         };
685                                                 };
686                                         };
687                                 };
688                                 i2c@5 {
689                                         ov5693_f@36 {
690                                                 compatible = "nvidia,ov5693";
691                                                 reg = <0x36>;
692                                                 avdd-reg = "vana";
693                                                 iovdd-reg = "vif";
694                                                 devnode = "video5";
695                                                 physical_w = "3.674";
696                                                 physical_h = "2.738";
697                                                 mode0 { // OV5693_MODE_2592X1944
698                                                         mclk_khz = "24000";
699                                                         num_lanes = "2";
700                                                         tegra_sinterface = "serial_f";
701                                                         discontinuous_clk = "no";
702                                                         dpcm_enable = "false";
703                                                         cil_settletime = "0";
704                                                         active_w = "2592";
705                                                         active_h = "1944";
706                                                         pixel_t = "bayer_bggr";
707                                                         readout_orientation = "90";
708                                                         line_length = "2688";
709                                                         inherent_gain = "1";
710                                                         mclk_multiplier = "17.0";
711                                                         pix_clk_hz = "160000000";
712                                                         min_gain_val = "1.0";
713                                                         max_gain_val = "16";
714                                                         min_hdr_ratio = "1";
715                                                         max_hdr_ratio = "64";
716                                                         min_framerate = "1.816577";
717                                                         max_framerate = "30";
718                                                         min_exp_time = "34";
719                                                         max_exp_time = "550385";
720                                                 };
721                                                 mode1 { //OV5693_MODE_2592X1458
722                                                         mclk_khz = "24000";
723                                                         num_lanes = "2";
724                                                         tegra_sinterface = "serial_f";
725                                                         discontinuous_clk = "no";
726                                                         dpcm_enable = "false";
727                                                         cil_settletime = "0";
728                                                         active_w = "2592";
729                                                         active_h = "1458";
730                                                         pixel_t = "bayer_bggr";
731                                                         readout_orientation = "90";
732                                                         line_length = "2688";
733                                                         inherent_gain = "1";
734                                                         mclk_multiplier = "17.0";
735                                                         pix_clk_hz = "160000000";
736                                                         min_gain_val = "1.0";
737                                                         max_gain_val = "16";
738                                                         min_hdr_ratio = "1";
739                                                         max_hdr_ratio = "64";
740                                                         min_framerate = "1.816577";
741                                                         max_framerate = "30";
742                                                         min_exp_time = "34";
743                                                         max_exp_time = "550385";
744                                                 };
745                                                 mode2 { //OV5693_MODE_1280X720
746                                                         mclk_khz = "24000";
747                                                         num_lanes = "2";
748                                                         tegra_sinterface = "serial_f";
749                                                         discontinuous_clk = "no";
750                                                         dpcm_enable = "false";
751                                                         cil_settletime = "0";
752                                                         active_w = "1280";
753                                                         active_h = "720";
754                                                         pixel_t = "bayer_bggr";
755                                                         readout_orientation = "90";
756                                                         line_length = "1752";
757                                                         inherent_gain = "1";
758                                                         mclk_multiplier = "17.0";
759                                                         pix_clk_hz = "160000000";
760                                                         min_gain_val = "1.0";
761                                                         max_gain_val = "16";
762                                                         min_hdr_ratio = "1";
763                                                         max_hdr_ratio = "64";
764                                                         min_framerate = "2.787078";
765                                                         max_framerate = "120";
766                                                         min_exp_time = "22";
767                                                         max_exp_time = "358733";
768                                                 };
769                                                 // HDR Modes
770                                                 mode3 { //OV5693_MODE_2592X1944_HDR
771                                                         mclk_khz = "24000";
772                                                         num_lanes = "2";
773                                                         tegra_sinterface = "serial_f";
774                                                         discontinuous_clk = "no";
775                                                         dpcm_enable = "false";
776                                                         cil_settletime = "0";
777                                                         active_w = "2592";
778                                                         active_h = "1944";
779                                                         pixel_t = "hdr_bggr";
780                                                         readout_orientation = "90";
781                                                         line_length = "3696";
782                                                         inherent_gain = "1";
783                                                         mclk_multiplier = "19.0";
784                                                         pix_clk_hz = "176000000";
785                                                         min_gain_val = "1.0";
786                                                         max_gain_val = "16";
787                                                         min_hdr_ratio = "1";
788                                                         max_hdr_ratio = "64";
789                                                         min_framerate = "1.453262";
790                                                         max_framerate = "24";
791                                                         min_exp_time = "42";
792                                                         max_exp_time = "687981";
793                                                 };
794                                                 ports {
795                                                         #address-cells = <1>;
796                                                         #size-cells = <0>;
797                                                         port@0 {
798                                                                 reg = <0>;
799                                                                 e3333_ov5693_out5: endpoint {
800                                                                         csi-port = <5>;
801                                                                         bus-width = <2>;
802                                                                         remote-endpoint = <&e3333_vi_in5>;
803                                                                 };
804                                                         };
805                                                 };
806                                         };
807                                 };
808                         };
809                 };
810         };
811 };
812
813 /* camera control gpio definitions */
814 / {
815
816         tegra-camera-platform {
817                 compatible = "nvidia, tegra-camera-platform";
818
819                 /**
820                  * The general guideline for naming badge_info contains 3 parts, and is as follows,
821                  * The first part is the camera_board_id for the module; if the module is in a FFD
822                  * platform, then use the platform name for this part.
823                  * The second part contains the position of the module, ex. “rear” or “front”.
824                  * The third part contains the last 6 characters of a part number which is found
825                  * in the module's specsheet from the vender.
826                  */
827                 modules {
828                         module0 {
829                                 badge = "e3333_bottomleft_P5V27C";
830                                 position = "bottomleft";
831                                 orientation = "1";
832                                 drivernode0 {
833                                         pcl_id = "v4l2_sensor";
834                                         proc-device-tree = "/proc/device-tree/host1x/i2c@546c0000/tca9548@77/i2c@0/ov5693_a@36";
835                                 };
836                         };
837                         module1 {
838                                 badge = "e3333_centerleft_P5V27C";
839                                 position = "centerleft";
840                                 orientation = "1";
841                                 drivernode0 {
842                                         pcl_id = "v4l2_sensor";
843                                         proc-device-tree = "/proc/device-tree/host1x/i2c@546c0000/tca9548@77/i2c@1/ov5693_b@36";
844                                 };
845                         };
846                         module2 {
847                                 badge = "e3333_centerright_P5V27C";
848                                 position = "centerright";
849                                 orientation = "1";
850                                 drivernode0 {
851                                         pcl_id = "v4l2_sensor";
852                                         proc-device-tree = "/proc/device-tree/host1x/i2c@546c0000/tca9548@77/i2c@2/ov5693_c@36";
853                                 };
854                         };
855                         module3 {
856                                 badge = "e3333_topleft_P5V27C";
857                                 position = "topleft";
858                                 orientation = "1";
859                                 drivernode0 {
860                                         pcl_id = "v4l2_sensor";
861                                         proc-device-tree = "/proc/device-tree/host1x/i2c@546c0000/tca9548@77/i2c@3/ov5693_d@36";
862                                 };
863                         };
864                         module4 {
865                                 badge = "e3333_bottomright_P5V27C";
866                                 position = "bottomright";
867                                 orientation = "1";
868                                 drivernode0 {
869                                         pcl_id = "v4l2_sensor";
870                                         proc-device-tree = "/proc/device-tree/host1x/i2c@546c0000/tca9548@77/i2c@4/ov5693_e@36";
871                                 };
872                         };
873                         module5 {
874                                 badge = "e3333_topright_P5V27C";
875                                 position = "topright";
876                                 orientation = "1";
877                                 drivernode0 {
878                                         pcl_id = "v4l2_sensor";
879                                         proc-device-tree = "/proc/device-tree/host1x/i2c@546c0000/tca9548@77/i2c@5/ov5693_f@36";
880                                 };
881                         };
882                 };
883         };
884 };