brintos

brintos / linux-shallow public Read only

0
0
Text · 2.4 KiB · ca57c01 Raw
108 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2# Copyright (c) 2023-2024 Linaro Ltd.3%YAML 1.24---5$id: http://devicetree.org/schemas/media/i2c/ovti,og01a1b.yaml#6$schema: http://devicetree.org/meta-schemas/core.yaml#7 8title: OmniVision OG01A1B Image Sensor9 10maintainers:11  - Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>12 13description:14  The OmniVision OG01A1B is black and white CMOS 1.3 Megapixel (1280x1024)15  image sensor controlled over an I2C-compatible SCCB bus.16  The sensor transmits images on a MIPI CSI-2 output interface with one or17  two data lanes.18 19allOf:20  - $ref: /schemas/media/video-interface-devices.yaml#21 22properties:23  compatible:24    const: ovti,og01a1b25 26  reg:27    maxItems: 128 29  clocks:30    maxItems: 131 32  reset-gpios:33    description: Active low GPIO connected to XSHUTDOWN pad of the sensor.34    maxItems: 135 36  strobe-gpios:37    description: Input GPIO connected to strobe pad of the sensor.38    maxItems: 139 40  avdd-supply:41    description: Analogue circuit voltage supply.42 43  dovdd-supply:44    description: I/O circuit voltage supply.45 46  dvdd-supply:47    description: Digital circuit voltage supply.48 49  port:50    $ref: /schemas/graph.yaml#/$defs/port-base51    additionalProperties: false52    description:53      Output port node, single endpoint describing the CSI-2 transmitter.54 55    properties:56      endpoint:57        $ref: /schemas/media/video-interfaces.yaml#58        unevaluatedProperties: false59 60        properties:61          data-lanes:62            minItems: 163            maxItems: 264            items:65              enum: [1, 2]66 67          link-frequencies: true68 69        required:70          - data-lanes71          - link-frequencies72 73required:74  - compatible75  - reg76  - clocks77  - port78 79unevaluatedProperties: false80 81examples:82  - |83    #include <dt-bindings/gpio/gpio.h>84 85    i2c {86        #address-cells = <1>;87        #size-cells = <0>;88 89        sensor@60 {90            compatible = "ovti,og01a1b";91            reg = <0x60>;92            clocks = <&clk 0>;93            reset-gpios = <&gpio 117 GPIO_ACTIVE_LOW>;94            avdd-supply = <&vreg_3v3>;95            dovdd-supply = <&vreg_1p8>;96            dvdd-supply = <&vreg_1p2>;97 98            port {99                og01a1b_ep: endpoint {100                    remote-endpoint = <&csiphy_ep>;101                    data-lanes = <1 2>;102                    link-frequencies = /bits/ 64 <500000000>;103                };104            };105        };106    };107...108