119 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/media/i2c/ovti,ov8865.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: OmniVision OV8865 Image Sensor8 9maintainers:10 - Paul Kocialkowski <paul.kocialkowski@bootlin.com>11 12properties:13 compatible:14 const: ovti,ov886515 16 reg:17 maxItems: 118 19 clocks:20 items:21 - description: EXTCLK Clock22 23 assigned-clocks:24 maxItems: 125 26 assigned-clock-rates:27 maxItems: 128 29 dvdd-supply:30 description: Digital Domain Power Supply31 32 avdd-supply:33 description: Analog Domain Power Supply34 35 dovdd-supply:36 description: I/O Domain Power Supply37 38 powerdown-gpios:39 maxItems: 140 description: Power Down Pin GPIO Control (active low)41 42 reset-gpios:43 maxItems: 144 description: Reset Pin GPIO Control (active low)45 46 port:47 description: MIPI CSI-2 transmitter port48 $ref: /schemas/graph.yaml#/$defs/port-base49 additionalProperties: false50 51 properties:52 endpoint:53 $ref: /schemas/media/video-interfaces.yaml#54 unevaluatedProperties: false55 56 properties:57 link-frequencies: true58 59 data-lanes:60 minItems: 161 maxItems: 462 63 required:64 - data-lanes65 - link-frequencies66 67required:68 - compatible69 - reg70 - clocks71 - assigned-clocks72 - assigned-clock-rates73 - dvdd-supply74 - avdd-supply75 - dovdd-supply76 - port77 78additionalProperties: false79 80examples:81 - |82 #include <dt-bindings/clock/sun8i-a83t-ccu.h>83 #include <dt-bindings/gpio/gpio.h>84 85 i2c {86 #address-cells = <1>;87 #size-cells = <0>;88 89 ov8865: camera@36 {90 compatible = "ovti,ov8865";91 reg = <0x36>;92 93 pinctrl-names = "default";94 pinctrl-0 = <&csi_mclk_pin>;95 96 clocks = <&ccu CLK_CSI_MCLK>;97 assigned-clocks = <&ccu CLK_CSI_MCLK>;98 assigned-clock-rates = <24000000>;99 100 avdd-supply = <®_ov8865_avdd>;101 dovdd-supply = <®_ov8865_dovdd>;102 dvdd-supply = <®_ov8865_dvdd>;103 104 powerdown-gpios = <&pio 4 17 GPIO_ACTIVE_LOW>; /* PE17 */105 reset-gpios = <&pio 4 16 GPIO_ACTIVE_LOW>; /* PE16 */106 107 port {108 ov8865_out_mipi_csi2: endpoint {109 data-lanes = <1 2 3 4>;110 link-frequencies = /bits/ 64 <360000000>;111 112 remote-endpoint = <&mipi_csi2_in_ov8865>;113 };114 };115 };116 };117 118...119