From patchwork Mon Dec 23 05:48:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 11307791 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 27322159A for ; Mon, 23 Dec 2019 05:49:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 053D9206B7 for ; Mon, 23 Dec 2019 05:49:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="bdRC6gCo" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726211AbfLWFta (ORCPT ); Mon, 23 Dec 2019 00:49:30 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:40045 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726198AbfLWFta (ORCPT ); Mon, 23 Dec 2019 00:49:30 -0500 Received: by mail-pf1-f195.google.com with SMTP id q8so8626985pfh.7 for ; Sun, 22 Dec 2019 21:49:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=iumy1PBiJpZgzq+fMy5WNqZile1hZxg6rvR6lEmVeXg=; b=bdRC6gCocAk80rA1xbTl2p/ncFNdXB1ojFpp0JkL3K/81G3P//yEdsNnpzsTtfZsPf 3YyU0Nsh/r9PJjv/AzfM7A3D+yYzf5u0BxlxQ8gLYhOzCR+5VkfCh4dpELTXWloWB/RZ xEw0nYFKEpzJ74Bqfh6KuIgaKyMMaJYH0WK27MRXLAYw4BAb1VbRbLchJ7aPwqqONQ/U 4HpP293tKl5NmXsZtEcnpb1w7oE44FZg/+73qGoUtANehnUuY+ZPs641yIhmRZ9Mp8Pe sVNmmOF0zrhyeQms2fuNTit47iQhqaP6Ss5h4Frxw+5ND9NlufPH9VSoFHeBSr2i2miZ HtWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iumy1PBiJpZgzq+fMy5WNqZile1hZxg6rvR6lEmVeXg=; b=VxKC8+FORKrlLvJs8ijcrfCCNFIKD/HjciQbb22IYeDPLT4+qN+JcXlAQ75oZy4bVZ TQ/caPtCZVwd8+trCGYdBDPU2zel/ExbOaZt0NwoRPPc+zIMg0jqFEcaGU7R/6DzElhr ZfkDfbJClz7M0kfQU3MjEyO1GE6kyM2cbQmbtiKbqWdQ1Kbbp7PIIAUM1ohVuTZC5MJK PeJbaX9RF9huwqrefWakljOd3GJmxD5FtW8cfKVs3NKvwdSz+KfzNV4U6/1/i2+QiAjV 8hGSFkf/XMPC37WcYIldyCIBD25WjNhD8IsPNqyMaKMJj1MGHvQGX2bjvQug1COfTtnY /PWQ== X-Gm-Message-State: APjAAAXahkBTp+l1EhefXWgRsISoSwGJx16V5ktdDLet1O8djDYlGre3 SU+0kmM4rmT8Ou3zpTQtD766cA== X-Google-Smtp-Source: APXvYqzEhqEiHcIOvRTWeex5QbVNVUAfTErekI8OsTPZn9rtRwW9Q326fkVGONQjLmBd3RETwbCgWQ== X-Received: by 2002:a63:d94b:: with SMTP id e11mr29475446pgj.79.1577080169416; Sun, 22 Dec 2019 21:49:29 -0800 (PST) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id l14sm19731779pgt.42.2019.12.22.21.49.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Dec 2019 21:49:28 -0800 (PST) From: Bjorn Andersson To: Kalle Valo , "David S. Miller" , Rob Herring , Mark Rutland Cc: Andy Gross , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, ath10k@lists.infradead.org Subject: [PATCH 1/2] ath10k: Add optional qdss clk Date: Sun, 22 Dec 2019 21:48:54 -0800 Message-Id: <20191223054855.3020665-2-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191223054855.3020665-1-bjorn.andersson@linaro.org> References: <20191223054855.3020665-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The WiFi firmware found on sm8150 requires that the QDSS clock is ticking in order to operate, so add an optional clock to the binding to allow this to be specified in the sm8150 dts and add the clock to the list of clocks in the driver. Signed-off-by: Bjorn Andersson Acked-by: Rob Herring --- Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt | 2 +- drivers/net/wireless/ath/ath10k/snoc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt b/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt index 017128394a3e..3fc2cce4626b 100644 --- a/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt +++ b/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt @@ -50,7 +50,7 @@ Optional properties: entry in clock-names. - clock-names: Should contain the clock names "wifi_wcss_cmd", "wifi_wcss_ref", "wifi_wcss_rtc" for "qcom,ipq4019-wifi" compatible target and - "cxo_ref_clk_pin" for "qcom,wcn3990-wifi" + "cxo_ref_clk_pin" and optionally "qdss" for "qcom,wcn3990-wifi" compatible target. - qcom,msi_addr: MSI interrupt address. - qcom,msi_base: Base value to add before writing MSI data into diff --git a/drivers/net/wireless/ath/ath10k/snoc.c b/drivers/net/wireless/ath/ath10k/snoc.c index 7e85c4916e7f..aeb4cca92c35 100644 --- a/drivers/net/wireless/ath/ath10k/snoc.c +++ b/drivers/net/wireless/ath/ath10k/snoc.c @@ -46,7 +46,7 @@ static const char * const ath10k_regulators[] = { }; static const char * const ath10k_clocks[] = { - "cxo_ref_clk_pin", + "cxo_ref_clk_pin", "qdss", }; static void ath10k_snoc_htc_tx_cb(struct ath10k_ce_pipe *ce_state); From patchwork Mon Dec 23 05:48:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 11307783 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C8DF013A4 for ; Mon, 23 Dec 2019 05:49:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A781920709 for ; Mon, 23 Dec 2019 05:49:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="kG4Voaia" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726729AbfLWFtf (ORCPT ); Mon, 23 Dec 2019 00:49:35 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:44548 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726663AbfLWFtb (ORCPT ); Mon, 23 Dec 2019 00:49:31 -0500 Received: by mail-pf1-f194.google.com with SMTP id 195so7756679pfw.11 for ; Sun, 22 Dec 2019 21:49:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1TAbfRw81wKjdlTK4DIpia8dPfGxXFTyTxBsBiwwkkI=; b=kG4VoaiaWW1vD5ps1J4P+FfDOHsHkXtmjijWd4hvkskVttky6HDYPqWh67j5RsN1Pn tiW1BqPJcpvZ9hJ48esmhbOViZZtsrE/qTw5GClQSiw3gSVUdTtKCVGzmpbjYT5vq0Ne gY2Uvv/3+BfdXj2uaAJ9BA72SMu7mVJ59cClzrJfp2MwMSWEmoJabVRl2uqL4N71GHfq UzNh8Sdjkbu7GcvVNm2uZWhlHQkJVrp27DcBpQkKxNI1UfApVheLQ0JDrfhOl4Qh0Ywj 0MJaMlG3OpwPIVYzwNW9Ft60xrlKy8q75gxSiSf+0+56sUe363slVJsofYp4rghVRfAq uDTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1TAbfRw81wKjdlTK4DIpia8dPfGxXFTyTxBsBiwwkkI=; b=t0b4zbP+glSXVSmClcfh8qoLdw4PJSoymz5QTqfs37hX175nCFe0I8ZPFakbFbdUiP SJ/smbCLM/AhnBIcJPIozBs5bdgggQhN0JNUCB6tea+ai6BFgLRyP8sEEpwjSQ1L1KzN ZL7oxAj9/Nr47MVP0CuH7pt88PrWUWEHS+PkMJUlBozJlzOx9qfCYAl0BaPn5OnqisnB qRiyAYvq0R5AS4FxfBLCfMNOazyB+cr0Yukf9TJs4SwXTOjdp37/twXk/46TZ23ZFD4e KAKWFy33F3mIaSCToe4W6L+miK35cPEjj+lJNl7FSNMe6kRBDLYn0yGjvUgio5oAyYtM qpyg== X-Gm-Message-State: APjAAAXIZgfazeRNmwpJiwm4kDHKrPUiWv4ytWq17f6Esb//6CLb4uAV rUS0GAvfsJ2id7ZD4Rhx5dJY/g== X-Google-Smtp-Source: APXvYqxy4LnU/4UbJSEnuIjt2lbosN4Qr2FWETJStKyhLrZ1sLKFbK2FAuxj/bEHT6NhZ0QILwBT2w== X-Received: by 2002:a63:fd43:: with SMTP id m3mr29595462pgj.164.1577080170792; Sun, 22 Dec 2019 21:49:30 -0800 (PST) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id l14sm19731779pgt.42.2019.12.22.21.49.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Dec 2019 21:49:30 -0800 (PST) From: Bjorn Andersson To: Rob Herring , Mark Rutland Cc: Kalle Valo , "David S. Miller" , Andy Gross , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, ath10k@lists.infradead.org Subject: [PATCH 2/2] arm64: dts: qcom: sm8150: Specify qdss clock for wifi Date: Sun, 22 Dec 2019 21:48:55 -0800 Message-Id: <20191223054855.3020665-3-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191223054855.3020665-1-bjorn.andersson@linaro.org> References: <20191223054855.3020665-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The WiFi firmware on SM8150 requires the QDSS clock to be ticking, so specify this clock for the wifi node. Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index 373fa098ebb2..0f0c9db3d484 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -929,8 +929,8 @@ wifi: wifi@18800000 { reg = <0 0x18800000 0 0x800000>; reg-names = "membase"; memory-region = <&wlan_mem>; - clock-names = "cxo_ref_clk_pin"; - clocks = <&rpmhcc RPMH_RF_CLK2>; + clock-names = "cxo_ref_clk_pin", "qdss"; + clocks = <&rpmhcc RPMH_RF_CLK2>, <&aoss_qmp>; interrupts = , , ,