File Index
Files and directories
Sign in
FILE

galaxycore,gc05a2.yaml

File preview with syntax highlighting.

linux-6.19.14/Documentation/devicetree/bindings/media/i2c/galaxycore,gc05a2.yaml YAML
  1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2# Copyright (c) 2023 MediaTek Inc.
  3%YAML 1.2
  4---
  5$id: http://devicetree.org/schemas/media/i2c/galaxycore,gc05a2.yaml#
  6$schema: http://devicetree.org/meta-schemas/core.yaml#
  7
  8title: GalaxyCore gc05a2 1/5" 5M Pixel MIPI CSI-2 sensor
  9
 10maintainers:
 11  - Zhi Mao <zhi.mao@mediatek.com>
 12
 13description:
 14  The gc05a2 is a raw image sensor with an MIPI CSI-2 image data
 15  interface and CCI (I2C compatible) control bus. The output format
 16  is raw Bayer.
 17
 18properties:
 19  compatible:
 20    const: galaxycore,gc05a2
 21
 22  reg:
 23    maxItems: 1
 24
 25  clocks:
 26    maxItems: 1
 27
 28  dovdd-supply: true
 29
 30  avdd-supply: true
 31
 32  dvdd-supply: true
 33
 34  reset-gpios:
 35    description: Reference to the GPIO connected to the RESETB pin.
 36    maxItems: 1
 37
 38  port:
 39    $ref: /schemas/graph.yaml#/$defs/port-base
 40    additionalProperties: false
 41    description:
 42      Output port node, single endpoint describing the CSI-2 transmitter.
 43
 44    properties:
 45      endpoint:
 46        $ref: /schemas/media/video-interfaces.yaml#
 47        unevaluatedProperties: false
 48
 49        properties:
 50          data-lanes:
 51            oneOf:
 52              - items:
 53                  - const: 1
 54                  - const: 2
 55                  - const: 3
 56                  - const: 4
 57              - items:
 58                  - const: 1
 59                  - const: 2
 60
 61          link-frequencies: true
 62
 63        required:
 64          - data-lanes
 65          - link-frequencies
 66
 67    required:
 68      - endpoint
 69
 70required:
 71  - compatible
 72  - reg
 73  - clocks
 74  - dovdd-supply
 75  - avdd-supply
 76  - dvdd-supply
 77  - reset-gpios
 78  - port
 79
 80additionalProperties: false
 81
 82examples:
 83  - |
 84    #include <dt-bindings/gpio/gpio.h>
 85
 86    i2c {
 87        #address-cells = <1>;
 88        #size-cells = <0>;
 89
 90        sensor@37 {
 91            compatible =  "galaxycore,gc05a2";
 92            reg = <0x37>;
 93
 94            clocks = <&gc05a2_clk>;
 95
 96            reset-gpios = <&pio 21 GPIO_ACTIVE_LOW>;
 97
 98            avdd-supply = <&gc05a2_avdd>;
 99            dovdd-supply = <&gc05a2_dovdd>;
100            dvdd-supply = <&gc05a2_dvdd>;
101
102            port {
103                sensor_out: endpoint {
104                    data-lanes = <1 2>;
105                    link-frequencies = /bits/ 64 <448000000 224000000>;
106                    remote-endpoint = <&seninf_csi_port_1_in>;
107                };
108            };
109        };
110    };
111
112...
~/ Read-only file preview.