Galaxycore GC0308 and GC0309 Image Sensors
Schema identifier ($id): "http://devicetree.org/schemas/media/i2c/galaxycore,gc0308.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sebastian Reichel <sre@kernel.org>"
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.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/media/video-interface-devices.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"galaxycore,gc0308"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"galaxycore,gc0309"Item 2
Exact value (
const):"galaxycore,gc0308"
reg — required here #
Exact value (const): 33
clocks — required here #
Reference to the xclk clock.
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
GPIO descriptor for the reset pin.
Maximum number of items (maxItems): 1
powerdown-gpios — required here #
GPIO descriptor for the powerdown pin.
Maximum number of items (maxItems): 1
vdd28-supply — not listed as required here #
2.8V supply
port — required here #
Shared schema rule ($ref): /schemas/graph.yaml#/$defs/port-base
Video output port.
Properties and child nodes (properties) #
endpoint — not listed as required here
Shared schema rule ($ref): /schemas/media/video-interfaces.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
bus-width — required here
true — No constraints added by this property rule.
data-shift — not listed as required here
true — No constraints added by this property rule.
hsync-active — not listed as required here
true — No constraints added by this property rule.
vsync-active — not listed as required here
true — No constraints added by this property rule.
data-active — not listed as required here
true — No constraints added by this property rule.
pclk-sample — not listed as required here
true — No constraints added by this property rule.
Required in this object (required): "bus-width"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "clocks", "powerdown-gpios", "port"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
camera-sensor@21 {
compatible = "galaxycore,gc0308";
reg = <0x21>;
clocks = <&camera_clk>;
powerdown-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
vdd28-supply = <&vdd28>;
port {
gc0308_ep: endpoint {
remote-endpoint = <¶llel_from_gc0308>;
bus-width = <8>;
data-shift = <2>; /* lines 9:2 are used */
hsync-active = <1>; /* active high */
vsync-active = <1>; /* active high */
data-active = <1>; /* active high */
pclk-sample = <1>; /* sample on rising edge */
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)