113 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)2# Copyright (c) 2023 MediaTek Inc.3%YAML 1.24---5$id: http://devicetree.org/schemas/media/i2c/galaxycore,gc08a3.yaml#6$schema: http://devicetree.org/meta-schemas/core.yaml#7 8title: GalaxyCore gc08a3 1/4" 8M Pixel MIPI CSI-2 sensor9 10maintainers:11 - Zhi Mao <zhi.mao@mediatek.com>12 13description:14 The gc08a3 is a raw image sensor with an MIPI CSI-2 image data15 interface and CCI (I2C compatible) control bus. The output format16 is raw Bayer.17 18properties:19 compatible:20 const: galaxycore,gc08a321 22 reg:23 maxItems: 124 25 clocks:26 maxItems: 127 28 dovdd-supply: true29 30 avdd-supply: true31 32 dvdd-supply: true33 34 reset-gpios:35 description: Reference to the GPIO connected to the RESETB pin.36 maxItems: 137 38 port:39 $ref: /schemas/graph.yaml#/$defs/port-base40 additionalProperties: false41 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: false48 49 properties:50 data-lanes:51 oneOf:52 - items:53 - const: 154 - const: 255 - const: 356 - const: 457 - items:58 - const: 159 - const: 260 61 link-frequencies: true62 63 required:64 - data-lanes65 - link-frequencies66 67 required:68 - endpoint69 70required:71 - compatible72 - reg73 - clocks74 - dovdd-supply75 - avdd-supply76 - dvdd-supply77 - reset-gpios78 - port79 80additionalProperties: false81 82examples:83 - |84 #include <dt-bindings/gpio/gpio.h>85 86 i2c {87 #address-cells = <1>;88 #size-cells = <0>;89 90 sensor@31 {91 compatible = "galaxycore,gc08a3";92 reg = <0x31>;93 94 clocks = <&gc08a3_clk>;95 96 reset-gpios = <&pio 19 GPIO_ACTIVE_LOW>;97 98 avdd-supply = <&gc08a3_avdd>;99 dovdd-supply = <&gc08a3_dovdd>;100 dvdd-supply = <&gc08a3_dvdd>;101 102 port {103 sensor_out: endpoint {104 data-lanes = <1 2 3 4>;105 link-frequencies = /bits/ 64 <336000000 207000000>;106 remote-endpoint = <&seninf_csi_port_0_in>;107 };108 };109 };110 };111 112...113