From patchwork Thu Sep 5 12:20:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13792242 Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (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 82CA319CD00 for ; Thu, 5 Sep 2024 12:20:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725538837; cv=none; b=POi9YvkrWlWGfKjmBXazPd9ZXeV0RLSC2dQ1zThcgcYBvbadW7gxyPZt7OcXBVOv1eav4BlImom4V65Np5lGyz1lYTGVDQsLUHvDGJHfAwJ3lbgAY1+v24poaDK1zM55VJQIQeUkyCm1gR18sgmh1XlXzl2st7u/MjwfOLN0uxc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725538837; c=relaxed/simple; bh=3YkcNdTuH2BNB3aXrM0k72d5bdf3IYnXOqSVW769DrU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mnr0lx1pkkAY/U2S4NTR3brrhbyXvSx84vAJLHMUbuGw+/RQ+EFc9ocsIhhkuSaFdkn/H+n1pb/IQiaKAwt/y8p9O9bN0D3IuZgN4mLjINqqF52MvAUkLDWjWDTJ9tZaZLwf5bk4A8iaGciJ9Qp8FsfD7IxlRfuqmenCU7E7rB4= 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=cJYmV7SF; arc=none smtp.client-ip=209.85.221.41 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 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="cJYmV7SF" Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-374c3400367so539977f8f.2 for ; Thu, 05 Sep 2024 05:20:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1725538833; x=1726143633; 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=0FKIL2ENTZ1qxcIeIMkrn1CZ80wzkUZZogr0uY17bLs=; b=cJYmV7SFtC6eHJIKkNSAAjddtU5tiX/rd8auKCvpaGxgXwjtgwxTMytFu6NgrIJYjz Y87Y9cPulsGfidM16Is31JDMmo/WhO45Tr4VCn4RZ7PtE5xJU0wA8PeoY/Aq9L64yOit LHZCGMo5bjctmZJoe4lNz4i+Y1qy/b3bSqAnz8tqopwN0yFcJsrg96inZkuMTBQDwfTD wRBZdXlPohZrK9aExV2XkC3LO2jgqouU9velYRn4hZ1HgFIPH2/tf155GYXSap08tH96 XNe1tMX3sGHZA/V1vg7oVxKWoB9k9Gzo9qdNLwj4ci/CZQuLSH57Nan1dmL0U5FCu4Wq juSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725538833; x=1726143633; 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=0FKIL2ENTZ1qxcIeIMkrn1CZ80wzkUZZogr0uY17bLs=; b=BpybSP5xLAcVoqYq/p4cHjv39+NFDfIrZ/jdN0CQr/QsZeWWVxGT2RDUmPuYVV09Pb o6Y2TEntwpo+eNmcGp7Pq5ff51W+Cil+fm4LUGRVhf2lZiWN4cAI2I4dm3m7yJahPkx7 dKx78TxL2UD47vXuLcqGNVaCSMFeBPcOJvXo5cqxk9ba896lDmm5QVj+1n2sasPuvFC9 uVFwUFQV1ooMBh3P1iQpAR70j7HEbtTnnml/bZk6yCzooWv6WGOWro76QML/qPDvXMs1 mmwO/s7pWoZprixlhDACgoFteshMo4u4n1GfEAJ9opkQI3Inoyy4fNIFRRp9NFkofk5d 6swA== X-Gm-Message-State: AOJu0YwcJgqrPK2wMKPnUeG1EXTHiMiwvpXY9MtJJB+vunYnMSgIfq6n rBtBwDxazToPDjFdniVpfqwgVkyEegncW+Z6hco56kc07v9TonBiVhAF9v2lqJw= X-Google-Smtp-Source: AGHT+IFcrIB7wqkqdlSnb4VREvlQ5k44pYR0TlXo93JJcaU5dz9Xm5w3qv0j/EEkwTIuRFlY9H9DpQ== X-Received: by 2002:a5d:570e:0:b0:374:c318:2190 with SMTP id ffacd0b85a97d-374c3182363mr10714571f8f.59.1725538832762; Thu, 05 Sep 2024 05:20:32 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:dc:7e00:cbe4:ce99:cb33:eb1c]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-374be2edf08sm14645764f8f.6.2024.09.05.05.20.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2024 05:20:32 -0700 (PDT) From: Bartosz Golaszewski To: Dmitry Baryshkov , 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 Subject: [PATCH v3 1/4] arm64: dts: qcom: sc8280xp-crd: model the PMU of the on-board wcn6855 Date: Thu, 5 Sep 2024 14:20:19 +0200 Message-ID: <20240905122023.47251-2-brgl@bgdev.pl> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240905122023.47251-1-brgl@bgdev.pl> References: <20240905122023.47251-1-brgl@bgdev.pl> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Konrad Dybcio Add nodes for the WCN6855 PMU, the WLAN module and relevant regulators and pin functions to fully describe how the wifi is actually wired on this platform. Reviewed-by: Dmitry Baryshkov Signed-off-by: Konrad Dybcio [Bartosz: - write the commit message, - rebase Konrad's commit, - fix one of the supplies' name] Co-developed-by: Bartosz Golaszewski Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sc8280xp-crd.dts | 108 ++++++++++++++++++++++ 1 file changed, 108 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts index 6020582b0a59..1f533c0d49ea 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts @@ -177,6 +177,17 @@ vreg_misc_3p3: regulator-misc-3p3 { regulator-always-on; }; + vreg_s10b: regulator-s10b { + compatible = "regulator-fixed"; + + regulator-name = "VREG_S10B"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + regulator-always-on; + regulator-boot-on; + }; + vreg_wlan: regulator-wlan { compatible = "regulator-fixed"; @@ -260,6 +271,66 @@ usb1_sbu_mux: endpoint { }; }; }; + + wcn6855-pmu { + compatible = "qcom,wcn6855-pmu"; + + pinctrl-0 = <&wlan_en>; + pinctrl-names = "default"; + + wlan-enable-gpios = <&tlmm 134 GPIO_ACTIVE_HIGH>; + + vddio-supply = <&vreg_s10b>; + vddaon-supply = <&vreg_s12b>; + vddpmu-supply = <&vreg_s12b>; + vddrfa0p95-supply = <&vreg_s12b>; + vddrfa1p3-supply = <&vreg_s11b>; + vddrfa1p9-supply = <&vreg_s1c>; + vddpcie1p3-supply = <&vreg_s11b>; + vddpcie1p9-supply = <&vreg_s1c>; + + regulators { + vreg_pmu_rfa_cmn_0p8: ldo0 { + regulator-name = "vreg_pmu_rfa_cmn_0p8"; + }; + + vreg_pmu_aon_0p8: ldo1 { + regulator-name = "vreg_pmu_aon_0p8"; + }; + + vreg_pmu_wlcx_0p8: ldo2 { + regulator-name = "vreg_pmu_wlcx_0p8"; + }; + + vreg_pmu_wlmx_0p8: ldo3 { + regulator-name = "vreg_pmu_wlmx_0p8"; + }; + + vreg_pmu_btcmx_0p8: ldo4 { + regulator-name = "vreg_pmu_btcmx_0p8"; + }; + + vreg_pmu_pcie_1p8: ldo5 { + regulator-name = "vreg_pmu_pcie_1p8"; + }; + + vreg_pmu_pcie_0p9: ldo6 { + regulator-name = "vreg_pmu_pcie_0p9"; + }; + + vreg_pmu_rfa_0p8: ldo7 { + regulator-name = "vreg_pmu_rfa_0p8"; + }; + + vreg_pmu_rfa_1p2: ldo8 { + regulator-name = "vreg_pmu_rfa_1p2"; + }; + + vreg_pmu_rfa_1p7: ldo9 { + regulator-name = "vreg_pmu_rfa_1p7"; + }; + }; + }; }; &apps_rsc { @@ -276,6 +347,13 @@ vreg_s11b: smps11 { regulator-initial-mode = ; }; + vreg_s12b: smps12 { + regulator-name = "vreg_s12b"; + regulator-min-microvolt = <984000>; + regulator-max-microvolt = <984000>; + regulator-initial-mode = ; + }; + vreg_l3b: ldo3 { regulator-name = "vreg_l3b"; regulator-min-microvolt = <1200000>; @@ -304,6 +382,13 @@ regulators-1 { compatible = "qcom,pm8350c-rpmh-regulators"; qcom,pmic-id = "c"; + vreg_s1c: smps1 { + regulator-name = "vreg_s1c"; + regulator-min-microvolt = <1888000>; + regulator-max-microvolt = <1888000>; + regulator-initial-mode = ; + }; + vreg_l1c: ldo1 { regulator-name = "vreg_l1c"; regulator-min-microvolt = <1800000>; @@ -583,6 +668,23 @@ &pcie4_phy { status = "okay"; }; +&pcie4_port0 { + wifi@0 { + compatible = "pci17cb,1103"; + reg = <0x10000 0x0 0x0 0x0 0x0>; + + vddrfacmn-supply = <&vreg_pmu_rfa_cmn_0p8>; + vddaon-supply = <&vreg_pmu_aon_0p8>; + vddwlcx-supply = <&vreg_pmu_wlcx_0p8>; + vddwlmx-supply = <&vreg_pmu_wlmx_0p8>; + vddpcie1p8-supply = <&vreg_pmu_pcie_1p8>; + vddpcie0p9-supply = <&vreg_pmu_pcie_0p9>; + vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>; + vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>; + vddrfa1p8-supply = <&vreg_pmu_rfa_1p7>; + }; +}; + &pmc8280c_lpg { status = "okay"; }; @@ -829,6 +931,12 @@ reset-pins { }; }; + wlan_en: wlan-en-state { + pins = "gpio134"; + function = "gpio"; + bias-pull-down; + }; + nvme_reg_en: nvme-reg-en-state { pins = "gpio135"; function = "gpio";