Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp715880ybz; Wed, 15 Apr 2020 17:22:11 -0700 (PDT) X-Google-Smtp-Source: APiQypIcWkr8z+wu5/sfOCxiNL+FHcWPAC/rbHMyNaDAOqig1AqIVvnmscfYjDErSnTTItqCuo5s X-Received: by 2002:a17:906:e098:: with SMTP id gh24mr7579792ejb.44.1586996531102; Wed, 15 Apr 2020 17:22:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586996531; cv=none; d=google.com; s=arc-20160816; b=uhE0sNyirOEsWYThyYMgt6atXjTul5u4Z6Rd4vddLjj62sRhYQW1lMSLHhaedy9J5A 25vpZrzqlzFw+vQFBED9ax/6VsXYH5vWoGhUyAS9oUy59GsboVMPnGXFhV4CtShRHfhv Mq3JwVGeygk9FRyvKiKvqxgz8t5teDvin3JuImubjpj7Ry9KIUqTM501pWle0B3/Z2Mz QI9AF6pNEWO/UurLbfcpjN6rpaxBtJYeNZJkeELH9cXpoBk3dAo4Je9aDfcHjOYtKM67 ZPLDlcmYdFO9nY5HnXufEW3H70UNQ3uOL2GC/Gt1ocYMPns3AFB2RBnV6BUGM3BMWIi1 ta+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=GK4pRfN3s3N3M0UFpSGHRVJzLLF1XRmh0McMHXbaIe4=; b=G85xcuvBGzEgtcosWLJ1An5viB+C22sAuJmWhRwuv5B84f5Bfwp+CYhBRFqXqtRG3W 6ZdN+FcJTvnYpPWeNelgIxS4mh5ltcetNpeRQAT40tJ7ev7lyLlS+0MeFrcqkVv17UPd 7rJ26j5XytHihpxWNoaOOk4OURjrJE9+aE4E7TCt6IbQMDpzW8kPuLHlKdb0VnRwwHak xTZTlwu7XtreaqqJxlzcDFa0h+qg6hIIcAlJubve1CkRpVrX5I+P37WDE19ihWkkXgLL L/CuKj6daQ21MAcS1ysooxy7Ii0qZDOcg9EErqCqAtbfP7rgAS+QqLKitlU768TSIJhh di5Q== 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 j3si11372341ejv.401.2020.04.15.17.21.47; Wed, 15 Apr 2020 17:22:11 -0700 (PDT) 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 S1415664AbgDOQVc (ORCPT + 99 others); Wed, 15 Apr 2020 12:21:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1415655AbgDOQV0 (ORCPT ); Wed, 15 Apr 2020 12:21:26 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 998C9C061A0C for ; Wed, 15 Apr 2020 09:21:26 -0700 (PDT) Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jOkmm-0005YD-EE; Wed, 15 Apr 2020 18:21:12 +0200 Received: from mfe by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1jOkmk-0004Qr-4c; Wed, 15 Apr 2020 18:21:10 +0200 Date: Wed, 15 Apr 2020 18:21:10 +0200 From: Marco Felsch To: Rob Herring Cc: Robert Foss , Dongchun Zhu , Fabio Estevam , Andy Shevchenko , Sakari Ailus , Tomasz Figa , Maxime Ripard , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v7 1/3] media: dt-bindings: ov8856: Document YAML bindings Message-ID: <20200415162110.bmorj4u4hkqohqjx@pengutronix.de> References: <20200408110816.2712841-1-robert.foss@linaro.org> <20200408110816.2712841-2-robert.foss@linaro.org> <20200415160729.GA4438@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200415160729.GA4438@bogus> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 18:19:18 up 152 days, 7:37, 171 users, load average: 1.12, 0.66, 0.33 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20-04-15 11:07, Rob Herring wrote: > On Wed, Apr 08, 2020 at 01:08:14PM +0200, Robert Foss wrote: > > From: Dongchun Zhu > > > > This patch adds documentation of device tree in YAML schema for the > > OV8856 CMOS image sensor. > > > > Signed-off-by: Dongchun Zhu > > Signed-off-by: Robert Foss > > --- > > > > - Changes since v6: > > * Marco: remove qcom specifics from DT example > > > > - Changes since v5: > > * Add assigned-clocks and assigned-clock-rates > > * robher: dt-schema errors > > > > - Changes since v4: > > * Fabio: Change reset-gpio to GPIO_ACTIVE_LOW, explain in description > > * Add clock-lanes property to example > > * robher: Fix syntax error in devicetree example > > > > - Changes since v3: > > * robher: Fix syntax error > > * robher: Removed maxItems > > * Fixes yaml 'make dt-binding-check' errors > > > > - Changes since v2: > > Fixes comments from from Andy, Tomasz, Sakari, Rob. > > * Convert text documentation to YAML schema. > > > > - Changes since v1: > > Fixes comments from Sakari, Tomasz > > * Add clock-frequency and link-frequencies in DT > > > > .../devicetree/bindings/media/i2c/ov8856.yaml | 143 ++++++++++++++++++ > > MAINTAINERS | 1 + > > 2 files changed, 144 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/media/i2c/ov8856.yaml > > > > diff --git a/Documentation/devicetree/bindings/media/i2c/ov8856.yaml b/Documentation/devicetree/bindings/media/i2c/ov8856.yaml > > new file mode 100644 > > index 000000000000..96bef5403d7e > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/media/i2c/ov8856.yaml > > @@ -0,0 +1,143 @@ > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > > +# Copyright (c) 2019 MediaTek Inc. > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/media/i2c/ov8856.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Omnivision OV8856 CMOS Sensor Device Tree Bindings > > + > > +maintainers: > > + - Ben Kao > > + - Dongchun Zhu > > + > > +description: |- > > + The Omnivision OV8856 is a high performance, 1/4-inch, 8 megapixel, CMOS > > + image sensor that delivers 3264x2448 at 30fps. It provides full-frame, > > + sub-sampled, and windowed 10-bit MIPI images in various formats via the > > + Serial Camera Control Bus (SCCB) interface. This chip is programmable > > + through I2C and two-wire SCCB. The sensor output is available via CSI-2 > > + serial data output (up to 4-lane). > > + > > +properties: > > + compatible: > > + const: ovti,ov8856 > > + > > + reg: > > + maxItems: 1 > > + > > + clocks: > > + maxItems: 1 > > + > > + clock-names: > > + description: > > + Input clock for the sensor. > > + items: > > + - const: xvclk > > + > > + assigned-clocks: > > + description: > > + Input clock for the sensor. > > + > > + assigned-clock-rates: > > + description: > > + Frequency of the xvclk clock in Hertz. > > These 2 should have a 'maxItems: 1' Don't know why those properties are needed here.. IMHO this shouldn't be part of the binding or at least it should be optional and not required. All we need is the clocks and the clock-names property. > > + dovdd-supply: > > + description: > > + Definition of the regulator used as interface power supply. > > + > > + avdd-supply: > > + description: > > + Definition of the regulator used as analog power supply. > > + > > + dvdd-supply: > > + description: > > + Definition of the regulator used as digital power supply. > > + > > + reset-gpios: > > + description: > > + The phandle and specifier for the GPIO that controls sensor reset. > > + This corresponds to the hardware pin XSHUTDOWN which is physically > > + active low. > > + > > + port: > > + type: object > > + additionalProperties: false > > + description: > > + A node containing input and output port nodes with endpoint definitions > > Only an output, right? > > > + as documented in > > + Documentation/devicetree/bindings/media/video-interfaces.txt > > + > > + properties: > > + endpoint: > > + type: object > > + > > + properties: > > + clock-lanes: > > + maxItems: 1 > > + > > + data-lanes: > > + maxItems: 1 > > + > > + remote-endpoint: true > > + > > + required: > > + - clock-lanes > > + - data-lanes > > + - remote-endpoint > > + > > + required: > > + - endpoint > > + > > +required: > > + - compatible > > + - reg > > + - clocks > > + - clock-names > > + - assigned-clocks > > + - assigned-clock-rates > > + - dovdd-supply > > + - avdd-supply > > + - dvdd-supply > > + - reset-gpios > > + - port > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + #include > > + > > + i2c { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + ov8856: camera@10 { > > + compatible = "ovti,ov8856"; > > + reg = <0x10>; > > + > > + reset-gpios = <&pio 111 GPIO_ACTIVE_LOW>; > > + pinctrl-names = "default"; > > + pinctrl-0 = <&clk_24m_cam>; > > + > > + clocks = <&cam_osc>; > > + clock-names = "xvclk"; > > + assigned-clocks = <&cam_osc>; > > + assigned-clock-rates = <19200000>; > > + > > + avdd-supply = <&mt6358_vcama2_reg>; > > + dvdd-supply = <&mt6358_vcamd_reg>; > > + dovdd-supply = <&mt6358_vcamio_reg>; > > + > > + port { > > + wcam_out: endpoint { > > + remote-endpoint = <&mipi_in_wcam>; > > + clock-lanes = <0>; > > + data-lanes = <1 2 3 4>; > > + link-frequencies = /bits/ 64 <360000000 180000000>; > > + }; > > + }; > > + }; > > + }; > > +... > > \ No newline at end of file > > ^^^ > > > diff --git a/MAINTAINERS b/MAINTAINERS > > index 534a8dc4f84a..3f35c6e9700a 100644 > > --- a/MAINTAINERS > > +++ b/MAINTAINERS > > @@ -12465,6 +12465,7 @@ L: linux-media@vger.kernel.org > > T: git git://linuxtv.org/media_tree.git > > S: Maintained > > F: drivers/media/i2c/ov8856.c > > +F: Documentation/devicetree/bindings/media/i2c/ov8856.yaml > > > > OMNIVISION OV9650 SENSOR DRIVER > > M: Sakari Ailus > > -- > > 2.25.1 > > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |