Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3830334ybz; Tue, 28 Apr 2020 00:57:05 -0700 (PDT) X-Google-Smtp-Source: APiQypJe1r08U8KudJLpu1ivnBrzZQKecSLCs32E5lYYdBpzeCqXgHG2loRvYh7WuW90rEHLZ4tR X-Received: by 2002:a17:906:328f:: with SMTP id 15mr24445620ejw.33.1588060624528; Tue, 28 Apr 2020 00:57:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588060624; cv=none; d=google.com; s=arc-20160816; b=mMdaAPiRMgRpq2r81P+E1eTTA95vhcgMSEeLaReaWL178nr7l6GdyE4ZVvQbSOq8va Yn5fY2I4VruKIQDAiIYcJghKDekPcj4ZhTAcfOUyj6rq/5DwrBr62xU5q6wVWC56728p hbjFQppIu8Iroo5LgTaExziQc/MfUnem46M4pwszA5oI7Vp8U8XqvUiEW9ViNkC6dduM yBm/kovdFwAfb7T42eaYmv0myRboiXHpEgnXpa/FamDLky8DDTSeNk44EURVPnV7deVL rZgwzSvkcRaePrHGBlZAkyGtKR347ZClEckPBnckYteCE8nIbQNIoXRgxkEvBAV02Qmh UCmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=3Ly4DUDSUpkyQ57Uyx52tImyR/V7cGw1VRugpX+pW4g=; b=Lan/MxitysjgnsMmx/rVlOWx+Yf1UlQmreDfnBLsPoaZkIWWBpM9JnMh9FhWQ4BamY ZRD7TdZ8bP6KDqUocyDerRiw6KDxW5dwl27nCXGePi8dQ87bdYx6lWBYuDfXJWHdkQSF 16IuKzvwKNwyVUF6yKBPwl9Nmf2n5YNEcQeft1nbsZZ9cwXdJ7dBCGkeRU03JdZDkQbV mEmCwiKOAPYGzdN1o4fGDXt4ci5+In/NEKX27A00VUtpDRrOG2o3UlMx1tM8df4IOzr1 vb1Iqa0Sae9GVb64VSRB1wmE6Xyi/U4B0sajlqLBXw+OQGF42q8lkhFDi5BQ7OS22bcF x/aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=o2owi7eb; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=rmOcc2Vn; 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=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p7si1327799ejz.412.2020.04.28.00.56.41; Tue, 28 Apr 2020 00:57:04 -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; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=o2owi7eb; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=rmOcc2Vn; 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=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726625AbgD1HzJ (ORCPT + 99 others); Tue, 28 Apr 2020 03:55:09 -0400 Received: from new1-smtp.messagingengine.com ([66.111.4.221]:33417 "EHLO new1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726355AbgD1HzI (ORCPT ); Tue, 28 Apr 2020 03:55:08 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id D71FD5801B9; Tue, 28 Apr 2020 03:55:06 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 28 Apr 2020 03:55:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=3Ly4DUDSUpkyQ57Uyx52tImyR/V 7cGw1VRugpX+pW4g=; b=o2owi7ebNFkyAxuDt0S0E4gMjDAPl+rlEs413NF3wrZ QD1LxrZMT1bx9d2Xiaht6gsGzwmwE39UCG1jJlPr+LlxzLWfDZC3TSsy5EeG4dBB +Ld7llM3WFIeiQn+ZuobU870M87rwbTpC4bzFGo85lDtxtm/LzY27SLRWRs7RbKV vL0s+ouSm+pLTydOadSYn7pNPkxHWyYIFPdAOBbix61Eyxd0lEMBsvQbxJTpMIWr MAkZSpvQnttVf1DQb1OoAzRpcVBJyquSbmXgZIz081PW4JFbxRSAtOL93jhkKYG7 wf3nY/mU8pAqJ14oHC3mokmxqCUctXka1bFpnSFNqww== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=3Ly4DU DSUpkyQ57Uyx52tImyR/V7cGw1VRugpX+pW4g=; b=rmOcc2Vnwerk37bE3zrswg JZZRXT/vUZOSv1thw+gTfqY7sq4K45Dh8UWjurjZaEYhNDXBsW2Ek/yVk5lFdsFa mBF1FsL50xFPW30cFD2s9CLue8c3xG6JC9HnTRCitN9caGh8e+D21TxdM4g6z+Jw pgyt75yoIFYHdncoYOlB+B9y5hRjAAdGQ2QxOBuqzekL4/jdE51RxjhSdep+xsjt 7+IVtBaDdMXesFbmSYmc8j2RApLOPdPFeneP7aDN7QrdQ9ha0C1xU8zhctTdSNk1 +3WsWVtFSxsMeCIhXsvOknaJnA0+PeDtXKXACnyPQGYTLhl5WrvsrEMq9P94En2A == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedriedtgdduvddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuffhomhgrih hnpeguvghvihgtvghtrhgvvgdrohhrghenucfkphepledtrdekledrieekrdejieenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrgigihhmvg estggvrhhnohdrthgvtghh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id AF3543280065; Tue, 28 Apr 2020 03:55:05 -0400 (EDT) Date: Tue, 28 Apr 2020 09:55:04 +0200 From: Maxime Ripard To: Robert Foss Cc: Marco Felsch , Rob Herring , Dongchun Zhu , Fabio Estevam , Andy Shevchenko , Sakari Ailus , Tomasz Figa , linux-media , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-kernel , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" Subject: Re: [PATCH v7 1/3] media: dt-bindings: ov8856: Document YAML bindings Message-ID: <20200428075504.ovzugt2mbgan7z3k@gilmour.lan> References: <20200408110816.2712841-1-robert.foss@linaro.org> <20200408110816.2712841-2-robert.foss@linaro.org> <20200415160729.GA4438@bogus> <20200415162110.bmorj4u4hkqohqjx@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="bgh5jcvervb4fpgs" Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --bgh5jcvervb4fpgs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 27, 2020 at 05:13:42PM +0200, Robert Foss wrote: > On Wed, 15 Apr 2020 at 18:21, Marco Felsch wrot= e: > > > > 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 descrip= tion > > > > * 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/ov8= 856.yaml > > > > > > > > diff --git a/Documentation/devicetree/bindings/media/i2c/ov8856.yam= l 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 megapix= el, 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 program= mable > > > > + through I2C and two-wire SCCB. The sensor output is available vi= a 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. >=20 > Thanks Marco, I'll make it optional for the next revision. Well, the whole discussion we had was about removing them entirely? Maxime --bgh5jcvervb4fpgs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXqfhWAAKCRDj7w1vZxhR xXg4AP9QpJm1SeDBHxg+crTVi5icwwj1p96ALN1LEBBdS0vlzgD+IHz1H62cHcBI cgbH2BwkU2AT26cxWg6C2u5UtOXswQQ= =qFiE -----END PGP SIGNATURE----- --bgh5jcvervb4fpgs--