Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1752748pxu; Fri, 27 Nov 2020 14:38:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJyGICiX0idLvYxE9wZKrHvKzARjbYlDkMaYGNYoabW5WN71gfBx7TA5EIFRJ62My5siQbHF X-Received: by 2002:a17:906:591a:: with SMTP id h26mr3665292ejq.174.1606516737312; Fri, 27 Nov 2020 14:38:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606516737; cv=none; d=google.com; s=arc-20160816; b=C0qjCswux2kvY5MNx80dQuzbCboxPiME1ks0MSXrv+i97ckZjOnlqaSd3dC9H4X6e0 7SxrPrnNrZuz3h1cVIANOBJHkxu2NxKvqjtr6DUWD3efir4TBqDvo/t7OnPrK7hobW5v NwV2zzPx4oA0vh/5A1JaNtlpON5Rn4YdBQt5a+uLSDgyt3rVC7V7FQGC1FDUlRILHoBQ c3ucBx38VFWyY0uHudJ2X20asTB2kHjlj2Nj0edOIcdoRRyMssreaLRQpnq9Ce1JU9un G4qh5za56HnUA1/oyG8aSo036PlXM64s2tL1eHSfVXUgwlTGVCSTiu04e0068RHPJ9A7 w9uQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bnX8gip6olEGxTU0CImVzbRNpUPuqlbrUuQePl1Uw9Y=; b=YlZ6QVpMFXOynGNrvHLC9c/GEWtrwmUED0o/q7pYOOT1LI+CQIR5Phd73KBIpNWD+m bWs0sa6FALBtXtZX4a95pBQColhyfARsnCAxikWEfi7HdepkavAEAwQ42mPYq5IIObZM 93yiMkd9VqUBKnorDvF0tJdR8gHYEEuOnyCgk7w1nzpszN7huV6yjG1OteHDCWaP+MG7 6RBk0PdrlpCFAhL6Cm8PnftwEZ9Sa8ZfDwzMq3OstFavwl1UCsqe/o70xqhbJqNufd/K bL1WGaety/OAZg2Hw9aLlHBcrK8Py6Rv4A2L+qSdonkXi1hOFVqPowiL/FBDtb+N8Yfl MLNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=C4RIvnLY; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id um30si3963967ejb.610.2020.11.27.14.38.34; Fri, 27 Nov 2020 14:38:57 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=C4RIvnLY; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731681AbgK0Wet (ORCPT + 99 others); Fri, 27 Nov 2020 17:34:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731734AbgK0Wb1 (ORCPT ); Fri, 27 Nov 2020 17:31:27 -0500 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B3FEC0613D4; Fri, 27 Nov 2020 14:31:05 -0800 (PST) Received: by mail-wr1-x443.google.com with SMTP id g14so6988681wrm.13; Fri, 27 Nov 2020 14:31:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bnX8gip6olEGxTU0CImVzbRNpUPuqlbrUuQePl1Uw9Y=; b=C4RIvnLYI/y4vgM/5+TWTmQyI3QdovYwfx4C2Dc8M7QOh8tEq1hYH/bSJ7vUwUGkeT lKRpG7C9o49m5w9z7/l65gn1UlPQgSOyRayrk4KFfnBPsdzXYcu0tXWZuDcLT1wPm+g2 xbblc+c/Zk6756IwbnMOkH1sDZ2atYjfB2lPgsSahOpgf+CJd5h/KA3rSr2gBd7w7GAe Jk+7a8/1bNCACdKajy2cr+3qeE3hpDEZdZEut2SxAQakPjQ+2GKA1R7jBzYqjTZGDKQC J3lqEFu3noMx9DImcCvwGky3KuK50Bv1GBnJeCdI+a8m4FoF/gh0qAS4f5sMKurd2T4y caAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bnX8gip6olEGxTU0CImVzbRNpUPuqlbrUuQePl1Uw9Y=; b=WxLiwAVsyitnQO5h4WUh6ea2qrGqVhs9aDjayNtzqLmL/0f0YGpmMfZ06hNqCUugGq oOjuIOJmz4opDdTR7UDGuqUy4Q6N1riXi2BnO2lhZdYs+ty2ijTy203glK8SDawKzCbT QTRWqqBtdlGqmJj9JhmyBY70/5QWZtCd654Z54lOeseFMKFjgvikbrIKU4Ke6vsBomMw OJkyB64lVRjmjomPJlwTVs7izPfQ5zIDOOb9rqxNBjWjEba3cuSR2q2Nd7OCqxdCIVKp w5YJzoxmTBNySkUuGz1uyxHOWeGj4ocF0vg+Q7tNrIBQSmVDStIgIlKXv6zwxFeXmJ1T El8A== X-Gm-Message-State: AOAM530ZQhzh5uCFquXVGoZhCWJm7iSa7siWNbHpSq7JPJF8EJ0hVcVk tmjZpln7eC1spPw1ncVxHa4= X-Received: by 2002:adf:f98a:: with SMTP id f10mr13659524wrr.154.1606516264184; Fri, 27 Nov 2020 14:31:04 -0800 (PST) Received: from IcarusMOD.eternityproject.eu ([2.237.20.237]) by smtp.gmail.com with ESMTPSA id v188sm3308696wmb.20.2020.11.27.14.31.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Nov 2020 14:31:03 -0800 (PST) From: kholk11@gmail.com To: mchehab@kernel.org Cc: robh+dt@kernel.org, marijn.suijten@somainline.org, konrad.dybcio@somainline.org, martin.botka@somainline.org, devicetree@vger.kernel.org, linux-media@vger.kernel.org, phone-devel@vger.kernel.org, linux-kernel@vger.kernel.org, sakari.ailus@iki.fi, andrey.konovalov@linaro.org, angelogioacchino.delregno@somainline.org, kholk11@gmail.com Subject: [PATCH v3 2/2] media: dt-bindings: media: i2c: Add IMX300 CMOS sensor binding Date: Fri, 27 Nov 2020 23:30:47 +0100 Message-Id: <20201127223047.2764643-3-kholk11@gmail.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201127223047.2764643-1-kholk11@gmail.com> References: <20201127223047.2764643-1-kholk11@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: AngeloGioacchino Del Regno Add YAML device tree binding for IMX300 CMOS image sensor, and the relevant MAINTAINERS entries. Signed-off-by: AngeloGioacchino Del Regno --- .../bindings/media/i2c/sony,imx300.yaml | 112 ++++++++++++++++++ MAINTAINERS | 7 ++ 2 files changed, 119 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/sony,imx300.yaml diff --git a/Documentation/devicetree/bindings/media/i2c/sony,imx300.yaml b/Documentation/devicetree/bindings/media/i2c/sony,imx300.yaml new file mode 100644 index 000000000000..388297fcc358 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/sony,imx300.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/sony,imx300.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sony 1/2.3-Inch 25Mpixel Stacked CMOS Digital Image Sensor + +maintainers: + - AngeloGioacchino Del Regno + +description: |- + The Sony IMX300 is a 1/2.3-inch Stacked CMOS (Exmor-RS) digital image + sensor with a pixel size of 1.08um and an active array size of + 5948H x 4140V. It is programmable through I2C interface at address 0x10. + Image data is sent through MIPI CSI-2, which is configured as either 2 or + 4 data lanes. + +properties: + compatible: + const: sony,imx300 + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + vdig-supply: + description: + Digital I/O voltage supply, 1.15-1.20 volts + + vana-supply: + description: + Analog voltage supply, 2.2 volts + + vddl-supply: + description: + Digital core voltage supply, 1.8 volts + + reset-gpios: + description: |- + Reference to the GPIO connected to the xclr 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 driver only supports four-lane operation. + items: + - const: 0 + - const: 1 + - const: 2 + - const: 3 + + clock-noncontinuous: true + + link-frequencies: + $ref: /schemas/types.yaml#/definitions/uint64-array + description: + Allowed data bus frequencies. The driver currently needs + to switch between 780000000 and 480000000 Hz in order to + guarantee functionality of all modes. + + required: + - data-lanes + - link-frequencies + +required: + - compatible + - reg + - clocks + - vana-supply + - vdig-supply + - vddl-supply + - port + +additionalProperties: false + +examples: + - | + i2c0 { + #address-cells = <1>; + #size-cells = <0>; + + imx300: sensor@10 { + compatible = "sony,imx300"; + reg = <0x10>; + clocks = <&imx300_xclk>; + vana-supply = <&imx300_vana>; /* 2.2v */ + vdig-supply = <&imx300_vdig>; /* 1.2v */ + vddl-supply = <&imx300_vddl>; /* 1.8v */ + + port { + imx300_0: endpoint { + remote-endpoint = <&csi1_ep>; + data-lanes = <0 1 2 3>; + clock-noncontinuous; + link-frequencies = /bits/ 64 <780000000 480000000>; + }; + }; + }; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index c66710dd7e0a..21ba41db0063 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -16279,6 +16279,13 @@ T: git git://linuxtv.org/media_tree.git F: Documentation/devicetree/bindings/media/i2c/imx290.txt F: drivers/media/i2c/imx290.c +SONY IMX300 SENSOR DRIVER +M: AngeloGioacchino Del Regno +L: linux-media@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/media/i2c/sony,imx300.yaml +F: drivers/media/i2c/imx300.c + SONY IMX319 SENSOR DRIVER M: Bingbu Cao L: linux-media@vger.kernel.org -- 2.29.2