Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4073686imm; Mon, 14 May 2018 02:06:20 -0700 (PDT) X-Google-Smtp-Source: AB8JxZraXe7OSmIz3MXIX301m+1TnR0BFMtu8n7ejHtecsK1Ofgsu/Y4nEn644HkMHUuggEWaI05 X-Received: by 2002:a62:aa18:: with SMTP id e24-v6mr9529123pff.107.1526288780569; Mon, 14 May 2018 02:06:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526288780; cv=none; d=google.com; s=arc-20160816; b=DOAdee1z3Rgl5wv6h04Rc1D7Cj4FVO2uoII2gg2eMDt2y2nPcQRhVAO2mgaqwbKj59 A1gqAz2mhuZPJO3YmbJA4Lo0fbHVsw05jESLhfKonD19XOCzBHp7TODlEL7IEnSeJ7Q3 k/MQZ6LAxtb7kOt0vH/wNMSeOxxmHHo5Je8FuI0XXSKHsFefcQ6NsXhlIzn0gDQTrZGJ CwWsn821umBFo82SPASJYcL0KV6KQf6wTq3bArlwLvKwx1cNjr0g1orq36kmuyHNvqxn IjDYi9wi9rYuW1jYSDF1Hh+eg4zhy/0HANK/9y7IFe0WJbt5Bh9t2UOhh9+ckS5Yu76X Bsxg== 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=Jtk7b7e5C/N7FZlkjpYsyKltWFDvvC3W/N1QyXLzwYc=; b=MCabM3fMEzzuo2gIvjXAScc1kSPxZQ8tOi6DRXJEo8uDhqLCYE4Y7egUMIfFJC7NiK oxzBy24VmBrN11lkAD/D2dlwQTD1D4cl0tWLRFm/sZyOqkPfBqh9r3S4SwIsT+ZIYC59 x31ts6jDAOQ1kCqZ4PyBzVOzVRruM14C1L7wRWcNGbG9RJVoac6KjjlrnKuCggnee/gn JSCeErZDtSlhOuEOLhByxn+ryQHxF/lfo3Ve1dVSHaWubn3n1Spkt36yjvBX1NHq3mXk HcQPIt6u+OhwwBVfS2NhS+Rd/qKjLne3VRM8I97VmdIM25Q1Yyi/0PO7CQZlUrjNV1MF 0pPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=f5VYhM15; 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 f95-v6si9251856plb.401.2018.05.14.02.06.06; Mon, 14 May 2018 02:06:20 -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=f5VYhM15; 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 S1752658AbeENJE0 (ORCPT + 99 others); Mon, 14 May 2018 05:04:26 -0400 Received: from mail-it0-f47.google.com ([209.85.214.47]:38378 "EHLO mail-it0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751871AbeENJEX (ORCPT ); Mon, 14 May 2018 05:04:23 -0400 Received: by mail-it0-f47.google.com with SMTP id q4-v6so9728493ite.3 for ; Mon, 14 May 2018 02:04:23 -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=Jtk7b7e5C/N7FZlkjpYsyKltWFDvvC3W/N1QyXLzwYc=; b=f5VYhM15Wsrjylc/CYw/NlKRIV0nrDAPv3cNv6g5GTfvRVeO5Kv1w2pdFgDwNjJAhf brWe2dnduVe78eeLwvIu8h+OwtOozNzFl5nCzcnZ/jtFyT79MsSMGkhOkrBpTRLmTvTn NzgwrfWgzSTrtTr1KzqqubU7Eg15/XVAdo034= 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=Jtk7b7e5C/N7FZlkjpYsyKltWFDvvC3W/N1QyXLzwYc=; b=f63qFz4KBmqOoy7W/uin1A8ilzKAoVYdo84+gEkpzQaNEQeF4SFpILJh8Uqu9gtQ2U Rk8f/Pd1T5r36BpSJE64wricySSXRFKYLNw8T8J9DETiCu+EynNezygB2OczrQOr4Poa v/hRQNqHq8PXOoyqaKPq9jQ8yvKKdH3C7G+AMQgiYBJWAdlKemgdZNMfo8DyBJ+LwBqk CWwM3Dy/7Wx5EsQx2g1pAsttZgkpyEeuR5kSMEe5pRe9T104J/CTuV4yOI+oXaukpSvL 1MU79oSP7i7H0rOYiqxPHrEjUqTzfZL1eETe/O7sNxxMclePA6REKv3TwWVRW2clSu7W o8Zg== X-Gm-Message-State: ALKqPwdLYgXZRX3liVLJadY/XgJxiNA0gi9TxulIjnbJfDRB0li2hr6y Htn8OlXgi1geURiVQPbC8zoZIsVWV/9i8XeVX8PqgQ== X-Received: by 2002:a24:1a85:: with SMTP id 127-v6mr8456591iti.143.1526288663125; Mon, 14 May 2018 02:04:23 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:918d:0:0:0:0:0 with HTTP; Mon, 14 May 2018 02:04:22 -0700 (PDT) In-Reply-To: <20180514082744.ydmfg5mzsbol5onu@flea> References: <20180514075727.uxggyhmbahvhestx@flea> <20180514082744.ydmfg5mzsbol5onu@flea> From: Jagan Teki Date: Mon, 14 May 2018 14:34:22 +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 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 ?