Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4011652imm; Mon, 14 May 2018 00:58:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp+83iAClmVEgrL8mOd7uCDnoQr0HOE5GSsh/DXBTOWOkrknbNMwFJlP9j6S75OFpxqlMJ7 X-Received: by 2002:a17:902:343:: with SMTP id 61-v6mr9017291pld.39.1526284685074; Mon, 14 May 2018 00:58:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526284685; cv=none; d=google.com; s=arc-20160816; b=RK/IgHINS77eBsUIk0+bBFvsoiMO0t993kfh1CmTa50faNSM/3RYRHYJX8bMc07dWD Y2JeYE+ESvnuMiOm8ijey0ERFoX+LLSHLKgaTgs/TrBgNYGkDdCPpPmSAfiMgoZnASih k9Yf2Y+TMqP8GId+am5zeBlveVo7ZxbbuqPiaB2HjH7FyRZHvIRa3Jf6EitJ3zkJJuHL vPPrP8vYMcdP+m5IaMgICBYQG4rEaih2PC2MxKWqWKtiXNp+M0+7eMC7pG1CDrUvwhA5 SgWQL5puNF7CNOwC3e16i1ynLAlViHHgpPDX/cw2SRGzlTXFoMnFretRaCtBjZLGfrjp 44Jg== 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=intbCxxsra41z0bSGodTQkAFrS3qoV6GfIZosJOqKiA=; b=qubUUoKlcyayv+0FhWJacDpppvlBbWMEY+05IpVxSsJLn5u9egpV/XIwy0FP1Y+Bg/ KS82DZWH7IdM2QfkmISr6hvAy8U3w2wAOWdZZ/E2vZLfzyoEBQgmekcbJEJtNWaboD3S EWz1l9JlipNMT5gwFIwAvSLltOWCGUrJyZ0Wh3knceBzTRLL0jrXanH4sTLUGPN1PUnB mEYo7FQDUex0dyjE7bguyFDCy/YGzkvpm+K29jv99j7CeEYMpx2PgJwHjDK+LpsmACwf LmZUR+TRyRiYUCkfh6//KZ1sArk6rmE95ACHgbyPAk/3Xp8vJ/K6MoOLXBGYoM7fXQyL 4zbQ== 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 82-v6si9222067pfs.40.2018.05.14.00.57.50; Mon, 14 May 2018 00:58:05 -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 S1752220AbeENH5c (ORCPT + 99 others); Mon, 14 May 2018 03:57:32 -0400 Received: from mail.bootlin.com ([62.4.15.54]:60129 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751387AbeENH5a (ORCPT ); Mon, 14 May 2018 03:57:30 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id C94942076C; Mon, 14 May 2018 09:57:27 +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 96168206F6; Mon, 14 May 2018 09:57:27 +0200 (CEST) Date: Mon, 14 May 2018 09:57:27 +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: <20180514075727.uxggyhmbahvhestx@flea> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="kx3hdnajnzxhcs2n" 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 --kx3hdnajnzxhcs2n Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Mon, May 14, 2018 at 12:37:49PM +0530, Jagan Teki wrote: > Hi Maxime and All, >=20 > 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. >=20 > So the devicetree is configured according to this as below. >=20 > / { > 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>; > }; > }; >=20 > &rtc { > clock-output-names =3D "rtc-osc32k", "rtc-osc32k-out"; > clocks =3D <&osc32k>; > #clock-cells =3D <1>; > }; >=20 > &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"; >=20 > 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-AP: = PL3 */ > interrupt-names =3D "host-wake"; > }; > }; >=20 > 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 >=20 > Pls. let us know if we miss anything here? >=20 > [1] https://paste.ubuntu.com/p/X2By4q8kD2/ Could you paste your config and the logs from a boot to? Thanks! Maxime --=20 Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com --kx3hdnajnzxhcs2n Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlr5QWYACgkQ0rTAlCFN r3SrtA/9GuZDqH3zmlBuHDU3zz9r657hhP6rc96xIVjb7hWNDLfrjc/w64LhmMiB eZKWja/PO/31QhpU/wcHUjZgjoWaMSHCNhpZr0mVbw9DoVs9oJuEM/9wEH5NbqUj ILC1px2uWVBaQW3AqTW2bow8MXMlX8bm0BpHf14bQsgcu0I2mVp/s+n8TJF0xPM7 /af61LG07HPLo+LNpq2RB60RhIHksx1+MfI4Rd5my6r1tMmrQBKYi0EE1M0BYY+u p0V7znu1Q1Utqw/lHFgBQ9Np06GOUOVUsnjiOCQhbg3VX6TeUqUEJPefudr/QOwO +kdcI6hvfHQLM6H8QNJXJxj2E3ep9TfWVTz5Bn5lqy6IS/cPwFr+5qKjvtUyhqvG nwQH69b15Ww2riOc7CJYLBZfGSEwyIBt7kTu6O3R9YJw8PY/Jneu5uBBWQvzT02s knVk6h46NU53LC06rqmHZ5ZI5iVPQP6e8tHEVn5ctcFmkZQ2CoB59wuxhMIznAFM /zbuLfZf3k9yk4MH0M0w2bs9FmGgJ2wcQuq/LPw7xfOFjhrpJMrJjh2DcyDGqNMx 0XVzOUSNE1s/hjk+5r3RqMI0NTbwTZMdXKQtMS3pL3uZbqMOQLhOQKTlivCPJ2c+ kjz5aouVlL8w7Sid2lRCRPT1YMW4xWdqLXmzwzaRY6TVIe+VzbQ= =b7od -----END PGP SIGNATURE----- --kx3hdnajnzxhcs2n--