# Galaxycore GC0308 and GC0309 Image Sensors

_Peios Kernel / Hardware and drivers / Device-tree binding reference / Media bindings / i2c_

> Device-tree binding reference for Galaxycore GC0308 and GC0309 Image Sensors.

<!-- SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -->


<a id="dt-root"></a>

**Schema identifier (<code>&#36;id</code>):** <span id="dt-09f478f44eb202ea573e"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;schemas&#47;media&#47;i2c&#47;galaxycore&#44;gc0308&#46;yaml&#35;&#34;</code></span>

**Schema dialect (<code>&#36;schema</code>):** <span id="dt-dcb375baab6014763a68"><code>&#34;http&#58;&#47;&#47;devicetree&#46;org&#47;meta&#45;schemas&#47;core&#46;yaml&#35;&#34;</code></span>

<a id="dt-e46b5a5dd81dbd751c9f"></a>

**Maintainers (<code>maintainers</code>):** <a id="dt-fbc39820abb8bb999095"></a> <span id="dt-fb78ddfc22abfc6fe56d"><code>&#34;Sebastian Reichel &#60;sre&#64;kernel&#46;org&#62;&#34;</code></span>

<div id="dt-6d1c5ef59f0239d38c02">
<p style="white-space: pre-wrap">The GalaxyCore GC0308 (1/6.5") and GC0309 (1/9") are 640x480 VGA sensors
programmable through an I2C interface and connected via parallel bus.
They include an ISP capable of auto exposure and auto white balance.</p>
</div>

<a id="dt-935ee547587f3e75de61"></a>

## All of these rules must match (<code>allOf</code>)

<a id="dt-d33de94ac1d3652cd22a"></a>

### Rule 1

> **Shared schema rule (<code>&#36;ref</code>):** <span id="dt-95c8874f25311f4b1ab1">[<code>&#47;schemas&#47;media&#47;video&#45;interface&#45;devices&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-media/video-interface-devices.md#dt-root>)</span>

<a id="dt-e1f655ed0ff4d595dadc"></a>

## Properties and child nodes (<code>properties</code>)

<a id="dt-5c1d81699dcbe840de83"></a>

### <code>compatible</code> — required here

<a id="dt-39566f01414e34c67b85"></a>

#### Exactly one of these rules must match (<code>oneOf</code>)

<a id="dt-fe13e24e5c9612880f47"></a>

**Rule 1**

> **Exact value (<code>const</code>):** <span id="dt-d1fe1b456a54b64074d3"><code>&#34;galaxycore&#44;gc0308&#34;</code></span>

<a id="dt-7482b6e745c4f056161a"></a>

**Rule 2**

> <a id="dt-4c3e118873fbaedb5de2"></a>
>
> **Array item rules (<code>items</code>)**
>
> <a id="dt-b02d8860067795c00ae4"></a>
>
> **Item 1**
>
> > **Exact value (<code>const</code>):** <span id="dt-82dceb5784ff71f5fdf5"><code>&#34;galaxycore&#44;gc0309&#34;</code></span>
>
> <a id="dt-bdc26de0ccb1d52bb6a4"></a>
>
> **Item 2**
>
> > **Exact value (<code>const</code>):** <span id="dt-cc26fa5d96bc7cf0a818"><code>&#34;galaxycore&#44;gc0308&#34;</code></span>

<a id="dt-9c1635fdb65d87e33d77"></a>

### <code>reg</code> — required here

**Exact value (<code>const</code>):** <span id="dt-37ff54f2982aadb4aad3"><code>33</code></span>

<a id="dt-4e9a371963ac013ad39d"></a>

### <code>clocks</code> — required here

<div id="dt-853257adf43f6880d753">
<p style="white-space: pre-wrap">Reference to the xclk clock.</p>
</div>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-c7438d9082840936a9a7"><code>1</code></span>

<a id="dt-fdf18029f1f43a541a62"></a>

### <code>reset&#45;gpios</code> — not listed as required here

<div id="dt-451564af2b6998692dea">
<p style="white-space: pre-wrap">GPIO descriptor for the reset pin.</p>
</div>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-140c9736042c6903f7ff"><code>1</code></span>

<a id="dt-18291f1487c1b45c6138"></a>

### <code>powerdown&#45;gpios</code> — required here

<div id="dt-2e6eeac1c3055c8550d6">
<p style="white-space: pre-wrap">GPIO descriptor for the powerdown pin.</p>
</div>

**Maximum number of items (<code>maxItems</code>):** <span id="dt-a45b8f093ab270c66c0d"><code>1</code></span>

<a id="dt-c471a2d3a875d20eecea"></a>

### <code>vdd28&#45;supply</code> — not listed as required here

<div id="dt-149119708ca087dd5bfb">
<p style="white-space: pre-wrap">2.8V supply</p>
</div>

<a id="dt-1d845f0617b4072cef77"></a>

### <code>port</code> — required here

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-1ed24d3512fbe8ce2017">[<code>&#47;schemas&#47;graph&#46;yaml&#35;&#47;&#36;defs&#47;port&#45;base</code>](</kernel/hardware/devicetree-bindings/dt-shared/graph.md#dt-61dbefbf4cdd7cc4556a>)</span>

<div id="dt-0cd71b006a1fcbec8daa">
<p style="white-space: pre-wrap">Video output port.</p>
</div>

<a id="dt-be58c36e2ebbc94550d5"></a>

#### Properties and child nodes (<code>properties</code>)

<a id="dt-b1837c10f2bb8b46a5e7"></a>

**<code>endpoint</code> — not listed as required here**

**Shared schema rule (<code>&#36;ref</code>):** <span id="dt-4d56cb4bb8332929f9b4">[<code>&#47;schemas&#47;media&#47;video&#45;interfaces&#46;yaml&#35;</code>](</kernel/hardware/devicetree-bindings/dt-media/video-interfaces.md#dt-root>)</span>

<a id="dt-c757711cf63c486df657"></a>

**Properties not evaluated by applicable rules (<code>unevaluatedProperties</code>)**

<code>false</code>

Not allowed by this rule.

<a id="dt-379ad4ba4c48ef74875c"></a>

**Properties and child nodes (<code>properties</code>)**

<a id="dt-18c07bc82dcf5057d0a6"></a>

**<code>bus&#45;width</code> — required here**

<code>true</code> — No constraints added by this property rule.

<a id="dt-16fc9441a460d2b732f1"></a>

**<code>data&#45;shift</code> — not listed as required here**

<code>true</code> — No constraints added by this property rule.

<a id="dt-9c2529c322deeb6dfae4"></a>

**<code>hsync&#45;active</code> — not listed as required here**

<code>true</code> — No constraints added by this property rule.

<a id="dt-2c42d448463b1773d0b0"></a>

**<code>vsync&#45;active</code> — not listed as required here**

<code>true</code> — No constraints added by this property rule.

<a id="dt-3ed888732cdbb6c9da8c"></a>

**<code>data&#45;active</code> — not listed as required here**

<code>true</code> — No constraints added by this property rule.

<a id="dt-210e03baed7eb8631642"></a>

**<code>pclk&#45;sample</code> — not listed as required here**

<code>true</code> — No constraints added by this property rule.

**Required in this object (<code>required</code>):** <a id="dt-12e7739ba85a6fad8ee6"></a> <span id="dt-449e4df1e2797fc2ae88"><code>&#34;bus&#45;width&#34;</code></span>

<a id="dt-d89b2cd0e08760d504bf"></a>

#### Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

**Required in this object (<code>required</code>):** <a id="dt-8313173ff1c9b300d560"></a> <span id="dt-048b70ee865d6847aa3d"><code>&#34;compatible&#34;</code></span>, <span id="dt-ee7433925c1528c16b99"><code>&#34;reg&#34;</code></span>, <span id="dt-f3765998c4e103e45f2f"><code>&#34;clocks&#34;</code></span>, <span id="dt-329d9b3604d5b98bc19d"><code>&#34;powerdown&#45;gpios&#34;</code></span>, <span id="dt-391b1d2b563ec12ed437"><code>&#34;port&#34;</code></span>

<a id="dt-738c4b4f9e483441138b"></a>

## Properties not matched by properties or patternProperties in this schema (<code>additionalProperties</code>)

<code>false</code>

Not allowed by this rule.

<a id="dt-1a130cabaa8a47b058bf"></a>

## Examples (<code>examples</code>)

<pre id="dt-0bd6510295af0c95ff2d"><code class="language-dts">#include &lt;dt-bindings/gpio/gpio.h&gt;

i2c {
    #address-cells = &lt;1&gt;;
    #size-cells = &lt;0&gt;;

    camera-sensor@21 {
        compatible = "galaxycore,gc0308";
        reg = &lt;0x21&gt;;
        clocks = &lt;&amp;camera_clk&gt;;
        powerdown-gpios = &lt;&amp;gpio1 5 GPIO_ACTIVE_HIGH&gt;;
        reset-gpios = &lt;&amp;gpio1 6 GPIO_ACTIVE_LOW&gt;;
        vdd28-supply = &lt;&amp;vdd28&gt;;

        port {
            gc0308_ep: endpoint {
                remote-endpoint = &lt;&amp;parallel_from_gc0308&gt;;
                bus-width = &lt;8&gt;;
                data-shift = &lt;2&gt;; /* lines 9:2 are used */
                hsync-active = &lt;1&gt;; /* active high */
                vsync-active = &lt;1&gt;; /* active high */
                data-active = &lt;1&gt;; /* active high */
                pclk-sample = &lt;1&gt;; /* sample on rising edge */
            };
        };
    };
};
</code></pre>

## Source notes

<details>
<summary>Annotations retained from the schema source</summary>

<p id="dt-comment-0"><strong>Line 1:</strong> <span> SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)</span></p>

</details>
