Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10840956imu; Thu, 6 Dec 2018 07:36:12 -0800 (PST) X-Google-Smtp-Source: AFSGD/UQYvJAkaWsU4SGtMTfzpfcKF6tAfv/h2eqg//oDtk6WvctRuyDG1ro6Z1HB/SoY7fS1xO7 X-Received: by 2002:a63:f811:: with SMTP id n17mr25129429pgh.23.1544110572693; Thu, 06 Dec 2018 07:36:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544110572; cv=none; d=google.com; s=arc-20160816; b=JCBZgLG5lq1TsOO4dSeTtP1Rkg1LzGNanmNXWer/wyMEtLivle2USUQIWMtbkyXdXX DiVcSVUC+HNcG+DE8BXt4xR6aHDWuXermUcsPakP5fnzFPWHbLCXRQME91ug/Mv8kI3G 2PqUqm2nI+5o1vFOTWHcWaZfNoGcok3d0SOFMvSSHwzHYo+DqM7Y0iR/uayj5cg+CgCF PHnh+UAdDS9SCigyVOF577DJF3LfkiINzi/cd3xKCdWLxckBwqE5TkL1ZOKG4vcgvYWt 3fPxm1wKh7UKMLmnN8YX38Xb5vFExKSMD23gtTwHCnpggTu+r9mAeWPZg9T/V4aJ2qbr OWzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=5IMhavdeDpkNwJBR+hWAKzQfOYOg/wUF1OExg2Q5yTE=; b=btzT4MUmaHAdeLJuRB0+hsS4gqLrBoRs2gzZSbrTtPj6RaMiLp7nI+2d8X3AUzocyN YScXThPaKhMCJNz7Zf1j8l70JIfs/Lc5Oi3pxlxRxBC1dpr18p9IsnB6GU8M93wj26c6 mYv0ly8nhccJUlK2NMgZcyoSZnmqN4SWlDBCsN4YLlNyRkb2HR2nOp4k4vlJnPBnDM+2 6lIgpqMEXJ8ScrDMCA7RSOv7yiHp+PpiB8wOa/fwdP8DYcjZvj4n/VT1GI4TWrc5dXAX SsXyfIk3ZZj4cOz+YcwztxF7TSyFc7MpAUpVa6bPKtTLR0p54weXfD8HMDBe3dGl6XQt JVGA== ARC-Authentication-Results: i=1; mx.google.com; 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 x23si460949pgj.247.2018.12.06.07.35.44; Thu, 06 Dec 2018 07:36:12 -0800 (PST) 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; 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 S1726006AbeLFPes (ORCPT + 99 others); Thu, 6 Dec 2018 10:34:48 -0500 Received: from mail.bootlin.com ([62.4.15.54]:46897 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725849AbeLFPer (ORCPT ); Thu, 6 Dec 2018 10:34:47 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 8E93120743; Thu, 6 Dec 2018 16:34:45 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED,URIBL_RHS_DOB shortcircuit=ham autolearn=disabled version=3.4.2 Received: from localhost (aaubervilliers-681-1-79-44.w90-88.abo.wanadoo.fr [90.88.21.44]) by mail.bootlin.com (Postfix) with ESMTPSA id 569792037D; Thu, 6 Dec 2018 16:34:45 +0100 (CET) Date: Thu, 6 Dec 2018 16:34:45 +0100 From: Maxime Ripard To: Jagan Teki Cc: Chen-Yu Tsai , Rob Herring , Mark Rutland , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, Michael Trimarchi Subject: Re: [PATCH v2 2/3] arm64: dts: allwinner: a64: Add A64 CSI controller Message-ID: <20181206153445.kqu2pep5orktr6yv@flea> References: <20181206132306.11843-1-jagan@amarulasolutions.com> <20181206132306.11843-2-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="z4k7eddmoxp7uc66" Content-Disposition: inline In-Reply-To: <20181206132306.11843-2-jagan@amarulasolutions.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --z4k7eddmoxp7uc66 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 06, 2018 at 06:53:05PM +0530, Jagan Teki wrote: > Allwinner A64 CSI controller has similar features as like in > H3, So add support for A64 via H3 fallback. >=20 > Also updated CSI_SCLK to use 300MHz via assigned-clocks, since > the default clock 600MHz seems unable to drive the sensor(ov5640) > to capture the image. >=20 > Signed-off-by: Jagan Teki > --- > Changes for v2: > - Use CSI_SCLK to 300MHz=20 >=20 > arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 23 +++++++++++++++++++ > 1 file changed, 23 insertions(+) >=20 > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/b= oot/dts/allwinner/sun50i-a64.dtsi > index 384c417cb7a2..d7ab0006ebce 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi > @@ -532,6 +532,12 @@ > interrupt-controller; > #interrupt-cells =3D <3>; > =20 > + csi_pins: csi-pins { > + pins =3D "PE0", "PE2", "PE3", "PE4", "PE5", "PE6", > + "PE7", "PE8", "PE9", "PE10", "PE11"; > + function =3D "csi0"; > + }; > + > i2c0_pins: i2c0_pins { > pins =3D "PH0", "PH1"; > function =3D "i2c0"; > @@ -899,6 +905,23 @@ > status =3D "disabled"; > }; > =20 > + csi: csi@1cb0000 { > + compatible =3D "allwinner,sun50i-a64-csi", > + "allwinner,sun8i-h3-csi"; > + reg =3D <0x01cb0000 0x1000>; > + interrupts =3D ; > + clocks =3D <&ccu CLK_BUS_CSI>, > + <&ccu CLK_CSI_SCLK>, > + <&ccu CLK_DRAM_CSI>; > + clock-names =3D "bus", "mod", "ram"; > + resets =3D <&ccu RST_BUS_CSI>; > + pinctrl-names =3D "default"; > + pinctrl-0 =3D <&csi_pins>; > + assigned-clocks =3D <&ccu CLK_CSI_SCLK>; > + assigned-clock-rates =3D <300000000>; That should be enforced in the driver. Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --z4k7eddmoxp7uc66 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXAlBlQAKCRDj7w1vZxhR xRZyAP0fG+DOaicKez44BPE0nW3YvdHUKfgjkF3Jg+u1yCGtKgEAyT7BeXKWmDBc Ol0gT/QcSIUnzn4VtbhMFlmQH6GncAI= =No1S -----END PGP SIGNATURE----- --z4k7eddmoxp7uc66--