Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp301015lqr; Wed, 5 Jun 2024 06:38:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX17ZDlqpfATeeyqd9O55O0mYpVruzt6C8Mj7V0UCMZtNd8MdBDn39IVDnvU6/+P/wmLXz+Ha9luFyxHrpUWuFu/JY7cbMBN8Z0HxL8AA== X-Google-Smtp-Source: AGHT+IEirdwmOy180BmfGEK8lQUadMzh98FqLeGtMcnAYCrOK+xPDd9bV6kUM0xYPY5qw/DW4m9y X-Received: by 2002:a05:6512:33ce:b0:51f:2f5a:54ae with SMTP id 2adb3069b0e04-52bab4c9be7mr2682670e87.7.1717594681947; Wed, 05 Jun 2024 06:38:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717594681; cv=pass; d=google.com; s=arc-20160816; b=kUdV9sjidVPlXkUvS/amS6R7dP1sfk5mLFSA6aiIIb1veI81Doa7qm8O7dTvQjOovH oiJKwr1Wg+g8BOvNJUmz1OGbLEepbeEGpSf4hdahjcDwovGgRdzV86msFAdNW/q5u19G xcUuVxasuymuJb195h9KU9QnadWuwi9D8mYIktTr1HGihqAY3+WuQaWxipsDL4Fwadzd dr/AX1ApbNoyLQEnuZi7nZuam48G0Ye85rI/xvmHKPv/E7b3j8RBRiIgjYkKu0yIYNiq BH4pnifG9elsiJeGCj9Od+3F0Szyh+TsnJaQkbyIxmsGBuMESLX74/Pysr7Hww0Do8A+ UXow== 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=n64LePo88loVGt5G6hmnonh7PwOJsheuFMWeQMJUfyY=; fh=JCA1nBDUjBUo1hCW0ogoTBGFDkuQlWO3OQ1yn3TEUdg=; b=FFxBDKue4Op8isyTPwL7QkXpYXrJcjUJTFb4v4PFlStmWh+gUvp+cQQZU6XXVMnya+ iWFX2mgZOoxmCZFJCIF0v2JA6iLmomMrSC15ja3pxxJkxRyv1cPSPuQnfkT6sbiPKjfr QrlM7Vz+dBklJ/u4nx/JvD3pCncu4gm0gmiBQy8AbqN+565hRixEMdoFmQ+RUdwtFlfO XkAm2cWIzQ+ZBRpAbeNqX6GJrzVoWz0eVYsHCUi0jHNv8P00sT1ocQD9F9Jk04GmaUlo +dTh0u3+0uJwszQbXuUTyx4CTAezGM94yNDwXRYZESXR2sJujHP/g1RjdgqCJmKlReuE 2s7w==; 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=oqV2Tbkv; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-202607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202607-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a68b9b808e6si471850366b.1016.2024.06.05.06.38.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 06:38:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=oqV2Tbkv; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-202607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202607-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B5D351F257EC for ; Wed, 5 Jun 2024 13:12:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4EA19195389; Wed, 5 Jun 2024 12:27:48 +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="oqV2Tbkv" Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (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 D2BDB194A7E for ; Wed, 5 Jun 2024 12:27:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717590467; cv=none; b=aas7kaVGwjcOEwORcLGsS7dr7jcWc/+HPYrjOixtPPaLuKCNyNVB/SKAedf2K/4exsyY4iIganogzOCK505o4q4lBD71EyaDz6uQ6W4tb9nyQMi9f85eolphpu432aclBOLoKd6EtmQ5UPBjF/pidBj5/LkodWfq8EsfAAFQ4YQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717590467; c=relaxed/simple; bh=p6R6BK8vUCMsaPsnwA8T5bLaXPsSUxJIi8/GR6rTPJE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=W3b/K5+p5itnulOkmw8u/t0+AjrPK2901xEbvH7YfCh2foUPkntNfb32VjaKxrpKDpc2Vy1wMxqOOSzCsgVPVm7jYRMBlDIbOBXpQ2pDkKBQpLVyHbNFxKuMN7RKkkpwsDYaEB0k6vFQaRjLj7nmLSsTMt/d1Mmn8gfP0NPdJAs= 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=oqV2Tbkv; arc=none smtp.client-ip=209.85.221.48 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-f48.google.com with SMTP id ffacd0b85a97d-35e4aaa0f33so3898248f8f.0 for ; Wed, 05 Jun 2024 05:27:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1717590464; x=1718195264; 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=n64LePo88loVGt5G6hmnonh7PwOJsheuFMWeQMJUfyY=; b=oqV2TbkvmA8zbPiyj77hwy288pF2F2Hr//wSQ7FxJKmBKy5E7GSHx2GD35Rz1ue03W YVnHkpw13cyAEE0n8x0IChUiyxhFtz57LovHsTQnKzx3NRvnZ4RgPpewgvSTy1+YXor/ Wa4D4pxbUmfl3vyPesTYQqP9vkRxryeYUfLqevqXCkNtXcyDBShqRYjx9nwcYEW5Sl90 wbFQJpIFTkHRs36OhBUDDHw3Td/lruev8u79yZkuIYKrz3bhWlsf7ttCUj2M1k8bwd2C Y9gUhcHc5BKoc/+QM1e3pitQU7R98cKx8ZIihxOtdMW6UzKYEBIPBj1+79EJdjt2Bwdj rRhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717590464; x=1718195264; 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=n64LePo88loVGt5G6hmnonh7PwOJsheuFMWeQMJUfyY=; b=kVS+U4nY0FrZXX7C5Kw9qdVkCtko1hXzoKN+fpCzccX5dCkPjwKtk2agUBty36HZNS v30rJozZy3rektA6BrXlmLIhgQ04rKq1YJJnLQRBxu+bpKK2E67z+AnVNEQfculHgMES aM+wNnrXF5QTchkurM8r31qL9+vy/LN6GZ000uaZqqE2OaCKdLMzoXi3OiT8WBR6Gwyh kYvlGafMCXxRhMjfY3OQg20A1p02l0tV9KcZmQAgmXb4vTd+bvTWTkbv3rQnWX3VtC6P gDmY9w+PSUhkxK0gVzBsjnlfBvEvR+Pr68D53+ybFSw8dEODjIjK/xxWRByUuoklinDq s2Pw== X-Forwarded-Encrypted: i=1; AJvYcCUCOe3Hd8oscR1Jh+/nHeySY+HXpSSwuuJzmuoxXJLEVNt6NNmvwDRegmXlIwsLG+OMTvMXLgNKyNlb39ZbMtCdv1hCntWYM4i89iMz X-Gm-Message-State: AOJu0YyrNXgyFhO1mqTLWJX2kia8NkdmXLbGPttvBIHJzzM61FdNEd0R oldrC1DRiT0F/uwQesfAhSZdpbHmZxpnu7MPMldRWwqscf2MuagnGc/PUgHpl48= X-Received: by 2002:adf:f406:0:b0:35e:de33:9349 with SMTP id ffacd0b85a97d-35ede3396e2mr1928925f8f.9.1717590464251; Wed, 05 Jun 2024 05:27:44 -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.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 05:27:42 -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, Neil Armstrong , Bartosz Golaszewski Subject: [PATCH v9 3/4] arm64: dts: qcom: sm8650-hdk: add the Wifi node Date: Wed, 5 Jun 2024 14:27:28 +0200 Message-ID: <20240605122729.24283-4-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: Neil Armstrong Describe the ath12k WLAN on-board the WCN7850 module present on the board. Signed-off-by: Neil Armstrong Tested-by: Neil Armstrong # on SM8650-HDK Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sm8650-hdk.dts | 89 +++++++++++++++++++++++++ 1 file changed, 89 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8650-hdk.dts b/arch/arm64/boot/dts/qcom/sm8650-hdk.dts index 182864a3b6bd..4ad352b360b9 100644 --- a/arch/arm64/boot/dts/qcom/sm8650-hdk.dts +++ b/arch/arm64/boot/dts/qcom/sm8650-hdk.dts @@ -266,6 +266,71 @@ wcd939x: audio-codec { #sound-dai-cells = <1>; }; + + 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 { @@ -893,6 +958,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>; @@ -1153,6 +1235,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 { -- 2.40.1