Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3612943pxm; Tue, 1 Mar 2022 01:44:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJye/jfOzXHmzzsHA1i0tFdOhhBIkkGTVCYELuRHfvFgKnVdQhZbCFrPDPKxNOCMAARSo+LR X-Received: by 2002:a17:903:110c:b0:14d:8859:5c8 with SMTP id n12-20020a170903110c00b0014d885905c8mr24864611plh.156.1646127884158; Tue, 01 Mar 2022 01:44:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646127884; cv=none; d=google.com; s=arc-20160816; b=JxGbXGypowarQuMgC/I47DL37ngr/3Uk6nCssdm75qos2IZlQaL1/pHRK8FHS3wG+o D1d7ia53uIZjqG9AK0c/8DbyqFSoq+cXvEz/xX1LAy5TxMEfyoupHSW3poMwzISXo5ZJ bEbg/DspFzaN87Emcah5VhO1voYSKzWU5fXuIZtVO3MUaxo3wKG0obk0sPj1xYqNtxsZ luGbO39u78Ymv+3qWJURScNN3mrlwGGLwN8So8zLyQcjOXBiha8payNB1GIIuZtbELfx 2EL6V6mXfRFU66K/b0b7ubix5femq4gD3a8dCGdXQWrPSzj+xPfPAC2kMej8lWgYMNFW 6LxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:in-reply-to:date:sender:references:subject:cc:to:from :dkim-signature:dkim-filter; bh=eYKOkpEc/RKiHKA/7tuV+7Y94exN1jvqIyB0ysJtkiE=; b=FZt63x3q71ZC4ZdW4fiZBU8PzVP8qIsDV8x3ZSg6plQR65wvQaeJj+b6ruCycH/oWf KLwkwengHfpj+MLWDEbg6grKUF3rFx9pN1/Hjfvsmnp0pesykLijRK9T7qjOpt/d5P/V N40LW79A5WkVrJFf3fwU3B1nrPGZPhnsCxdFy6ZqIzdpRLn12DZYfdAtWaBkBVuN4rJh gOSpDx4UFdoXWcwCAUd4sWVPfmF+hjrm5sUobxA79XQeMa3rWlZgFyw7io2JQNB/GX3A 8PWUfs5n7tsFPpQnZFY5uPpczPqeBcEcXYwFEnRxbpJbVnB3tUMSKzn/jWkZnJxT5slZ ynoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@piap.pl header.s=mail header.b=Xppmdrmg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=piap.pl Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 193-20020a6306ca000000b0036c4f1f8da6si12109675pgg.370.2022.03.01.01.44.29; Tue, 01 Mar 2022 01:44:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@piap.pl header.s=mail header.b=Xppmdrmg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=piap.pl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233395AbiCAIiv (ORCPT + 99 others); Tue, 1 Mar 2022 03:38:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232461AbiCAIis (ORCPT ); Tue, 1 Mar 2022 03:38:48 -0500 Received: from ni.piap.pl (ni.piap.pl [195.187.100.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D94D73F304; Tue, 1 Mar 2022 00:38:05 -0800 (PST) Received: from t19.piap.pl (OSB1819.piap.pl [10.0.9.19]) by ni.piap.pl (Postfix) with ESMTPSA id 7D040C3F3EED; Tue, 1 Mar 2022 09:38:04 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 ni.piap.pl 7D040C3F3EED DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=piap.pl; s=mail; t=1646123884; bh=eYKOkpEc/RKiHKA/7tuV+7Y94exN1jvqIyB0ysJtkiE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=XppmdrmgdLYvx3+dnQuYy7EHWzTmRg/eWvghrtr/iQcItAWlqlY3CMrcdRvvmbTFL EkcaDrFivIRyKu+6dVA1uQvQmIwzbnIBXa9KEMKKFQfoz5Mmi7ggD45vWLaweK2LBC GABYkvpIAWmM1N/4LEWGsaLO7H7LbxnuyZ2cao9c= From: =?utf-8?Q?Krzysztof_Ha=C5=82asa?= To: Rob Herring , Mauro Carvalho Chehab Cc: devicetree@vger.kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Laurent Pinchart , Sakari Ailus , Jacopo Mondi , Joe Perches Subject: [PATCH v8 1/2] On Semi AR0521 sensor driver References: Sender: khalasa@piap.pl Date: Tue, 01 Mar 2022 09:38:04 +0100 In-Reply-To: ("Krzysztof =?utf-8?Q?Ha=C5=82as?= =?utf-8?Q?a=22's?= message of "Tue, 01 Mar 2022 09:33:29 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-KLMS-Rule-ID: 3 X-KLMS-Message-Action: skipped X-KLMS-AntiSpam-Status: not scanned, whitelist X-KLMS-AntiPhishing: not scanned, whitelist X-KLMS-AntiVirus: Kaspersky Security for Linux Mail Server, version 8.0.3.30, not scanned, whitelist X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This file documents DT bindings for the AR0521 camera sensor driver. Signed-off-by: Krzysztof Ha=C5=82asa Reviewed-by: Laurent Pinchart Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/media/i2c/onnn,ar0521.yaml b= /Documentation/devicetree/bindings/media/i2c/onnn,ar0521.yaml new file mode 100644 index 0000000000000..b617cc5c6a9f4 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/onnn,ar0521.yaml @@ -0,0 +1,112 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/onnn,ar0521.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ON Semiconductor AR0521 MIPI CSI-2 sensor + +maintainers: + - Krzysztof Ha=C5=82asa + +description: |- + The AR0521 is a raw CMOS image sensor with MIPI CSI-2 and + I2C-compatible control interface. + +properties: + compatible: + const: onnn,ar0521 + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + const: extclk + + vaa-supply: + description: + Definition of the regulator used as analog (2.7 V) voltage supply. + + vdd-supply: + description: + Definition of the regulator used as digital core (1.2 V) voltage sup= ply. + + vdd_io-supply: + description: + Definition of the regulator used as digital I/O (1.8 V) voltage supp= ly. + + reset-gpios: + description: reset GPIO, usually active low + maxItems: 1 + + port: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: | + Video output port. + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + bus-type: + const: 4 + data-lanes: + anyOf: + - items: + - const: 1 + - items: + - const: 1 + - const: 2 + - items: + - const: 1 + - const: 2 + - const: 3 + - const: 4 + +required: + - compatible + - reg + - clocks + - clock-names + - vaa-supply + - vdd-supply + - vdd_io-supply + - port + +additionalProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells =3D <1>; + #size-cells =3D <0>; + + ar0521: camera-sensor@36 { + compatible =3D "onnn,ar0521"; + reg =3D <0x36>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_mipi_camera>; + clocks =3D <&clks IMX6QDL_CLK_CKO>; + clock-names =3D "extclk"; + reset-gpios =3D <&gpio1 7 GPIO_ACTIVE_LOW>; + vaa-supply =3D <®_2p7v>; + vdd-supply =3D <®_1p2v>; + vdd_io-supply =3D <®_1p8v>; + + port { + mipi_camera_to_mipi_csi2: endpoint { + remote-endpoint =3D <&mipi_csi2_in>; + data-lanes =3D <1 2 3 4>; + }; + }; + }; + }; --=20 Krzysztof "Chris" Ha=C5=82asa Sie=C4=87 Badawcza =C5=81ukasiewicz Przemys=C5=82owy Instytut Automatyki i Pomiar=C3=B3w PIAP Al. Jerozolimskie 202, 02-486 Warszawa