109 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/media/i2c/galaxycore,gc0308.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Galaxycore GC0308 and GC0309 Image Sensors8 9maintainers:10 - Sebastian Reichel <sre@kernel.org>11 12description: |13 The GalaxyCore GC0308 (1/6.5") and GC0309 (1/9") are 640x480 VGA sensors14 programmable through an I2C interface and connected via parallel bus.15 They include an ISP capable of auto exposure and auto white balance.16 17allOf:18 - $ref: /schemas/media/video-interface-devices.yaml#19 20properties:21 compatible:22 oneOf:23 - const: galaxycore,gc030824 - items:25 - const: galaxycore,gc030926 - const: galaxycore,gc030827 28 reg:29 const: 0x2130 31 clocks:32 description: Reference to the xclk clock.33 maxItems: 134 35 reset-gpios:36 description: GPIO descriptor for the reset pin.37 maxItems: 138 39 powerdown-gpios:40 description: GPIO descriptor for the powerdown pin.41 maxItems: 142 43 vdd28-supply:44 description: 2.8V supply45 46 port:47 $ref: /schemas/graph.yaml#/$defs/port-base48 description: |49 Video output port.50 51 properties:52 endpoint:53 $ref: /schemas/media/video-interfaces.yaml#54 unevaluatedProperties: false55 56 properties:57 bus-width: true58 data-shift: true59 hsync-active: true60 vsync-active: true61 data-active: true62 pclk-sample: true63 64 required:65 - bus-width66 67 additionalProperties: false68 69required:70 - compatible71 - reg72 - clocks73 - powerdown-gpios74 - port75 76additionalProperties: false77 78examples:79 - |80 #include <dt-bindings/gpio/gpio.h>81 82 i2c {83 #address-cells = <1>;84 #size-cells = <0>;85 86 camera-sensor@21 {87 compatible = "galaxycore,gc0308";88 reg = <0x21>;89 clocks = <&camera_clk>;90 powerdown-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;91 reset-gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;92 vdd28-supply = <&vdd28>;93 94 port {95 gc0308_ep: endpoint {96 remote-endpoint = <¶llel_from_gc0308>;97 bus-width = <8>;98 data-shift = <2>; /* lines 9:2 are used */99 hsync-active = <1>; /* active high */100 vsync-active = <1>; /* active high */101 data-active = <1>; /* active high */102 pclk-sample = <1>; /* sample on rising edge */103 };104 };105 };106 };107 108...109