Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4076134imm; Mon, 14 May 2018 02:08:44 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoplnLM/wj7bL3NDTWNUJ+1s/VFYbEaMvIis7q8jEiuSNkzodtEGc0J9C1t62WQLmQiXZpD X-Received: by 2002:a17:902:1347:: with SMTP id r7-v6mr8946899ple.62.1526288923993; Mon, 14 May 2018 02:08:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526288923; cv=none; d=google.com; s=arc-20160816; b=vlJVBd9LCd3nJ2jUqA8CTNKdkYi4VxbVz6PLfWCQrUasT8Ju5YTafxOiHj32LHUzmP f5dLirJOsQgdHlDZAZLI4gRYXK9U+TK3Bj+a209arR9MNdko3nTMDB1mzSS8P9AsG2XS mTCOMJUBadtVVh85rIzYIgUuQWHa06W5YQ8xJ6MHNAVhQp2vlr0ugssUW9DECGNcgmVA ySj6k59UhoZAp+LKIu8r7LC/zTeYXuCRocEMmTANz2s8Fi1kXHDL5iC5dg1SVbxj9Kl0 DDCjS9syNJ3Ydnk9SoyaGbbpDOIEUXxQI3EGGkqifzw0lNwawNyqEj9Dr6bP5yHyZy28 TnTQ== 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:arc-authentication-results; bh=/Nb5VdwzzdDgm44u6x2v/a+b/gTnZWjVT7mbp2n8aVg=; b=lgVE5+UAb0/Recy8BzpH/MW6zZyGwI9EMtl7Z0nkvSd8/2oN1AFeFNYiIsNdwOtQJV J0m2BOprSPzAhDwBeADJxs+axUHHa+9EOqrJ88ImmGkjvHsauDRtr7q+RpbwYkb2/hgE fFTBmFIzhaRXkAzdwkNejCUPkjvgiDnn3a+IJHCag386G81oR4ObDR72HLFHTEYJP97q ilnnu5np3rxWyaU88tZnFu9Eq4opVsLdDOuInrXnb0f6JjVSCmXG1X4m4eVXzHWPoSNf PUldFHbVNIhM4y9eMj9QHFsmkEw6cCSrm5vBwpqriSP/orRUVSqjVxOP5HEZemZ0BPJY BA4A== 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 73-v6si711547pld.217.2018.05.14.02.08.29; Mon, 14 May 2018 02:08:43 -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 S1752717AbeENJGi (ORCPT + 99 others); Mon, 14 May 2018 05:06:38 -0400 Received: from mail.bootlin.com ([62.4.15.54]:36342 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752683AbeENJGf (ORCPT ); Mon, 14 May 2018 05:06:35 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id C184F208BA; Mon, 14 May 2018 11:06:32 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) 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.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id 415A4208A6; Mon, 14 May 2018 11:06:22 +0200 (CEST) Date: Mon, 14 May 2018 11:06:18 +0200 From: Maxime Ripard To: Jagan Teki Cc: Chen-Yu Tsai , Michael Trimarchi , linux-sunxi , linux-kernel , linux-arm-kernel , devicetree Subject: Re: Allwinner A64: Issue on external rtc clock to wifi chip Message-ID: <20180514090618.r5xc3elzpvfp47f4@flea> References: <20180514075727.uxggyhmbahvhestx@flea> <20180514082744.ydmfg5mzsbol5onu@flea> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ukibym7r2ti6656l" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180323 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ukibym7r2ti6656l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 14, 2018 at 02:34:22PM +0530, Jagan Teki wrote: > On Mon, May 14, 2018 at 1:57 PM, Maxime Ripard > wrote: > > On Mon, May 14, 2018 at 01:34:56PM +0530, Jagan Teki wrote: > >> On Mon, May 14, 2018 at 1:27 PM, Maxime Ripard > >> wrote: > >> > Hi, > >> > > >> > On Mon, May 14, 2018 at 12:37:49PM +0530, Jagan Teki wrote: > >> >> Hi Maxime and All, > >> >> > >> >> We are trying to bring-up AP6330 Wifi chip for A64 board. We noticed > >> >> to have an external rtc clock has driven from wifi chip. > >> >> > >> >> So the devicetree is configured according to this as below. > >> >> > >> >> / { > >> >> wifi_pwrseq: wifi-pwrseq { > >> >> compatible =3D "mmc-pwrseq-simple"; > >> >> clocks =3D <&rtc 1>; > >> >> clock-names =3D "ext_clock"; > >> >> reset-gpios =3D <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL= 2 */ > >> >> post-power-on-delay-ms =3D <400>; > >> >> }; > >> >> }; > >> >> > >> >> &rtc { > >> >> clock-output-names =3D "rtc-osc32k", "rtc-osc32k-out"; > >> >> clocks =3D <&osc32k>; > >> >> #clock-cells =3D <1>; > >> >> }; > >> >> > >> >> &mmc1 { > >> >> pinctrl-names =3D "default"; > >> >> pinctrl-0 =3D <&mmc1_pins>; > >> >> vmmc-supply =3D <®_dcdc1>; > >> >> vqmmc-supply =3D <®_eldo1>; > >> >> mmc-pwrseq =3D <&wifi_pwrseq>; > >> >> bus-width =3D <4>; > >> >> non-removable; > >> >> status =3D "okay"; > >> >> > >> >> brcmf: wifi@1 { > >> >> reg =3D <1>; > >> >> compatible =3D "brcm,bcm4329-fmac"; > >> >> interrupt-parent =3D <&r_pio>; > >> >> interrupts =3D <0 3 IRQ_TYPE_LEVEL_LOW>; /* WL-WAK= E-AP: PL3 */ > >> >> interrupt-names =3D "host-wake"; > >> >> }; > >> >> }; > >> >> > >> >> And observed rtc-osc32k-out clock is never enabled[1] and the value= of > >> >> LOSC_OUT_GATING is 0x0 which eventually not enabling > >> >> LOSC_OUT_GATING_EN > >> >> > >> >> Pls. let us know if we miss anything here? > >> >> > >> >> [1] https://paste.ubuntu.com/p/X2By4q8kD2/ > >> > > >> > Could you paste your config and the logs from a boot to? > >> > >> .config > >> https://paste.ubuntu.com/p/w9w2KB7RFc/ > >> > >> dmesg > >> https://paste.ubuntu.com/p/mrZGk5bWRR/ > > > > This is kind of weird. Have you tested with a 4.17 kernel? We have > > runtime_pm changes lined up in next, so that might be a regression > > there, even though we tested it with Quentin at some point. >=20 > This is 4.17-rc4 do you want to try it on 4.16 ? No, this is next-20180503. Please try with 4.17-rc4 Maxime --=20 Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com --ukibym7r2ti6656l Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlr5UYkACgkQ0rTAlCFN r3Ta6w/+MCFS5Ns6tQ98abOVs37/ycB3leNAEWjsSDsmTlmAQga/gsQoSI2Y9eLi wVrmMYR87Gw0PoWKcvWQKN/zhgl3717LOhF77SCxB3AdQbsYWOVjXmLBJjOtup9h PgTkAiaAo82hxT5J9ukiySez0F6OTxdHyu9QZVr/gFCGAj/VRDhpwFA18xC/j6Ml seg3SjnW74WvzXIy726mw90izTOl0RNUwScVKBCVWathnQ46F0hJPLyTu2XGlerY B6Y5nnvvmcsuEFRjwzjtcvKWwv1mkVc6dHzdBQGwD8RZaSyXVPPmzYfu9L11NkCw 2cqB+jRgMhYRd2mM/eRcVN8VRc3j3ZJpTCVCK/iTuYq/2wCFHAgd4xTQgbsNiSh/ EMqDmV/+qZQ1Cug6Xew/doXh5uwunurnLAW/+4Z+TxijW3UDgTzdeaKXCXF1bIsX EKlcl62TYhNrJNMTxjnVohw+wgDPVWFP6/TvC5p2v8zb4Fz4WLsSZtd6dHt+f0rZ UxcWnKPymjhWefHmJUQn1VK+9Rv8uUi8WmSFD3Y3bwbcYFLCFmEdbgF1nwJYmA/T tqBoM3YVZKqadkmFS5MsaecfmIC451hYObnRy7FeZ7GhvRsO8i1OmlFQBWe8hAoj Qit99dXnA40Tl6tzP6IzJNQ6NSmc2JtqIPE3Z1wBa0PiIXeErJw= =0lEx -----END PGP SIGNATURE----- --ukibym7r2ti6656l--