1*b2d2a78aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*b2d2a78aSEmmanuel Vadot# Copyright (c) 2023-2024 Linaro Ltd. 3*b2d2a78aSEmmanuel Vadot%YAML 1.2 4*b2d2a78aSEmmanuel Vadot--- 5*b2d2a78aSEmmanuel Vadot$id: http://devicetree.org/schemas/media/i2c/ovti,og01a1b.yaml# 6*b2d2a78aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 7*b2d2a78aSEmmanuel Vadot 8*b2d2a78aSEmmanuel Vadottitle: OmniVision OG01A1B Image Sensor 9*b2d2a78aSEmmanuel Vadot 10*b2d2a78aSEmmanuel Vadotmaintainers: 11*b2d2a78aSEmmanuel Vadot - Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org> 12*b2d2a78aSEmmanuel Vadot 13*b2d2a78aSEmmanuel Vadotdescription: 14*b2d2a78aSEmmanuel Vadot The OmniVision OG01A1B is black and white CMOS 1.3 Megapixel (1280x1024) 15*b2d2a78aSEmmanuel Vadot image sensor controlled over an I2C-compatible SCCB bus. 16*b2d2a78aSEmmanuel Vadot The sensor transmits images on a MIPI CSI-2 output interface with one or 17*b2d2a78aSEmmanuel Vadot two data lanes. 18*b2d2a78aSEmmanuel Vadot 19*b2d2a78aSEmmanuel VadotallOf: 20*b2d2a78aSEmmanuel Vadot - $ref: /schemas/media/video-interface-devices.yaml# 21*b2d2a78aSEmmanuel Vadot 22*b2d2a78aSEmmanuel Vadotproperties: 23*b2d2a78aSEmmanuel Vadot compatible: 24*b2d2a78aSEmmanuel Vadot const: ovti,og01a1b 25*b2d2a78aSEmmanuel Vadot 26*b2d2a78aSEmmanuel Vadot reg: 27*b2d2a78aSEmmanuel Vadot maxItems: 1 28*b2d2a78aSEmmanuel Vadot 29*b2d2a78aSEmmanuel Vadot clocks: 30*b2d2a78aSEmmanuel Vadot maxItems: 1 31*b2d2a78aSEmmanuel Vadot 32*b2d2a78aSEmmanuel Vadot reset-gpios: 33*b2d2a78aSEmmanuel Vadot description: Active low GPIO connected to XSHUTDOWN pad of the sensor. 34*b2d2a78aSEmmanuel Vadot maxItems: 1 35*b2d2a78aSEmmanuel Vadot 36*b2d2a78aSEmmanuel Vadot strobe-gpios: 37*b2d2a78aSEmmanuel Vadot description: Input GPIO connected to strobe pad of the sensor. 38*b2d2a78aSEmmanuel Vadot maxItems: 1 39*b2d2a78aSEmmanuel Vadot 40*b2d2a78aSEmmanuel Vadot avdd-supply: 41*b2d2a78aSEmmanuel Vadot description: Analogue circuit voltage supply. 42*b2d2a78aSEmmanuel Vadot 43*b2d2a78aSEmmanuel Vadot dovdd-supply: 44*b2d2a78aSEmmanuel Vadot description: I/O circuit voltage supply. 45*b2d2a78aSEmmanuel Vadot 46*b2d2a78aSEmmanuel Vadot dvdd-supply: 47*b2d2a78aSEmmanuel Vadot description: Digital circuit voltage supply. 48*b2d2a78aSEmmanuel Vadot 49*b2d2a78aSEmmanuel Vadot port: 50*b2d2a78aSEmmanuel Vadot $ref: /schemas/graph.yaml#/$defs/port-base 51*b2d2a78aSEmmanuel Vadot additionalProperties: false 52*b2d2a78aSEmmanuel Vadot description: 53*b2d2a78aSEmmanuel Vadot Output port node, single endpoint describing the CSI-2 transmitter. 54*b2d2a78aSEmmanuel Vadot 55*b2d2a78aSEmmanuel Vadot properties: 56*b2d2a78aSEmmanuel Vadot endpoint: 57*b2d2a78aSEmmanuel Vadot $ref: /schemas/media/video-interfaces.yaml# 58*b2d2a78aSEmmanuel Vadot unevaluatedProperties: false 59*b2d2a78aSEmmanuel Vadot 60*b2d2a78aSEmmanuel Vadot properties: 61*b2d2a78aSEmmanuel Vadot data-lanes: 62*b2d2a78aSEmmanuel Vadot minItems: 1 63*b2d2a78aSEmmanuel Vadot maxItems: 2 64*b2d2a78aSEmmanuel Vadot items: 65*b2d2a78aSEmmanuel Vadot enum: [1, 2] 66*b2d2a78aSEmmanuel Vadot 67*b2d2a78aSEmmanuel Vadot link-frequencies: true 68*b2d2a78aSEmmanuel Vadot 69*b2d2a78aSEmmanuel Vadot required: 70*b2d2a78aSEmmanuel Vadot - data-lanes 71*b2d2a78aSEmmanuel Vadot - link-frequencies 72*b2d2a78aSEmmanuel Vadot 73*b2d2a78aSEmmanuel Vadotrequired: 74*b2d2a78aSEmmanuel Vadot - compatible 75*b2d2a78aSEmmanuel Vadot - reg 76*b2d2a78aSEmmanuel Vadot - clocks 77*b2d2a78aSEmmanuel Vadot - port 78*b2d2a78aSEmmanuel Vadot 79*b2d2a78aSEmmanuel VadotunevaluatedProperties: false 80*b2d2a78aSEmmanuel Vadot 81*b2d2a78aSEmmanuel Vadotexamples: 82*b2d2a78aSEmmanuel Vadot - | 83*b2d2a78aSEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 84*b2d2a78aSEmmanuel Vadot 85*b2d2a78aSEmmanuel Vadot i2c { 86*b2d2a78aSEmmanuel Vadot #address-cells = <1>; 87*b2d2a78aSEmmanuel Vadot #size-cells = <0>; 88*b2d2a78aSEmmanuel Vadot 89*b2d2a78aSEmmanuel Vadot sensor@60 { 90*b2d2a78aSEmmanuel Vadot compatible = "ovti,og01a1b"; 91*b2d2a78aSEmmanuel Vadot reg = <0x60>; 92*b2d2a78aSEmmanuel Vadot clocks = <&clk 0>; 93*b2d2a78aSEmmanuel Vadot reset-gpios = <&gpio 117 GPIO_ACTIVE_LOW>; 94*b2d2a78aSEmmanuel Vadot avdd-supply = <&vreg_3v3>; 95*b2d2a78aSEmmanuel Vadot dovdd-supply = <&vreg_1p8>; 96*b2d2a78aSEmmanuel Vadot dvdd-supply = <&vreg_1p2>; 97*b2d2a78aSEmmanuel Vadot 98*b2d2a78aSEmmanuel Vadot port { 99*b2d2a78aSEmmanuel Vadot og01a1b_ep: endpoint { 100*b2d2a78aSEmmanuel Vadot remote-endpoint = <&csiphy_ep>; 101*b2d2a78aSEmmanuel Vadot data-lanes = <1 2>; 102*b2d2a78aSEmmanuel Vadot link-frequencies = /bits/ 64 <500000000>; 103*b2d2a78aSEmmanuel Vadot }; 104*b2d2a78aSEmmanuel Vadot }; 105*b2d2a78aSEmmanuel Vadot }; 106*b2d2a78aSEmmanuel Vadot }; 107*b2d2a78aSEmmanuel Vadot... 108