Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3546695ybb; Mon, 6 Apr 2020 10:47:20 -0700 (PDT) X-Google-Smtp-Source: APiQypLB+xq4rl5JV0cuOujLmdWj//+ffRzC+e5h06DtzaepE4vCJMs7z8GMvs8CMarnIxBK4t7D X-Received: by 2002:aca:5508:: with SMTP id j8mr379177oib.71.1586195240469; Mon, 06 Apr 2020 10:47:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586195240; cv=none; d=google.com; s=arc-20160816; b=C1ujeM+SZYHZqZfKFyNOUMrT+pMiz4PTwtpDzguYo1EYy33uTTS58/NmA4G+e40NbA 1/NgXAUUQgt2c2r9twXpM+6oX+NDXXf1At9HyvrqL40MB2FDGBeZmb/g59ZmB5IZoawY Avwj03oJF8fJERTOF/mdmt7vHRjFJwSnxlsC49doP+YllwYuwoKsX44Rboxx9hyvS+0Y ABA1IfTGhtRJG/uBs6v8Z4/Wa/jijlkSmSfat7bTOxImU3AT1Qo7V/EHA9fkC/tpBmH0 Xh5PC8xeJho735Aaxf+8wWN+jcSy8mFEGuf7pHMjXoyh9OHdXMV/fHXtWZcRTMcrP2xt y73Q== 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; bh=RfEObeF04HoLQTAiZbqOWb7GsQAkK3QZ21y72kYLGKE=; b=u+NRMk3V4KLygUnUrGvHselGDwZnhgZi7xqAMjgfGpH8/V6IMZl8yVfXj8DGpaOzr2 HxL2kkhZE6FpaIIiGQum093on8mrPqjlV20ff46zTTF7hFBcjy6wk6oiOlCv+A4O4ZHC tocLYBD84u2kjitDVTYjzClcwehIlKMCnar8KbKL9isP/U+Lo4PHhe5Mjog6/TZKO6JW HjrLeuZ1N30UD5nlULbsH4UkEixIO2/hk+l8rqAZ84SVK2PWS4xm9wWKBuzYMKVrVEi1 GArFWj66bQWObeJFsMZ26JbVv6O6AX2HEbQDmbOJ7uFi+5DHW9GCh8Gz2EIT5XIN392l d1dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=VYRfYJdn; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a17si63297oie.2.2020.04.06.10.47.08; Mon, 06 Apr 2020 10:47:20 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=VYRfYJdn; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728573AbgDFRcq (ORCPT + 99 others); Mon, 6 Apr 2020 13:32:46 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:52576 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726675AbgDFRcq (ORCPT ); Mon, 6 Apr 2020 13:32:46 -0400 Received: from pendragon.ideasonboard.com (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 01CED1031; Mon, 6 Apr 2020 19:32:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1586194364; bh=UvEmac5uaQ/qcTzqBjGKkxMOGVtF/DXYqGMo+nzYdoo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VYRfYJdnA256/yTKJfooJh72XMp690mHO4hGlWRTr6xEALlY8+OECMVFRsfOSoUg9 C23doRU9Itdwlp9uOi/wyyoNqynKJMZXhHMQakFiP0w474D/QpFXXBLj0eK3mwTq3A oImf7aE8hpD/jc9SLOs8Zabkl0X4r989K1fM2wTw= Date: Mon, 6 Apr 2020 20:32:34 +0300 From: Laurent Pinchart To: Sakari Ailus Cc: Lad Prabhakar , Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Kieran Bingham , Geert Uytterhoeven , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Lad Prabhakar , Maxime Ripard Subject: Re: [PATCH v5 2/5] media: i2c: ov5645: Drop reading clock-frequency dt-property Message-ID: <20200406173234.GD16885@pendragon.ideasonboard.com> References: <1586191361-16598-1-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> <1586191361-16598-3-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> <20200406165108.GA7646@kekkonen.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200406165108.GA7646@kekkonen.localdomain> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sakari, (CC'ing Maxime) On Mon, Apr 06, 2020 at 07:51:08PM +0300, Sakari Ailus wrote: > On Mon, Apr 06, 2020 at 05:42:38PM +0100, Lad Prabhakar wrote: > > Modes in the driver are based on xvclk frequency fixed to 24MHz, but where > > as the OV5645 sensor can support the xvclk frequency ranging from 6MHz to > > 24MHz. So instead making clock-frequency as dt-property just let the > > driver enforce the required clock frequency. > > Even if some current systems where the driver is used are using 24 MHz > clock, that doesn't mean there wouldn't be systems using another frequency > that the driver does not support right now. > > The driver really should not set the frequency unless it gets it from DT, > but I think the preferred means is to use assigned-clock-rates instead, and > not to involve the driver with setting the frequency. > > Otherwise we'll make it impossible to support other frequencies, at least > without more or less random defaults. We're running in circles here. As the driver only supports 24MHz at the moment, the frequency should be set by the driver, as it's a driver limitation. We can then work on supporting additional frequencies, which will require DT to provide a list of supported frequencies for the system, but that can be done on top. -- Regards, Laurent Pinchart