Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4110470imm; Mon, 14 May 2018 02:44:18 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqvZxSpvxXMVEK3GzNdiyC6XiQY0dZ4bTEF/IYxd7RPo6Nnu7WlykGuUGW8wEb2U8l4SIDA X-Received: by 2002:a17:902:598d:: with SMTP id p13-v6mr9166706pli.191.1526291058706; Mon, 14 May 2018 02:44:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526291058; cv=none; d=google.com; s=arc-20160816; b=EC4FGj3jA3cWFw1YvpVGiSlTD6K8oawKaOqr7bmHh7eAJeLBx7CNHbSVV4X0jcK4YU ttt/sPBMGgZ9kvHP473R9npGy3A388qufLXc+9zwOzAu9JfEbbsf/BdkkOtKTP8Bo0cX pfOwgEoM0pBSdAPW708VCJ/5RtZfiDyvNoKkvy4dH+hPaPgTsHwRRauOITSKID62BvSb Tn7CDrUTMaMU7HFIhsOjQ1oFhIQsSoyZzaG/tyBWdhr851GWzQswDsNBoryhwkjlusbe MZl/xKyQMHV1e3+O4/6l01GxjiKSKpTF2vzRddiSIqkh0DJ5ClX13ERBWixPj6Uuv9bg +NuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=kEH9pPHRqF3HGvldletx+ZUo86DsmDfeGHGrUKwjPuk=; b=cuvw65CT5dQoRGkHoQcPBCOo7a7SQXhAHmzMTdhw8rB9uEILQXwGvDbdvO+NSIZ9Es i09RoYOfwCvULmAuEi/tK9wFTrw3usYEi15yL/ZzosNdktHa3PzaXWqYgvWQsTUCBUiC D7xDOs25nuaCHyH9VPl3P7yp7WZEYuc5GzTTP9UgVodAzI7ThEdI3LZPAlQ3894SO7Ni Pme/meqsuaK7RcUFzAoXn3PuMSM3G7LKgcEG6HDWCZO4dvinS8wxAYcRee2CONMERjaV s3g+iDuEoXPtNepZe+iG9G5XMVllcI8hMbYc+pGrT0EcN7TdCu+8YcOKv/gXfDxS+aLz Ii5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Qo+jvgJ9; 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 7-v6si9746785pff.154.2018.05.14.02.44.04; Mon, 14 May 2018 02:44:18 -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; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Qo+jvgJ9; 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 S1752506AbeENJmx (ORCPT + 99 others); Mon, 14 May 2018 05:42:53 -0400 Received: from mail-it0-f51.google.com ([209.85.214.51]:34789 "EHLO mail-it0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752291AbeENJmu (ORCPT ); Mon, 14 May 2018 05:42:50 -0400 Received: by mail-it0-f51.google.com with SMTP id c5-v6so7784362itj.1 for ; Mon, 14 May 2018 02:42:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=kEH9pPHRqF3HGvldletx+ZUo86DsmDfeGHGrUKwjPuk=; b=Qo+jvgJ94ykptuM/kbdc18qREfntUshDxxpLYlLnofO0h8v9OyX87LW/thjYdch0HM CykhM4vpWNGEwLF0OHJMIezd1/g0RZzEyvuPcc5xF+VnZ3Eg+wHxwhzEYeGLEV1AWkZx L43X3rKZTfj28TpVN+7CdPkwh6TrMCBn3NerY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=kEH9pPHRqF3HGvldletx+ZUo86DsmDfeGHGrUKwjPuk=; b=PG95bGkuhTjgAmdaB6OjQB5LtGbBjd/UipXojvD+Pnn1EuvVlxPfJIC8n3peIsEKAg uDLIwK36bSMh2JJ7RPGdn2cTdmXeVGhNxuFvENry0PUGh0J6DBwUhivO+QB6z19GhDb0 Ual/duEDQqRmK/gK/djXJAPuodWwWzpcjS4+FF+0s5WwZOABM3r9LU1EMDVNThzp8dVa LdkikR81JfSXqwN7KCW5UvBvPGxtrG7envLdZpk99Sw0kvDomd0/s+FNmZfGxNxF78A2 ZZsOY1ronVr5rjQBATX0RIyv9TnzvWpdz9bKqw02+lJLNsaWu1D6FPhnHuZSHq7h6jwe 0kzA== X-Gm-Message-State: ALKqPweVXQseo3LtmB0+SkF/nYXWQE8tIRWpCg23g5aEHJ71qoHDlmbP p3rNSyvl724g2J54CdVU786gSds6/AOc61Oc2DJowZhXOqY= X-Received: by 2002:a24:c146:: with SMTP id e67-v6mr8588382itg.70.1526290969720; Mon, 14 May 2018 02:42:49 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:918d:0:0:0:0:0 with HTTP; Mon, 14 May 2018 02:42:49 -0700 (PDT) In-Reply-To: <20180514090618.r5xc3elzpvfp47f4@flea> References: <20180514075727.uxggyhmbahvhestx@flea> <20180514082744.ydmfg5mzsbol5onu@flea> <20180514090618.r5xc3elzpvfp47f4@flea> From: Jagan Teki Date: Mon, 14 May 2018 15:12:49 +0530 Message-ID: Subject: Re: Allwinner A64: Issue on external rtc clock to wifi chip To: Maxime Ripard Cc: Chen-Yu Tsai , Michael Trimarchi , linux-sunxi , linux-kernel , linux-arm-kernel , devicetree Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 14, 2018 at 2:36 PM, Maxime Ripard wrote: > 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 = "mmc-pwrseq-simple"; >> >> >> clocks = <&rtc 1>; >> >> >> clock-names = "ext_clock"; >> >> >> reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */ >> >> >> post-power-on-delay-ms = <400>; >> >> >> }; >> >> >> }; >> >> >> >> >> >> &rtc { >> >> >> clock-output-names = "rtc-osc32k", "rtc-osc32k-out"; >> >> >> clocks = <&osc32k>; >> >> >> #clock-cells = <1>; >> >> >> }; >> >> >> >> >> >> &mmc1 { >> >> >> pinctrl-names = "default"; >> >> >> pinctrl-0 = <&mmc1_pins>; >> >> >> vmmc-supply = <®_dcdc1>; >> >> >> vqmmc-supply = <®_eldo1>; >> >> >> mmc-pwrseq = <&wifi_pwrseq>; >> >> >> bus-width = <4>; >> >> >> non-removable; >> >> >> status = "okay"; >> >> >> >> >> >> brcmf: wifi@1 { >> >> >> reg = <1>; >> >> >> compatible = "brcm,bcm4329-fmac"; >> >> >> interrupt-parent = <&r_pio>; >> >> >> interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* WL-WAKE-AP: PL3 */ >> >> >> interrupt-names = "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. >> >> 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 Couldn't find any different in behaviour [2] [2] https://paste.ubuntu.com/p/m3PGBwrv6W/