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