From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B7E4C158D9B for ; Mon, 6 May 2024 18:55:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715021745; cv=none; b=fgDb0nrDR3ieAqJoeksgCtbX/qH1D+dkOHnI2IoLvVRYFAdOSnE/abKaDUTJUnEMMDeW5tcZ8DnjHMHsEXcaKZhE6pHKnpYD/Wn4GlRO7jJF0Z/cvn2M/X0ZfiBVSFqOxJ6B2/VQUbuTlBvLMLFE08olpPYUHhNFoVJqBUflb4g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715021745; c=relaxed/simple; bh=bZDiZMGu0jBtjwsda2PcNCz+ZVppj4NJDGPoMGORpxY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ECRraxiGoL7VaBq3HsvKYeEwLDRIEAT+jrM7Qrw5xZrELZDuCayMslKClWyx2o9Kw3nN7ExcfSzPtbm+ylr17t8BeBrCxZSrdG0wPWYunZZ+FhuUJHro3AFe4jE00oDdMtLZis/OWdn7G5t9zXWJvBoW10ni3zBFbQLYvgo0vMA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=AGhAKqJ3; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="AGhAKqJ3" Received: from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi [81.175.209.231]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 1370B114D; Mon, 6 May 2024 20:55:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1715021740; bh=bZDiZMGu0jBtjwsda2PcNCz+ZVppj4NJDGPoMGORpxY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AGhAKqJ3rNcKJ3ySqDlXLDV2PZMylOpUjrwj/IGvTgFgAzMmfOHRfE5kl1or3ELGn X5nbSS/kKXXVTfPneSYuE2Eicwwd8PA2drq+yXYA/gFWUGpridR8JtUnBEYUfbBH7u Y2ztuBtd+pwe+8q336SrmePUFncKH8JXwn67rgG8= Date: Mon, 6 May 2024 21:55:34 +0300 From: Laurent Pinchart To: Alexander Stein Cc: linux-arm-kernel@lists.infradead.org, Marek Vasut , Conor Dooley , Fabio Estevam , Krzysztof Kozlowski , Paul Elder , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, imx@lists.linux.dev Subject: Re: [PATCH v2] arm64: dts: imx8mp: Align both CSI2 pixel clock Message-ID: <20240506185534.GC26689@pendragon.ideasonboard.com> References: <20240416141914.9375-1-marex@denx.de> <3311352.aeNJFYEL58@steina-w> <20240503134557.GC13904@pendragon.ideasonboard.com> <5784573.DvuYhMxLoT@steina-w> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <5784573.DvuYhMxLoT@steina-w> On Mon, May 06, 2024 at 08:19:57AM +0200, Alexander Stein wrote: > Am Freitag, 3. Mai 2024, 15:45:57 CEST schrieb Laurent Pinchart: > > On Fri, May 03, 2024 at 02:58:19PM +0200, Alexander Stein wrote: > > > Am Mittwoch, 17. April 2024, 11:12:04 CEST schrieb Alexander Stein: > > > > Am Dienstag, 16. April 2024, 16:19:10 CEST schrieb Marek Vasut: > > > > > Configure both CSI2 assigned-clock-rates the same way. > > > > > There does not seem to be any reason for keeping the > > > > > two CSI2 pixel clock set to different frequencies. > > > > > > > > > > This also reduces first CSI2 clock from overdrive mode > > > > > frequency which is 500 MHz down below the regular mode > > > > > frequency of 400 MHz. > > > > > > > > > > Signed-off-by: Marek Vasut > > > > > > > > Apparently there is no difference when using imx415 (3840x2160) sensor. > > > > > > Just for the records: While this change does not affect imx415 (3840x2160) > > > processing, reducing clock-frequency as well (v3) imx415 does not work. > > > So I assume that for this image size a higher than default frequency is > > > required. > > > > For the time being I expect sensor overlays to override the default > > clock setup. > > Yep, that's what I did in the end. > > > Ideally the clock frequencies should be configured > > automatically at runtime by the CSI-2 RX driver. > > Ideally, yes. In this case it depends on whether it is MIPI-CSI 1 in normal > or overdrive mode, if it is MIPI-CSI 2 or if both cameras a run > simultaneously. I wonder if it really worth to add that much infrastructure > for a use case which is essentially fixed setup. There could be platforms where two cameras are connected, and the user would want to operate them either concurrently at lower resolutions (and speed), or separately at higher resolutions. > > > > Reviewed-by: Alexander Stein > > > > > > > > > --- > > > > > Cc: Conor Dooley > > > > > Cc: Fabio Estevam > > > > > Cc: Krzysztof Kozlowski > > > > > Cc: Laurent Pinchart > > > > > Cc: Paul Elder > > > > > Cc: Pengutronix Kernel Team > > > > > Cc: Rob Herring > > > > > Cc: Sascha Hauer > > > > > Cc: Shawn Guo > > > > > Cc: devicetree@vger.kernel.org > > > > > Cc: imx@lists.linux.dev > > > > > Cc: linux-arm-kernel@lists.infradead.org > > > > > --- > > > > > V2: Align both clock to 266 MHz and update commit message > > > > > --- > > > > > arch/arm64/boot/dts/freescale/imx8mp.dtsi | 2 +- > > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > > > diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi > > > > > index 1bb96e96639f2..7883f5c056f4e 100644 > > > > > --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi > > > > > +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi > > > > > @@ -1667,7 +1667,7 @@ mipi_csi_0: csi@32e40000 { > > > > > <&clk IMX8MP_CLK_MEDIA_MIPI_PHY1_REF>; > > > > > assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_1000M>, > > > > > <&clk IMX8MP_CLK_24M>; > > > > > - assigned-clock-rates = <500000000>; > > > > > + assigned-clock-rates = <266000000>; > > > > > power-domains = <&media_blk_ctrl IMX8MP_MEDIABLK_PD_MIPI_CSI2_1>; > > > > > status = "disabled"; > > > > > -- Regards, Laurent Pinchart