From 9239fb802eb988345d0326d5edfe3a7d69fe3f15 Mon Sep 17 00:00:00 2001 From: Leo Wen Date: Thu, 8 Nov 2018 20:10:21 +0800 Subject: [PATCH] [media]: dt/bindings: Add bindings for OV2735 Add device tree binding documentation for the OV2735 sensor. Change-Id: Ieab6251eefba56141026be56c6b1c7a71551a6ea Signed-off-by: Leo Wen --- .../devicetree/bindings/media/i2c/ov2735.txt | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/ov2735.txt diff --git a/Documentation/devicetree/bindings/media/i2c/ov2735.txt b/Documentation/devicetree/bindings/media/i2c/ov2735.txt new file mode 100644 index 000000000000..1cef105d1880 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/ov2735.txt @@ -0,0 +1,42 @@ +* Omnivision OV2735 MIPI CSI-2 sensor + +Required Properties: +- compatible: should be "ovti,ov2735" +- clocks: reference to the 24M xvclk input clock. +- clock-names: should be "xvclk". +- dovdd-supply: Digital I/O voltage supply, 1.8 volts +- avdd-supply: Analog voltage supply, 2.8 volts +- dvdd-supply: Digital core voltage supply, 1.2 volts +- reset-gpios: Low active reset gpio + +The device node must contain one 'port' child node for its digital output +video port, in accordance with the video interface bindings defined in +Documentation/devicetree/bindings/media/video-interfaces.txt. + +Example: + + i2c0@1c22000 { + ... + ... + ov2735: ov2735@3c { + compatible = "ovti,ov2735"; + reg = <0x3c>; + + clocks = <&cru SCLK_CIF_OUT>; + clock-names = "xvclk"; + + avdd-supply = <&vcc2v8_dvp>; + dovdd-supply = <&vcc1v8_dvp>; + dvdd-supply = <&vcc1v8_dvp>; + + pwdn-gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>; + + port { + ucam_out: endpoint { + remote-endpoint = <&mipi_in_ucam>; + data-lanes = <1 2>; + }; + }; + }; + ... + }; \ No newline at end of file