diff options
author | Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> | 2019-10-11 09:26:12 +0530 |
---|---|---|
committer | Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> | 2019-10-25 17:56:53 +0530 |
commit | e27021ffecbcedfcdbaa5ffc5c0326edd70ef03c (patch) | |
tree | 8839821eb69dc9ed7dccf0db56d784fb3051f3f6 | |
parent | 8bdd343f96dc838eefba94a051e84c6db4d1c55d (diff) | |
download | 96b-common-e27021ffecbcedfcdbaa5ffc5c0326edd70ef03c.tar.gz |
dt-bindings: media: i2c: Add IMX296 CMOS sensor binding
Add devicetree binding for IMX296 CMOS image sensor.
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
-rw-r--r-- | Documentation/devicetree/bindings/media/i2c/imx296.txt | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/media/i2c/imx296.txt b/Documentation/devicetree/bindings/media/i2c/imx296.txt new file mode 100644 index 000000000000..25d3b15162c1 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/imx296.txt @@ -0,0 +1,55 @@ +* Sony IMX296 1/2.8-Inch CMOS Image Sensor + +The Sony IMX296 is a 1/2.9-Inch active pixel type CMOS Solid-state image +sensor with square pixel array and 1.58 M effective pixels. This chip features +a global shutter with variable charge-integration time. It is programmable +through I2C and 4-wire interfaces. The sensor output is available via CSI-2 +serial data output (1 Lane). + +Required Properties: +- compatible: Should be "sony,imx296" +- reg: I2C bus address of the device +- clocks: Reference to the mclk clock. +- clock-names: Should be "mclk". +- clock-frequency: Frequency of the mclk clock in Hz. +- vddo-supply: Interface power supply. +- vdda-supply: Analog power supply. +- vddd-supply: Digital power supply. + +Optional Properties: +- reset-gpios: Sensor reset GPIO + +The imx296 device node should contain one 'port' child node with +an 'endpoint' subnode. For further reading on port node refer to +Documentation/devicetree/bindings/media/video-interfaces.txt. + +Required Properties on endpoint: +- data-lanes: check ../video-interfaces.txt +- remote-endpoint: check ../video-interfaces.txt + +Example: + &i2c1 { + ... + imx296: camera-sensor@1a { + compatible = "sony,imx296"; + reg = <0x1a>; + + reset-gpios = <&msmgpio 35 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&camera_rear_default>; + + clocks = <&gcc GCC_CAMSS_MCLK0_CLK>; + clock-names = "mclk"; + clock-frequency = <37125000>; + + vddo-supply = <&camera_vddo_1v8>; + vdda-supply = <&camera_vdda_3v3>; + vddd-supply = <&camera_vddd_1v2>; + + port { + imx296_ep: endpoint { + data-lanes = <1>; + remote-endpoint = <&csiphy0_ep>; + }; + }; + }; |