Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1159414pxu; Fri, 27 Nov 2020 00:48:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJznFLsaoSg6lmMsPweg3A7LTeqHfcVsSqjytGHf8zjotyKIH4S+DPnPRQn361tNUE6/Os7o X-Received: by 2002:aa7:c904:: with SMTP id b4mr4143108edt.172.1606466897696; Fri, 27 Nov 2020 00:48:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606466897; cv=none; d=google.com; s=arc-20160816; b=i792DESmSNGgLWcQ6Lyl1hIBSps0RcYDoaSl7fJ71KmoLpFHsyzL8vRyQkIIR/ZgbT AmPKXtaxwc689hxYqrOTVpgBpN1P6SOwgCU7y4+xoOLYbUQsZCFZeNjGnZFqS/3Bn2+g NgXcao3SIBD2rFwdCrXJlSB3freCrXXVXX84z1LH8u//1ERk0iKrnVLX5AP1abw9C5Cf p3WtXxmnUxa+CaWkuya3OQQgquyBne9yojQSqYkPbBJCkkRqIf9QU1E1VE8nCN3Bhetf 2PWeriQiwJMm27DJEvimlVBQnkYBjuWOHa2O9UbeGRe3JpMvBOpMXLwGa4Fo58b6XVTV vmug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=D3ObBGdri3E3PwbdgX0e2G+SprsQg672bAlSeTKn8y0=; b=UHxz35QZmbPta9rUB0Jpl0qaA1th8q2XHKW/PEXvmbslmhFddbQCBfV9Ooj4suQ6Y9 c/oOjWKH5E7RlT/jPQYcQNRaCsRk03jhmGj5KOGxLRZWbGYVGf/Fq7nuImShQodSZFGZ TQaaNxWPt6EPfl1T0X86ZnaZoFjiUQdBUEqT2jC19bgFJe2kypK9oX3GQ4xKHv3ODP7x 8v2AGP14e0pGdJP7yPLM4SQ8AzwGRJO+8HPwn0oC+SR8vCUQ4zDX1buLlsZhYL18+5XG sg0tuLXe9mb8rQh3xyAgofKMA+gWSZv0Em+Hon9D6ZiJ8RqUm7LJZoVArNxSSadH6/pL NyoQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v8si2203176eda.78.2020.11.27.00.47.55; Fri, 27 Nov 2020 00:48:17 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388479AbgKZXLX (ORCPT + 99 others); Thu, 26 Nov 2020 18:11:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726357AbgKZXLV (ORCPT ); Thu, 26 Nov 2020 18:11:21 -0500 X-Greylist: delayed 365 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 26 Nov 2020 15:11:21 PST Received: from hillosipuli.retiisi.eu (unknown [IPv6:2a01:4f9:c010:4572::e8:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F9D3C0613D4 for ; Thu, 26 Nov 2020 15:11:21 -0800 (PST) Received: from valkosipuli.localdomain (unknown [IPv6:fd35:1bc8:1a6:d3d5::80:2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by hillosipuli.retiisi.eu (Postfix) with ESMTPS id 4DA93634C24; Fri, 27 Nov 2020 01:04:29 +0200 (EET) Received: from sailus by valkosipuli.localdomain with local (Exim 4.92) (envelope-from ) id 1kiQJR-0001vW-OP; Fri, 27 Nov 2020 01:04:29 +0200 Date: Fri, 27 Nov 2020 01:04:29 +0200 From: Sakari Ailus To: Rob Herring Cc: kholk11@gmail.com, mchehab@kernel.org, marijns95@gmail.com, konradybcio@gmail.com, martin.botka1@gmail.com, devicetree@vger.kernel.org, linux-media@vger.kernel.org, phone-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] media: dt-bindings: media: i2c: Add IMX300 CMOS sensor binding Message-ID: <20201126230429.GG4351@valkosipuli.retiisi.org.uk> References: <20201029172947.34315-1-kholk11@gmail.com> <20201029172947.34315-3-kholk11@gmail.com> <20201104214806.GA4175708@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201104214806.GA4175708@bogus> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, AngeloGioacchino, On Wed, Nov 04, 2020 at 03:48:06PM -0600, Rob Herring wrote: > 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 The frequency needs to come from DT; it's not a property of the sensor. > > + > > + 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 > > > + 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 think we've used to specify the number of lanes if it's configurable, instead of having defaults. I'd do the same here, i.e. require data-lanes. > > > + items: > > + - const: 0 > > + - const: 1 > > + - const: 2 > > + - const: 3 -- Kind regards, Sakari Ailus