Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4039705imm; Mon, 14 May 2018 01:28:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZovjOXQsGcdvgfvMAYuRN6zSdPMntci7lZJQTPFy+aP6ZyPXbIty8T6j5tUMRWTuuSZTzG0 X-Received: by 2002:a62:4f0c:: with SMTP id d12-v6mr9453012pfb.220.1526286517593; Mon, 14 May 2018 01:28:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526286517; cv=none; d=google.com; s=arc-20160816; b=VcGGljLYjz5bYWTIz6WYydmK5DiW9GcHiqe+6pKO581VPCdy6wDd85mPqIJTWIdc5B NS3INKYH4/IP9EoGbe05qmo/FYdzLIichD6EGB/5Lmgh2sO1CzwLeMACRbxaQl6eXB1+ SND2P+kQYnxUsknrpz+3l/p49+kN+Y5U1RODENoc2ftnBdQ+OpJ672SXWGLyn25qHffj OT451ZuG2ABy06BOZWsAMXocxKzEY5FrYPlEJPOMQTs2C1VpZrHvqsqnsQT6az/9pirw dSK7Gqv3dHt81ZE8Im9G4vxor1GCOPZpefNGHcx0SP4/OoN8fZK+cgG4JqBqZ9k0LtDE z4xw== 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=7T75OF4k7vcWwlcF7AAikZVXtpH8lgzOgqHHLp+Tf4M=; b=j2E5uvVT53dXYVL930EVcMO+ZJEWzyJAI8iH6DLBAgaDBVpbPqQ9k/00n16n/pe5ZD D1qlkMDCFK8he8pYzsfoQ18xFfMBAEn/oZmfN27mCA1UOXAIQB8Q7qghuAcU6BSeoZ/Z BxYD9tLdrnmsKMXZ0DOX8XkszntgWzXVVnMhoIRi1MsG8L5GeAmZSIqlGfNRrang20Dz gAMYQ6sGLQg3an0hXR69pSZAgj60vH61CVyqJ0VUMPFlyWDbAk1BfMIJ+XjQ9jEY3aTD UVPN4AzfGwyD51auZzwynNC0d2+mjlHeJRMlftw87j33K5bblh4pkyOML8QF1GGnExrb BnMQ== 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 bc2-v6si8821845plb.43.2018.05.14.01.28.22; Mon, 14 May 2018 01:28:37 -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 S1752089AbeENI1s (ORCPT + 99 others); Mon, 14 May 2018 04:27:48 -0400 Received: from mail.bootlin.com ([62.4.15.54]:33839 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751364AbeENI1r (ORCPT ); Mon, 14 May 2018 04:27:47 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 55E39207AC; Mon, 14 May 2018 10:27:44 +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 28755206F6; Mon, 14 May 2018 10:27:44 +0200 (CEST) Date: Mon, 14 May 2018 10:27:45 +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: <20180514082744.ydmfg5mzsbol5onu@flea> References: <20180514075727.uxggyhmbahvhestx@flea> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ko2m32o4savwftrl" 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 --ko2m32o4savwftrl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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>; /* PL2 */ > >> 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-WAKE-A= P: 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? >=20 > .config > https://paste.ubuntu.com/p/w9w2KB7RFc/ >=20 > 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. Maxime --=20 Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com --ko2m32o4savwftrl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlr5SIAACgkQ0rTAlCFN r3SREQ//Sd9Vzci56gaoyeqJquVHEj0I9cyPBRIGk+3DwMfke5cCN8xoPpbK2epJ slxXhGW0oiuB1zm6azMb0xkE6TnpaImVQp4Vx1wUzjnQgKAvKwuFq+tCpjP3bqUY wkO4SI4pE841l4XaWyJ6M7fEyCJrIGf396xRcaVtRD7/5WHec6w2+T26H41McKek kTlYQkg01j3b5HFMXX0SJ0i415x+eGFRW9xoOjM/WYznnUlM60GikJ06LQKe2zim s86eqX8V0+Ef+7LRXVv99qgzv655afCu7/9n42aC+fIPqSgFRHllO0hu+qQCQSaU 3ISkC1OGlGTBOI1iGhajFyNOJDG5Pw3MT7Wvk03P4HDjgHAh1ErX/44D9zjt0mQB b+AyNP9uP5c2QnBYGAxGG2fjbyFI5rgk8WRFNGnE6eQzEexNKJN1UZ28w4OmlYKx YV1sBn/Gd1GAIjYUHB72CoArTtG7uVhYtqnJAoTJ8/koaPFKZdIQklihrE6dpCr9 lUHsruEosYqXzNTy7vbWFTU1hr4ollZqt6PsocZA82aMQW3epNrAp/xatIqyCSVc b/hJ6uHwim8+zAlv5l43EUJRxP4a+YJ132nJpFVJ2k8dCNSP40oVAkHmE4lkI04A yzx0KL+PpmqmLaG/6Ex+yaGisS3TZ9Uvp76PFWkuDkqWgpIrj64= =6V4c -----END PGP SIGNATURE----- --ko2m32o4savwftrl--