From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C08CDC47404 for ; Mon, 7 Oct 2019 11:09:58 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 935412064A for ; Mon, 7 Oct 2019 11:09:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="leOL1riD"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="YRL+/JhP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 935412064A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=prLyK8w0eHJ81reOwSDyldXv2BCDHBfksbKYJ8NIpNY=; b=leOL1riDTWRcqiLbovTBTfUUH +nay59vU9dnpBfWUpehSvymDjBEtknl36WNhQpldcBgEQro+JY0f4lI1yjWQp5nCU23BbVo4zfQLf VTBV7D6RzNi1JPh4RpkhDu5IALdX13XeJs937JjJBOaxZiHne9IsWzGKgh80Qf8nL94zWC2+5c6KB LKMTjeF7hJE1+pmovBbRpX3tmQtA9gt8TxBZpc1za7UkryupBUiRtmgCrc4lsjTSkhu8yRvajQL0d zvwwbC0cwIbNOFOMdwsLHaokwtLja+81tdRredfvweUEEOaL1ER8Rda+Eb8bAssWtqBGNkmLIkaKA rws+Ye0xg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.2 #3 (Red Hat Linux)) id 1iHQti-0005uM-75; Mon, 07 Oct 2019 11:09:50 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92.2 #3 (Red Hat Linux)) id 1iHQte-0005tq-Gt for linux-arm-kernel@lists.infradead.org; Mon, 07 Oct 2019 11:09:48 +0000 Received: from localhost (lfbn-1-10718-76.w90-89.abo.wanadoo.fr [90.89.68.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B057F2064A; Mon, 7 Oct 2019 11:09:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570446586; bh=qK2QnTNew50AovHrktWG22vqb06vH8d2dRbYgAAQCck=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YRL+/JhPnB4qVpA6HNY/kO/onyRZoyQUo6y48Vk/2jeWPf9aW07lT1dPoFmRALoTk jtpipKR639mlvD3ZOlEw6dsFBm9u6CBHutUtup+0iD5WXZe3FiYsfJjAfQabBafI3a vGp+D5A2ZGAn6k/TMSDLoK1EMyPthVSEhE4GJ1+0= Date: Mon, 7 Oct 2019 13:09:43 +0200 From: Maxime Ripard To: Chen-Yu Tsai Subject: Re: [PATCH 1/2] dt-bindings: media: sun4i-csi: Drop the module clock Message-ID: <20191007110943.lyz3nep7udr6weu3@gilmour> References: <20191003154842.248763-1-mripard@kernel.org> <20191003163754.26ciq2ljcbuuvcrx@gilmour> MIME-Version: 1.0 In-Reply-To: User-Agent: NeoMutt/20180716 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191007_040946_600884_F674F8A3 X-CRM114-Status: GOOD ( 28.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree , Rob Herring , Sakari Ailus , Mauro Carvalho Chehab , Frank Rowand , linux-arm-kernel , Linux Media Mailing List Content-Type: multipart/mixed; boundary="===============3177857042248311024==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============3177857042248311024== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="gfwbyrumehvh2ot3" Content-Disposition: inline --gfwbyrumehvh2ot3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, On Fri, Oct 04, 2019 at 02:33:41PM +0800, Chen-Yu Tsai wrote: > On Fri, Oct 4, 2019 at 12:37 AM Maxime Ripard wrote: > > On Thu, Oct 03, 2019 at 11:51:05PM +0800, Chen-Yu Tsai wrote: > > > On Thu, Oct 3, 2019 at 11:48 PM Maxime Ripard wrote: > > > > > > > > It turns out that what was thought to be the module clock was actually the > > > > clock meant to be used by the sensor, and isn't playing any role with the > > > > CSI controller itself. Let's drop that clock from our binding. > > > > > > > > Fixes: c5e8f4ccd775 ("media: dt-bindings: media: Add Allwinner A10 CSI binding") > > > > Reported-by: Chen-Yu Tsai > > > > Signed-off-by: Maxime Ripard > > > > --- > > > > .../devicetree/bindings/media/allwinner,sun4i-a10-csi.yaml | 7 ++----- > > > > 1 file changed, 2 insertions(+), 5 deletions(-) > > > > > > > > diff --git a/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-csi.yaml b/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-csi.yaml > > > > index 5dd1cf490cd9..d3e423fcb6c2 100644 > > > > --- a/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-csi.yaml > > > > +++ b/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-csi.yaml > > > > @@ -27,14 +27,12 @@ properties: > > > > clocks: > > > > items: > > > > - description: The CSI interface clock > > > > - - description: The CSI module clock > > > > - description: The CSI ISP clock > > > > - description: The CSI DRAM clock > > > > > > > > clock-names: > > > > items: > > > > - const: bus > > > > - - const: mod > > > > - const: isp > > > > - const: ram > > > > > > > > @@ -89,9 +87,8 @@ examples: > > > > compatible = "allwinner,sun7i-a20-csi0"; > > > > reg = <0x01c09000 0x1000>; > > > > interrupts = ; > > > > - clocks = <&ccu CLK_AHB_CSI0>, <&ccu CLK_CSI0>, > > > > - <&ccu CLK_CSI_SCLK>, <&ccu CLK_DRAM_CSI0>; > > > > - clock-names = "bus", "mod", "isp", "ram"; > > > > + clocks = <&ccu CLK_AHB_CSI0>, <&ccu CLK_CSI_SCLK>, <&ccu CLK_DRAM_CSI0>; > > > > + clock-names = "bus", "isp", "ram"; > > > > > > I believe what we thought was the ISP clock is actually the module clock > > > for the whole CSI subsystem. So we should still use the module clock entry, > > > and remove the ISP entry. > > > > I'm really not sure it is. CSI1 on the A20 (possibly the A10 as well, > > I haven't checked), and the one on the A13 don't have any ISP embedded > > in the CSI controller. > > > > It makes some difference, because according to the BSP, you can see > > that the ISP clock is taken for CSI0: > > https://github.com/linux-sunxi/linux-sunxi/blob/sunxi-3.4/drivers/media/video/sun4i_csi/csi0/sun4i_drv_csi.c#L389 > > > > While for CSI1, that block is commented out, and the ISP clock never > > used: > > https://github.com/linux-sunxi/linux-sunxi/blob/sunxi-3.4/drivers/media/video/sun4i_csi/csi1/sun4i_drv_csi.c#L396 > > > > So I really believe that the ISP clock is here to feed the ISP block > > within the CSI controller if there's any. But it's far from always the > > case, as opposed to a module clock for the whole CSI controller that > > would be here in both cases. > > I guess we should try to test this with CSI1 one, either on a Cubieboard > or OlinuXino with a simple camera like the OV7670? > > Do you have any hardware on hand for this? I have the Cubieboard but I > need to get some proper 2.0mm connector blocks. I've tested it with the A13 before, and it doesn't need the ISP clock Maxime --gfwbyrumehvh2ot3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXZsc9wAKCRDj7w1vZxhR xe8bAP4y7gE06QSkjyJMfN/E+73ErbKG/ywgEMhdUOldFR1BCgEAp0po3XMHrAbf 6U/EwEK0FrUyTP67CkGvDLUqK++uww8= =Baec -----END PGP SIGNATURE----- --gfwbyrumehvh2ot3-- --===============3177857042248311024== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============3177857042248311024==--