Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4151653ybb; Tue, 7 Apr 2020 01:37:34 -0700 (PDT) X-Google-Smtp-Source: APiQypKuEPKtV+Mi4CxdJ6kFY30Z8b5FVdY5M/ZQZCcEEXzO2enG9PirSgzgrajO4/UVVaNwYP6C X-Received: by 2002:aca:bec1:: with SMTP id o184mr807344oif.37.1586248653896; Tue, 07 Apr 2020 01:37:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586248653; cv=none; d=google.com; s=arc-20160816; b=cuxFE+IfkEYFQfH760eHH0Ek6d5OUpvsxXpfYfh2C8UVxYyETzrPruQEvwdI50awXB C7YzmXhCuqhOwwGKI+54tYl/8ZhjNVyCwiRODfATmqOGiweBWTanJrx0oIE2HblOXXZL MlnQ+9/xrFnU299p1ngYCVz8Cn9aZfcIiip55i/MQ4CuPCzXCP3jp7wu23n4oZQfN5cN 0EKqPWn2XapqtyeLoTM4ffffqo9YzPoQWCrfaXq0mqp2NkGILxMo0r7eEQN6YabVw6C3 /yeHJAyCyb98qA3PQTq2iOmP45gXTSQd2AUAb/zT5zfir1lippl+sYo5AXc8Xy5dBz1O NMXg== 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=4JjD4nhCeDSm8qKCj697mUQU3e9hRBe6jxcMGNOUYSk=; b=fsvhoRPgUSaApuuN8K1S83uIUOK81z/95VoFG2EsQjxs84CF1qL8ZJ48krvkV4EUz4 T/S2X7EVCGisHITLDEn/5zbItGvBI0LolL6GQZB18zs2jmMdBF7zKrin4q64IsUiu2Bj Pr0kiqXqhk8/FnE2LWjKE6Kdvni2AfO9jyJnaA/8DKpOlwaTSiPII652SHNPOa6DaL9W 7kX1wfNYDGrzMDMWDDisY3bOiYqGPySzJPXcNdoz2Sb14TbuN9HZ2clir7vOoWnwL+GD Vk+NUUtO10rUYr3sXpwOCGOx+0rQrIzbfADzdT0NgiQwtR5RQHunZI89SdJn3P6F8P+U QpMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=XsjePcnH; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=grugulOl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id x64si842781oig.34.2020.04.07.01.37.21; Tue, 07 Apr 2020 01:37:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=XsjePcnH; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=grugulOl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727896AbgDGIgy (ORCPT + 99 others); Tue, 7 Apr 2020 04:36:54 -0400 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:36721 "EHLO wout4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725817AbgDGIgy (ORCPT ); Tue, 7 Apr 2020 04:36:54 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 4A951651; Tue, 7 Apr 2020 04:36:50 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 07 Apr 2020 04:36:50 -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=4JjD4nhCeDSm8qKCj697mUQU3e9 hRBe6jxcMGNOUYSk=; b=XsjePcnHJcDSz+mYUIJGJ5B/aG0e7XbHR08R6oCdAsh QzvpBvr7/otb8MdKszbYdUvJ7mJAWq7WpZQgnlOOMTg22tCIBfg7s9G01I0Q70ph y1FE4ni4is/9D0LSw986qIl42FmIYyaFix9y0BwtS4p+0ngYe1UEr/Ie7si7UjNR U1n/WC8YxMmA1Coa5sJ+nRcGFGtdGDflzZMwjJWxXV8Y10va4JA1QUSjp03mOn6C InAfGS6Jt9poszH1Rm2Yy+7dcaFn6Dd0EJ9ClcKU91jLgsRYFVjmBBL7pqhly6kw XsIs5uuvAVm2szqC/GLE+9mXtSJMV89w8YP8sV07Ixg== 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=4JjD4n hCeDSm8qKCj697mUQU3e9hRBe6jxcMGNOUYSk=; b=grugulOlKGnUpe+cw9Zfr2 9f2qnI/N4GTrxJEk0reU+x7fgJTGrv6wk3aCrPY50tZN80Ig4ttN7IF6rsgccwTV +wgWBnn37c+X94Whcfgu7RIxNRzkXxH4tKj2/0/lW/q0447RJ8JfZRgXmysK35kI CLOrtNnLZi8AdoU+nA/2yREnra6Kj4zuQl8rvf16uzxgIZYmblNObIdLiizjKalP koluwaGEoGmeCrRY0s/NEnN9ZqeQapx1jj1OI6qyGhfmiEzV1CgOIMc3EOaetgy2 ug25xi+X6xeAMuuhXMwsyY0jUeUmJu6ZivSU+3MP9N9CA6XtTyD3+kLrx+VLPkFA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudehgddtiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucfkphepledtrd ekledrieekrdejieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpehmrgigihhmvgestggvrhhnohdrthgvtghh 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 787A6328005A; Tue, 7 Apr 2020 04:36:48 -0400 (EDT) Date: Tue, 7 Apr 2020 10:36:47 +0200 From: Maxime Ripard To: Sakari Ailus Cc: Robert Foss , Dongchun Zhu , Fabio Estevam , Andy Shevchenko , 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 v6 1/3] media: dt-bindings: ov8856: Document YAML bindings Message-ID: <20200407083647.4mocdl7aqa3x737q@gilmour.lan> References: <20200331133346.372517-1-robert.foss@linaro.org> <20200331133346.372517-2-robert.foss@linaro.org> <20200401080705.j4goeqcqhoswhx4u@gilmour.lan> <20200403232736.GA6127@valkosipuli.retiisi.org.uk> <20200404093446.vuvwrhn5436h4d3s@gilmour.lan> <20200406083506.GE6127@valkosipuli.retiisi.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="tdgovq5ccaqtherr" Content-Disposition: inline In-Reply-To: <20200406083506.GE6127@valkosipuli.retiisi.org.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --tdgovq5ccaqtherr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Sakari, On Mon, Apr 06, 2020 at 11:35:07AM +0300, Sakari Ailus wrote: > > But that 19.2MHz is not a limitation of the device itself, it's a > > limitation of our implementation, so we can instead implement > > something equivalent in Linux using a clk_set_rate to 19.2MHz (to make > > sure that our parent clock is configured at the right rate) and the > > clk_get_rate and compare that to 19.2MHz (to make sure that it's not > > been rounded too far apart from the frequency we expect). > > > > This is doing exactly the same thing, except that we don't encode our > > implementation limitations in the DT, but in the driver instead. > > What I really wanted to say that a driver that doesn't get the clock > frequency from DT but still sets that frequency is broken. > > This frequency is highly system specific, and in many cases only a certain > frequency is usable, for a few reasons: On many SoCs, not all common > frequencies can be used (e.g. 9,6 MHz, 19,2 MHz and 24 MHz; while others > are being used as well), and then that frequency affects the usable CSI-2 > bus frequencies directly --- and of those, only safe, known-good ones > should be used. IOW, getting the external clock frequency wrong typically > has an effect that that none of the known-good CSI-2 bus clock frequencies > are available. So clock-frequency is not about the "Frequency of the xvclk clock in Hertz", but the frequency at which that clock must run on this particular SoC / board to be functional? If so, then yeah, we should definitely keep it, but the documentation of the binding should be made clearer as well. assigned-clock-rates should still go away though. Maxime --tdgovq5ccaqtherr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXow7nwAKCRDj7w1vZxhR xQstAP0TwTb8HQCIY1hTWh6ICjLurf3wji32l8sqvhKN/kS2bAEA/QsgQ8BIfzU3 wxJ2Dwt128qujydSVIFZL5Uk7XAwJgY= =IafI -----END PGP SIGNATURE----- --tdgovq5ccaqtherr--