1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/media/i2c/galaxycore,gc2145.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Galaxy Core 1/5'' UXGA CMOS Image Sensor
8
9maintainers:
10  - Alain Volmat <alain.volmat@foss.st.com>
11
12description:
13  The Galaxy Core GC2145 is a 2 Megapixel CMOS image sensor, for mobile
14  phone camera applications and digital camera products. GC2145 incorporates a
15  1616V x 1232H active pixel array, on-chip 10-bit ADC, and image signal
16  processor allowing AE/AWB/interpolation/de-noise/color-conversion and
17  gamma correction. Bayer RGB, RGB565 and YCbCr 4:2:2 can be provided by the
18  sensor. It is programmable through an I2C interface. Image data is sent
19  either through a parallel interface or through MIPI CSI-2.
20
21allOf:
22  - $ref: ../video-interface-devices.yaml#
23
24properties:
25  compatible:
26    const: galaxycore,gc2145
27
28  reg:
29    const: 0x3c
30
31  clocks:
32    maxItems: 1
33
34  powerdown-gpios:
35    maxItems: 1
36
37  reset-gpios:
38    maxItems: 1
39
40  iovdd-supply:
41    description: Power Supply for I/O circuits (1.7 - 3V).
42
43  avdd-supply:
44    description: Power for analog circuit/sensor array (2.7 - 3V).
45
46  dvdd-supply:
47    description: Power for digital core (1.7 - 1.9V).
48
49  orientation: true
50
51  rotation: true
52
53  port:
54    $ref: /schemas/graph.yaml#/$defs/port-base
55
56    properties:
57      endpoint:
58        $ref: /schemas/media/video-interfaces.yaml#
59        unevaluatedProperties: false
60
61        properties:
62          link-frequencies: true
63
64        required:
65          - link-frequencies
66
67    required:
68      - endpoint
69
70    additionalProperties: false
71
72required:
73  - compatible
74  - reg
75  - clocks
76  - powerdown-gpios
77  - reset-gpios
78  - iovdd-supply
79  - avdd-supply
80  - dvdd-supply
81  - port
82
83additionalProperties: false
84
85examples:
86  - |
87    #include <dt-bindings/gpio/gpio.h>
88
89    i2c {
90        #address-cells = <1>;
91        #size-cells = <0>;
92
93        camera@3c {
94            compatible = "galaxycore,gc2145";
95            reg = <0x3c>;
96            clocks = <&clk_ext_camera>;
97            iovdd-supply = <&scmi_v3v3_sw>;
98            avdd-supply = <&scmi_v3v3_sw>;
99            dvdd-supply = <&scmi_v3v3_sw>;
100            powerdown-gpios = <&mcp23017 3 (GPIO_ACTIVE_LOW | GPIO_PUSH_PULL)>;
101            reset-gpios = <&mcp23017 4 (GPIO_ACTIVE_LOW | GPIO_PUSH_PULL)>;
102
103            port {
104                endpoint {
105                    remote-endpoint = <&mipid02_0>;
106                    data-lanes = <1 2>;
107                    link-frequencies = /bits/ 64 <120000000 192000000 240000000>;
108                };
109            };
110        };
111    };
112
113...
114