From patchwork Sat Nov 21 05:58:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 330457 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1D912C6379D for ; Sat, 21 Nov 2020 05:58:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B68602223F for ; Sat, 21 Nov 2020 05:58:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="qiflOkmx" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726397AbgKUF6J (ORCPT ); Sat, 21 Nov 2020 00:58:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726341AbgKUF6I (ORCPT ); Sat, 21 Nov 2020 00:58:08 -0500 Received: from mail-ot1-x342.google.com (mail-ot1-x342.google.com [IPv6:2607:f8b0:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82EEFC061A48 for ; Fri, 20 Nov 2020 21:58:06 -0800 (PST) Received: by mail-ot1-x342.google.com with SMTP id k3so10885552otp.12 for ; Fri, 20 Nov 2020 21:58:06 -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:mime-version :content-transfer-encoding; bh=0fdEteydIB9dQTcBH4OSK3Fx/squLDtRvJTQhhgsCOs=; b=qiflOkmxdB3HSnVM9f+bffvFhTbVaZ1wkKzbmOYGYyTcymNXo5J0xzsw26lQvTKs1+ XBfBUUF+JZ5E9dJQSxemZzqicykRb09+8DJTt3XHvyd84QZEcpvE7gax51N09mcTot+R phT84XipulaVABuDJzuSjG7IvOoTDB7uT+2w2eRJ47FjXlyWRqpMrorVnIw/vtdqnCmi nzcZh7MMn7fcDgo7EuaXu675JaZmWMhgxb6vilvWeMGmsa289fA44eKzmLWcauwbWSGv sLLcjNJn3fIwDHLbfgDO3XLqR4F9PhToKsQQAjQbU+SJtpHmMrsnRga6omY3qSdtm9G5 YUuQ== 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:mime-version :content-transfer-encoding; bh=0fdEteydIB9dQTcBH4OSK3Fx/squLDtRvJTQhhgsCOs=; b=bS82UovRU0ZhJ+FWCZHywyjl81qpjH82DF10NefDac5zrKZrxTd6ajjweTJErznSFh L3j85OAoZFeD0wgneXpvYCp/aB3UfkzzCOB55PwOhAwHQxS5Gowoy8A99FjKdzh1qVZv Zbw54BLORRiWbqNasv28vz88wdQyNzz59wKb6pKNrYD0+dcLzpbTsp5K5ypVu/Zc9XZ3 mJOBgDEtKdclowYOY+gGkBacOad2g85G7bUTrRtk+cJCwFX/Snt9j33gTyaGeDPybfe9 rY9IZYtDHv9lYfZtZ/9URMOi7ABdslyP56asYjU3enHrXAoQMR3oQDSolPkFYte/E9dj taqg== X-Gm-Message-State: AOAM530nOCYTabIDJGWpgusd0Qi2kopxWooF8RZA5WUJvAvPGVvOW3MQ trnmp++fz3RrLlvbliQX8DRLng== X-Google-Smtp-Source: ABdhPJx7HHmVHB71SDrRONy5F/Q19O4oPzqYnnZkEPTSMTdYjmsS7HQiNKJwWeBfFHDfR6gqZHDueA== X-Received: by 2002:a05:6830:359:: with SMTP id h25mr15882416ote.184.1605938285841; Fri, 20 Nov 2020 21:58:05 -0800 (PST) Received: from localhost.localdomain (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id k20sm2634352ots.53.2020.11.20.21.58.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2020 21:58:05 -0800 (PST) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson , Rob Herring Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] arm64: dts: qcom: sm8150: Add wifi node Date: Fri, 20 Nov 2020 21:58:07 -0800 Message-Id: <20201121055808.582401-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Jonathan Marek Add a node for the WCN3990 WiFi module. Signed-off-by: Jonathan Marek [bjorn: Extracted patch from larger "misc" patch, added qdss clock] Signed-off-by: Bjorn Andersson Reviewed-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index c2f8c3097ac5..f4c3fbf36e87 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -1297,6 +1297,29 @@ cpufreq_hw: cpufreq@18323000 { #freq-domain-cells = <1>; }; + + wifi: wifi@18800000 { + compatible = "qcom,wcn3990-wifi"; + reg = <0 0x18800000 0 0x800000>; + reg-names = "membase"; + memory-region = <&wlan_mem>; + clock-names = "cxo_ref_clk_pin", "qdss"; + clocks = <&rpmhcc RPMH_RF_CLK2>, <&aoss_qmp>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + ; + iommus = <&apps_smmu 0x0640 0x1>; + status = "disabled"; + }; }; timer { From patchwork Sat Nov 21 05:58:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 329942 Delivered-To: patch@linaro.org Received: by 2002:a92:ae0b:0:0:0:0:0 with SMTP id s11csp472298ilh; Fri, 20 Nov 2020 21:58:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJx2nDgKpljlOSpIxpNPDEZhdPIl9r4I3l15GXf+WMoEdC4YA/yPvConwiv4cqEBll2iPDe0 X-Received: by 2002:a50:8f64:: with SMTP id 91mr845780edy.310.1605938289958; Fri, 20 Nov 2020 21:58:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605938289; cv=none; d=google.com; s=arc-20160816; b=n8ZtNqdjJbhCdvh/4IMkH5Sj9mROzN7B1CmJeHSRtDV7S9pkkBvgYZkD4F7jheiiag gsY97222KGIXEVVR4drUOgJHJNvjcp1u/du8othnxhMzsVjuYX459pBU0zEtthqgWPJO vrnMNtQOoExWfMdukwEy3CKcJD8KPz6JjS84Uf4mavgQKuLMXicQB2g9Dxu4dyhC1vt9 eWF2wUc9F4fxa914iMDPFeTzjBHKl0+gnTazQWCD8ycmyFmc1Yra7XNKz2y50Oim2idL Xla8PUGftZlLH1z1c5zRZ9iizSHIrvT1rX6y7zsNcwySmzU3+ZqwxLJZZAHTPM27zyhJ 3Qnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1vU8xvk9aReUjtQz0NsQ8GBx5f4Pt92u5iiwK3L8Acw=; b=POiP7ZHqMhmZkCQOHWeK/5DJX1Vaz5tsfMwIX9x2qUNtFBhCBGEb5//d3+s25dtCMf PtkbdmUqovYHRvQ4t56aGzanCQPwhTcqzIC5mtzCzP2dq3z5aIoAlfDxJK7xDlzXFVfX uakiXKaTNcEinYrWSznDCYFp64ZgIs67FBMm1a8w+O3mCE1mzcUKxSZ5/JZrGHWQu8aq kw2zZJf9XMln8gPStnN5zf6a2r1z2f9fIBfR3g3+Nj8Q8lumSYB2zkVBk0Ypf9zivMzE TT3rrImTAkv8OeS4l+FgWa7GkzEDKCBGF3Dt/wNm0DK7z8yecENcjNAJkMf50Fhmcglp pgvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r+qMNz9t; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c1si2947916ejx.607.2020.11.20.21.58.09; Fri, 20 Nov 2020 21:58:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r+qMNz9t; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726161AbgKUF6H (ORCPT + 15 others); Sat, 21 Nov 2020 00:58:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725934AbgKUF6H (ORCPT ); Sat, 21 Nov 2020 00:58:07 -0500 Received: from mail-ot1-x342.google.com (mail-ot1-x342.google.com [IPv6:2607:f8b0:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C4DCC061A49 for ; Fri, 20 Nov 2020 21:58:07 -0800 (PST) Received: by mail-ot1-x342.google.com with SMTP id y22so10894114oti.10 for ; Fri, 20 Nov 2020 21:58:07 -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=1vU8xvk9aReUjtQz0NsQ8GBx5f4Pt92u5iiwK3L8Acw=; b=r+qMNz9tB+sl7RB1Tb1qqEjso8wf4QYzeQr3apNL99Do/doYnXBscFrc6ZSTPky9wS 6Cg5VuvL8lzotoER1U65WqRm5ayyyrKgiZUQdBA6CdS+bak8152kbZTh9svQzo4AC6QQ E+8XqPCE5GsCIXz5Ci05cVhE1CNpp4L87f1ReXup/3/9xED/oU4yPlYP0qOQUNZleerD yUyUqWtE1jBE9ZCllPLlX3i3SimQGQW4ZOul2ntkxf4salidluaxgv8yjZYsLZQavDpJ sgBvH/nASZ2yNlCDkoD9EwrCvdAmjFrVhxk6H7IfE1qeYm5Z/BzDfvx0rNnDZELIcTWS iAGw== 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=1vU8xvk9aReUjtQz0NsQ8GBx5f4Pt92u5iiwK3L8Acw=; b=oVlZI7pUiA/LSFQfugUrq7VSFB1DDybc6RkQv17JsG0yu7a0gAbfK5yHt4CrbIZi+Q E9zhtUUoz+hW5fWQt4D1vBDdo/BsRRs8kSuiMX1WQl0i8iVcl1UBeeWplX1GWw0voGpr X5U3FzOp5qmUDaDfYScTD1Xy9BxShZ0VsweiqzQKphxlPq9c8UIdjR7HyEFfj37H1aIn u7iNuVUrQQ7xypEiEpKRnc4sKN7tE2ALS0aEK3a4CiLG1jlIhvnqCJ29cq8G8D7Wy7lT ZBxWi/fu0FWqoyDNcqVuKQ5hvm+gPdX6Mzrp/8VlH1T+8RgBjG3vYhGgHPeY49idTUkB /Img== X-Gm-Message-State: AOAM531mmRdxLU68fjT4w9sS8qnvvfTDqN9fH35TtdSocwInn8DGlDaP 6ldjv1FhJJhKfwhh7w7IlbbdnQ== X-Received: by 2002:a9d:6212:: with SMTP id g18mr6993796otj.89.1605938286796; Fri, 20 Nov 2020 21:58:06 -0800 (PST) Received: from localhost.localdomain (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id k20sm2634352ots.53.2020.11.20.21.58.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2020 21:58:06 -0800 (PST) From: Bjorn Andersson To: Andy Gross , Bjorn Andersson , Rob Herring Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: qcom: sm8150-mtp: Enable WiFi node Date: Fri, 20 Nov 2020 21:58:08 -0800 Message-Id: <20201121055808.582401-2-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201121055808.582401-1-bjorn.andersson@linaro.org> References: <20201121055808.582401-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Jonathan Marek Enable the WiFi node and specify its supply regulators. Signed-off-by: Jonathan Marek [bjorn: Extracted patch from larger HDK patch] Signed-off-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/sm8150-mtp.dts | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.28.0 Reviewed-by: Vinod Koul diff --git a/arch/arm64/boot/dts/qcom/sm8150-mtp.dts b/arch/arm64/boot/dts/qcom/sm8150-mtp.dts index 6c6325c3af59..7a64a2ed78c3 100644 --- a/arch/arm64/boot/dts/qcom/sm8150-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sm8150-mtp.dts @@ -429,3 +429,12 @@ &usb_1 { &usb_1_dwc3 { dr_mode = "peripheral"; }; + +&wifi { + status = "okay"; + + vdd-0.8-cx-mx-supply = <&vdda_wcss_pll>; + vdd-1.8-xo-supply = <&vreg_l7a_1p8>; + vdd-1.3-rfa-supply = <&vdda_wcss_adcdac_1>; + vdd-3.3-ch0-supply = <&vreg_l11c_3p3>; +};