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