Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp285005lqr; Wed, 5 Jun 2024 06:12:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWCMTPdX20F5pxfXiV1MPVVRCZQJAjS44091NsQPrtdl0zBK1n66HNN5cXIwFLehLxoMGrozo5dN7T1e+ySoic8c+d7XWbmKaR4eQnHgw== X-Google-Smtp-Source: AGHT+IF4qpiYtuJjkF65YCv/1Y+/hxzsOrK+iVDxiKlAvgPgGLi76RRTKNbAAttQRPKBKexSuhJX X-Received: by 2002:ac8:7e87:0:b0:43b:70f:64b1 with SMTP id d75a77b69052e-4402b63c188mr26176951cf.25.1717593129221; Wed, 05 Jun 2024 06:12:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717593129; cv=pass; d=google.com; s=arc-20160816; b=kzpVhrWNPXUicP0QRQerTUXsaIGJMdSWWgcNA6NfzQWw6c8RzrZkQeg/F/piaTQk+Y 46fu57a2EhHoogjJwE9/ITTzKRLOzzVMEv97uw4v+m+5yOzciNcDqiQBBo0XrzWHtNU8 91xJPU33JxpMZYa7SVmHO0ZYnc85aIaMDFm5NjNC3JSfByLvlmcBQfzSSm341L1d+8Cg 87ShfL+9zwjwPD5sEg0SUzh3lcyWFNT9tbkSKZAqHAQil9QcFoVsJ3uQ9JbkogF7SXct urzJueEY1qv99LWG/7SBogNQtCf/7loDHs8SVes96E1Wfq0kc6juZvdmqSEzUraIiMCh qkFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=5qkgKaKXEjIq7EgNLRUjqygcy7ItGPT/lxYgcy6cyy8=; fh=KTv53HbmD3eMFt1IOwoY/rMVTVXBGsPesQ2Wp/nZRGE=; b=R0Qwkg+KZVQa8nZU72SulL2rNpvC0u0DrYphmSvmykMGuNa4w9GhWgV+t7v3getzFX ROM+yuDSgesBIu9fCTOayq3PqJcF+iVcyckE+h4QfQ683UFCeU1MlFebWSebv+eRfK0V zXRFh7lYW8DMfA7I1tAJJ8wfkuOPJdDH9wa2wWNlzYiYx9BHPH80Yz5jx6menqLIlcex hMsJ3QSvINgb4zrK/VRkh+zFbDz3p2uZdPJO1hi+EYX2yvFXvJ/+qvKftYq4BSQrQcXG 1IXkf9BwbE2SdqgU23O0+dm9zKT3YPobHUi49xo6wZr6kPrrnbw/A4cFG04UJ9ml4YBm M4Qw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=vcMyEuBv; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-202605-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202605-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-79529a5fc75si34513385a.142.2024.06.05.06.12.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 06:12:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202605-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=vcMyEuBv; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-202605-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202605-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 6C6711C227CF for ; Wed, 5 Jun 2024 13:11:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A2985194A76; Wed, 5 Jun 2024 12:27:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="vcMyEuBv" Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 193181946DD for ; Wed, 5 Jun 2024 12:27:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717590464; cv=none; b=T9jlDiLCdWFG4h3fgYKqw30k3wxBHMpyyI/hady65JPyP/O/TeJYLv4HAY9QeBZNq2+K5C1g25BDpjyjYRxq+AcoV0fngc/vfXOhcGPoRU48OhltxPWbsUptZK+EsuqfYmBelUFVU8gCXq3G8k8Gkcydc282UvvtStp/ZIVheXc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717590464; c=relaxed/simple; bh=BCpdTc39nYkwa0OtjNF1OLv5Jy45gKbeHiCf+IvDyTs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Zg9TSf5yqtJzAtgMdBRn2ogecjVP9O27pnRFFzf0q/7vdASSIoVP9CwX0CORslhwDacGLjMJBx5mjl2Eisqc+uvmEhG0Wrf/8RbtAI/Vd3Xh+fCciLhZJX9kjazojESNoO7UFVP3n7Lk/6lFyABLnc3jr67jU+jGD7GgEYHHu3w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=vcMyEuBv; arc=none smtp.client-ip=209.85.128.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-421555a4454so10647905e9.3 for ; Wed, 05 Jun 2024 05:27:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1717590461; x=1718195261; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5qkgKaKXEjIq7EgNLRUjqygcy7ItGPT/lxYgcy6cyy8=; b=vcMyEuBvuEGg1JU0a2KI7GKPfPgtLYbSt0lUv+/4Q3fQX7NNDFNuY4uGtww6DGjwyV faW6sg3bpjvrgPkHKQpXacHIAqG68Ph0wG0x0f0hYNry72inWDKGmKMmPW/p/87Qevoy Sl9Q5XzlXWAguSGxsXJ23WW2/kVjaKUbwNnMEeUHyisgYuBT3wMgHZg7nU9bVUbrMeiR 0NquJH/fXAA7s2BIVQMR2YjXte5gsbQBykRtl7ZafvNZir1/iGxMy0InLdjFZzqeotII R6KGIggHk5j2+UTlE78Xglv6+LYKIw7WCU/+w6hTHtjB/Q1RntwTypLyqbnbzEKW5C2K GIrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717590461; x=1718195261; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5qkgKaKXEjIq7EgNLRUjqygcy7ItGPT/lxYgcy6cyy8=; b=EVgvAKOExtbUUQqHzQgfjpuRs1pYLBZks0tVAmK8o3VCyd0oaxyCmZX/6mi7oHMcjX oEP5w93i+1kkA4xYC981RlOuCDdU/3biLklZ6x50bhJnkW64nEQ0YbRgJCiaZ6tixxFC lsp+oIa76uQyWrZ9ytHUvSN40azr2/6xXS3s4uZ1vPrWjGMHCNs5+4GhJFZ9xJdqoXiI C37MuFdAYSysbBnW+2+YQ+0Bhblu2EPGhqhy4vkpSHlbKlZsNafJ7xqBll+aLJukoA29 oUVOsdOF8pw3RhT5/l4UeIg3s4RexO3hDHbuanVE3wsfPx77b5DPTQB9JEdpB36N4Vpt cyjQ== X-Forwarded-Encrypted: i=1; AJvYcCUdMx+zy8Q6n2QHXwcJQEsF0ZxiiOakNvwHASABIQdbEQF91lLLUJOrFoDS/0yOSgfJxSjk7vOs/SaKFApvnwkRP/0NBkZ9EL85kJMn X-Gm-Message-State: AOJu0YxgVN6LOduKlTL54pkgQ2XCOHxbnr1oC0SE+fw6CucoVCUmTgWu l1mJdonZdbP0kB9pX4F/X9vMDkZZgdgFru63CJqPMS8T8XTiF0e5FJoUGY+3kLM= X-Received: by 2002:a05:6000:cc8:b0:354:cc79:5589 with SMTP id ffacd0b85a97d-35e84070e99mr1519535f8f.18.1717590461207; Wed, 05 Jun 2024 05:27:41 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:75a:e000:d3dd:423:e1eb:d88b]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35dd04cac3esm14383619f8f.39.2024.06.05.05.27.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 05:27:39 -0700 (PDT) From: Bartosz Golaszewski To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski , Neil Armstrong , Amit Pundir Subject: [PATCH v9 1/4] arm64: dts: qcom: sm8550-qrd: add the Wifi node Date: Wed, 5 Jun 2024 14:27:26 +0200 Message-ID: <20240605122729.24283-2-brgl@bgdev.pl> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240605122729.24283-1-brgl@bgdev.pl> References: <20240605122729.24283-1-brgl@bgdev.pl> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Bartosz Golaszewski Describe the ath12k WLAN on-board the WCN7850 module present on the board. [Neil: authored the initial version of the change] Co-developed-by: Neil Armstrong Signed-off-by: Neil Armstrong Tested-by: Amit Pundir Tested-by: Neil Armstrong # on SM8550-QRD Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sm8550-qrd.dts | 97 +++++++++++++++++++++++++ arch/arm64/boot/dts/qcom/sm8550.dtsi | 2 +- 2 files changed, 98 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8550-qrd.dts b/arch/arm64/boot/dts/qcom/sm8550-qrd.dts index d27820fb5fc0..361b0792db4f 100644 --- a/arch/arm64/boot/dts/qcom/sm8550-qrd.dts +++ b/arch/arm64/boot/dts/qcom/sm8550-qrd.dts @@ -214,6 +214,68 @@ vph_pwr: vph-pwr-regulator { regulator-always-on; regulator-boot-on; }; + + wcn7850-pmu { + compatible = "qcom,wcn7850-pmu"; + + pinctrl-names = "default"; + pinctrl-0 = <&wlan_en>, <&pmk8550_sleep_clk>; + + wlan-enable-gpios = <&tlmm 80 GPIO_ACTIVE_HIGH>; + /* + * TODO Add bt-enable-gpios once the Bluetooth driver is + * converted to using the power sequencer. + */ + + vdd-supply = <&vreg_s5g_0p85>; + vddio-supply = <&vreg_l15b_1p8>; + vddaon-supply = <&vreg_s2g_0p85>; + vdddig-supply = <&vreg_s4e_0p95>; + vddrfa1p2-supply = <&vreg_s4g_1p25>; + vddrfa1p8-supply = <&vreg_s6g_1p86>; + + regulators { + vreg_pmu_rfa_cmn: ldo0 { + regulator-name = "vreg_pmu_rfa_cmn"; + }; + + vreg_pmu_aon_0p59: ldo1 { + regulator-name = "vreg_pmu_aon_0p59"; + }; + + vreg_pmu_wlcx_0p8: ldo2 { + regulator-name = "vreg_pmu_wlcx_0p8"; + }; + + vreg_pmu_wlmx_0p85: ldo3 { + regulator-name = "vreg_pmu_wlmx_0p85"; + }; + + vreg_pmu_btcmx_0p85: ldo4 { + regulator-name = "vreg_pmu_btcmx_0p85"; + }; + + vreg_pmu_rfa_0p8: ldo5 { + regulator-name = "vreg_pmu_rfa_0p8"; + }; + + vreg_pmu_rfa_1p2: ldo6 { + regulator-name = "vreg_pmu_rfa_1p2"; + }; + + vreg_pmu_rfa_1p8: ldo7 { + regulator-name = "vreg_pmu_rfa_1p8"; + }; + + vreg_pmu_pcie_0p9: ldo8 { + regulator-name = "vreg_pmu_pcie_0p9"; + }; + + vreg_pmu_pcie_1p8: ldo9 { + regulator-name = "vreg_pmu_pcie_1p8"; + }; + }; + }; }; &apps_rsc { @@ -808,6 +870,23 @@ &pcie0 { status = "okay"; }; +&pcieport0 { + wifi@0 { + compatible = "pci17cb,1107"; + reg = <0x10000 0x0 0x0 0x0 0x0>; + + vddrfacmn-supply = <&vreg_pmu_rfa_cmn>; + vddaon-supply = <&vreg_pmu_aon_0p59>; + vddwlcx-supply = <&vreg_pmu_wlcx_0p8>; + vddwlmx-supply = <&vreg_pmu_wlmx_0p85>; + vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>; + vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>; + vddrfa1p8-supply = <&vreg_pmu_rfa_1p8>; + vddpcie0p9-supply = <&vreg_pmu_pcie_0p9>; + vddpcie1p8-supply = <&vreg_pmu_pcie_1p8>; + }; +}; + &pcie0_phy { vdda-phy-supply = <&vreg_l1e_0p88>; vdda-pll-supply = <&vreg_l3e_1p2>; @@ -891,6 +970,17 @@ &pon_resin { status = "okay"; }; +&pmk8550_gpios { + pmk8550_sleep_clk: sleep-clk-state { + pins = "gpio3"; + function = "func1"; + input-disable; + output-enable; + bias-disable; + power-source = <0>; + }; +}; + &qupv3_id_0 { status = "okay"; }; @@ -1064,6 +1154,13 @@ wcd_default: wcd-reset-n-active-state { bias-disable; output-low; }; + + wlan_en: wlan-en-state { + pins = "gpio80"; + function = "gpio"; + drive-strength = <8>; + bias-pull-down; + }; }; &uart7 { diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi index c55a818af935..c9d3c0549ab5 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -1784,7 +1784,7 @@ pcie0: pcie@1c00000 { status = "disabled"; - pcie@0 { + pcieport0: pcie@0 { device_type = "pci"; reg = <0x0 0x0 0x0 0x0 0x0>; bus-range = <0x01 0xff>; -- 2.40.1