arm64: dts: imx274: enable multiple sensor modes
Josh Kuo [Thu, 7 Jul 2016 08:23:26 +0000 (16:23 +0800)]
enable multiple sensor modes for imx274.

support 4k@60fps, 4k@30fps and 1080p@60fps

Bug 1769654

Change-Id: Id25bc8279f273add5df1d76e0b5ff7de19224462
Signed-off-by: Josh Kuo <joshk@nvidia.com>
Reviewed-on: http://git-master/r/1176815
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>

arch/arm64/boot/dts/tegra210-platforms/tegra210-camera-imx274.dtsi

index 8f3c471..4a59baf 100644 (file)
                                * Sensor embedded metadata height in units of rows.
                                * If sensor does not support embedded metadata value should be 0.
                                */
-                               mode0 { // IMX274_MODE_3840X2160
+
+                               mode0 { // IMX274_MODE_3840X2160@30fps
+                                       mclk_khz = "24000";
+                                       num_lanes = "4";
+                                       tegra_sinterface = "serial_a";
+                                       discontinuous_clk = "yes";
+                                       cil_settletime = "0";
+
+                                       active_w = "3864";
+                                       active_h = "2160";
+                                       pixel_t = "bayer_rggb";
+                                       readout_orientation = "90";
+                                       line_length = "4200";
+                                       inherent_gain = "1";
+                                       mclk_multiplier = "25";
+                                       pix_clk_hz = "576000000";
+
+                                       min_gain_val = "1.0";
+                                       max_gain_val = "22.2";
+                                       min_hdr_ratio = "1";
+                                       max_hdr_ratio = "64";
+                                       min_framerate = "1.462526";
+                                       max_framerate = "30";
+                                       min_exp_time = "16.165";
+                                       max_exp_time = "33191";
+                                       embedded_metadata_height = "0";
+                               };
+
+                               mode1 { // IMX274_MODE_3840X2160@60fps
                                        mclk_khz = "24000";
                                        num_lanes = "4";
                                        tegra_sinterface = "serial_a";
                                        embedded_metadata_height = "0";
                                };
 
+                               mode2 { // IMX274_MODE_1920X1080@60fps
+                                       mclk_khz = "24000";
+                                       num_lanes = "4";
+                                       tegra_sinterface = "serial_a";
+                                       discontinuous_clk = "yes";
+                                       cil_settletime = "0";
+
+                                       active_w = "1932";
+                                       active_h = "1080";
+                                       pixel_t = "bayer_rggb";
+                                       readout_orientation = "90";
+                                       line_length = "4200";
+                                       inherent_gain = "1";
+                                       mclk_multiplier = "25";
+                                       pix_clk_hz = "576000000";
+
+                                       min_gain_val = "1.0";
+                                       max_gain_val = "22.2";
+                                       min_hdr_ratio = "1";
+                                       max_hdr_ratio = "64";
+                                       min_framerate = "1.462526";
+                                       max_framerate = "60";
+                                       min_exp_time = "16.165";
+                                       max_exp_time = "33191";
+                                       embedded_metadata_height = "0";
+                               };
+
                                ports {
                                        #address-cells = <1>;
                                        #size-cells = <0>;