From patchwork Mon Nov 5 13:08:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Govind Singh X-Patchwork-Id: 10668295 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 966ED1709 for ; Mon, 5 Nov 2018 13:25:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 85C9229478 for ; Mon, 5 Nov 2018 13:25:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7A01929483; Mon, 5 Nov 2018 13:25:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0836C29478 for ; Mon, 5 Nov 2018 13:25:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=08bMR2BBSzUz79x/V6uoD4HIZ0F0IVwNrEIF6XCf0Ss=; b=koLJL6Li+KvodXM0xIRu2aUXsn +aLtdWSTMt2PIeZ08frmr+Gs1+oMHbfKSAZ6NRv8Ei22dKUxRE5hj+3kanANTNJduVMtIjadncg5j vxUB0etZRckJW4dewZF+IHczQSRB7tu3iiQqVdvPqQ0lBme2zD3K6zuK7+/8cMqE/vx9AgMUrF8I/ tMXyCbAm98vmHHZwFDZExQuaZUb/0xVxTqEHM+QInok/QjKiElCoIsdgiyXuL/IFZgscFO5gIuuoy XMBp1QYP1Hpx3P41wRCxtB+UreaUG0gFj4GMM7nh76eaJkEzoFNL43Vo3GSS7QqJSSgH6b8HjhXNE 44uF4oog==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gJesL-0007KE-QI; Mon, 05 Nov 2018 13:25:05 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gJesJ-0006fs-2R for ath10k@bombadil.infradead.org; Mon, 05 Nov 2018 13:25:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=jiOgHF3LZZ1zaQ/Ez5r/vf4p8jWW45gcbICB40Lyc40=; b=Mi8aAMzD7ItcFW+dDIagQNXoA mTBNIsNYDpeq87KT7A0mq3yd+ZajSPgYcXlw1z7n/eAXJOgqJiiY9FpKOv7Qa56cP1y17sMTv2ft6 +5hyWop7zoy42LgCSJ2JdYsgN9kaS7IYe7uRrYKDGRFWF75LcQJ8LODcZNz1OB2nhSp8UX4UVWafe izFj3qfcls3+gczrY7XMynp+7Fz5e+inS9Q9oNCMMu6PeaSs7+NBbwIV7rOfHZwfSPhn1CeKxY3ip 0GnkEJwlVMGlTMNiXCVerHh8xBHOqo2yzSARlQ7NxMdZslWL6zYr8vzNRAY6dvwPIcD7DuPIk4jno H/xG9cPAQ==; Received: from smtp.codeaurora.org ([198.145.29.96]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gJecr-0002Ye-7Z for ath10k@lists.infradead.org; Mon, 05 Nov 2018 13:09:12 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id BF1A36135B; Mon, 5 Nov 2018 13:08:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1541423331; bh=v/yCb6KJRhz5JTPTuGjIacBs0I1J8aW3YqhhGZNAjeA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=loDNsaRAejyigYp9z3MGhX5Www/Gj2eK0kpqocz59ZRWluHp5I4XAbSce0CY1q3kG QbBMOTAwfgNzZzmDnYRHOjt/9w4irv//jdXEegFx8RBEOGh5y+53BYQxNYv6Dn43qJ GIclMsE31Vq8Jsyyo8Ly2IGCWesnjTrxI/+OKzJI= Received: from svishnoi-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: govinds@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 9589A61317; Mon, 5 Nov 2018 13:08:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1541423330; bh=v/yCb6KJRhz5JTPTuGjIacBs0I1J8aW3YqhhGZNAjeA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Jp/tSRfd0XzBejazKIca12xkrKzjG1flm3BknXcwukpBhj/cAwMXRqAwXpWgmxezT uyd1YWZoOgA4QOMxvC24sUu+fJnYPWiO+GHoK5MACVF/jrZ6GRhc/L4Luj9eZvElVu k9c1e5PCPHjeV3lfQ3X1dR5x1xb7MRnNG4lupu1U= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 9589A61317 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=govinds@codeaurora.org From: Govind Singh To: briannorris@chromium.org, andy.gross@linaro.org, ath10k@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-wireless@vger.kernel.org, robh+dt@kernel.org, sboyd@kernel.org, dianders@chromium.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 1/3] dt: bindings: add missing dt properties for WCN3990 wifi node Date: Mon, 5 Nov 2018 18:38:36 +0530 Message-Id: <1541423318-19312-2-git-send-email-govinds@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1541423318-19312-1-git-send-email-govinds@codeaurora.org> References: <1541423318-19312-1-git-send-email-govinds@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181105_130905_689645_2999DDED X-CRM114-Status: GOOD ( 13.38 ) X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Govind Singh MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add missing optional properties in WCN3990 wifi node. Signed-off-by: Govind Singh Reviewed-by: Rob Herring Reviewed-by: Brian Norris Tested-by: Brian Norris --- .../bindings/net/wireless/qcom,ath10k.txt | 57 +++++++++++++--------- 1 file changed, 35 insertions(+), 22 deletions(-) diff --git a/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt b/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt index 7fd4e8c..55d255c 100644 --- a/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt +++ b/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt @@ -21,10 +21,22 @@ can be provided per device. SNOC based devices (i.e. wcn3990) uses compatible string "qcom,wcn3990-wifi". -Optional properties: - reg: Address and length of the register set for the device. - reg-names: Must include the list of following reg names, "membase" +- interrupts: reference to the list of 17 interrupt numbers for "qcom,ipq4019-wifi" + compatible target. + reference to the list of 12 interrupt numbers for "qcom,wcn3990-wifi" + compatible target. + Must contain interrupt-names property per entry for + "qcom,ath10k", "qcom,ipq4019-wifi" compatible targets. + +- interrupt-names: Must include the entries for MSI interrupt + names ("msi0" to "msi15") and legacy interrupt + name ("legacy") for "qcom,ath10k", "qcom,ipq4019-wifi" + compatible targets. + +Optional properties: - resets: Must contain an entry for each entry in reset-names. See ../reset/reseti.txt for details. - reset-names: Must include the list of following reset names, @@ -37,12 +49,9 @@ Optional properties: - clocks: List of clock specifiers, must contain an entry for each required entry in clock-names. - clock-names: Should contain the clock names "wifi_wcss_cmd", "wifi_wcss_ref", - "wifi_wcss_rtc". -- interrupts: List of interrupt lines. Must contain an entry - for each entry in the interrupt-names property. -- interrupt-names: Must include the entries for MSI interrupt - names ("msi0" to "msi15") and legacy interrupt - name ("legacy"), + "wifi_wcss_rtc" for "qcom,ipq4019-wifi" compatible target and + "cxo_ref_clk_pin" for "qcom,wcn3990-wifi" + compatible target. - qcom,msi_addr: MSI interrupt address. - qcom,msi_base: Base value to add before writing MSI data into MSI address register. @@ -55,7 +64,8 @@ Optional properties: - qcom,ath10k-pre-calibration-data : pre calibration data as an array, the length can vary between hw versions. - -supply: handle to the regulator device tree node - optional "supply-name" is "vdd-0.8-cx-mx". + optional "supply-name" are "vdd-0.8-cx-mx", + "vdd-1.8-xo", "vdd-1.3-rfa" and "vdd-3.3-ch0". Example (to supply the calibration data alone): @@ -133,20 +143,23 @@ wifi@18000000 { compatible = "qcom,wcn3990-wifi"; reg = <0x18800000 0x800000>; reg-names = "membase"; - clocks = <&clock_gcc clk_aggre2_noc_clk>; - clock-names = "smmu_aggre2_noc_clk" + clocks = <&clock_gcc clk_rf_clk2_pin>; + clock-names = "cxo_ref_clk_pin"; interrupts = - <0 130 0 /* CE0 */ >, - <0 131 0 /* CE1 */ >, - <0 132 0 /* CE2 */ >, - <0 133 0 /* CE3 */ >, - <0 134 0 /* CE4 */ >, - <0 135 0 /* CE5 */ >, - <0 136 0 /* CE6 */ >, - <0 137 0 /* CE7 */ >, - <0 138 0 /* CE8 */ >, - <0 139 0 /* CE9 */ >, - <0 140 0 /* CE10 */ >, - <0 141 0 /* CE11 */ >; + , + , + , + , + , + , + , + , + , + , + , + ; vdd-0.8-cx-mx-supply = <&pm8998_l5>; + vdd-1.8-xo-supply = <&vreg_l7a_1p8>; + vdd-1.3-rfa-supply = <&vreg_l17a_1p3>; + vdd-3.3-ch0-supply = <&vreg_l25a_3p3>; }; From patchwork Mon Nov 5 13:08:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Govind Singh X-Patchwork-Id: 10668297 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CA8011709 for ; Mon, 5 Nov 2018 13:25:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B813029478 for ; Mon, 5 Nov 2018 13:25:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AC09429483; Mon, 5 Nov 2018 13:25:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4ECDD29478 for ; Mon, 5 Nov 2018 13:25:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=POpN/l9fAfBsCQ5dulQChYP0lB0yA0zwN0I8MOPjD/Y=; b=hcSBSqAD6Cu7KCkFfig39JrNIi H9g5NzlIkYAmwTLik+lf11LuhEZzA1LL2VKmUd29WIE9ivqlvEBIjyycCI/2IG9g4qJXIuka696sV HBPdSv/UbpG5xXmGLEuiLFIN2AMZm+8L6UfypHMIpCVkAgZ+kBU498nd72/+YPdzXsGYSIXLf3+/E v/URh7Ee6UvU9S5Fk+dPptgP1k2M21E1JmTLA6HA7VZbYm+tXtKRnpCUQoIzaT/bsUfNHa2JWJuWM pdHMX+7HT00O+pt+52M3to/3qg+wLAU+i2rUkw8m4XqTeNdK8dKfvSj3POCmo312JYkh1e34NmhTN agz3Dz+g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gJesO-0007cL-N4; Mon, 05 Nov 2018 13:25:08 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gJesJ-0006iT-Ly for ath10k@bombadil.infradead.org; Mon, 05 Nov 2018 13:25:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=va3X08vYeUKw58k7fjE3S9iCoXCMsjfzTmCkgk11UW0=; b=ktrDl16vkQvq+q4wjb6TxuZ2A uibCN9Nw1T5FmuJZd/3mz/RNReMJUwncq3SAlXamQy9KW33bgDYkrYX0Qtf0pdz8Rp4hv7l/1/7cD W7JfXSX7N2dz8VRLAa9tg3bAUgkp8jFpJO3JgQ6pioSsK2uA7xV9IBzqeNx4hacKga1jAzQC55C4Z d3JMnR0dKp+vwqxJyER9KLtG2pF6qr5IKshT+GNQp5q8JoSLH9njjq3RY5t0w1Ljl/vymg8612YZA j7a/pKtwujxcDf5fltcRPotfEbtMUF/HS14p23sty21mDfrOsmCXZnJ0C+BOg2mZFIZ0l7/1xDfM9 JOt3I3+2A==; Received: from smtp.codeaurora.org ([198.145.29.96]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gJecr-0002a0-7W for ath10k@lists.infradead.org; Mon, 05 Nov 2018 13:09:10 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 466656140F; Mon, 5 Nov 2018 13:08:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1541423339; bh=1w9PcEo2AEM6ciEmzopxhnYhqKyAQIJsIXl0C7DxP1k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Z/49OolW4zgPvwumwi79AlwFJSDEX7MNCqbRnabpJdTG8Q6DJDkDc8jg7Ylj1psFo V2HjlKjhnB3KPp9YKPzhWYPfiHkjzD8NL3j59DEYGMOlVemqBqI5vDwQJmjKxmMbhX x+VoZ7Nur77Yg79VWJzKpyuedRWCf7ZrHHOBMBPU= Received: from svishnoi-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: govinds@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 9E23761343; Mon, 5 Nov 2018 13:08:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1541423334; bh=1w9PcEo2AEM6ciEmzopxhnYhqKyAQIJsIXl0C7DxP1k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QP07V2v94ou6eCW5upLN+D49faBdWlSwT5qF8lDAAvDxjjtp4WFDEmP8j9FOv9Uuz VkBblUYD4gvShJo7W9LatRYH10EeDsb7SSOOQl0B11iXHcuTH1hh1pF4SGgW02Miz2 NjreMDfj+6FtWxPLSZOgXt5/Xz2UZgT+JDV/7OzU= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 9E23761343 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=govinds@codeaurora.org From: Govind Singh To: briannorris@chromium.org, andy.gross@linaro.org, ath10k@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-wireless@vger.kernel.org, robh+dt@kernel.org, sboyd@kernel.org, dianders@chromium.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 2/3] dts: arm64/sdm845: Add WCN3990 WLAN module device node Date: Mon, 5 Nov 2018 18:38:37 +0530 Message-Id: <1541423318-19312-3-git-send-email-govinds@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1541423318-19312-1-git-send-email-govinds@codeaurora.org> References: <1541423318-19312-1-git-send-email-govinds@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181105_130905_621847_0A9E8C01 X-CRM114-Status: GOOD ( 10.21 ) X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Govind Singh MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add device node for the ath10k SNOC platform driver probe and add resources required for WCN3990 on SDM845 soc. Signed-off-by: Govind Singh Reviewed-by: Brian Norris Tested-by: Brian Norris --- arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 8 ++++++++ arch/arm64/boot/dts/qcom/sdm845.dtsi | 26 ++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts index eedfaf8..c062c5c 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts @@ -440,3 +440,11 @@ bias-pull-up; }; }; + +&wifi { + status = "okay"; + vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>; + vdd-1.8-xo-supply = <&vreg_l7a_1p8>; + vdd-1.3-rfa-supply = <&vreg_l17a_1p3>; + vdd-3.3-ch0-supply = <&vreg_l25a_3p3>; +}; diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index b72bdb0..324be5b 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -87,6 +87,11 @@ reg = <0 0x86200000 0 0x2d00000>; no-map; }; + + wlan_msa_mem: memory@96700000 { + reg = <0 0x96700000 0 0x100000>; + no-map; + }; }; cpus { @@ -1403,5 +1408,26 @@ status = "disabled"; }; }; + + wifi: wifi@18800000 { + compatible = "qcom,wcn3990-wifi"; + status = "disabled"; + reg = <0x18800000 0x800000>; + reg-names = "membase"; + memory-region = <&wlan_msa_mem>; + interrupts = + , + , + , + , + , + , + , + , + , + , + , + ; + }; }; }; From patchwork Mon Nov 5 13:08:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Govind Singh X-Patchwork-Id: 10668257 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8E74314BD for ; Mon, 5 Nov 2018 13:09:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7D0402957F for ; Mon, 5 Nov 2018 13:09:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6EDE2297A5; Mon, 5 Nov 2018 13:09:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1FD1C2957F for ; Mon, 5 Nov 2018 13:09:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=bPFJpr1jV+t+JRhvqSdzujJSwQc1RHC45GrYmZ3HZrw=; b=ERHwyDT3SU6QSon4luUkouAQV9 bVcOeLF5F3YqC3d8m8jaj6AEIYSTawW991nD4UPHeFF1RjLVQy+47/ZFQXEXN+COx8F2/7k7KYU0U IOZeN+uzKbl/2M58if/EV9nky0iblj5KyRvSEAMmTORz4DJ4rWvjzt29w/A5qB44ASDK+v9IgoV7g oTf4MBGMk49EasHux6trQZdxEQ3FW9vEn+B4ttIpFBOkEp7Pn0m24GOna/x1PBaleYeeuyAsqiy7n sW9Bnld/dMp065t/42W6UphX0UGbSFZfb6u4ysW4ij23qjsdJ3KFtzr+YEygHoMl/2lt2ejxU2r25 OmI7VLbA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gJedE-00085y-FS; Mon, 05 Nov 2018 13:09:28 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gJecy-0007fz-94 for ath10k@lists.infradead.org; Mon, 05 Nov 2018 13:09:27 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 7FFCF60C64; Mon, 5 Nov 2018 13:08:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1541423341; bh=8W6e1wuTPzIOLy2jXkqxvCLb1nFN33D/z9pXvTcJFqg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jXjw/e3zOcMo4Pm42Y2kRBDgk4gduuOVLxMZwHVEnaBpp7wFa1GKPzH2Z89b4Ff/s uUSr9TyJPT7KUTPaOnu8Brx3Y55xeO34QpsktbwA+NU3kP8CoQkQ/+k8M9gUglvczD MPUi7ft1klNl+o6VDsfwtpI3Q9YT91PaT7GSMRb8= Received: from svishnoi-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: govinds@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id C61F3614BA; Mon, 5 Nov 2018 13:08:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1541423338; bh=8W6e1wuTPzIOLy2jXkqxvCLb1nFN33D/z9pXvTcJFqg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cVldJ2JnEbXB4lpSgLR/BLrzc2CXuF1uGNhDDNV3Z7hyggWgkbhCI96i+4nNPZKWj 4Ga3ky6abag9/UevTBoZ4SD8RXT/VEN04wGdUNDuKXV8uncwvCqo37DnBDA1r1h4nm DnPX3Yk7LMdG/R6i70z/zqz081wetHZ3/akPXt/Q= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org C61F3614BA Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=govinds@codeaurora.org From: Govind Singh To: briannorris@chromium.org, andy.gross@linaro.org, ath10k@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-wireless@vger.kernel.org, robh+dt@kernel.org, sboyd@kernel.org, dianders@chromium.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 3/3] dt: bindings: add bindings for wifi iommu node Date: Mon, 5 Nov 2018 18:38:38 +0530 Message-Id: <1541423318-19312-4-git-send-email-govinds@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1541423318-19312-1-git-send-email-govinds@codeaurora.org> References: <1541423318-19312-1-git-send-email-govinds@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181105_050912_811597_83AB6126 X-CRM114-Status: GOOD ( 10.17 ) X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Govind Singh MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP WCN3990 wifi module can optionally make use of the IOMMU. Add binding documentation for phandle to the IOMMU and the stream id of wifi iommu block. Signed-off-by: Govind Singh Reviewed-by: Rob Herring Reviewed-by: Brian Norris Tested-by: Brian Norris --- Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt b/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt index 55d255c..78fb56a 100644 --- a/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt +++ b/Documentation/devicetree/bindings/net/wireless/qcom,ath10k.txt @@ -66,6 +66,10 @@ Optional properties: - -supply: handle to the regulator device tree node optional "supply-name" are "vdd-0.8-cx-mx", "vdd-1.8-xo", "vdd-1.3-rfa" and "vdd-3.3-ch0". +- iommus: + Usage: optional + Value type: + Definition: A list of phandle and IOMMU specifier pairs. Example (to supply the calibration data alone): @@ -162,4 +166,5 @@ wifi@18000000 { vdd-1.8-xo-supply = <&vreg_l7a_1p8>; vdd-1.3-rfa-supply = <&vreg_l17a_1p3>; vdd-3.3-ch0-supply = <&vreg_l25a_3p3>; + iommus = <&apps_smmu 0x0040 0x1>; };