summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorSudhir Vyas <svyas@nvidia.com>2013-03-19 13:30:15 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 13:04:37 -0700
commit6bc31ad582a7d6eb0130357e8f52a145b019b930 (patch)
tree3750ddc1c67c948e41bcad63381e93c261ab44fc /Documentation
parentb5b6ea7bb5e930c936d81254a6a6d2f5cbb846e1 (diff)
arm: dts: pluto: Add imx091 and ad5816 DT support
Bug 1242841 Bug 1242860 Change-Id: I7e7b79bbecbd40a4a5754374dd83e06a37e86053 Signed-off-by: Sudhir Vyas <svyas@nvidia.com> Change-Id: Ic11e382f5a6e74ca4e4eab264f633731ca8087df Reviewed-on: http://git-master/r/211220 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/devicetree/bindings/video/nvidia,ad5816.txt36
-rw-r--r--Documentation/devicetree/bindings/video/nvidia,imx091.txt91
2 files changed, 127 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/video/nvidia,ad5816.txt b/Documentation/devicetree/bindings/video/nvidia,ad5816.txt
new file mode 100644
index 000000000000..a11d5f4d318e
--- /dev/null
+++ b/Documentation/devicetree/bindings/video/nvidia,ad5816.txt
@@ -0,0 +1,36 @@
+NVIDIA Camera sensor ad5816 driver interface.
+
+Required properties:
+- compatible : The driver is compatible with
+ "nvidia,ad5816".
+
+- reg: Should contain I2C slave address of the driver.
+
+All other properties are based on nvc (nvidia camera interface) standard
+structures definitions, which are generic across the devices. Few of them are
+explained below:
+
+- nvidia,num: Indicates the instance of particular camera device, in this case
+it is for camera focuser device. Currently for rear camera focuser "0" is used.
+
+- nvidia,sync: Used for stereo synchronization. "0" for non-stereo usecase.
+
+- nvidia,dev_name: Camera device driver name.
+
+For more details refer nvc headers at : $TOP/kernel/include/media/
+nvc.h
+nvc_focus.h
+nvc_image.h
+nvc_torch.h
+
+Example:
+
+ ad5816@0E {
+ compatible = "nvidia,ad5816";
+ reg = <0x0E>;
+ nvidia,cfg = <0>;
+ nvidia,num = <0>;
+ nvidia,sync = <0>;
+ nvidia,dev_name = "focuser";
+ status = "okay";
+ }; \ No newline at end of file
diff --git a/Documentation/devicetree/bindings/video/nvidia,imx091.txt b/Documentation/devicetree/bindings/video/nvidia,imx091.txt
new file mode 100644
index 000000000000..d7bc9ae5ebff
--- /dev/null
+++ b/Documentation/devicetree/bindings/video/nvidia,imx091.txt
@@ -0,0 +1,91 @@
+NVIDIA Camera sensor imx091 driver interface.
+
+Properties:
+- compatible : The driver is compatible with
+ "nvidia,imx091".
+
+- reg: Should contain I2C slave address of the driver.
+
+- nvidia,vcm_vdd : For few platforms this driver needs extra power regulator
+"vcm_vdd" to be enabled. This bool property indicates the same. It must be
+programmed only when imx091 driver needs it for a particular platform.
+
+- nvidia,i2c_vdd : For few platforms this driver needs extra power regulator
+"i2c_vdd" to be enabled. This bool property indicates the same. It must be
+programmed only when imx091 driver needs it for a particular platform.
+
+- nvidia,num: Indicates the instance of particular camera device, in this case
+it is for camera focuser device. Currently for rear camera focuser "0" is used.
+
+- nvidia,sync: Used for stereo synchronization. "0" for non-stereo usecase.
+
+- nvidia,dev_name: Camera device driver name.
+
+- imx091 caps: These properties are based on nvc (nvidia camera interface)
+standard structure definition: nvc_imager_cap , which is generic across
+the devices. For details refer nvc headers at :
+$TOP/kernel/include/media/nvc_image.h
+
+- edpc configs: standard edp paramters.
+ - states: EDP state array holding the IMAX for each state. This must be
+ sorted in descending order.
+ - num_states: length of the above array.
+ - e0_index: index of the E0 state in the above array.
+ - priority: client priority - should be between EDP_MIN_PRIO & EDP_MAX_PRIO.
+
+- flash caps: Please see below example for properties related to imx091
+flash capabilities.
+
+Example:
+
+ imx091@10 {
+ compatible = "nvidia,imx091";
+ reg = <0x10>;
+ nvidia,ext_reg; /* Extra power-regulators needed */
+
+ nvidia,num = <0>;
+ nvidia,sync = <0>;
+ nvidia,dev_name = "camera";
+
+ /* edpc config */
+ nvidia,imx091_estates = <876 656 220 0>;
+ nvidia,num_states = <4>;
+ nvidia,e0_index = <0>;
+ nvidia,priority = <1>;
+
+ /* imx091 gpios */
+ reset-gpios = <&gpio 219 0>; /* gpio PBB3 */
+ power-gpios = <&gpio 221 0>; /* gpio PBB6 */
+ gp1-gpios = <&gpio 225 0>; /* gpio PCC1 */
+
+ /* imx091 caps */
+ nvidia,identifier = "IMX091";
+ nvidia,sensor_nvc_interface = <3>;
+ nvidia,pixel_types = <0x100>;
+ nvidia,orientation = <0>;
+ nvidia,direction = <0>;
+ nvidia,initial_clock_rate_khz = <6000>;
+ nvidia,h_sync_edge = <0>;
+ nvidia,v_sync_edge = <0>;
+ nvidia,mclk_on_vgp0 = <0>;
+ nvidia,csi_port = <0>;
+ nvidia,data_lanes = <4>;
+ nvidia,virtual_channel_id = <0>;
+ nvidia,discontinuous_clk_mode = <1>;
+ nvidia,cil_threshold_settle = <0x0>;
+ nvidia,min_blank_time_width = <16>;
+ nvidia,min_blank_time_height = <16>;
+ nvidia,preferred_mode_index = <0>;
+ nvidia,external_clock_khz_0 = <24000>;
+ nvidia,clock_multiplier_0 = <850000>;
+ nvidia,external_clock_khz_1 = <0>;
+ nvidia,clock_multiplier_1 = <0>;
+
+ /* flash caps */
+ nvidia,sdo_trigger_enabled;
+ nvidia,adjustable_flash_timing;
+
+ status = "okay";
+
+ };
+