1*8d13bc63SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*8d13bc63SEmmanuel Vadot%YAML 1.2
3*8d13bc63SEmmanuel Vadot---
4*8d13bc63SEmmanuel Vadot$id: http://devicetree.org/schemas/media/i2c/ovti,ov64a40.yaml#
5*8d13bc63SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*8d13bc63SEmmanuel Vadot
7*8d13bc63SEmmanuel Vadottitle: OmniVision OV64A40 Image Sensor
8*8d13bc63SEmmanuel Vadot
9*8d13bc63SEmmanuel Vadotmaintainers:
10*8d13bc63SEmmanuel Vadot  - Jacopo Mondi <jacopo.mondi@ideasonboard.com>
11*8d13bc63SEmmanuel Vadot
12*8d13bc63SEmmanuel VadotallOf:
13*8d13bc63SEmmanuel Vadot  - $ref: /schemas/media/video-interface-devices.yaml#
14*8d13bc63SEmmanuel Vadot
15*8d13bc63SEmmanuel Vadotproperties:
16*8d13bc63SEmmanuel Vadot  compatible:
17*8d13bc63SEmmanuel Vadot    const: ovti,ov64a40
18*8d13bc63SEmmanuel Vadot
19*8d13bc63SEmmanuel Vadot  reg:
20*8d13bc63SEmmanuel Vadot    maxItems: 1
21*8d13bc63SEmmanuel Vadot
22*8d13bc63SEmmanuel Vadot  clocks:
23*8d13bc63SEmmanuel Vadot    maxItems: 1
24*8d13bc63SEmmanuel Vadot
25*8d13bc63SEmmanuel Vadot  avdd-supply:
26*8d13bc63SEmmanuel Vadot    description: Analog voltage supply, 2.8 volts
27*8d13bc63SEmmanuel Vadot
28*8d13bc63SEmmanuel Vadot  dvdd-supply:
29*8d13bc63SEmmanuel Vadot    description: Digital core voltage supply, 1.1 volts
30*8d13bc63SEmmanuel Vadot
31*8d13bc63SEmmanuel Vadot  dovdd-supply:
32*8d13bc63SEmmanuel Vadot    description: Digital I/O voltage supply, 1.8 volts
33*8d13bc63SEmmanuel Vadot
34*8d13bc63SEmmanuel Vadot  powerdown-gpios:
35*8d13bc63SEmmanuel Vadot    maxItems: 1
36*8d13bc63SEmmanuel Vadot
37*8d13bc63SEmmanuel Vadot  reset-gpios:
38*8d13bc63SEmmanuel Vadot    maxItems: 1
39*8d13bc63SEmmanuel Vadot
40*8d13bc63SEmmanuel Vadot  port:
41*8d13bc63SEmmanuel Vadot    $ref: /schemas/graph.yaml#/$defs/port-base
42*8d13bc63SEmmanuel Vadot    additionalProperties: false
43*8d13bc63SEmmanuel Vadot
44*8d13bc63SEmmanuel Vadot    properties:
45*8d13bc63SEmmanuel Vadot      endpoint:
46*8d13bc63SEmmanuel Vadot        $ref: /schemas/media/video-interfaces.yaml#
47*8d13bc63SEmmanuel Vadot        additionalProperties: false
48*8d13bc63SEmmanuel Vadot
49*8d13bc63SEmmanuel Vadot        properties:
50*8d13bc63SEmmanuel Vadot          bus-type:
51*8d13bc63SEmmanuel Vadot            enum:
52*8d13bc63SEmmanuel Vadot              - 1 # MIPI CSI-2 C-PHY
53*8d13bc63SEmmanuel Vadot              - 4 # MIPI CSI-2 D-PHY
54*8d13bc63SEmmanuel Vadot          data-lanes: true
55*8d13bc63SEmmanuel Vadot          link-frequencies: true
56*8d13bc63SEmmanuel Vadot          clock-noncontinuous: true
57*8d13bc63SEmmanuel Vadot          remote-endpoint: true
58*8d13bc63SEmmanuel Vadot
59*8d13bc63SEmmanuel Vadot        required:
60*8d13bc63SEmmanuel Vadot          - bus-type
61*8d13bc63SEmmanuel Vadot          - data-lanes
62*8d13bc63SEmmanuel Vadot          - link-frequencies
63*8d13bc63SEmmanuel Vadot
64*8d13bc63SEmmanuel Vadotrequired:
65*8d13bc63SEmmanuel Vadot  - compatible
66*8d13bc63SEmmanuel Vadot  - reg
67*8d13bc63SEmmanuel Vadot  - clocks
68*8d13bc63SEmmanuel Vadot  - port
69*8d13bc63SEmmanuel Vadot
70*8d13bc63SEmmanuel VadotunevaluatedProperties: false
71*8d13bc63SEmmanuel Vadot
72*8d13bc63SEmmanuel Vadotexamples:
73*8d13bc63SEmmanuel Vadot  - |
74*8d13bc63SEmmanuel Vadot      #include <dt-bindings/gpio/gpio.h>
75*8d13bc63SEmmanuel Vadot
76*8d13bc63SEmmanuel Vadot      i2c {
77*8d13bc63SEmmanuel Vadot          #address-cells = <1>;
78*8d13bc63SEmmanuel Vadot          #size-cells = <0>;
79*8d13bc63SEmmanuel Vadot
80*8d13bc63SEmmanuel Vadot          camera@36 {
81*8d13bc63SEmmanuel Vadot              compatible = "ovti,ov64a40";
82*8d13bc63SEmmanuel Vadot              reg = <0x36>;
83*8d13bc63SEmmanuel Vadot              clocks = <&camera_clk>;
84*8d13bc63SEmmanuel Vadot              dovdd-supply = <&vgen4_reg>;
85*8d13bc63SEmmanuel Vadot              avdd-supply = <&vgen3_reg>;
86*8d13bc63SEmmanuel Vadot              dvdd-supply = <&vgen2_reg>;
87*8d13bc63SEmmanuel Vadot              powerdown-gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
88*8d13bc63SEmmanuel Vadot              reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
89*8d13bc63SEmmanuel Vadot              rotation = <180>;
90*8d13bc63SEmmanuel Vadot              orientation = <2>;
91*8d13bc63SEmmanuel Vadot
92*8d13bc63SEmmanuel Vadot              port {
93*8d13bc63SEmmanuel Vadot                  endpoint {
94*8d13bc63SEmmanuel Vadot                      remote-endpoint = <&mipi_csi2_in>;
95*8d13bc63SEmmanuel Vadot                      bus-type = <4>;
96*8d13bc63SEmmanuel Vadot                      data-lanes = <1 2 3 4>;
97*8d13bc63SEmmanuel Vadot                      link-frequencies = /bits/ 64 <456000000>;
98*8d13bc63SEmmanuel Vadot                  };
99*8d13bc63SEmmanuel Vadot              };
100*8d13bc63SEmmanuel Vadot          };
101*8d13bc63SEmmanuel Vadot      };
102*8d13bc63SEmmanuel Vadot
103*8d13bc63SEmmanuel Vadot...
104