Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1017899pxb; Sat, 16 Jan 2021 15:46:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJyJtdmZXoizf99/fzXLf6BxzZzz1vamT2dmKGccEjLiHK3fWJo8milj1PtxLMwotqpjtuHn X-Received: by 2002:a17:906:af96:: with SMTP id mj22mr13365660ejb.127.1610840811421; Sat, 16 Jan 2021 15:46:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610840811; cv=none; d=google.com; s=arc-20160816; b=LrMEyZ8nDdIkeMEwWQusebuKovZr8T2g1b/4n3vbCTANY0z3BpjnXPxht4TLEt2yZl ZgoEYn6zFlXDSrUtS6IWtyuFVKl4v9V032uWy+JoiFKJLea/tewjFBq9MiUdK/864wix mdJHKsnPp1yVvLf+dC5hVWJQYWy25JLSi+NAKy7QlokVukhFbJw01jWrmMVq8tvOJOK0 +wx3Pvp2BlG61Fki2AFogWUys/9FvZ5F2NBfKrNoIF6D/8KN0zxMe4iltomdpRyGSILy ZnJ7SYxYMBAKi3LzxN/yVueuk9yKlUPytj57KsNJK9BwtG9zDSqhO+HahtflJXV7cB3N wPng== 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=Jy/D5G7ueDctogpOkEh0R4HWN6xnDFlSYBoyQE88l5U=; b=OL0fMZRNrU4+hYHivNjXf/Cai6UQvsGKS1OgbAly4/i6pJCYEbfK5dncIJRzz8Q3oh A9or4zMFsDzdVXUuCuwQkVEO+cPUO7Q4Ox3eAofg7XEuT2bwNJTkGzemzdd/qOd2P6Cd Z/34A5DAOpDuitTqVEOZMwdl+1Ec5xUx/zO6Og06rUZO0/2w4NGKJffNoHPzI0kVmdd6 fKpChVs6XeFfYE9TaqqHkfAQBRSrHtfnf+fyYJFVCw61qotOwy3Rf3iSVpMy+6gO2U4J 50C4a/fJgQUkO9zjIfJZgqP5TTuJWA06eYSZC6QVSpxurP1vTUCyZiKmjjuOP6uDiQQJ KZ1w== 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 b11si6180340edr.48.2021.01.16.15.46.27; Sat, 16 Jan 2021 15:46:51 -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 S1727494AbhAPXpx (ORCPT + 99 others); Sat, 16 Jan 2021 18:45:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726788AbhAPXpt (ORCPT ); Sat, 16 Jan 2021 18:45:49 -0500 Received: from hillosipuli.retiisi.eu (unknown [IPv6:2a01:4f9:c010:4572::e8:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16135C061573; Sat, 16 Jan 2021 15:45:09 -0800 (PST) Received: from valkosipuli.localdomain (valkosipuli.localdomain [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 E8782634C89; Sun, 17 Jan 2021 01:44:04 +0200 (EET) Received: from sailus by valkosipuli.localdomain with local (Exim 4.92) (envelope-from ) id 1l0vEi-0002pe-Pb; Sun, 17 Jan 2021 01:44:04 +0200 Date: Sun, 17 Jan 2021 01:44:04 +0200 From: Sakari Ailus To: AngeloGioacchino Del Regno Cc: mchehab@kernel.org, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, konrad.dybcio@somainline.org, marijn.suijten@somainline.org, martin.botka@somainline.org Subject: Re: [PATCH v4 2/2] media: dt-bindings: media: i2c: Add IMX300 CMOS sensor binding Message-ID: <20210116234404.GX850@valkosipuli.retiisi.org.uk> References: <20210113182934.444727-1-angelogioacchino.delregno@somainline.org> <20210113182934.444727-3-angelogioacchino.delregno@somainline.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210113182934.444727-3-angelogioacchino.delregno@somainline.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi AngeloGioacchino, On Wed, Jan 13, 2021 at 07:29:34PM +0100, AngeloGioacchino Del Regno wrote: > 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..4fa767feea80 > --- /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 Please add assigned clock related properties; see Documentation/driver-api/media/camera-sensor.rst . > + > + 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. This can be removed as bindings describe hardware, not driver operation. > + items: > + - const: 0 > + - const: 1 > + - const: 2 > + - const: 3 Two lanes here, too? > + > + 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. You can omit this description, too. > + > + required: > + - data-lanes > + - link-frequencies > + > +required: > + - compatible > + - reg > + - clocks > + - vana-supply > + - vdig-supply > + - vddl-supply Are the regulators really required? I'm not quite sure about the established practices; still the common case is that one or two of these are hard-wired. > + - 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 ad9abb42f852..5e0f08f48d48 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -16633,6 +16633,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 Please also add the git tree. Ideally also the MAINTAINERS change comes with the first patch adding the files, which should be the DT bindings. I.e. just reverse the order of the patches. > +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 -- Kind regards, Sakari Ailus