1*8d561d78SLuca Weiss# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2*8d561d78SLuca Weiss%YAML 1.2 3*8d561d78SLuca Weiss--- 4*8d561d78SLuca Weiss$id: http://devicetree.org/schemas/media/i2c/ovti,ov2685.yaml# 5*8d561d78SLuca Weiss$schema: http://devicetree.org/meta-schemas/core.yaml# 6*8d561d78SLuca Weiss 7*8d561d78SLuca Weisstitle: OmniVision OV2685 Image Sensor 8*8d561d78SLuca Weiss 9*8d561d78SLuca Weissmaintainers: 10*8d561d78SLuca Weiss - Shunqian Zheng <zhengsq@rock-chips.com> 11*8d561d78SLuca Weiss 12*8d561d78SLuca Weissproperties: 13*8d561d78SLuca Weiss compatible: 14*8d561d78SLuca Weiss const: ovti,ov2685 15*8d561d78SLuca Weiss 16*8d561d78SLuca Weiss reg: 17*8d561d78SLuca Weiss maxItems: 1 18*8d561d78SLuca Weiss 19*8d561d78SLuca Weiss clocks: 20*8d561d78SLuca Weiss items: 21*8d561d78SLuca Weiss - description: XVCLK clock 22*8d561d78SLuca Weiss 23*8d561d78SLuca Weiss clock-names: 24*8d561d78SLuca Weiss items: 25*8d561d78SLuca Weiss - const: xvclk 26*8d561d78SLuca Weiss 27*8d561d78SLuca Weiss dvdd-supply: 28*8d561d78SLuca Weiss description: Digital Domain Power Supply 29*8d561d78SLuca Weiss 30*8d561d78SLuca Weiss avdd-supply: 31*8d561d78SLuca Weiss description: Analog Domain Power Supply 32*8d561d78SLuca Weiss 33*8d561d78SLuca Weiss dovdd-supply: 34*8d561d78SLuca Weiss description: I/O Domain Power Supply 35*8d561d78SLuca Weiss 36*8d561d78SLuca Weiss reset-gpios: 37*8d561d78SLuca Weiss maxItems: 1 38*8d561d78SLuca Weiss description: Reset Pin GPIO Control (active low) 39*8d561d78SLuca Weiss 40*8d561d78SLuca Weiss port: 41*8d561d78SLuca Weiss description: MIPI CSI-2 transmitter port 42*8d561d78SLuca Weiss $ref: /schemas/graph.yaml#/$defs/port-base 43*8d561d78SLuca Weiss additionalProperties: false 44*8d561d78SLuca Weiss 45*8d561d78SLuca Weiss properties: 46*8d561d78SLuca Weiss endpoint: 47*8d561d78SLuca Weiss $ref: /schemas/media/video-interfaces.yaml# 48*8d561d78SLuca Weiss unevaluatedProperties: false 49*8d561d78SLuca Weiss 50*8d561d78SLuca Weiss properties: 51*8d561d78SLuca Weiss data-lanes: 52*8d561d78SLuca Weiss maxItems: 2 53*8d561d78SLuca Weiss 54*8d561d78SLuca Weiss required: 55*8d561d78SLuca Weiss - data-lanes 56*8d561d78SLuca Weiss 57*8d561d78SLuca Weissrequired: 58*8d561d78SLuca Weiss - compatible 59*8d561d78SLuca Weiss - reg 60*8d561d78SLuca Weiss - clocks 61*8d561d78SLuca Weiss - clock-names 62*8d561d78SLuca Weiss - dvdd-supply 63*8d561d78SLuca Weiss - avdd-supply 64*8d561d78SLuca Weiss - dovdd-supply 65*8d561d78SLuca Weiss - port 66*8d561d78SLuca Weiss 67*8d561d78SLuca WeissadditionalProperties: false 68*8d561d78SLuca Weiss 69*8d561d78SLuca Weissexamples: 70*8d561d78SLuca Weiss - | 71*8d561d78SLuca Weiss #include <dt-bindings/clock/rk3399-cru.h> 72*8d561d78SLuca Weiss #include <dt-bindings/gpio/gpio.h> 73*8d561d78SLuca Weiss 74*8d561d78SLuca Weiss i2c { 75*8d561d78SLuca Weiss #address-cells = <1>; 76*8d561d78SLuca Weiss #size-cells = <0>; 77*8d561d78SLuca Weiss 78*8d561d78SLuca Weiss ov2685: camera-sensor@3c { 79*8d561d78SLuca Weiss compatible = "ovti,ov2685"; 80*8d561d78SLuca Weiss reg = <0x3c>; 81*8d561d78SLuca Weiss pinctrl-names = "default"; 82*8d561d78SLuca Weiss pinctrl-0 = <&clk_24m_cam>; 83*8d561d78SLuca Weiss 84*8d561d78SLuca Weiss clocks = <&cru SCLK_TESTCLKOUT1>; 85*8d561d78SLuca Weiss clock-names = "xvclk"; 86*8d561d78SLuca Weiss 87*8d561d78SLuca Weiss avdd-supply = <&pp2800_cam>; 88*8d561d78SLuca Weiss dovdd-supply = <&pp1800>; 89*8d561d78SLuca Weiss dvdd-supply = <&pp1800>; 90*8d561d78SLuca Weiss reset-gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; 91*8d561d78SLuca Weiss 92*8d561d78SLuca Weiss port { 93*8d561d78SLuca Weiss ucam_out: endpoint { 94*8d561d78SLuca Weiss remote-endpoint = <&mipi_in_ucam>; 95*8d561d78SLuca Weiss data-lanes = <1>; 96*8d561d78SLuca Weiss }; 97*8d561d78SLuca Weiss }; 98*8d561d78SLuca Weiss }; 99*8d561d78SLuca Weiss }; 100*8d561d78SLuca Weiss 101*8d561d78SLuca Weiss... 102