File Index
Files and directories
Sign in
FILE

ovti,ov5645.yaml

File preview with syntax highlighting.

linux-6.19.14/Documentation/devicetree/bindings/media/i2c/ovti,ov5645.yaml YAML
  1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2%YAML 1.2
  3---
  4$id: http://devicetree.org/schemas/media/i2c/ovti,ov5645.yaml#
  5$schema: http://devicetree.org/meta-schemas/core.yaml#
  6
  7title: OmniVision OV5645 Image Sensor
  8
  9maintainers:
 10  - Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
 11
 12properties:
 13  compatible:
 14    const: ovti,ov5645
 15
 16  reg:
 17    maxItems: 1
 18
 19  clocks:
 20    description: XCLK Input Clock
 21
 22  clock-frequency:
 23    description: Frequency of the xclk clock in Hz.
 24    deprecated: true
 25
 26  vdda-supply:
 27    description: Analog voltage supply, 2.8 volts
 28
 29  vddd-supply:
 30    description: Digital core voltage supply, 1.5 volts
 31
 32  vdddo-supply:
 33    description: Digital I/O voltage supply, 1.8 volts
 34
 35  enable-gpios:
 36    maxItems: 1
 37    description:
 38      Reference to the GPIO connected to the PWDNB pin, if any.
 39
 40  reset-gpios:
 41    maxItems: 1
 42    description:
 43      Reference to the GPIO connected to the RESETB pin, if any.
 44
 45  port:
 46    description: Digital Output Port
 47    $ref: /schemas/graph.yaml#/$defs/port-base
 48    additionalProperties: false
 49
 50    properties:
 51      endpoint:
 52        $ref: /schemas/media/video-interfaces.yaml#
 53        unevaluatedProperties: false
 54
 55        properties:
 56          data-lanes:
 57            minItems: 1
 58            maxItems: 2
 59            items:
 60              enum: [1, 2]
 61
 62        required:
 63          - data-lanes
 64
 65required:
 66  - compatible
 67  - reg
 68  - clocks
 69  - vdddo-supply
 70  - vdda-supply
 71  - vddd-supply
 72  - port
 73
 74additionalProperties: false
 75
 76examples:
 77  - |
 78    #include <dt-bindings/gpio/gpio.h>
 79
 80    i2c {
 81        #address-cells = <1>;
 82        #size-cells = <0>;
 83
 84        camera@3c {
 85            compatible = "ovti,ov5645";
 86            reg = <0x3c>;
 87
 88            clocks = <&clks 1>;
 89            assigned-clocks = <&clks 1>;
 90            assigned-clock-rates = <24000000>;
 91
 92            vdddo-supply = <&ov5645_vdddo_1v8>;
 93            vdda-supply = <&ov5645_vdda_2v8>;
 94            vddd-supply = <&ov5645_vddd_1v5>;
 95            enable-gpios = <&gpio1 19 GPIO_ACTIVE_HIGH>;
 96            reset-gpios = <&gpio1 20 GPIO_ACTIVE_LOW>;
 97            pinctrl-names = "default";
 98            pinctrl-0 = <&pinctrl_ov5645>;
 99
100            port {
101                ov5645_ep: endpoint {
102                    remote-endpoint = <&csi0_ep>;
103                    data-lanes = <1 2>;
104                };
105            };
106        };
107    };
108...
~/ Read-only file preview.