Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3967916imm; Mon, 14 May 2018 00:08:29 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpBcQukkuQtnIHpfLAE3R0kskCEsgE9kVPsux3jzeN/qr+fzrkTApHrzuQs+kge+b0t5d1u X-Received: by 2002:a17:902:7614:: with SMTP id k20-v6mr435903pll.29.1526281709198; Mon, 14 May 2018 00:08:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526281709; cv=none; d=google.com; s=arc-20160816; b=mYC4+CF/tKKlWgRwsGRl/VQSaZQf08hSvUwvAHB4eHCo6qZh5ljva1cpSBf+lI9S5A aTvRDCsAvARpCFaM7Naas6jNPpQJM7OHC8reCSEHzrfqMRc/6Ga1L4ohG0tjvc6NFsB+ pPDhE2KMLQ6xw9Nf8NRWJvoZz6LYqWlWN8HhAtbdcGchr43uMR/MLDygBu6+BtjpOn20 OAeo2En4I702gGfdAO4GAIudW32kGXZCb3esuSNIBZSSOmVXx5gzxddMfS5k66wC6Mxo IhD9CXy6cJaLmKAZ5uUCCLCD+mUZlW9T7IMs/NQJA207ZerWbq7asoQ8nndRLMTJDXd9 ZDVQ== 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 :mime-version:dkim-signature:arc-authentication-results; bh=ZzLncuvBIadvCXoa7AzR3S8aB9R+fQunqvy+Atryb9g=; b=e2K9bWkkpUXuXGuMaWMo2GeedAWvYHvqy83CVwQ5DXEbjCixv93tKHhQA4y6bzAFgd U74ivWUsHxzGmqCeQ/a/A5acz2lttIs8NiqnuH0H93rpcrwN/mec6jJbgi0CFlV4+8f6 xJfxOKffGkGd1SJhncET3yN1PMeQryLdQYooPsT7ygYV5gPOp2WKDe/fI6cYrJIwctk5 Li5PjxIgWvJn+g7WMsD++FW5WKL62t3AHoWlz100ZdeX+yOrnoTGChyZEu2LC6ARan8j Qo2x0IxhC4YQuGOvrD626ZQtQAfOt2kWB9E05aQKJ7JNmZAKg4TpEzUgS3/PWeElxyw/ SjzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=m9Vub4F9; 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 j20-v6si8595695pll.223.2018.05.14.00.08.15; Mon, 14 May 2018 00:08:29 -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=m9Vub4F9; 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 S1754202AbeENHIF (ORCPT + 99 others); Mon, 14 May 2018 03:08:05 -0400 Received: from mail-io0-f170.google.com ([209.85.223.170]:45326 "EHLO mail-io0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753913AbeENHHu (ORCPT ); Mon, 14 May 2018 03:07:50 -0400 Received: by mail-io0-f170.google.com with SMTP id c9-v6so13948655iob.12 for ; Mon, 14 May 2018 00:07:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=ZzLncuvBIadvCXoa7AzR3S8aB9R+fQunqvy+Atryb9g=; b=m9Vub4F96vcpnsepPIg+HYQeFrxiZmkMsXKN4J+Zhb0XaoWvzJibg8d4ijnM8Q1xkJ SX/QHkuBUPRutpHyldq5fl2iKPmeEePBdzLSDDUVrAhW48ouOLPcVI/7uHloZbqgblak 5QAC7YjwDW0iF9R/sAwcfFRFLJZCoiaNiJ0P8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=ZzLncuvBIadvCXoa7AzR3S8aB9R+fQunqvy+Atryb9g=; b=AO3HLyZKy9Z0q+fPg/BO2FO0INRVQK7RQf3xaCjeO5MqLmggD94zZ5DczQoNIGft38 03nAK7OSWOXTzmoQLH1enYu5srI8HCv+8gBL4LAkSZOXIyNYG1eSzinfWVfvZhpvMx6t xho/PtkjRaABlexjQ3NdnGPtPeeqwaTrxxXi6u6qSrp4VKIsPWr/EaoKeW4h1RXHKQrQ 94cimFtKkjIgk9lMKempgE6dZa98lDy8fGTEE5YamfQuaTvl61DD2napn1vllaVb61l/ TiX9EWOneWOrUe2VyxAjTm9ohPiD+MCmLNv3+YwpqpPkCjzEjRkvwwadCpcJYwWE+jtw KJow== X-Gm-Message-State: ALKqPwd7F7SbSfq/KRoH5WM2pwk2TjgDQVRJbsnFEtmk+pHew6dM/c0W Qr/N8yCXToA3Cr5KWC782O7V7W9WdENS/l0qY/GYDw== X-Received: by 2002:a6b:8cce:: with SMTP id o197-v6mr9160197iod.114.1526281669443; Mon, 14 May 2018 00:07:49 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:918d:0:0:0:0:0 with HTTP; Mon, 14 May 2018 00:07:49 -0700 (PDT) From: Jagan Teki Date: Mon, 14 May 2018 12:37:49 +0530 Message-ID: Subject: Allwinner A64: Issue on external rtc clock to wifi chip To: Maxime Ripard , Chen-Yu Tsai Cc: 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 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/ Jagan. -- Jagan Teki Senior Linux Kernel Engineer | Amarula Solutions U-Boot, Linux | Upstream Maintainer Hyderabad, India.