driver: media: tegra: Update tegra camera_common
[linux-3.10.git] / arch / arm64 / boot / dts / tegra210-platforms / tegra210-ers-camera-e2249-1002-a00.dtsi
1 /*
2  * Copyright (c) 2014-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 #define VI_I2C_BUS      6
22
23 / {
24         host1x {
25                 vi {
26                         num-channels = <2>;
27                         ports {
28                                 #address-cells = <1>;
29                                 #size-cells = <0>;
30                                 port@0 {
31                                         reg = <0>;
32                                         vi_in0: endpoint {
33                                                 remote-endpoint = <&imx214_out0>;
34                                         };
35                                 };
36                                 port@1 {
37                                         reg = <1>;
38                                         vi_in1: endpoint {
39                                                 remote-endpoint = <&ov5693_out0>;
40                                         };
41                                 };
42                         };
43                 };
44
45                 i2c@546c0000 {
46                         status = "okay";
47                         #address-cells = <1>;
48                         #size-cells = <0>;
49                         imx214@1a {
50                                 compatible = "nvidia,imx214";
51                                 reg = <0x1a>;
52
53                                 clocks = <&tegra_car TEGRA210_CLK_ID_CLK_OUT_3>;
54                                 clock-names = "mclk";
55                                 clock-frequency = <24000000>;
56
57                                 /* Physical dimensions of sensor */
58                                 physical_w = "4.713";
59                                 physical_h = "3.494";
60
61                                 /* Sensor Model */
62                                 sensor_model ="imx214";
63
64                                 /* V4L2 device node location */
65                                 devnode = "video0";
66                                 has-eeprom = <1>;
67
68                                 /* Defines number of frames to be dropped by driver internally after applying */
69                                 /* sensor crop settings. Some sensors send corrupt frames after applying */
70                                 /* crop co-ordinates */
71                                 post_crop_frame_drop = "1";
72
73                                 /**
74                                 * Define any required hw resources needed by
75                                 * driver
76                                 */
77                                 /* ie. clocks, io pins, power sources */
78                                 mclk = "cam_mclk1";
79                                 reset-gpios = <&gpio TEGRA_GPIO(S, 7) 0>;
80                                 af-gpios = <&gpio TEGRA_GPIO(S, 5) 0>;
81                                 pwdn-gpios = <&gpio TEGRA_GPIO(S, 7) 0>;
82                                 vana-supply = <&max77620_ldo3>;
83                                 vdig-supply = <&vdd_sys_boost>;
84                                 vif-supply = <&en_vdd_cam>;
85                                 avdd-reg = "vana";
86                                 dvdd-reg = "vdig";
87                                 iovdd-reg = "vif";
88
89                                 /* Defaults */
90                                 default-clk = <24000000>;
91                                 default-gain = <256>;
92                                 default-fl = <3194>;
93                                 default-ct = <3184>;
94                                 default-width = <4096>;
95                                 default-height = <3072>;
96
97                                 /* EEPROM */
98                                 eeprom-addr = <0x50>;
99                                 eeprom-size = <1024>;
100                                 eeprom-blk-size = <256>;
101
102                                 /**
103                                 * A modeX node is required to support v4l2
104                                 * driver implementation with NVIDIA camera
105                                 * software stack
106                                 *
107                                 * mclk_khz = "";
108                                 * Standard MIPI driving clock, typically 24MHz
109                                 *
110                                 * num_lanes = "";
111                                 * Number of lane channels sensor is programmed
112                                 * to output
113                                 *
114                                 * tegra_sinterface = "";
115                                 * The base tegra serial interface lanes are
116                                 * connected to
117                                 *
118                                 * discontinuous_clk = "";
119                                 * The sensor is programmed to use a
120                                 * discontinuous clock on MIPI lanes
121                                 *
122                                 * cil_settletime = "";
123                                 * MIPI lane settle time value.
124                                 * A "0" value attempts to autocalibrate based
125                                 * on mclk_multiplier
126                                 *
127                                 *
128                                 *
129                                 *
130                                 * active_w = "";
131                                 * Pixel active region width
132                                 *
133                                 * active_h = "";
134                                 * Pixel active region height
135                                 *
136                                 * pixel_t = "";
137                                 * The sensor readout pixel pattern
138                                 * For eg - 10 bit bayer having 'bggr' pixel pattern has value "bayer_bggr"
139                                 *          12 bit bayer having 'bggr' pixel pattern has value "bayer_bggr12"
140                                 *          14 bit bayer having 'bggr' pixel pattern has value "bayer_bggr14"
141                                 *
142                                 * readout_orientation = "0";
143                                 * Based on camera module orientation.
144                                 * Only change readout_orientation if you
145                                 * specifically program a different readout
146                                 * order for this mode
147                                 *
148                                 * line_length = "";
149                                 * Pixel line length (width) for sensor mode.
150                                 * This is used to calibrate features in our
151                                 * camera stack.
152                                 *
153                                 * mclk_multiplier = "";
154                                 * Multiplier to MCLK to help time hardware
155                                 * capture sequence
156                                 * TODO: Assign to PLL_Multiplier as well until
157                                 * fixed in core
158                                 *
159                                 * pix_clk_hz = "";
160                                 * Sensor pixel clock used for calculations
161                                 * like exposure and framerate
162                                 *
163                                 *
164                                 *
165                                 *
166                                 * inherent_gain = "";
167                                 * Gain obtained inherently from mode
168                                 * (ie. pixel binning)
169                                 *
170                                 * min_gain_val = ""; (floor to 6 decimal places)
171                                 * max_gain_val = ""; (floor to 6 decimal places)
172                                 * Gain limits for mode
173                                 *
174                                 * min_exp_time = ""; (ceil to integer)
175                                 * max_exp_time = ""; (ceil to integer)
176                                 * Exposure Time limits for mode (us)
177                                 *
178                                 * min_hdr_ratio = "";
179                                 * max_hdr_ratio = "";
180                                 * HDR Ratio limits for mode
181                                 *
182                                 * min_framerate = "";
183                                 * max_framerate = "";
184                                 * Framerate limits for mode (fps)
185                                 *
186                                 * embedded_metadata_height = "";
187                                 * Sensor embedded metadata height in units of rows.
188                                 * If sensor does not support embedded metadata value should be 0.
189                                 */
190
191                                 mode0 { // IMX214_MODE_4096X3072
192                                         mclk_khz = "24000";
193                                         num_lanes = "4";
194                                         tegra_sinterface = "serial_a";
195                                         discontinuous_clk = "yes";
196                                         cil_settletime = "0";
197
198                                         active_w = "4096";
199                                         active_h = "3072";
200                                         pixel_t = "bayer_rggb";
201                                         readout_orientation = "0";
202                                         line_length = "5008";
203                                         inherent_gain = "1";
204                                         mclk_multiplier = "25";
205                                         pix_clk_hz = "480000000";
206
207                                         min_gain_val = "1.0";
208                                         max_gain_val = "16.0";
209                                         min_hdr_ratio = "1";
210                                         max_hdr_ratio = "64";
211                                         min_framerate = "1.462526";
212                                         max_framerate = "30";
213                                         min_exp_time = "11";
214                                         max_exp_time = "683645";
215                                         embedded_metadata_height = "4";
216                                 };
217
218                                 mode1 { // IMX214_MODE_4096X2304
219                                         mclk_khz = "24000";
220                                         num_lanes = "4";
221                                         tegra_sinterface = "serial_a";
222                                         discontinuous_clk = "yes";
223                                         cil_settletime = "0";
224
225                                         active_w = "4096";
226                                         active_h = "2304";
227                                         pixel_t = "bayer_rggb";
228                                         readout_orientation = "0";
229                                         line_length = "5008";
230                                         inherent_gain = "1";
231                                         mclk_multiplier = "25";
232                                         pix_clk_hz = "480000000";
233
234                                         min_gain_val = "1.0";
235                                         max_gain_val = "16.0";
236                                         min_hdr_ratio = "1";
237                                         max_hdr_ratio = "64";
238                                         min_framerate = "1.462526";
239                                         max_framerate = "30";
240                                         min_exp_time = "11";
241                                         max_exp_time = "683645";
242                                         embedded_metadata_height = "4";
243                                 };
244
245                                 mode2 { //IMX214_MODE_3840X2160
246                                         mclk_khz = "24000";
247                                         num_lanes = "4";
248                                         tegra_sinterface = "serial_a";
249                                         discontinuous_clk = "yes";
250                                         cil_settletime = "0";
251
252                                         active_w = "3840";
253                                         active_h = "2160";
254                                         pixel_t = "bayer_rggb";
255                                         readout_orientation = "0";
256                                         line_length = "5008";
257                                         inherent_gain = "1";
258                                         mclk_multiplier = "25";
259                                         pix_clk_hz = "480000000";
260
261                                         min_gain_val = "1.0";
262                                         max_gain_val = "16.0";
263                                         min_hdr_ratio = "1";
264                                         max_hdr_ratio = "64";
265                                         min_framerate = "1.462526";
266                                         max_framerate = "30";
267                                         min_exp_time = "11";
268                                         max_exp_time = "683645";
269                                         embedded_metadata_height = "4";
270                                 };
271
272                                 mode3 { // IMX214_MODE_2048X1536
273                                         mclk_khz = "24000";
274                                         num_lanes = "4";
275                                         tegra_sinterface = "serial_a";
276                                         discontinuous_clk = "yes";
277                                         cil_settletime = "0";
278
279                                         active_w = "2048";
280                                         active_h = "1536";
281                                         pixel_t = "bayer_rggb";
282                                         readout_orientation = "0";
283                                         line_length = "5008";
284                                         inherent_gain = "1";
285                                         mclk_multiplier = "25";
286                                         pix_clk_hz = "480000000";
287
288                                         min_gain_val = "1.0";
289                                         max_gain_val = "16.0";
290                                         min_hdr_ratio = "1";
291                                         max_hdr_ratio = "64";
292                                         min_framerate = "1.462526";
293                                         max_framerate = "30";
294                                         min_exp_time = "11";
295                                         max_exp_time = "683645";
296                                         embedded_metadata_height = "4";
297                                 };
298
299                                 mode4 { // IMX214_MODE_2048X1152
300                                         mclk_khz = "24000";
301                                         num_lanes = "4";
302                                         tegra_sinterface = "serial_a";
303                                         discontinuous_clk = "yes";
304                                         cil_settletime = "0";
305
306                                         active_w = "2048";
307                                         active_h = "1152";
308                                         pixel_t = "bayer_rggb";
309                                         readout_orientation = "0";
310                                         line_length = "5008";
311                                         inherent_gain = "1";
312                                         mclk_multiplier = "25";
313                                         pix_clk_hz = "480000000";
314
315                                         min_gain_val = "1.0";
316                                         max_gain_val = "16.0";
317                                         min_hdr_ratio = "1";
318                                         max_hdr_ratio = "64";
319                                         min_framerate = "1.462526";
320                                         max_framerate = "30";
321                                         min_exp_time = "11";
322                                         max_exp_time = "683645";
323                                         embedded_metadata_height = "4";
324                                 };
325
326                                 mode5 { // IMX214_MODE_1920X1080
327                                         mclk_khz = "24000";
328                                         num_lanes = "4";
329                                         tegra_sinterface = "serial_a";
330                                         discontinuous_clk = "yes";
331                                         cil_settletime = "0";
332
333                                         active_w = "1920";
334                                         active_h = "1080";
335                                         pixel_t = "bayer_rggb";
336                                         readout_orientation = "0";
337                                         line_length = "5008";
338                                         inherent_gain = "1";
339                                         mclk_multiplier = "25";
340                                         pix_clk_hz = "480000000";
341
342                                         min_gain_val = "1.0";
343                                         max_gain_val = "16.0";
344                                         min_hdr_ratio = "1";
345                                         max_hdr_ratio = "64";
346                                         min_framerate = "1.462526";
347                                         max_framerate = "30";
348                                         min_exp_time = "11";
349                                         max_exp_time = "683645";
350                                         embedded_metadata_height = "4";
351                                 };
352
353                                 mode6 { // IMX214_MODE_1280X720_120FPS
354                                         mclk_khz = "24000";
355                                         num_lanes = "4";
356                                         tegra_sinterface = "serial_a";
357                                         discontinuous_clk = "yes";
358                                         cil_settletime = "0";
359
360                                         active_w = "1280";
361                                         active_h = "720";
362                                         pixel_t = "bayer_rggb";
363                                         readout_orientation = "0";
364                                         line_length = "5008";
365                                         inherent_gain = "1";
366                                         mclk_multiplier = "25";
367                                         pix_clk_hz = "480000000";
368
369                                         min_gain_val = "1.0";
370                                         max_gain_val = "16.0";
371                                         min_hdr_ratio = "1";
372                                         max_hdr_ratio = "64";
373                                         min_framerate = "1.462526";
374                                         max_framerate = "120";
375                                         min_exp_time = "11";
376                                         max_exp_time = "683645";
377                                         embedded_metadata_height = "4";
378                                 };
379                                 ports {
380                                         #address-cells = <1>;
381                                         #size-cells = <0>;
382
383                                         port@0 {
384                                                 reg = <0>;
385                                                 imx214_out0: endpoint {
386                                                         csi-port = <0>;
387                                                         bus-width = <4>;
388                                                         remote-endpoint = <&vi_in0>;
389                                                 };
390                                         };
391                                 };
392                         };
393
394                         ov5693_c@36 {
395                                 compatible = "nvidia,ov5693";
396                                 /* I2C device address */
397                                 reg = <0x36>;
398
399                                 /* Physical dimensions of sensor */
400                                 physical_w = "3.674";
401                                 physical_h = "2.738";
402
403                                 /* Sensor Model */
404                                 sensor_model ="ov5693";
405
406                                 /* V4L2 device node location */
407                                 devnode = "video1";
408
409                                 /* Define any required hw resources needed by driver */
410                                 /* ie. clocks, io pins, power sources */
411                                 /* mclk-index indicates the index of the */
412                                 /* mclk-name with in the clock-names array */
413                                 clocks = <&tegra_car TEGRA210_CLK_ID_CLK_OUT_3>;
414                                 clock-names = "mclk";
415                                 clock-frequency = <24000000>;
416
417                                 mclk = "cam_mclk1";
418                                 pwdn-gpios = <&gpio TEGRA_GPIO(T, 0) 0>;
419                                 avdd-reg = "vana";
420                                 iovdd-reg = "vif";
421                                 vana-supply = <&max77620_ldo3>;
422                                 vif-supply = <&en_vdd_cam>;
423
424                                 /* Defines number of frames to be dropped by driver internally after applying */
425                                 /* sensor crop settings. Some sensors send corrupt frames after applying */
426                                 /* crop co-ordinates */
427                                 post_crop_frame_drop = "0";
428
429                                 mode0 { // OV5693_MODE_2592X1944
430                                         mclk_khz = "24000";
431                                         num_lanes = "2";
432                                         tegra_sinterface = "serial_c";
433                                         discontinuous_clk = "no";
434                                         dpcm_enable = "false";
435                                         cil_settletime = "0";
436
437                                         active_w = "2592";
438                                         active_h = "1944";
439                                         pixel_t = "bayer_bggr";
440                                         readout_orientation = "90";
441                                         line_length = "2688";
442                                         inherent_gain = "1";
443                                         mclk_multiplier = "17.0";
444                                         pix_clk_hz = "160000000";
445
446                                         min_gain_val = "1.0";
447                                         max_gain_val = "16";
448                                         min_hdr_ratio = "1";
449                                         max_hdr_ratio = "64";
450                                         min_framerate = "1.816577";
451                                         max_framerate = "30";
452                                         min_exp_time = "34";
453                                         max_exp_time = "550385";
454                                         embedded_metadata_height = "0";
455                                 };
456
457                                 mode1 { //OV5693_MODE_2592X1458
458                                         mclk_khz = "24000";
459                                         num_lanes = "2";
460                                         tegra_sinterface = "serial_c";
461                                         discontinuous_clk = "no";
462                                         dpcm_enable = "false";
463                                         cil_settletime = "0";
464
465                                         active_w = "2592";
466                                         active_h = "1458";
467                                         pixel_t = "bayer_bggr";
468                                         readout_orientation = "90";
469                                         line_length = "2688";
470                                         inherent_gain = "1";
471                                         mclk_multiplier = "17.0";
472                                         pix_clk_hz = "160000000";
473
474                                         min_gain_val = "1.0";
475                                         max_gain_val = "16";
476                                         min_hdr_ratio = "1";
477                                         max_hdr_ratio = "64";
478                                         min_framerate = "1.816577";
479                                         max_framerate = "30";
480                                         min_exp_time = "34";
481                                         max_exp_time = "550385";
482                                         embedded_metadata_height = "0";
483                                 };
484
485                                 mode2 { //OV5693_MODE_1280X720
486                                         mclk_khz = "24000";
487                                         num_lanes = "2";
488                                         tegra_sinterface = "serial_c";
489                                         discontinuous_clk = "no";
490                                         dpcm_enable = "false";
491                                         cil_settletime = "0";
492
493                                         active_w = "1280";
494                                         active_h = "720";
495                                         pixel_t = "bayer_bggr";
496                                         readout_orientation = "90";
497                                         line_length = "1752";
498                                         inherent_gain = "1";
499                                         mclk_multiplier = "17.0";
500                                         pix_clk_hz = "160000000";
501
502                                         min_gain_val = "1.0";
503                                         max_gain_val = "16";
504                                         min_hdr_ratio = "1";
505                                         max_hdr_ratio = "64";
506                                         min_framerate = "2.787078";
507                                         max_framerate = "120";
508                                         min_exp_time = "22";
509                                         max_exp_time = "358733";
510                                         embedded_metadata_height = "0";
511                                 };
512
513                                 // HDR Modes
514                                 mode3 { //OV5693_MODE_2592X1944_HDR
515                                         mclk_khz = "24000";
516                                         num_lanes = "2";
517                                         tegra_sinterface = "serial_c";
518                                         discontinuous_clk = "no";
519                                         dpcm_enable = "false";
520                                         cil_settletime = "0";
521
522                                         active_w = "2592";
523                                         active_h = "1944";
524                                         pixel_t = "hdr_bggr";
525                                         readout_orientation = "90";
526                                         line_length = "3696";
527                                         inherent_gain = "1";
528                                         mclk_multiplier = "19.0";
529                                         pix_clk_hz = "176000000";
530
531                                         min_gain_val = "1.0";
532                                         max_gain_val = "16";
533                                         min_hdr_ratio = "1";
534                                         max_hdr_ratio = "64";
535                                         min_framerate = "1.453262";
536                                         max_framerate = "24";
537                                         min_exp_time = "42";
538                                         max_exp_time = "687981";
539                                         embedded_metadata_height = "0";
540                                 };
541
542                                 ports {
543                                         #address-cells = <1>;
544                                         #size-cells = <0>;
545                                         port@0 {
546                                                 reg = <0>;
547                                                 ov5693_out0: endpoint {
548                                                         csi-port = <2>;
549                                                         bus-width = <2>;
550                                                         remote-endpoint = <&vi_in1>;
551                                                 };
552                                         };
553                                 };
554                         };
555                 };
556         };
557
558         dw9714@0c {
559                 compatible = "nvidia,dw9714";
560                 vdd-supply = <&max77620_ldo3>;
561                 vdd_i2c-supply = <&en_vdd_cam>;
562                 /* platform data */
563                 dev_name = "focuser";
564                 num = <0>;
565                 sync = <0>;
566                 /* Copy pasted everything from camera-pcl node for now */
567                 chipname = "pcl_DW9714";
568                 type = "focuser";
569                 position = <0>;
570                 bustype = "i2c";
571                 busnum = <VI_I2C_BUS>;
572                 addr = <0xc>;
573                 datalen = <1>;
574                 pinmuxgrp = <0xFFFF>;
575                 gpios = <1>;
576                 regulators = "vdd", "vdd_i2c";
577                 drivername = "dw9714";
578                 devid = <0x9714>;
579                 /* focuser capabilities */
580                 settle-time = <30000>; /* uS */
581                 slew-rate = <0x3a200c>; /* tunned slew mode */
582                 macro-position = <450>;
583                 infinity-position = <200>;
584                 hyper-value = <200>;
585         };
586
587         tegra-camera-platform {
588                 compatible = "nvidia, tegra-camera-platform";
589
590                 /**
591                 * The general guideline for naming badge_info contains 3 parts,
592                 * and is as follows:
593                 * The first part is the camera_board_id for the module
594                 * if the module is in a FFD platform, then use platform name.
595                 * The second part contains the position of the module
596                 * ex. “rear” or “front”.
597                 * The third part contains the last 6 characters of part number
598                 * which is found in the module's specsheet from the vender.
599                 */
600                 modules {
601                         module0 {
602                                 badge = "e2249_rear_P13N05B";
603                                 position = "rear";
604                                 orientation = "0";
605                                 drivernode0 {
606                                         /**
607                                         * Declare PCL support driver
608                                         * (classically known as guid)
609                                         * Device tree hierarchy to driver
610                                         */
611                                         pcl_id = "v4l2_sensor";
612                                         proc-device-tree = "/proc/device-tree/host1x/i2c@546c0000/imx214@1a";
613                                 };
614                                 drivernode1 {
615                                         /**
616                                         * Declare PCL support driver
617                                         * (classically known as guid)
618                                         */
619                                         pcl_id = "v4l2_focuser_stub";
620                                 };
621                                 drivernode2 {
622                                         /**
623                                         * Declare PCL support driver
624                                         * (classically known as guid)
625                                         */
626                                         pcl_id = "f_NVCAM0";
627                                 };
628                         };
629                         module1 {
630                                 badge = "e2249_front_P5V27C";
631                                 position = "front";
632                                 orientation = "0";
633                                 drivernode0 {
634                                         pcl_id = "v4l2_sensor";
635                                         proc-device-tree = "/proc/device-tree/host1x/i2c@546c0000/ov5693_c@36";
636                                 };
637                                 drivernode1 {
638                                         /**
639                                         * Declare PCL support driver
640                                         * (classically known as guid)
641                                         */
642                                         pcl_id = "v4l2_focuser_stub";
643                                 };
644                         };
645                 };
646         };
647
648         camera-pcl {
649                 compatible = "nvidia,tegra210-camera", "simple-bus";
650                 configuration = <0xAA55AA55>;
651
652                 modules {
653                         module1: module1@modules {
654                                 compatible = "sensor,rear";
655                                 badge_info = "e2249_rear_P13N05B";
656
657                                 sensor {
658                                         profile = <&imx214_2>;
659                                         platformdata = "t210ref_imx214_pdata";
660                                 };
661                                 focuser {
662                                         profile = <&dw9714_1>;
663                                         platformdata = "t210ref_dw9714_pdata";
664                                 };
665                                 flash {
666                                         profile = <&as3648_1>;
667                                         platformdata = "t210ref_as3648_pdata";
668                                 };
669                         };
670                         module2: module2@modules {
671                                 compatible = "sensor,front";
672                                 badge_info = "e2249_front_P5V27C";
673
674                                 sensor {
675                                         profile = <&ov5693_1>;
676                                         platformdata = "t210ref_ov5693f_pdata";
677                                 };
678                         };
679                         module3: module3@modules {
680                                 compatible = "sensor,rear";
681                                 badge_info = "e2249_front_P5V27C";
682
683                                 sensor {
684                                         profile = <&ov5693_A>;
685                                         platformdata = "t210ref_ov5693A_pdata";
686                                 };
687                         };
688                         module4: module4@modules {
689                                 compatible = "sensor,front";
690                                 badge_info = "e2249_front_P5V27C";
691
692                                 sensor {
693                                         profile = <&ov5693_B>;
694                                         platformdata = "t210ref_ov5693B_pdata";
695                                 };
696                         };
697                         module5: module5@modules {
698                                 compatible = "sensor,front";
699                                 badge_info = "e2249_front_P5V27C";
700
701                                 sensor {
702                                         profile = <&ov5693_C>;
703                                         platformdata = "t210ref_ov5693C_pdata";
704                                 };
705                         };
706                         module6: module6@modules {
707                                 compatible = "sensor,front";
708                                 badge_info = "e2249_front_P5V27C";
709
710                                 sensor {
711                                         profile = <&ov5693_D>;
712                                         platformdata = "t210ref_ov5693D_pdata";
713                                 };
714                         };
715                         module7: module7@modules {
716                                 compatible = "sensor,front";
717                                 badge_info = "e2249_front_P5V27C";
718
719                                 sensor {
720                                         profile = <&ov5693_E>;
721                                         platformdata = "t210ref_ov5693E_pdata";
722                                 };
723                         };
724                         module8: module8@modules {
725                                 compatible = "sensor,front";
726                                 badge_info = "e2249_front_P5V27C";
727
728                                 sensor {
729                                         profile = <&ov5693_F>;
730                                         platformdata = "t210ref_ov5693F_pdata";
731                                 };
732                         };
733                 };
734
735                 profiles {
736                         imx214_1: imx214-pcl@x_001a {
737                                 index = <1>;
738                                 chipname = "pcl_IMX214";
739                                 type = "sensor";
740                                 guid = "s_IMX214";
741                                 position = <0>;
742                                 bustype = "i2c";
743                                 busnum = <VI_I2C_BUS>;
744                                 addr = <0x1a>;
745                                 datalen = <2>;
746                                 pinmuxgrp = <0xFFFF>;
747                                 gpios = <3>;
748                                 regulators = "vana", "vdig", "vif";
749                                 clocks = "cam_mclk1";
750                                 drivername = "imx214";
751                                 detect = <0x0002 0x0016 0xFFFF 0x0214>;
752                                 devid = <0x0214>;
753                                 poweron = <
754                                         CAMERA_IND_CLK_SET(10000)
755                                         CAMERA_GPIO_CLR(TEGRA_GPIO(S, 7))
756                                         CAMERA_WAITUS(10)
757                                         CAMERA_REGULATOR_ON(2)
758                                         CAMERA_REGULATOR_ON(1)
759                                         CAMERA_REGULATOR_ON(0)
760                                         CAMERA_WAITMS(5)
761                                         CAMERA_GPIO_SET(TEGRA_GPIO(S, 7))
762                                         CAMERA_GPIO_SET(TEGRA_GPIO(S, 5))
763                                         CAMERA_WAITUS(300)
764                                         CAMERA_END
765                                         >;
766                                 poweroff = <
767                                         CAMERA_IND_CLK_CLR
768                                         CAMERA_GPIO_CLR(TEGRA_GPIO(S, 7))
769                                         CAMERA_WAITUS(10)
770                                         CAMERA_REGULATOR_OFF(2)
771                                         CAMERA_REGULATOR_OFF(1)
772                                         CAMERA_REGULATOR_OFF(0)
773                                         CAMERA_END
774                                         >;
775                         };
776                         dw9714_1: dw9714-pcl@x_000c {
777                                 index = <2>;
778                                 chipname = "pcl_DW9714";
779                                 type = "focuser";
780                                 guid = "f_NVCAM0";
781                                 position = <0>;
782                                 bustype = "i2c";
783                                 busnum = <VI_I2C_BUS>;
784                                 addr = <0xc>;
785                                 datalen = <1>;
786                                 pinmuxgrp = <0xFFFF>;
787                                 gpios = <1>;
788                                 regulators = "vdd", "vdd_i2c";
789                                 drivername = "dw9714";
790                                 detect = <0x0000 0x0000 0xFFFF 0x0000>;
791                                 devid = <0x9714>;
792                                 poweron = <
793                                         CAMERA_REGULATOR_ON(1)
794                                         CAMERA_REGULATOR_ON(0)
795                                         CAMERA_WAITUS(10)
796                                         CAMERA_GPIO_SET(TEGRA_GPIO(S, 5))
797                                         CAMERA_WAITUS(10)
798                                         CAMERA_END
799                                         >;
800                                 poweroff = <
801                                         CAMERA_REGULATOR_OFF(0)
802                                         CAMERA_REGULATOR_OFF(1)
803                                         CAMERA_GPIO_CLR(TEGRA_GPIO(S, 5))
804                                         CAMERA_WAITUS(10)
805                                         CAMERA_END
806                                         >;
807                                 /* focuser capabilities */
808                                 settle-time = <30000>; /* uS */
809                                 slew-rate = <0x3a200c>; /* tunned slew mode */
810                                 macro-position = <450>;
811                                 infinity-position = <200>;
812                                 hyper-value = <200>;
813                                 support_mfi;
814                         };
815                         as3648_1: as3648-pcl@x_0030 {
816                                 index = <3>;
817                                 chipname = "pcl_AS3648";
818                                 type = "flash";
819                                 guid = "l_NVCAM0";
820                                 position = <0>;
821                                 bustype = "i2c";
822                                 busnum = <VI_I2C_BUS>;
823                                 addr = <0x30>;
824                                 datalen = <1>;
825                                 pinmuxgrp = <0xFFFF>;
826                                 gpios = <3>;
827                                 regulators = "vi2c", "vin";
828                                 drivername = "as3648";
829                                 detect = <0x0001 0x0000 0x00F0 0x00b0>;
830                                 devid = <0x3648>;
831                                 poweron = <
832                                         CAMERA_REGULATOR_ON(1)
833                                         CAMERA_REGULATOR_ON(0)
834                                         CAMERA_WAITUS(1000)
835                                         CAMERA_END
836                                         >;
837                                 poweroff = <
838                                         CAMERA_REGULATOR_OFF(0)
839                                         CAMERA_REGULATOR_OFF(1)
840                                         CAMERA_WAITUS(10)
841                                         CAMERA_END
842                                         >;
843                                 /* configuration */
844                                 led-mask = <3>;
845                                 max-total-current = <1000>; /* mA */
846                                 max-peak-current = <600>; /* mA */
847                                 max-torch-current = <600>; /* mA */
848                                 vin-low-v-run = <3070>; /* mV */
849                         };
850                         ov5693_1: ov5693-pcl@x_0036 {
851                                 index = <4>;
852                                 chipname = "pcl_OV5693f";
853                                 type = "sensor";
854                                 guid = "sOV5693f";
855                                 position = <1>;
856                                 bustype = "i2c";
857                                 busnum = <VI_I2C_BUS>;
858                                 addr = <0x36>;
859                                 datalen = <2>;
860                                 pinmuxgrp = <0xFFFF>;
861                                 gpios = <3>;
862                                 regulators = "vana", "vif";
863                                 clocks = "cam_mclk1";
864                                 drivername = "ov5693.1";
865                                 detect = <0x0002 0x300A 0xFFFF 0x5690>;
866                                 devid = <0x5693>;
867                                 poweron = <
868                                         CAMERA_IND_CLK_SET(10000)
869                                         CAMERA_GPIO_CLR(TEGRA_GPIO(T, 0))
870                                         CAMERA_WAITMS(1)
871                                         CAMERA_REGULATOR_ON(0)
872                                         CAMERA_REGULATOR_ON(1)
873                                         CAMERA_WAITMS(1)
874                                         CAMERA_GPIO_SET(TEGRA_GPIO(T, 0))
875                                         CAMERA_WAITMS(10)
876                                         CAMERA_END
877                                         >;
878                                 poweroff = <
879                                         CAMERA_IND_CLK_CLR
880                                         CAMERA_GPIO_CLR(TEGRA_GPIO(T, 0))
881                                         CAMERA_WAITUS(10)
882                                         CAMERA_REGULATOR_OFF(1)
883                                         CAMERA_REGULATOR_OFF(0)
884                                         CAMERA_END
885                                         >;
886                                 /* sensor capabilities */
887                                 cap-version = <0x34340002>;
888                                 cap-identifier = "OV5693.1";
889                                 cap-sensor_nvc_interface = <5>;
890                                 cap-pixel_types = <0x101>;
891                                 cap-orientation = <0>;
892                                 cap-direction = <1>;
893                                 cap-initial_clock_rate_khz = <6000>;
894                                 cap-h_sync_edge = <0>;
895                                 cap-v_sync_edge = <0>;
896                                 cap-mclk_on_vgp0 = <0>;
897                                 cap-csi_port = <1>;
898                                 cap-data_lanes = <2>;
899                                 cap-virtual_channel_id = <0>;
900                                 cap-discontinuous_clk_mode = <1>;
901                                 cap-cil_threshold_settle = <0>;
902                                 cap-min_blank_time_width = <16>;
903                                 cap-min_blank_time_height = <16>;
904                                 cap-preferred_mode_index = <0>;
905                                 cap-external_clock_khz_0 = <24000>;
906                                 cap-clock_multiplier_0 = <8000000>;
907                                 cap-external_clock_khz_1 = <0>;
908                                 cap-clock_multiplier_1 = <0>;
909                                 cap-hdr-enabled;
910                         };
911                         imx214_2: imx214-pcl@v_001a {
912                                 index = <5>;
913                                 chipname = "v4l2_IMX214";
914                                 type = "sensor";
915                                 guid = "vlSensor";
916                                 position = <0>;
917                                 bustype = "i2c";
918                                 busnum = <VI_I2C_BUS>;
919                                 addr = <0x1a>;
920                                 datalen = <2>;
921                                 pinmuxgrp = <0xFFFF>;
922                                 gpios = <3>;
923                                 regulators = "vana", "vdig", "vif";
924                                 clocks = "cam_mclk1";
925                                 drivername = "imx214";
926                                 devid = <0x0214>;
927                                 skip_camera_install = <1>;
928                         };
929                         ov5693_A: ov5693-pcl@a_0036 {
930                                 index = <5>;
931                                 chipname = "pcl_OV5693A";
932                                 type = "sensor";
933                                 guid = "sOV5693A";
934                                 position = <0>;
935                                 bustype = "i2c";
936                                 busnum = <T210_CAMERA_I2C_MUX_BUS(3)>;
937                                 addr = <0x36>;
938                                 datalen = <2>;
939                                 pinmuxgrp = <0xFFFF>;
940                                 gpios = <3>;
941                                 regulators = "vana", "vif";
942                                 clocks = "cam_mclk1";
943                                 drivername = "ov5693";
944                                 detect = <0x0002 0x300A 0xFFFF 0x5690>;
945                                 devid = <0x5693>;
946                                 poweron = <
947                                         CAMERA_IND_CLK_SET(10000)
948                                         CAMERA_GPIO_CLR(TEGRA_GPIO(S, 7))
949                                         CAMERA_WAITMS(1)
950                                         CAMERA_REGULATOR_ON(0)
951                                         CAMERA_REGULATOR_ON(1)
952                                         CAMERA_WAITMS(1)
953                                         CAMERA_GPIO_SET(TEGRA_GPIO(S, 7))
954                                         CAMERA_WAITMS(10)
955                                         CAMERA_END
956                                         >;
957                                 poweroff = <
958                                         CAMERA_IND_CLK_CLR
959                                         CAMERA_GPIO_CLR(TEGRA_GPIO(S, 7))
960                                         CAMERA_WAITUS(10)
961                                         CAMERA_REGULATOR_OFF(1)
962                                         CAMERA_REGULATOR_OFF(0)
963                                         CAMERA_END
964                                         >;
965                                 /* sensor capabilities */
966                                 cap-cap-version = <0x34340002>;
967                                 cap-identifier = "OV5693_A";
968                                 cap-sensor_nvc_interface = <3>;
969                                 cap-pixel_types = <0x101>;
970                                 cap-orientation = <0>;
971                                 cap-direction = <0>;
972                                 cap-initial_clock_rate_khz = <6000>;
973                                 cap-h_sync_edge = <0>;
974                                 cap-v_sync_edge = <0>;
975                                 cap-mclk_on_vgp0 = <0>;
976                                 cap-csi_port = <0>;
977                                 cap-data_lanes = <2>;
978                                 cap-virtual_channel_id = <0>;
979                                 cap-discontinuous_clk_mode = <1>;
980                                 cap-cil_threshold_settle = <0>;
981                                 cap-min_blank_time_width = <16>;
982                                 cap-min_blank_time_height = <16>;
983                                 cap-preferred_mode_index = <0>;
984                                 cap-external_clock_khz_0 = <24000>;
985                                 cap-clock_multiplier_0 = <8000000>;
986                                 cap-external_clock_khz_1 = <0>;
987                                 cap-clock_multiplier_1 = <0>;
988                                 cap-hdr-enabled;
989                         };
990                         ov5693_B: ov5693-pcl@b_0036 {
991                                 index = <7>;
992                                 chipname = "pcl_OV5693B";
993                                 type = "sensor";
994                                 guid = "sOV5693B";
995                                 position = <1>;
996                                 bustype = "i2c";
997                                 busnum = <T210_CAMERA_I2C_MUX_BUS(2)>;
998                                 addr = <0x36>;
999                                 datalen = <2>;
1000                                 pinmuxgrp = <0xFFFF>;
1001                                 gpios = <3>;
1002                                 regulators = "vana", "vif";
1003                                 clocks = "cam_mclk1";
1004                                 drivername = "ov5693";
1005                                 detect = <0x0002 0x300A 0xFFFF 0x5690>;
1006                                 devid = <0x5693>;
1007                                 poweron = <
1008                                         CAMERA_IND_CLK_SET(10000)
1009                                         CAMERA_GPIO_CLR(TEGRA_GPIO(T, 0))
1010                                         CAMERA_WAITMS(1)
1011                                         CAMERA_REGULATOR_ON(0)
1012                                         CAMERA_REGULATOR_ON(1)
1013                                         CAMERA_WAITMS(1)
1014                                         CAMERA_GPIO_SET(TEGRA_GPIO(T, 0))
1015                                         CAMERA_WAITMS(10)
1016                                         CAMERA_END
1017                                         >;
1018                                 poweroff = <
1019                                         CAMERA_IND_CLK_CLR
1020                                         CAMERA_GPIO_CLR(TEGRA_GPIO(T, 0))
1021                                         CAMERA_WAITUS(10)
1022                                         CAMERA_REGULATOR_OFF(1)
1023                                         CAMERA_REGULATOR_OFF(0)
1024                                         CAMERA_END
1025                                         >;
1026                                 /* sensor capabilities */
1027                                 cap-cap-version = <0x34340002>;
1028                                 cap-identifier = "OV5693_B";
1029                                 cap-sensor_nvc_interface = <5>;
1030                                 cap-pixel_types = <0x101>;
1031                                 cap-orientation = <0>;
1032                                 cap-direction = <0>;
1033                                 cap-initial_clock_rate_khz = <6000>;
1034                                 cap-h_sync_edge = <0>;
1035                                 cap-v_sync_edge = <0>;
1036                                 cap-mclk_on_vgp0 = <0>;
1037                                 cap-csi_port = <0>;
1038                                 cap-data_lanes = <2>;
1039                                 cap-virtual_channel_id = <0>;
1040                                 cap-discontinuous_clk_mode = <1>;
1041                                 cap-cil_threshold_settle = <0>;
1042                                 cap-min_blank_time_width = <16>;
1043                                 cap-min_blank_time_height = <16>;
1044                                 cap-preferred_mode_index = <0>;
1045                                 cap-external_clock_khz_0 = <24000>;
1046                                 cap-clock_multiplier_0 = <8000000>;
1047                                 cap-external_clock_khz_1 = <0>;
1048                                 cap-clock_multiplier_1 = <0>;
1049                                 cap-hdr-enabled;
1050                         };
1051                         ov5693_C: ov5693-pcl@c_0036 {
1052                                 index = <8>;
1053                                 chipname = "pcl_OV5693C";
1054                                 type = "sensor";
1055                                 guid = "sOV5693C";
1056                                 position = <2>;
1057                                 bustype = "i2c";
1058                                 busnum = <T210_CAMERA_I2C_MUX_BUS(0)>;
1059                                 addr = <0x36>;
1060                                 datalen = <2>;
1061                                 pinmuxgrp = <0xFFFF>;
1062                                 gpios = <3>;
1063                                 regulators = "vana", "vif";
1064                                 clocks = "cam_mclk1";
1065                                 drivername = "ov5693";
1066                                 detect = <0x0002 0x300A 0xFFFF 0x5690>;
1067                                 devid = <0x5693>;
1068                                 poweron = <
1069                                         CAMERA_IND_CLK_SET(10000)
1070                                         CAMERA_GPIO_CLR(TEGRA_GPIO(T, 0))
1071                                         CAMERA_WAITMS(1)
1072                                         CAMERA_REGULATOR_ON(0)
1073                                         CAMERA_REGULATOR_ON(1)
1074                                         CAMERA_WAITMS(1)
1075                                         CAMERA_GPIO_SET(TEGRA_GPIO(T, 0))
1076                                         CAMERA_WAITMS(10)
1077                                         CAMERA_END
1078                                         >;
1079                                 poweroff = <
1080                                         CAMERA_IND_CLK_CLR
1081                                         CAMERA_GPIO_CLR(TEGRA_GPIO(T, 0))
1082                                         CAMERA_WAITUS(10)
1083                                         CAMERA_REGULATOR_OFF(1)
1084                                         CAMERA_REGULATOR_OFF(0)
1085                                         CAMERA_END
1086                                         >;
1087                                 /* sensor capabilities */
1088                                 cap-cap-version = <0x34340002>;
1089                                 cap-identifier = "OV5693_C";
1090                                 cap-sensor_nvc_interface = <6>;
1091                                 cap-pixel_types = <0x101>;
1092                                 cap-orientation = <0>;
1093                                 cap-direction = <0>;
1094                                 cap-initial_clock_rate_khz = <6000>;
1095                                 cap-h_sync_edge = <0>;
1096                                 cap-v_sync_edge = <0>;
1097                                 cap-mclk_on_vgp0 = <0>;
1098                                 cap-csi_port = <0>;
1099                                 cap-data_lanes = <2>;
1100                                 cap-virtual_channel_id = <0>;
1101                                 cap-discontinuous_clk_mode = <1>;
1102                                 cap-cil_threshold_settle = <0>;
1103                                 cap-min_blank_time_width = <16>;
1104                                 cap-min_blank_time_height = <16>;
1105                                 cap-preferred_mode_index = <0>;
1106                                 cap-external_clock_khz_0 = <24000>;
1107                                 cap-clock_multiplier_0 = <8000000>;
1108                                 cap-external_clock_khz_1 = <0>;
1109                                 cap-clock_multiplier_1 = <0>;
1110                                 cap-hdr-enabled;
1111                         };
1112                         ov5693_D: ov5693-pcl@d_0036 {
1113                                 index = <6>;
1114                                 chipname = "pcl_OV5693D";
1115                                 type = "sensor";
1116                                 guid = "sOV5693D";
1117                                 position = <3>;
1118                                 bustype = "i2c";
1119                                 busnum = <T210_CAMERA_I2C_MUX_BUS(1)>;
1120                                 addr = <0x36>;
1121                                 datalen = <2>;
1122                                 pinmuxgrp = <0xFFFF>;
1123                                 gpios = <3>;
1124                                 regulators = "vana", "vif";
1125                                 clocks = "cam_mclk1";
1126                                 drivername = "ov5693";
1127                                 detect = <0x0002 0x300A 0xFFFF 0x5690>;
1128                                 devid = <0x5693>;
1129                                 poweron = <
1130                                         CAMERA_IND_CLK_SET(10000)
1131                                         CAMERA_GPIO_CLR(TEGRA_GPIO(S, 7))
1132                                         CAMERA_WAITMS(1)
1133                                         CAMERA_REGULATOR_ON(0)
1134                                         CAMERA_REGULATOR_ON(1)
1135                                         CAMERA_WAITMS(1)
1136                                         CAMERA_GPIO_SET(TEGRA_GPIO(S, 7))
1137                                         CAMERA_WAITMS(10)
1138                                         CAMERA_END
1139                                         >;
1140                                 poweroff = <
1141                                         CAMERA_IND_CLK_CLR
1142                                         CAMERA_GPIO_CLR(TEGRA_GPIO(S, 7))
1143                                         CAMERA_WAITUS(10)
1144                                         CAMERA_REGULATOR_OFF(1)
1145                                         CAMERA_REGULATOR_OFF(0)
1146                                         CAMERA_END
1147                                         >;
1148                                 /* sensor capabilities */
1149                                 cap-cap-version = <0x34340002>;
1150                                 cap-identifier = "OV5693_D";
1151                                 cap-sensor_nvc_interface = <4>;
1152                                 cap-pixel_types = <0x101>;
1153                                 cap-orientation = <0>;
1154                                 cap-direction = <0>;
1155                                 cap-initial_clock_rate_khz = <6000>;
1156                                 cap-h_sync_edge = <0>;
1157                                 cap-v_sync_edge = <0>;
1158                                 cap-mclk_on_vgp0 = <0>;
1159                                 cap-csi_port = <0>;
1160                                 cap-data_lanes = <2>;
1161                                 cap-virtual_channel_id = <0>;
1162                                 cap-discontinuous_clk_mode = <1>;
1163                                 cap-cil_threshold_settle = <0>;
1164                                 cap-min_blank_time_width = <16>;
1165                                 cap-min_blank_time_height = <16>;
1166                                 cap-preferred_mode_index = <0>;
1167                                 cap-external_clock_khz_0 = <24000>;
1168                                 cap-clock_multiplier_0 = <8000000>;
1169                                 cap-external_clock_khz_1 = <0>;
1170                                 cap-clock_multiplier_1 = <0>;
1171                                 cap-hdr-enabled;
1172                         };
1173                         ov5693_E: ov5693-pcl@e_0036 {
1174                                 index = <9>;
1175                                 chipname = "pcl_OV5693E";
1176                                 type = "sensor";
1177                                 guid = "sOV5693E";
1178                                 position = <4>;
1179                                 bustype = "i2c";
1180                                 busnum = <T210_CAMERA_I2C_MUX_BUS(5)>;
1181                                 addr = <0x36>;
1182                                 datalen = <2>;
1183                                 pinmuxgrp = <0xFFFF>;
1184                                 gpios = <3>;
1185                                 regulators = "vana", "vif";
1186                                 clocks = "cam_mclk3";
1187                                 drivername = "ov5693";
1188                                 detect = <0x0002 0x300A 0xFFFF 0x5690>;
1189                                 devid = <0x5693>;
1190                                 poweron = <
1191                                         CAMERA_IND_CLK_SET(10000)
1192                                         CAMERA_GPIO_CLR(TEGRA_GPIO(Z, 3))
1193                                         CAMERA_WAITMS(1)
1194                                         CAMERA_REGULATOR_ON(0)
1195                                         CAMERA_REGULATOR_ON(1)
1196                                         CAMERA_WAITMS(1)
1197                                         CAMERA_GPIO_SET(TEGRA_GPIO(Z, 3))
1198                                         CAMERA_WAITMS(10)
1199                                         CAMERA_END
1200                                         >;
1201                                 poweroff = <
1202                                         CAMERA_IND_CLK_CLR
1203                                         CAMERA_GPIO_CLR(TEGRA_GPIO(Z, 3))
1204                                         CAMERA_WAITUS(10)
1205                                         CAMERA_REGULATOR_OFF(1)
1206                                         CAMERA_REGULATOR_OFF(0)
1207                                         CAMERA_END
1208                                         >;
1209                                 /* sensor capabilities */
1210                                 cap-cap-version = <0x34340002>;
1211                                 cap-identifier = "OV5693_E";
1212                                 cap-sensor_nvc_interface = <7>;
1213                                 cap-pixel_types = <0x101>;
1214                                 cap-orientation = <0>;
1215                                 cap-direction = <0>;
1216                                 cap-initial_clock_rate_khz = <6000>;
1217                                 cap-h_sync_edge = <0>;
1218                                 cap-v_sync_edge = <0>;
1219                                 cap-mclk_on_vgp0 = <0>;
1220                                 cap-csi_port = <0>;
1221                                 cap-data_lanes = <2>;
1222                                 cap-virtual_channel_id = <0>;
1223                                 cap-discontinuous_clk_mode = <1>;
1224                                 cap-cil_threshold_settle = <0>;
1225                                 cap-min_blank_time_width = <16>;
1226                                 cap-min_blank_time_height = <16>;
1227                                 cap-preferred_mode_index = <0>;
1228                                 cap-external_clock_khz_0 = <24000>;
1229                                 cap-clock_multiplier_0 = <8000000>;
1230                                 cap-external_clock_khz_1 = <0>;
1231                                 cap-clock_multiplier_1 = <0>;
1232                                 cap-hdr-enabled;
1233                         };
1234                         ov5693_F: ov5693-pcl@f_0036 {
1235                                 index = <10>;
1236                                 chipname = "pcl_OV5693F";
1237                                 type = "sensor";
1238                                 guid = "sOV5693F";
1239                                 position = <5>;
1240                                 bustype = "i2c";
1241                                 busnum = <T210_CAMERA_I2C_MUX_BUS(4)>;
1242                                 addr = <0x36>;
1243                                 datalen = <2>;
1244                                 pinmuxgrp = <0xFFFF>;
1245                                 gpios = <3>;
1246                                 regulators = "vana", "vif";
1247                                 clocks = "cam_mclk3";
1248                                 drivername = "ov5693";
1249                                 detect = <0x0002 0x300A 0xFFFF 0x5690>;
1250                                 devid = <0x5693>;
1251                                 poweron = <
1252                                         CAMERA_IND_CLK_SET(10000)
1253                                         CAMERA_GPIO_CLR(TEGRA_GPIO(T, 1))
1254                                         CAMERA_WAITMS(1)
1255                                         CAMERA_REGULATOR_ON(0)
1256                                         CAMERA_REGULATOR_ON(1)
1257                                         CAMERA_WAITMS(1)
1258                                         CAMERA_GPIO_SET(TEGRA_GPIO(T, 1))
1259                                         CAMERA_WAITMS(10)
1260                                         CAMERA_END
1261                                         >;
1262                                 poweroff = <
1263                                         CAMERA_IND_CLK_CLR
1264                                         CAMERA_GPIO_CLR(TEGRA_GPIO(T, 1))
1265                                         CAMERA_WAITUS(10)
1266                                         CAMERA_REGULATOR_OFF(1)
1267                                         CAMERA_REGULATOR_OFF(0)
1268                                         CAMERA_END
1269                                         >;
1270                                 /* sensor capabilities */
1271                                 cap-cap-version = <0x34340002>;
1272                                 cap-identifier = "OV5693_F";
1273                                 cap-sensor_nvc_interface = <8>;
1274                                 cap-pixel_types = <0x101>;
1275                                 cap-orientation = <0>;
1276                                 cap-direction = <0>;
1277                                 cap-initial_clock_rate_khz = <6000>;
1278                                 cap-h_sync_edge = <0>;
1279                                 cap-v_sync_edge = <0>;
1280                                 cap-mclk_on_vgp0 = <0>;
1281                                 cap-csi_port = <0>;
1282                                 cap-data_lanes = <2>;
1283                                 cap-virtual_channel_id = <0>;
1284                                 cap-discontinuous_clk_mode = <1>;
1285                                 cap-cil_threshold_settle = <0>;
1286                                 cap-min_blank_time_width = <16>;
1287                                 cap-min_blank_time_height = <16>;
1288                                 cap-preferred_mode_index = <0>;
1289                                 cap-external_clock_khz_0 = <24000>;
1290                                 cap-clock_multiplier_0 = <8000000>;
1291                                 cap-external_clock_khz_1 = <0>;
1292                                 cap-clock_multiplier_1 = <0>;
1293                                 cap-hdr-enabled;
1294                         };
1295                 };
1296         };
1297 };
1298