Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp458499yba; Thu, 18 Apr 2019 04:21:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWJxP1tLDEcJyHvcmaXabWN5245kD+pN2mGBlvvYup2pYyCDtZq9i7t3PXFvJNQW42plHy X-Received: by 2002:a62:6f47:: with SMTP id k68mr79082718pfc.196.1555586487663; Thu, 18 Apr 2019 04:21:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555586487; cv=none; d=google.com; s=arc-20160816; b=qOQST1NpoKEskfR8+iHiWelw1UQ4UrNCaFgXp5CExH7fX2eAxQ63PyODUDcnSdgqOA KgYnMkkMzoMAd+SuchBKDVdUOojtgfBL2gZrwsz6z0kOXpVfMfSXmbe7rer+RYSt+LvM 2iAOGl+V8ClIAaDhYphfu9HjbVy9iXaevEQfRtGgrTKZQIDDaNEo3O9n7zi2isWvIyg6 jETUk8zz0mzItNaXDknsKK3oqcPBEE2QEeOZvDgXA4FOamPmpQZLdq/p6zAU6WdTNrmO 2eYFOl3UXzQc7CCkwFrDdH67MmGpOOMbCIH055kv1FFsgfFAmJQ/gQlz9RQRZKaV5EJ1 7Mbg== 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=xOUd3ZrYMULp2t/8sT9PtSxo4H0db8FxZvSJbKzSTnE=; b=UvMu8e6Xf76Q02thDPJ5e+Q4CUXXpGyhE/OXeTmUzsP4hGtRYgCWFQrAbONwnKGSin qwAUJIoeEk7zkuFivpoIQH1VLIoeVFCwJShi2K/g+d4EMoG3IXn+XOmKIb9rXGzEbthL NXECq2dMT2sJxWiiOpvNMEJPbrptyjBESFTJr0prrAYkpk+NpeoOkXgMqyTAWVJcLYZd mrII+zPjzUCJLYRO6lHqPQw07gbLt5We0NlxrEoK76HpZB8kL6Plld+4RgrCtatAfruP LsIcqtnlx+q/C2wPJP26FVJNkAVVtP9npab++uj+/KDfCOgiMgegDpNresGEsELe/YOL tSMQ== 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 p8si1845476plk.392.2019.04.18.04.21.12; Thu, 18 Apr 2019 04:21:27 -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; 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 S2388751AbfDRLUM (ORCPT + 99 others); Thu, 18 Apr 2019 07:20:12 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:33555 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727807AbfDRLUL (ORCPT ); Thu, 18 Apr 2019 07:20:11 -0400 Received: from localhost (aaubervilliers-681-1-42-238.w90-88.abo.wanadoo.fr [90.88.160.238]) (Authenticated sender: maxime.ripard@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 864FB20000A; Thu, 18 Apr 2019 11:20:05 +0000 (UTC) Date: Thu, 18 Apr 2019 13:20:05 +0200 From: Maxime Ripard To: Jagan Teki Cc: Chen-Yu Tsai , Rob Herring , Mark Rutland , Michael Trimarchi , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com Subject: Re: [PATCH 2/2] arm64: dts: allwinner: a64-amarula-relic: Add OV5640 camera node Message-ID: <20190418112005.fxo6mpso3ibuqzvu@flea> References: <20190418083813.11776-1-jagan@amarulasolutions.com> <20190418083813.11776-2-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="lcsblazyrtnlskic" Content-Disposition: inline In-Reply-To: <20190418083813.11776-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 --lcsblazyrtnlskic Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, On Thu, Apr 18, 2019 at 02:08:13PM +0530, Jagan Teki wrote: > Amarula A64-Relic board by default bound with OV5640 camera, > so add support for it with below pin information. > > - PE13, PE12 via i2c-gpio bitbanging > - CLK_CSI_MCLK as external clock > - PE1 as external clock pin muxing > - ALDO1 as AVDD supply > - DLDO3 as DOVDD supply > - ELDO3 as DVDD supply > - PE14 gpio for reset pin > - PE15 gpio for powerdown pin > > Signed-off-by: Jagan Teki > --- > > .../allwinner/sun50i-a64-amarula-relic.dts | 53 +++++++++++++++++++ > 1 file changed, 53 insertions(+) > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts > index 3819ce396073..56c76b712e3b 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts > @@ -22,6 +22,41 @@ > stdout-path = "serial0:115200n8"; > }; > > + i2c-csi { That node should be named i2c > + compatible = "i2c-gpio"; > + sda-gpios = <&pio 4 13 GPIO_ACTIVE_HIGH>; /* CSI-SDA: PE13 */ > + scl-gpios = <&pio 4 12 GPIO_ACTIVE_HIGH>; /* CSI-SCK: PE12 */ There's no need to document what those pins are here for, it's already in the property name. > + i2c-gpio,delay-us = <5>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + ov5640: camera@3c { > + compatible = "ovti,ov5640"; > + reg = <0x3c>; > + pinctrl-names = "default"; > + pinctrl-0 = <&csi_mclk_pin>; > + clocks = <&ccu CLK_CSI_MCLK>; > + clock-names = "xclk"; > + > + AVDD-supply = <®_aldo1>; > + DOVDD-supply = <®_dldo3>; > + DVDD-supply = <®_eldo3>; > + reset-gpios = <&pio 4 14 GPIO_ACTIVE_LOW>; /* CSI-RST-R: PE14 */ > + powerdown-gpios = <&pio 4 15 GPIO_ACTIVE_HIGH>; /* CSI-STBY-R: PE15 */ > + > + port { > + ov5640_ep: endpoint { > + remote-endpoint = <&csi_ep>; > + bus-width = <8>; > + hsync-active = <1>; /* Active high */ > + vsync-active = <0>; /* Active low */ > + data-active = <1>; /* Active high */ > + pclk-sample = <1>; /* Rising */ > + }; > + }; > + }; > + }; > + > wifi_pwrseq: wifi-pwrseq { > compatible = "mmc-pwrseq-simple"; > clocks = <&rtc 1>; > @@ -30,6 +65,24 @@ > }; > }; > > +&csi { > + status = "okay"; > + > + port { > + #address-cells = <1>; > + #size-cells = <0>; This isn't needed, you don't have a reg property in your child node. Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --lcsblazyrtnlskic Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXLhdZQAKCRDj7w1vZxhR xYZNAP97st5WinIiU7yjctC3Q8tY/jIYEM24XiCuypHbxxEttwD+NHg9E7SK6NIs GWQkA71y5BG/Xs+7Gde323eUhKNLZQQ= =pUZc -----END PGP SIGNATURE----- --lcsblazyrtnlskic--