From 6b591ac2d2639593d9a647dc647a3e7636760ff4 Mon Sep 17 00:00:00 2001 From: Leo Wen Date: Fri, 9 Nov 2018 15:14:05 +0800 Subject: [PATCH] [media]: dt/bindings: Add bindings for OV7251 Add device tree binding documentation for the OV7251 sensor. Change-Id: I39774f9018483f768d7dc18207d2f5b2d5a41eef Signed-off-by: Leo Wen --- .../devicetree/bindings/media/i2c/ov7251.txt | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/ov7251.txt diff --git a/Documentation/devicetree/bindings/media/i2c/ov7251.txt b/Documentation/devicetree/bindings/media/i2c/ov7251.txt new file mode 100644 index 000000000000..37d25462ac0b --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/ov7251.txt @@ -0,0 +1,42 @@ +* Omnivision OV7251 MIPI CSI-2 sensor + +Required Properties: +- compatible: should be "ovti,ov7251" +- 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 { + ... + ... + ov7251: ov7251@60 { + compatible = "ovti,ov7251"; + reg = <0x60>; + + 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>; + }; + }; + }; + ... + }; \ No newline at end of file