Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1153895pxu; Fri, 27 Nov 2020 00:37:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJyHb/HTQyDY2ZbCqjrjg8HpkRibvSwbiPkA3n7Fgv5rd/bG6JO0N5Ox4rB/iBYdXjL5wMc2 X-Received: by 2002:aa7:ce82:: with SMTP id y2mr6522752edv.6.1606466247959; Fri, 27 Nov 2020 00:37:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606466247; cv=none; d=google.com; s=arc-20160816; b=gxGE493VGOt6CuIPham7jTrVD4n1EHqJep3V0H70gfHLPqxK3xII9eqqQyfNfgDEjU cE0DQNcyjsDsZXxMVakFONpKHcOXdk2aNon7mOurnOmZpllc5mN0GUtnlwhmw3rLowqH ax9ZpLMsJTW1Q2v4CFxeF7aSD93ougF1ztUrvTwKB57ePBsXY1EZEUVW4p62Yf6b3K6N U3BLh67aEx84ahs8lbbQm7cQn4QGr0Po/9gtwoAk074QegC5ncYLbk+VrRgvutE9vODL b4oZxBMF81d5kvqJb6iailie35j6gkrwM0O4DOYps/T338GnliLyLiv2Md4FwZW2chJX wP2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=pUVKuoWZA/P27xH4AfMqFfzecx2gpzbW2/mbWqy1KHY=; b=yP9Suw1GzGVt0x/tJS7n/8gDBmQNzasIcSwA2b+jUJS+d7AKZU32uy9BmEviKkJPS6 HCtIHWuENbY0QCPDZCZ0q5CCgvhG3l+aL4soW+Y5TrVoOHkQnUCsGkZjUe9sbTiMgcEQ hbM9QM3oiTmWg8pRALxUG5WuiIkGnE5XLrCfWwOq0MZGVBWBQJzGFhKBilJfxxPbUlcd vBMHZeSQgdAkgVyIZspQGYix7+BrOKGnYw9h4ajRqp9pPY48bq+vvoUDrrwRo/bBIbso v5uW2ZmpJ7vAPp3f8Ua3dTVpNUihj1lYUWt9kxFOvf3jUht88/n+MCbTq0b+5JkidXFf 9aGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uRl2J2b9; 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 p6si4519290edi.344.2020.11.27.00.37.05; Fri, 27 Nov 2020 00:37:27 -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=uRl2J2b9; 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 S2404129AbgKZRPh (ORCPT + 99 others); Thu, 26 Nov 2020 12:15:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391544AbgKZRPg (ORCPT ); Thu, 26 Nov 2020 12:15:36 -0500 Received: from mail-ua1-x942.google.com (mail-ua1-x942.google.com [IPv6:2607:f8b0:4864:20::942]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49F6BC0613D4; Thu, 26 Nov 2020 09:15:36 -0800 (PST) Received: by mail-ua1-x942.google.com with SMTP id q4so723520ual.8; Thu, 26 Nov 2020 09:15:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pUVKuoWZA/P27xH4AfMqFfzecx2gpzbW2/mbWqy1KHY=; b=uRl2J2b9fv3xQG4VNSHpc8v54V7XtD9frG75nRQiFYqqDW4MDOcGaInf4J9V6brt7r lYSoUmwl3JmFL8EQyl+hs/xI73ABG3/BvcHi3MAEj6YNKwYS0QfpG01AZXhjc7xVypHW qBTmSgBAJkfCoWHeBN/MiC6YqzpX4OsiOc/+iFHtCG8ZlZjoIaifxiq1+ZpOzPN1FSOt GcuylkFVYSBGdjkFl2+0IMHPL2J7CWAmI4k/7C7Z8wuL3/8TnufWaP2k64ecLeSrrk73 RQVnTOGphtJeyEQu1VcVTgC49lmMKrb7I3kg3Fxt+nKoXr6a+NqJK09aFXnPYLWyE8Dc dfVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pUVKuoWZA/P27xH4AfMqFfzecx2gpzbW2/mbWqy1KHY=; b=C58YzkeSmo8goUc9/UNvIKNP3IHLmUSbjCvv9OJ1yVkNBNDd++i9Ul9S0Jfy0VTSbz XNIJqKcuDAV10rNnanE/z/HL6Jg8dVX4zTKu1f0w9F3A3g7eA+rbnnKE4CH5rdj9spHI NSSWYvcZQgT/NfRD/w2K+Cwt/rr/wU3puIv/4UOLY9npCJfQyTJvPUORD0o81oDFX8xn 72mWWKwzfFLXLNpzyz5aiCptFBshk8PATg/bZmzjSCV//IdV7Y4+nK/tsAoWtMbDLwQA k/LFnbU6DLjxoppwRYyCk2dPcPxdoog88cgDLzmzyaky6vN3vO/xnzpyJqeU2pTOv4SY xlBw== X-Gm-Message-State: AOAM5335CyX/4B/hpwqfvhgJlFkgCWkoU58G4QhC7K3vwFmFcpZdv7t0 QInJ0mRicIJXmAHLa9jtoOrbPDbypnJykGqpnnosDHQc1uk= X-Received: by 2002:ab0:743:: with SMTP id h61mr2350174uah.4.1606410935365; Thu, 26 Nov 2020 09:15:35 -0800 (PST) MIME-Version: 1.0 References: <20201029172947.34315-1-kholk11@gmail.com> <20201029172947.34315-3-kholk11@gmail.com> <20201104214806.GA4175708@bogus> In-Reply-To: <20201104214806.GA4175708@bogus> From: AngeloGioacchino Del Regno Date: Thu, 26 Nov 2020 18:15:22 +0100 Message-ID: Subject: Re: [PATCH v2 2/2] media: dt-bindings: media: i2c: Add IMX300 CMOS sensor binding To: Rob Herring Cc: Mauro Carvalho Chehab , marijns95@gmail.com, Konrad Dybcio , martin.botka1@gmail.com, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-media , phone-devel@vger.kernel.org, linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Il giorno mer 4 nov 2020 alle ore 22:48 Rob Herring ha scritto: > > On Thu, Oct 29, 2020 at 06:29:47PM +0100, kholk11@gmail.com wrote: > > 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..8f1d795f8072 > > --- /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 8Mpixel 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: > > maxItems: 1 Agreed. > > > + 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 sensor supports either two-lane, or four-lane operation, > > + but the driver currently supports only four-lane. > > What the driver is not relevant. Please define all possible > configurations. Or just omit? What's the behavior if omitted? > I wrote this as to document the hardware (there is no datasheet around and I fear that findings will be forgotten one day)... but if you say it's not relevant... ...well, then I can as well just write it in my local notes and remove the info from here. > > + 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: > > + - 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.28.0 > > Also, I'm sorry for the *very* late reply. I've been busy quite a lot in these days! By the way, I'll push a v3 for this one ASAP! Yours, Angelo