Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4018345imm; Mon, 14 May 2018 01:05:33 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpBzDEvj23wG0Bw8pPFyt5Be7NWzx/0OkmlVh+oz/QfWMW5Qk9e1tBdLFHXBiuJQYy2Aoht X-Received: by 2002:a63:7315:: with SMTP id o21-v6mr7603454pgc.360.1526285133735; Mon, 14 May 2018 01:05:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526285133; cv=none; d=google.com; s=arc-20160816; b=yYH2+HB4xO/aW3K8uq05XJvCASEeHFkiXe6jdgMf7i2qdA0DlHYZ2fk33YqRMGqJ21 NbmMAYj0X+SFvDS5wHs0dm4NbhAmhAfo38BB68CnISUvt7SC0L+EokSdQcR0JkRT+daF KeHt7OKWTp8FzOQRzGdcUWIUmxQgwpaoVtuV1fqox68HpGjWsULY7saVliwTQOqcVnf8 4VaouNpC/WN+zWBHXRxXRJYubZgM3bIvsBTvB/GNwfNctRQyvAYiaw8FJMBpy2vpbh34 EOEG4WnfLntxguBk7qnTckBmNp5lanOfJ+BZPEWSWxGqZQWTKQteHmgwu3OUMkSe/NZ7 TAXw== 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=HiRPPaQjaKRqdbNNSXM8PzaZ0pkgxnkfY7z6zaRN/Oc=; b=SGYcTRqW1yvbL1GuwL3MPOHBrzimrP3TG081H2Xsmoi0UQrkRs3F77m8G5tWB6cnqV x1Sienbu3VfC1X/qO+acDDnhpUW+L5U5wAL5EnjSH67T6nq0qUk1rx0qU3lxRbf9oMey j9/7A6jJXRwQ5YA1KWCpUmLrzB5g9qi2nUUZ3kZ5m8wpPODTNsoUWvx+VinbYo4FzWP5 mjNkkoYad8vIyRb5WJ7l3OCYr1TvrUX/giou4QXsLDu148DCiL3LoQuWGmk0Fo7KBAkJ cm5k6d4HoIKGwDJE0Ix77DNERTqsPb2TXjAbvesYz3LNd1R4Ddf3XGNSX5Sc+bEODwte eODQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bvdIVn0D; 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 l11-v6si4884047pgq.501.2018.05.14.01.05.19; Mon, 14 May 2018 01:05:33 -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=bvdIVn0D; 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 S1752037AbeENIFB (ORCPT + 99 others); Mon, 14 May 2018 04:05:01 -0400 Received: from mail-it0-f51.google.com ([209.85.214.51]:53054 "EHLO mail-it0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751626AbeENIE5 (ORCPT ); Mon, 14 May 2018 04:04:57 -0400 Received: by mail-it0-f51.google.com with SMTP id y189-v6so9075987itb.2 for ; Mon, 14 May 2018 01:04:57 -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=HiRPPaQjaKRqdbNNSXM8PzaZ0pkgxnkfY7z6zaRN/Oc=; b=bvdIVn0D69NRntBKoAh1KiS5PdvBEVDu1cVY0buMNgm0iPkmJV90i0OPhH9nKt6YUa SDDT/VfB5XFloUqYk8b7B0uBLZqCM/ZvIrpEAydIcccfWM2EcmG8zaqC7n+oiHRvqAgh H24NAD+QbilBkMm5UYhDyvgF1udHurZAg+0L0= 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=HiRPPaQjaKRqdbNNSXM8PzaZ0pkgxnkfY7z6zaRN/Oc=; b=YklcMGZiBjue5NJt1ASL7CugP8NQ+fL2lBsqjFVztRHA7by6YgJQugQFUu+t73lKQS 6+39LdaVryvvRIemMbtz87Cqft/K7Y67X/KVubnny0vq5ezHic4DDvH8uUAVL+1L4S+d 8hSZ1uHPe2AWf0DQm5thKcLHNuom+tcdI8kCWya43eurAR7qVvqkzfcK6rrvuD5u+uE7 Lly7O7ABE7X/ktTXthnmzkMkVAwBBozALBz6k83aUPb+6BYc9Zla21QS95TYuCDKhkMp fAPcyzyxwYBRt/PfU1kbFqVBjyRUsB0qb5m57jps9WdGsm5cJRZLN7dwhVluj3956790 HGIQ== X-Gm-Message-State: ALKqPwcyQQ/Wg8wIaz5rcGNSGCDFT9Nq8VxaQeTvyOLPeDHaxhPubBPh HXKUhgd3UbDPIYtMyPTjMcPvS/YNRabgR6zrxqcD+w== X-Received: by 2002:a24:1a85:: with SMTP id 127-v6mr8271192iti.143.1526285096921; Mon, 14 May 2018 01:04:56 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:918d:0:0:0:0:0 with HTTP; Mon, 14 May 2018 01:04:56 -0700 (PDT) In-Reply-To: <20180514075727.uxggyhmbahvhestx@flea> References: <20180514075727.uxggyhmbahvhestx@flea> From: Jagan Teki Date: Mon, 14 May 2018 13:34:56 +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: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/