Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp480418lqr; Wed, 5 Jun 2024 11:23:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUZnVI21NwVSXeWE4l9eA6eiBhgSFuERjF0D07EnG1YQ3JmpHq+w/mbXC6hsk6b+EHrvX2XJ85Rp63UGupnwn5bQHNrtcZ/CB79eBG8OQ== X-Google-Smtp-Source: AGHT+IGidHPzW81ztJhC2DbiBD2wBpJ6ethUsH/IBXBQAelCAnzXhb2CTDV9vicVQYS1YGgmUlo3 X-Received: by 2002:a17:90b:3592:b0:2c2:7d03:a2a0 with SMTP id 98e67ed59e1d1-2c27db22904mr3740177a91.23.1717611797489; Wed, 05 Jun 2024 11:23:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717611797; cv=pass; d=google.com; s=arc-20160816; b=EYh5N/ly5dbuCHtlIOkJVbdoqPegk23gYkZ0CJRnmYIWU6gSBe0HZadXBJ+ek+nJuE qp0JZzOJCciz5iQj7km5J9Gc5x6/9uKSMLbJU8OD3iVgKF7949CWxlPyBCKSzm4JTHYc +QBaEosASvmKCTUlPZw5e6kbh4HA3SVSqqupH3vZJLMK+pG/sRjC6rnFfLnHsR/V1XZR Z2gQJQmISoIlwtvPntQiO39ZuNpl3X0Ncw9RPEeyPC55KywSf+rKSRhpUqIsR0vi8/SF X163idLH2THyDTB3WoYIYbL1EzXEtaqXQQncuTnDYwsAGtC/KeaIVLD2Z+/CNbtGABaH oG4Q== 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=66zwRmCvmNHsCoXwcnY7wAttTA1ag7KYFL6z4pT9chs=; fh=ge95I/4aiHufbgdSMbo1pdsoPR4rZbmJRm4tmKbpJPM=; b=NmgdyW+TApoX4pDGQPAbOem4loQCO3QqS39Y0eF4lm34n+bXPU36Vz0PF5sdNK0hz9 W0pAszgp8RF1guEJJjaq+MODJgg98Ob+kDmqTEFXM+vo78AyWq4xIC3yHrlDr8ljtXRo jTTFinZs0p+PD9b/DLOq7m1TpKznpK6CnldZdbx2OpIMesuR8Jt8T//4CkgSkWMAv3oa 7FTyHbCUzLNhW41hSPqVL+6JeTuQLZXOxNfQ7kSXmPIDUNBSWPb29ek5QpXMi+iPk8CM /vRvJiIN4PIH/TkFCYe95PvxbzcUYdJWMTm5855zQjHNtpPywWc9kn7MH0rNwg3xCoNh CXuw==; 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=in1URVfm; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-202606-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202606-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c28063e906si1670378a91.28.2024.06.05.11.23.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 11:23:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202606-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=in1URVfm; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-202606-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202606-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 2F98DB2B932 for ; Wed, 5 Jun 2024 13:12:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8AC4514D447; Wed, 5 Jun 2024 12:27:46 +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="in1URVfm" Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (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 093F2194A54 for ; Wed, 5 Jun 2024 12:27:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717590465; cv=none; b=Xest1X0FnWuervOmqyUHZrvvNhCY0hEo98/8TBUXmJT/2UQvUd2wBLCKPUH4/1sTRIJxrv8Xi180IzxrtMDrNdDLVAxib8m9PzlqjxcHESYiRehNU52g8Aj+UwsM1MfXFQlqqOB8QdOeQ+QiZSFiUwg0UUJiboPGASghzJVtWc4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717590465; c=relaxed/simple; bh=5svplUamz6kn1QlrQNG82IAqSTI/V5Hw/wy9w7Z9vcY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Il9ys4oQLj/BOC3ghNA5zBtqLA8Dj4e7LKF0jVzKV22O+UFYfC+LPtG8YlMpksIRg0Jy+dGxYSPc6uvDs6KrgA4WlvMh6hNbV55o4CrhLqJl015HnhM7yPU6MqYiiVH988UIYp5xJ+3zWcab7Xu8pdP553RMftSOsRsnE8YGL1s= 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=in1URVfm; arc=none smtp.client-ip=209.85.221.50 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-wr1-f50.google.com with SMTP id ffacd0b85a97d-35dceef4227so5226705f8f.0 for ; Wed, 05 Jun 2024 05:27:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1717590462; x=1718195262; 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=66zwRmCvmNHsCoXwcnY7wAttTA1ag7KYFL6z4pT9chs=; b=in1URVfmi7nCCdFPj3nS8GqQYmoFRI7AfMMhThQVcFM/DKKuSLXRjcEZTVO5DF7faE /sudqe9Cso/5vzaJN58bL3wS2VPmtxOZ4QF6XWX/K7CkPev7JomqKTxrdhZ2Pu7j3KuT 4LGyLbpHb5YtdXFqC+ktZH++QL/xP3lfef1BnTCzOxPNXiau0+f2UjdrrDuxt49cDsut sr4j9ivhtnyo+20kj2yEhejpaIGv/reqYendx48qqbm6mxOH5UKWeH7J5G6bl2oMkDtX hE/3XKTtVEdJuMhTw0CmVL3XKarqBtfe1dzP1t0Z8MBSx/p3QeORzIoMfvVcnRvhjA8x 6MIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717590462; x=1718195262; 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=66zwRmCvmNHsCoXwcnY7wAttTA1ag7KYFL6z4pT9chs=; b=F7lH3Wz3k5kxeUSrPhWPZ3lUrD+Nt5xuPOZwd91pzIf6acnwQp5VVII6Fn0KSVJG/y czpLgoAcyk581PQUwyhCmTlhbdD8UBYjB1APObCrxxxlUK5XSCw2bKW9su004N/XUkXb GGgscGnbD8DMTvAz0hoDmUgo4hRADwaXXUmyBNjzMBMmjPrhUIXI6YhAFqsuSC1t0F/D YxSZWg8GBCZVG62ZR9O47R/vwB2XMsRomEcgo2zIDzox5q25j+qROxtRR2lp7sDsBKgU pGO72LZwrtjSF28dVU3IKcOSqinWEdv9L7NmQF4NE2+zE1JoFYSqXmxPrl7OJ20ahoD2 lJHA== X-Forwarded-Encrypted: i=1; AJvYcCXAOplrf907CW2x5g9O19Ic5FJz7sWsyc6fsamf/++eRg+X812Z2pVbzG6XUKDcEQxI8QZgxGvkWVfW9F6AtLuJCipqIeC4gtzh04M3 X-Gm-Message-State: AOJu0YwAWYAkMLhaoN38LN2RODkxFu+rfzDGFpsrm39CywuEdyUZFPGo od8zWq27o9495EuWvAUutUo1UOSt4hEZS2e3HW2AJOoaqdKoHL7URO07Gb8+zLE= X-Received: by 2002:a5d:5043:0:b0:357:8bde:59bf with SMTP id ffacd0b85a97d-35e84060962mr1714682f8f.24.1717590462506; Wed, 05 Jun 2024 05:27:42 -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.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 05:27:41 -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 Subject: [PATCH v9 2/4] arm64: dts: qcom: sm8650-qrd: add the Wifi node Date: Wed, 5 Jun 2024 14:27:27 +0200 Message-ID: <20240605122729.24283-3-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: Neil Armstrong # on SM8650-QRD Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sm8650-qrd.dts | 89 +++++++++++++++++++++++++ arch/arm64/boot/dts/qcom/sm8650.dtsi | 2 +- 2 files changed, 90 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8650-qrd.dts b/arch/arm64/boot/dts/qcom/sm8650-qrd.dts index 98f6a272ce5a..6e3c4d8dcc19 100644 --- a/arch/arm64/boot/dts/qcom/sm8650-qrd.dts +++ b/arch/arm64/boot/dts/qcom/sm8650-qrd.dts @@ -203,6 +203,71 @@ wcd_codec_headset_in: endpoint { }; }; }; + + wcn7850-pmu { + compatible = "qcom,wcn7850-pmu"; + + pinctrl-names = "default"; + pinctrl-0 = <&wlan_en>; + + wlan-enable-gpios = <&tlmm 16 GPIO_ACTIVE_HIGH>; + /* + * TODO Add bt-enable-gpios once the Bluetooth driver is + * converted to using the power sequencer. + */ + + vdd-supply = <&vreg_s4i_0p85>; + vddio-supply = <&vreg_l15b_1p8>; + vddio1p2-supply = <&vreg_l3c_1p2>; + vddaon-supply = <&vreg_s2c_0p8>; + vdddig-supply = <&vreg_s3c_0p9>; + vddrfa1p2-supply = <&vreg_s1c_1p2>; + vddrfa1p8-supply = <&vreg_s6c_1p8>; + + clocks = <&rpmhcc RPMH_RF_CLK1>; + + 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 { @@ -844,6 +909,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_l1i_0p88>; vdda-pll-supply = <&vreg_l3i_1p2>; @@ -1138,6 +1220,13 @@ wcd_default: wcd-reset-n-active-state { bias-disable; output-low; }; + + wlan_en: wlan-en-state { + pins = "gpio16"; + function = "gpio"; + drive-strength = <8>; + bias-pull-down; + }; }; &uart14 { diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi b/arch/arm64/boot/dts/qcom/sm8650.dtsi index bb0b3c48ee4b..903c013d1510 100644 --- a/arch/arm64/boot/dts/qcom/sm8650.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8650.dtsi @@ -2300,7 +2300,7 @@ &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>, status = "disabled"; - pcie@0 { + pcieport0: pcie@0 { device_type = "pci"; reg = <0x0 0x0 0x0 0x0 0x0>; bus-range = <0x01 0xff>; -- 2.40.1