135 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/media/i2c/ovti,ov772x.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Omnivision OV7720/OV7725 CMOS sensor8 9maintainers:10 - Jacopo Mondi <jacopo@jmondi.org>11 12description: |13 The Omnivision OV7720/OV7725 sensor supports multiple resolutions output,14 such as VGA, QVGA, and any size scaling down from CIF to 40x30. It also can15 support the YUV422, RGB565/555/444, GRB422 or raw RGB output formats.16 17properties:18 compatible:19 enum:20 - ovti,ov772021 - ovti,ov772522 23 reg:24 maxItems: 125 26 clocks:27 maxItems: 128 29 reset-gpios:30 description: |31 Reference to the GPIO connected to the RSTB pin which is active low.32 maxItems: 133 34 powerdown-gpios:35 description: |36 Reference to the GPIO connected to the PWDN pin which is active high.37 maxItems: 138 39 port:40 $ref: /schemas/graph.yaml#/$defs/port-base41 description: |42 Video output port.43 44 properties:45 endpoint:46 $ref: /schemas/media/video-interfaces.yaml#47 unevaluatedProperties: false48 49 properties:50 bus-type:51 enum: [5, 6]52 53 bus-width:54 enum: [8, 10]55 default: 1056 57 data-shift:58 enum: [0, 2]59 default: 060 61 hsync-active:62 enum: [0, 1]63 default: 164 65 vsync-active:66 enum: [0, 1]67 default: 168 69 pclk-sample:70 enum: [0, 1]71 default: 172 73 allOf:74 - if:75 properties:76 bus-type:77 const: 678 then:79 properties:80 hsync-active: false81 vsync-active: false82 83 - if:84 properties:85 bus-width:86 const: 1087 then:88 properties:89 data-shift:90 const: 091 92 required:93 - bus-type94 95 additionalProperties: false96 97required:98 - compatible99 - reg100 - clocks101 - port102 103additionalProperties: false104 105examples:106 - |107 #include <dt-bindings/gpio/gpio.h>108 #include <dt-bindings/media/video-interfaces.h>109 110 i2c {111 #address-cells = <1>;112 #size-cells = <0>;113 ov772x: camera@21 {114 compatible = "ovti,ov7725";115 reg = <0x21>;116 reset-gpios = <&axi_gpio_0 0 GPIO_ACTIVE_LOW>;117 powerdown-gpios = <&axi_gpio_0 1 GPIO_ACTIVE_LOW>;118 clocks = <&xclk>;119 120 port {121 ov772x_0: endpoint {122 bus-type = <MEDIA_BUS_TYPE_PARALLEL>;123 vsync-active = <0>;124 hsync-active = <0>;125 pclk-sample = <0>;126 bus-width = <8>;127 data-shift = <0>;128 remote-endpoint = <&vcap1_in0>;129 };130 };131 };132 };133 134...135