Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1084105pxk; Thu, 10 Sep 2020 06:45:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw537c2aOnAb8KSF7/YvqgRRIKvjDcrLkqIKim/c4WBFyLwyyekHCuw25AVvxxHduFDQwLr X-Received: by 2002:a17:906:f4f:: with SMTP id h15mr8688495ejj.17.1599745529563; Thu, 10 Sep 2020 06:45:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599745529; cv=none; d=google.com; s=arc-20160816; b=CVVQuet/S9MnAAQyhKGLifubqzbftWVm1lFAdDEQ7cuDsVtkEg+8iU5le+QHhtwMJy dd658PgtaWWbE1Z3CGSkbLskZ8ZRroL9GdfFpX5sHzwmhSFSRHLPabV9DcCu5ymEidN2 7EtOkiish0h71NeGsLkpctl11XmYMYJ0uPbhCz2X6LroIaHHCKVc2cKV9XJlIFdWx4ym uUbGAWfu7J0uMSMhWC2TF2S5TDf47HOs2hXCl3ugb0sxg0wcnlgZNfZvOlcHeEAaL8OB FAR2nP+y+1P3wnmkliJ7KBAVcTTg4DWZRCb+quHZhf75gVAQPDbdsGy5ihl8t2ZmTCsw sZ4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=wVCVz7V3MwSAVtpGzTT9wrZXXHT4suaFYem/P5yvAzM=; b=DWB6nYjWllJOQlHTZV1ydxSH9kH+4bcGd+tEqZGYt35R5Uj7oWOUeANJPpqtI05s5P hrSD8nNpOtrYOpawncEMyi8AbJhUFkBohxr4V1yl8ZWKBWAABGMvfD9ATC6dJOtqbMlo LQMFjlkrQ3jlGWf1ObwSSlb42mpmINjowG0bwGx1ll9U4UilmVgnt3x9eiZ6EDZSrs3F 0y/hwtPNZlFCekq01SyLCFkn5DYmqBRxaNYIUfyDEXaB17ibgge7mR2bIVoT5SL3sRdk 0lP7Fm3tkwMKMKRFQILGfVU+Zn+K7CiLMEGsLRTQMzNkZzZAIkrThYUMctfridxU0js4 uawg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jr18si3500731ejb.45.2020.09.10.06.45.06; Thu, 10 Sep 2020 06:45:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730883AbgIJNdr (ORCPT + 99 others); Thu, 10 Sep 2020 09:33:47 -0400 Received: from mx0a-00128a01.pphosted.com ([148.163.135.77]:1704 "EHLO mx0a-00128a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726080AbgIJN0e (ORCPT ); Thu, 10 Sep 2020 09:26:34 -0400 Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 08ADOUUN003353; Thu, 10 Sep 2020 09:26:25 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-00128a01.pphosted.com with ESMTP id 33fmjp842k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Sep 2020 09:26:25 -0400 Received: from m0167088.ppops.net (m0167088.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 08ADQOqG014905; Thu, 10 Sep 2020 09:26:24 -0400 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com with ESMTP id 33fmjp842e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 10 Sep 2020 09:26:24 -0400 Received: from SCSQMBX11.ad.analog.com (scsqmbx11.ad.analog.com [10.77.17.10]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 08ADQNmk019361 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Thu, 10 Sep 2020 09:26:23 -0400 Received: from SCSQMBX11.ad.analog.com (10.77.17.10) by SCSQMBX11.ad.analog.com (10.77.17.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Thu, 10 Sep 2020 06:26:21 -0700 Received: from zeus.spd.analog.com (10.66.68.11) by SCSQMBX11.ad.analog.com (10.77.17.10) with Microsoft SMTP Server id 15.1.1779.2 via Frontend Transport; Thu, 10 Sep 2020 06:26:21 -0700 Received: from btogorean-pc.ad.analog.com ([10.48.65.108]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 08ADPnkb007313; Thu, 10 Sep 2020 09:26:16 -0400 From: Bogdan Togorean To: CC: Bogdan Togorean , Mauro Carvalho Chehab , Rob Herring , "David S. Miller" , Sakari Ailus , Jacopo Mondi , Kieran Bingham , Laurent Pinchart , Bingbu Cao , YueHaibing , Shawn Tu , Manivannan Sadhasivam , Dave Stevenson , Dongchun Zhu , , Subject: [PATCH 2/2] media: dt-bindings: media: i2c: Add bindings for ADDI9036 Date: Thu, 10 Sep 2020 19:24:07 +0300 Message-ID: <20200910162426.55306-2-bogdan.togorean@analog.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200910162426.55306-1-bogdan.togorean@analog.com> References: <20200910162426.55306-1-bogdan.togorean@analog.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-ADIRoutedOnPrem: True X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-09-10_03:2020-09-10,2020-09-10 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 phishscore=0 clxscore=1011 impostorscore=0 bulkscore=0 mlxlogscore=999 malwarescore=0 adultscore=0 spamscore=0 mlxscore=0 priorityscore=1501 suspectscore=1 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009100123 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add YAML device tree bindings for Analog Devices Inc. ADDI9036 CCD TOF front-end. Signed-off-by: Bogdan Togorean --- .../bindings/media/i2c/adi,addi9036.yaml | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/adi,addi9036.yaml diff --git a/Documentation/devicetree/bindings/media/i2c/adi,addi9036.yaml b/Documentation/devicetree/bindings/media/i2c/adi,addi9036.yaml new file mode 100644 index 000000000000..8af7f397d4e0 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/adi,addi9036.yaml @@ -0,0 +1,72 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/adi,addi9036.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices ADDI9036 VGA CCD Time of Flight Sensor + +maintainers: + - Bogdan Togorean + +description: |- + The ADDI9036 is a complete, 45 MHz, front-end solution for charge coupled + device (CCD) time of flight (TOF) imaging applications. It is programmable + through I2C interface. Image data is sent through MIPI CSI-2 2 lanes and + can output two RAW12 packed data streams. One is IR and the other is Depth. + Each data stream is on a separate or same MIPI Virtual Channel, depending + on configuration and each have 640x480 resolution. + +properties: + compatible: + const: adi,addi9036 + + reset-gpios: + description: |- + Reference to the GPIO connected to the RST/SYNC pin, if any. + Must be released (set high) after all supplies are applied. + + # See ../video-interfaces.txt for more details + port: + type: object + properties: + endpoint: + type: object + properties: + data-lanes: + description: |- + The sensor supports two-lane operation. + For two-lane operation the property must be set to <1 2>. + items: + - const: 1 + - const: 2 + +required: + - compatible + - reg + - port + +additionalProperties: false + +examples: + - | + i2c0 { + #address-cells = <1>; + #size-cells = <0>; + + addi9036: addi9036_tof@64 { + compatible = "adi,addi9036"; + reg = <0x64>; + + reset-gpios = <&gpio 41 1>; + + port { + addi9036_ep: endpoint { + remote-endpoint = <&csi1_ep>; + data-lanes = <1 2>; + }; + }; + }; + }; + +... -- 2.28.0