Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp183704imu; Tue, 27 Nov 2018 10:46:00 -0800 (PST) X-Google-Smtp-Source: AFSGD/WaSbglW1CqHBXO6s8OthPdlL6/xuhLcSQE6n31DvyWIOvoEVd11ZjPC8ODt12myVdqluhb X-Received: by 2002:a17:902:6185:: with SMTP id u5mr33413620plj.194.1543344360650; Tue, 27 Nov 2018 10:46:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543344360; cv=none; d=google.com; s=arc-20160816; b=wLymrI4NoNFAVagji1aDIPrBC6IfsifWClIRWRmaxca54W2sLmlWv8Wrg5OX3vNfol gbXJFFtRM5txKMfsvwdnLjcc1+IFyPD683BSC3ehG3z11fRVn0qQJ20dk/xW/XPDIISr eugnjA0hedgG5jqqweDIXMzA0QTZYNAaQl5cmm+sFgf8hv1cgs7h/LKBGc4KlyZCr1qC gmHO+F3UzSIFUcbq0hMP1PpiLLkPQP4NxrnebYRpjV/lsOnLJ0erR6bJ8f2R/Qoruy5c 9MZ7cSBOr4yIQVcallA62x1Hrw27xnLXHAYM57QwPw6zbGc+ONLGuj7NOG4ZUSRLOsD0 K0hA== 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=2gszrhIf1oxtNAL0gHROVrCwFnBVOJBrk0xduHpoO8Y=; b=L3xVgYi93pSbCXK0top2Ihr9DyzKgtUAyt/T3eilfObkeqHcc6mml5PKabnJX5NSSS Fo7NkNI2+Wry8ulbdJiWIzIV8SvX6cnqPZKntQR25dMjtZQtwCjIOkZxfe4HNZAwvJYJ Gt/EWbaZ8EamvS2ypkyIysovgmeSMO5zLYkLnCIcJTbxaxOdVuhkjtFDTRV9ObYUIono 6m1dlZ7uMKqo1potMzLzvOZguojfaGdxk9Udh4ZIr1j2l7LLB5QOS7cqwNh3BN5I24Be 2MyRj5f7AmASGkVnoXoKfzinX6BjAwXuLX2Lvro2WhmNKs6wVkQaFffuFemY9R6vqgoD uhSw== 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 p12si4281576pgl.106.2018.11.27.10.45.43; Tue, 27 Nov 2018 10:46:00 -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 S1730691AbeK0V3e (ORCPT + 99 others); Tue, 27 Nov 2018 16:29:34 -0500 Received: from mail.bootlin.com ([62.4.15.54]:35544 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726369AbeK0V3d (ORCPT ); Tue, 27 Nov 2018 16:29:33 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id D4AA6207A8; Tue, 27 Nov 2018 11:31:58 +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=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from localhost (aaubervilliers-681-1-94-205.w90-88.abo.wanadoo.fr [90.88.35.205]) by mail.bootlin.com (Postfix) with ESMTPSA id 37B0720DD6; Tue, 27 Nov 2018 11:31:06 +0100 (CET) Date: Tue, 27 Nov 2018 11:31:06 +0100 From: Maxime Ripard To: Jagan Teki Cc: Hans Verkuil , Sakari Ailus , Mauro Carvalho Chehab , Thomas Petazzoni , laurent.pinchart@ideasonboard.com, linux-media , a.hajda@samsung.com, Chen-Yu Tsai , linux-kernel , linux-arm-kernel , devicetree , Mark Rutland , Rob Herring , frowand.list@gmail.com Subject: Re: [PATCH 5/5] DO NOT MERGE: ARM: dts: bananapi: Add Camera support Message-ID: <20181127103106.vykudp36vkyy5vme@flea> References: <12093630fdd7d8b43ebcb0340691e0f2200e26c6.1542097288.git-series.maxime.ripard@bootlin.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="mwaf2j32zrljcsge" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --mwaf2j32zrljcsge Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 27, 2018 at 12:26:09PM +0530, Jagan Teki wrote: > On Tue, Nov 13, 2018 at 1:54 PM Maxime Ripard = wrote: > > > > Signed-off-by: Maxime Ripard > > --- > > arch/arm/boot/dts/sun7i-a20-bananapi.dts | 98 ++++++++++++++++++++++++= +- > > 1 file changed, 98 insertions(+) > > > > diff --git a/arch/arm/boot/dts/sun7i-a20-bananapi.dts b/arch/arm/boot/d= ts/sun7i-a20-bananapi.dts > > index 70dfc4ac0bb5..18dbff9f1ce9 100644 > > --- a/arch/arm/boot/dts/sun7i-a20-bananapi.dts > > +++ b/arch/arm/boot/dts/sun7i-a20-bananapi.dts > > @@ -54,6 +54,9 @@ > > compatible =3D "lemaker,bananapi", "allwinner,sun7i-a20"; > > > > aliases { > > + i2c0 =3D &i2c0; > > + i2c1 =3D &i2c1; > > + i2c2 =3D &i2c2; > > serial0 =3D &uart0; > > serial1 =3D &uart3; > > serial2 =3D &uart7; > > @@ -63,6 +66,41 @@ > > stdout-path =3D "serial0:115200n8"; > > }; > > > > + reg_cam: cam { > > + compatible =3D "regulator-fixed"; > > + regulator-name =3D "cam"; > > + regulator-min-microvolt =3D <5000000>; > > + regulator-max-microvolt =3D <5000000>; > > + vin-supply =3D <®_vcc5v0>; > > + gpio =3D <&pio 7 16 GPIO_ACTIVE_HIGH>; > > + enable-active-high; > > + regulator-always-on; > > + }; > > + > > + reg_cam_avdd: cam-avdd { > > + compatible =3D "regulator-fixed"; > > + regulator-name =3D "cam500b-avdd"; > > + regulator-min-microvolt =3D <2800000>; > > + regulator-max-microvolt =3D <2800000>; > > + vin-supply =3D <®_cam>; > > + }; > > + > > + reg_cam_dovdd: cam-dovdd { > > + compatible =3D "regulator-fixed"; > > + regulator-name =3D "cam500b-dovdd"; > > + regulator-min-microvolt =3D <1800000>; > > + regulator-max-microvolt =3D <1800000>; > > + vin-supply =3D <®_cam>; > > + }; > > + > > + reg_cam_dvdd: cam-dvdd { > > + compatible =3D "regulator-fixed"; > > + regulator-name =3D "cam500b-dvdd"; > > + regulator-min-microvolt =3D <1500000>; > > + regulator-max-microvolt =3D <1500000>; > > + vin-supply =3D <®_cam>; > > + }; > > + > > hdmi-connector { > > compatible =3D "hdmi-connector"; > > type =3D "a"; > > @@ -120,6 +158,27 @@ > > >; > > }; > > > > +&csi0 { > > + pinctrl-names =3D "default"; > > + pinctrl-0 =3D <&csi0_pins_a>; > > + status =3D "okay"; > > + > > + port { > > + #address-cells =3D <1>; > > + #size-cells =3D <0>; > > + > > + csi_from_ov5640: endpoint { > > + remote-endpoint =3D <&ov5640_to_csi>; > > + bus-width =3D <8>; > > + data-shift =3D <2>; > > + hsync-active =3D <1>; /* Active high */ > > + vsync-active =3D <0>; /* Active low */ > > + data-active =3D <1>; /* Active high */ > > + pclk-sample =3D <1>; /* Rising */ > > + }; > > + }; > > +}; > > + > > &de { > > status =3D "okay"; > > }; > > @@ -167,6 +226,39 @@ > > }; > > }; > > > > +&i2c1 { > > + pinctrl-names =3D "default"; > > + pinctrl-0 =3D <&i2c1_pins_a>; > > + status =3D "okay"; > > + > > + camera: camera@21 { > > + compatible =3D "ovti,ov5640"; > > + reg =3D <0x21>; > > + clocks =3D <&ccu CLK_CSI0>; > > + clock-names =3D "xclk"; > > + assigned-clocks =3D <&ccu CLK_CSI0>; > > + assigned-clock-rates =3D <24000000>; > > + > > + reset-gpios =3D <&pio 7 14 GPIO_ACTIVE_LOW>; > > + powerdown-gpios =3D <&pio 7 19 GPIO_ACTIVE_HIGH>; > > + AVDD-supply =3D <®_cam_avdd>; > > + DOVDD-supply =3D <®_cam_dovdd>; > > + DVDD-supply =3D <®_cam_dvdd>; > > + > > + port { > > + ov5640_to_csi: endpoint { > > + remote-endpoint =3D <&csi_from_ov5640>; > > + bus-width =3D <8>; > > + data-shift =3D <2>; > > + hsync-active =3D <1>; /* Active high */ > > + vsync-active =3D <0>; /* Active low */ > > + data-active =3D <1>; /* Active high */ > > + pclk-sample =3D <1>; /* Rising */ > > + }; > > + }; > > + }; >=20 > Does ov5640 need any further patches, wrt linux-next? I'm trying to > test this on top of linux-next but the slave id seems not detecting. >=20 > [ 2.304711] ov5640 1-0021: Linked as a consumer to regulator.5 > [ 2.310639] ov5640 1-0021: Linked as a consumer to regulator.6 > [ 2.316592] ov5640 1-0021: Linked as a consumer to regulator.4 > [ 2.351540] ov5640 1-0021: ov5640_init_slave_id: failed with -6 > [ 2.357543] ov5640 1-0021: Dropping the link to regulator.5 > [ 2.363224] ov5640 1-0021: Dropping the link to regulator.6 > [ 2.368829] ov5640 1-0021: Dropping the link to regulator.4 >=20 > Here is the full log [1], please let me know if I miss anything, I > even tried to remove MCLK pin You seem to have made local modifications to your tree, what are they? This indicates that the communication over i2c doesn't work, what is your setup? Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --mwaf2j32zrljcsge Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCW/0c6gAKCRDj7w1vZxhR xdPkAP47Cz7G1Yps9F1YMfXGn1UocnEmP7KZe3329Fq28MwkbAD+NiXMTD4QZhCx WPSXMTCFC6XcTEEPINbZJkVed+M1sgU= =G4H5 -----END PGP SIGNATURE----- --mwaf2j32zrljcsge--