From nobody Thu Nov 28 16:45:13 2024 Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (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 87DA517D358 for ; Mon, 30 Sep 2024 10:30:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727692254; cv=none; b=dqi5avd+Xm9giAxR3iVoyIXjSk9BMIwgRqSjYLNPw4dTjSrRe5Yw91WfGydQPFLMpllWAoN64uThFXgmm3WynFtCkGczvgq6PEDnWi0OhnLmzPzAVzyYBP6TST1zh7uhvlEG8pftalnRnKjNlVaF6C9th2gjZ1ZR3dbQBz9H6pI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727692254; c=relaxed/simple; bh=8Quc56uA4clP6rv8vrqIVvbO3p4pT52kel2QIZBsE/4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=j0sgsNcvAf/htQZHKHMCh+ed9cwRAocPBmtbCe79CbJdx/rO+MlCh4WyxGqSMccAUKktTIJjTlrteZ/iWvA+mq59qKoCdDuI/SOg2prxQqhSc6QzEQeNzyNUC1PQkAkAwb7rKmDJEu6VtRjgSnZ68R00MaVqr5boYL1YC1iGUO4= 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=PcGyOHFE; arc=none smtp.client-ip=209.85.221.47 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="PcGyOHFE" Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-37cdbcb139cso1847424f8f.1 for ; Mon, 30 Sep 2024 03:30:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1727692251; x=1728297051; 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=8/YmEJ9o875nfK7Wzp3gQTYg59ArmoEYegpeDMuvT4c=; b=PcGyOHFEhT/46BBIsT0CAcLVkn6rSuORSPeqV1fx71jblFpEiLTbOThMfY7P31KLrt FGtW0awbfY4Gb0lXqmdjxvHMyg2fmi0r0s+oaQ1VcFawyPFPlEzk1iVlBvQ5kUUl7KQn nTCEh32oVuPlfAcrXvxOazvOqCDBAPeIS60CoJthCzgYakMELXFKIYl6cT4Gnx4toFr3 IBLL6FHaYTLXKlk/1ZMnqlYDWDXdMfJPgL70Dicon96S5Xh8cIM94vp8LxVqmJUZ1335 szL7yHrgg311N81G83QpLZcgT4XY5gDGrf199rF66lbhEQV4mMPN7BmU46iZ1Mk+txS6 RHDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727692251; x=1728297051; 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=8/YmEJ9o875nfK7Wzp3gQTYg59ArmoEYegpeDMuvT4c=; b=b+3MGhdwX0S8fUedGU5Z7J0yRirM9SyvG6QPBWclznB2tE/qCF9DxR4WWFuuDjOb2q 8YEusMcLJG98Y/Qvc4LKsPnAPcS4H0gNfYbaCa5FkJxcvu8NV4olKjKeQ8ATgIl5xEFx EoWAFNGJZeu8+FbHCEmTEv+OLjCao+YB+IZw0RWl08I9eVq7Aez81yfvXbYHTkvZQZjn Rpr/2VeI9Y1Ecevq35xNNCnseg5116eh6eqf+U+MD0f7PDucpW4vurlX2mfXOgLbOfLZ ivoHES32+ctLUiOPangM/Fd48CX8oReW/Szjd5VSJ/JE7c19x8VR03uADFKwDJMYyh7s HGgA== X-Forwarded-Encrypted: i=1; AJvYcCX/W7Y/UuTRfK6RcgTdamHvfjoICLQeD5GzQpz2PrRzrccWS00UG9JM4LxmD8hu0PposMm2L0E+67d8ob8=@vger.kernel.org X-Gm-Message-State: AOJu0Yy8ghqoXfKUITKY6NNce3v7PA/xcSy7Dv+LKMj/6Dz57U/+VmAt s5P3b+Ra1xwvO6HKpgs4kEXXA8/9UmfjxJVPFbvqf+1RxTQJhm1JDKKdQ//5ygA= X-Google-Smtp-Source: AGHT+IEDzzlb4qi2IBa5FgjP1xeBOaZRJvU+5Y8B8sOe6ReUvlf0Lhzasd95cx6bWAbhOPXvuEqt1g== X-Received: by 2002:adf:e70e:0:b0:37c:cdb2:c057 with SMTP id ffacd0b85a97d-37cd5ad0ef6mr6852390f8f.45.1727692250746; Mon, 30 Sep 2024 03:30:50 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:dc:7e00:8791:e3e5:a9ca:31a6]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37cd55a5414sm8835051f8f.0.2024.09.30.03.30.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Sep 2024 03:30:49 -0700 (PDT) From: Bartosz Golaszewski To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kalle Valo Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov , Bartosz Golaszewski Subject: [PATCH v4 1/3] arm64: dts: qcom: sc8280xp-crd: model the PMU of the on-board wcn6855 Date: Mon, 30 Sep 2024 12:30:37 +0200 Message-ID: <20240930103041.49229-2-brgl@bgdev.pl> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240930103041.49229-1-brgl@bgdev.pl> References: <20240930103041.49229-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: quoted-printable Content-Type: text/plain; charset="utf-8" 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 | 110 ++++++++++++++++++++++ 1 file changed, 110 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts b/arch/arm64/boot/dt= s/qcom/sc8280xp-crd.dts index 6020582b0a59..28721570c59f 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; }; =20 + vreg_s10b: regulator-s10b { + compatible =3D "regulator-fixed"; + + regulator-name =3D "VREG_S10B"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + + regulator-always-on; + regulator-boot-on; + }; + vreg_wlan: regulator-wlan { compatible =3D "regulator-fixed"; =20 @@ -260,6 +271,66 @@ usb1_sbu_mux: endpoint { }; }; }; + + wcn6855-pmu { + compatible =3D "qcom,wcn6855-pmu"; + + pinctrl-0 =3D <&wlan_en>; + pinctrl-names =3D "default"; + + wlan-enable-gpios =3D <&tlmm 134 GPIO_ACTIVE_HIGH>; + + vddio-supply =3D <&vreg_s10b>; + vddaon-supply =3D <&vreg_s12b>; + vddpmu-supply =3D <&vreg_s12b>; + vddrfa0p95-supply =3D <&vreg_s12b>; + vddrfa1p3-supply =3D <&vreg_s11b>; + vddrfa1p9-supply =3D <&vreg_s1c>; + vddpcie1p3-supply =3D <&vreg_s11b>; + vddpcie1p9-supply =3D <&vreg_s1c>; + + regulators { + vreg_pmu_rfa_cmn_0p8: ldo0 { + regulator-name =3D "vreg_pmu_rfa_cmn_0p8"; + }; + + vreg_pmu_aon_0p8: ldo1 { + regulator-name =3D "vreg_pmu_aon_0p8"; + }; + + vreg_pmu_wlcx_0p8: ldo2 { + regulator-name =3D "vreg_pmu_wlcx_0p8"; + }; + + vreg_pmu_wlmx_0p8: ldo3 { + regulator-name =3D "vreg_pmu_wlmx_0p8"; + }; + + vreg_pmu_btcmx_0p8: ldo4 { + regulator-name =3D "vreg_pmu_btcmx_0p8"; + }; + + vreg_pmu_pcie_1p8: ldo5 { + regulator-name =3D "vreg_pmu_pcie_1p8"; + }; + + vreg_pmu_pcie_0p9: ldo6 { + regulator-name =3D "vreg_pmu_pcie_0p9"; + }; + + vreg_pmu_rfa_0p8: ldo7 { + regulator-name =3D "vreg_pmu_rfa_0p8"; + }; + + vreg_pmu_rfa_1p2: ldo8 { + regulator-name =3D "vreg_pmu_rfa_1p2"; + }; + + vreg_pmu_rfa_1p7: ldo9 { + regulator-name =3D "vreg_pmu_rfa_1p7"; + }; + }; + }; }; =20 &apps_rsc { @@ -276,6 +347,13 @@ vreg_s11b: smps11 { regulator-initial-mode =3D ; }; =20 + vreg_s12b: smps12 { + regulator-name =3D "vreg_s12b"; + regulator-min-microvolt =3D <984000>; + regulator-max-microvolt =3D <984000>; + regulator-initial-mode =3D ; + }; + vreg_l3b: ldo3 { regulator-name =3D "vreg_l3b"; regulator-min-microvolt =3D <1200000>; @@ -304,6 +382,13 @@ regulators-1 { compatible =3D "qcom,pm8350c-rpmh-regulators"; qcom,pmic-id =3D "c"; =20 + vreg_s1c: smps1 { + regulator-name =3D "vreg_s1c"; + regulator-min-microvolt =3D <1888000>; + regulator-max-microvolt =3D <1888000>; + regulator-initial-mode =3D ; + }; + vreg_l1c: ldo1 { regulator-name =3D "vreg_l1c"; regulator-min-microvolt =3D <1800000>; @@ -583,6 +668,25 @@ &pcie4_phy { status =3D "okay"; }; =20 +&pcie4_port0 { + wifi@0 { + compatible =3D "pci17cb,1103"; + reg =3D <0x10000 0x0 0x0 0x0 0x0>; + + vddrfacmn-supply =3D <&vreg_pmu_rfa_cmn_0p8>; + vddaon-supply =3D <&vreg_pmu_aon_0p8>; + vddwlcx-supply =3D <&vreg_pmu_wlcx_0p8>; + vddwlmx-supply =3D <&vreg_pmu_wlmx_0p8>; + vddpcie1p8-supply =3D <&vreg_pmu_pcie_1p8>; + vddpcie0p9-supply =3D <&vreg_pmu_pcie_0p9>; + vddrfa0p8-supply =3D <&vreg_pmu_rfa_0p8>; + vddrfa1p2-supply =3D <&vreg_pmu_rfa_1p2>; + vddrfa1p8-supply =3D <&vreg_pmu_rfa_1p7>; + + qcom,ath11k-calibration-variant =3D "QC_8280XP_CRD"; + }; +}; + &pmc8280c_lpg { status =3D "okay"; }; @@ -829,6 +933,12 @@ reset-pins { }; }; =20 + wlan_en: wlan-en-state { + pins =3D "gpio134"; + function =3D "gpio"; + bias-pull-down; + }; + nvme_reg_en: nvme-reg-en-state { pins =3D "gpio135"; function =3D "gpio"; --=20 2.30.2 From nobody Thu Nov 28 16:45:13 2024 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (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 63DB318BB9E for ; Mon, 30 Sep 2024 10:30:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727692256; cv=none; b=WT4MAymr0XJnFl6THyc+WNfUhwUnNYUVAljDusrM3SY18BgWXN1+mYt/wWvIdAAwrjLDEbKzwAlQBWIeYJC5gbmAq8CGUV9EIM765VhauTU/ObdEsbRyT7DZPcy9qfqLeldPeE4bo5rncuJqZ680k/uhv2ToGHDfqn9awfMV9q4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727692256; c=relaxed/simple; bh=z4OTCnuC4b/PxGRdBA3ScXQQSanWoNuzXbQ0PxFnuUQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=IxEJEMEnv+yW7SDqJISyDe+Cd5pj6EpPbXcX4gQga30mGzqkQhYwe/Cs5WWrsTVhSJ1tj6jt9oFhWCG2zhkSyd3opDkbHtxAGoFTnxB86KbuCGS9R1o3Yz6iZMA6GCmTb37iHJ6XhM/oYH7KmEYv+mCsbiAI5/4OgwJpoGoearc= 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=OVCf6QhK; arc=none smtp.client-ip=209.85.221.49 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="OVCf6QhK" Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-37cea34cb57so420228f8f.0 for ; Mon, 30 Sep 2024 03:30:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1727692253; x=1728297053; 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=dLuE6Kt3jND6zsj6ih54O9B6soObllB8kH8sl+QVpiI=; b=OVCf6QhKTLAdNzd8HdV5KeHnLpHIqD1knVHgWYwQE6J6kQVoGKN8g/ZMh/LahLAu7S +gBZ4x5AJV+8raE+W8KFS+6wyq78Bg+jsk1TFQ4KypCy/Gt0DQVuQYAu/WayxqbmtxR0 T0eo+OuWmL1LgMSLhbZe1FTtxONcA6UTbDQeKvzGcHJMW/N6Em8an5YjEFLnuKXs/U36 afkBd24LAocZujuhvK1egATnI8OGI20JDvhzp98VwBZIebw3jbuJ60tIVR7eGdt8Qz5f 4Yml/fYUMy+xAR9QHE0r4u5NOD4gzAU1HwuQfyJcbsFSj6hkto9NJ5inCsiSF+t2Hnlg XXkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727692253; x=1728297053; 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=dLuE6Kt3jND6zsj6ih54O9B6soObllB8kH8sl+QVpiI=; b=F0E59u11B6ZxaCY5cT3JP1xX1a4zyO5GkUxSgmJg8ZWoln02CSL5B6uH9/yaWc7kIK M7bknj57FQ8uPRvO+LZxoHjwfbu0RLPZtiRQDkJfbF+Fsdh45nYiAbiv4Wb9R+Nb7bd9 S1Jo2VL3SPH/LWQmJxf8HfPMnZCUz4xmVAdqoyFAR9GmT6D76nakSnbwIAJqdSzB0ERS TTREfoafkbosvgVPK9TUp1ZZaUFP+sxm5su193VDmDsSmnEcxjBRthN0CQL6osxrdH0a Cfw//6K2jOJogsJBFNVBPfXgDZ6v8NMdpGqUi8YUlO/27J/5EvwCBLR3UwUGkkC3QZG2 Skcg== X-Forwarded-Encrypted: i=1; AJvYcCXn5HfAbH6jl6qCA4JWo03QRJci7d8+aVx6jvrY7nhYGtEuajXq4nBYN+SfJxMl6OKbFM1qU0RkxmlFgSY=@vger.kernel.org X-Gm-Message-State: AOJu0YzmtNYVLikpxKAHQeRL+Es/vxaLdXHu5vo7g1DA5Njn4N4Qv38I azMjMmiq0GsUfBFU74toxFjCeIIpspu8FEwAL5kiLAKw/NDiOMxkvgioSjE09ag= X-Google-Smtp-Source: AGHT+IGj28uwxU/n46idJB00cek8od4LkzHfcNT5QP/eTd8Cm3jw+UKDEVe4rhhl1exsV4JnemjLYA== X-Received: by 2002:a5d:420d:0:b0:37c:ccbe:39aa with SMTP id ffacd0b85a97d-37cd5b1088fmr6148057f8f.49.1727692252722; Mon, 30 Sep 2024 03:30:52 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:dc:7e00:8791:e3e5:a9ca:31a6]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37cd55a5414sm8835051f8f.0.2024.09.30.03.30.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Sep 2024 03:30:51 -0700 (PDT) From: Bartosz Golaszewski To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kalle Valo Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski , Dmitry Baryshkov Subject: [PATCH v4 2/3] arm64: dts: qcom: sc8280xp-crd: enable bluetooth Date: Mon, 30 Sep 2024 12:30:38 +0200 Message-ID: <20240930103041.49229-3-brgl@bgdev.pl> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240930103041.49229-1-brgl@bgdev.pl> References: <20240930103041.49229-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: quoted-printable Content-Type: text/plain; charset="utf-8" From: Bartosz Golaszewski Add the bluetooth node for sc8280xp-crd and make it consume the outputs from the PMU as per the new DT bindings contract. Reviewed-by: Dmitry Baryshkov Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sc8280xp-crd.dts | 60 ++++++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts b/arch/arm64/boot/dt= s/qcom/sc8280xp-crd.dts index 28721570c59f..109d7cc5ee4a 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-crd.dts @@ -20,6 +20,7 @@ aliases { i2c4 =3D &i2c4; i2c21 =3D &i2c21; serial0 =3D &uart17; + serial1 =3D &uart2; }; =20 backlight: backlight { @@ -275,10 +276,11 @@ usb1_sbu_mux: endpoint { wcn6855-pmu { compatible =3D "qcom,wcn6855-pmu"; =20 - pinctrl-0 =3D <&wlan_en>; + pinctrl-0 =3D <&bt_en>, <&wlan_en>; pinctrl-names =3D "default"; =20 wlan-enable-gpios =3D <&tlmm 134 GPIO_ACTIVE_HIGH>; + bt-enable-gpios =3D <&tlmm 133 GPIO_ACTIVE_HIGH>; =20 vddio-supply =3D <&vreg_s10b>; vddaon-supply =3D <&vreg_s12b>; @@ -747,6 +749,27 @@ &sdc2 { status =3D "okay"; }; =20 +&uart2 { + pinctrl-0 =3D <&uart2_default>; + pinctrl-names =3D "default"; + + status =3D "okay"; + + bluetooth { + compatible =3D "qcom,wcn6855-bt"; + + vddrfacmn-supply =3D <&vreg_pmu_rfa_cmn_0p8>; + vddaon-supply =3D <&vreg_pmu_aon_0p8>; + vddwlcx-supply =3D <&vreg_pmu_wlcx_0p8>; + vddwlmx-supply =3D <&vreg_pmu_wlmx_0p8>; + vddbtcmx-supply =3D <&vreg_pmu_btcmx_0p8>; + vddrfa0p8-supply =3D <&vreg_pmu_rfa_0p8>; + vddrfa1p2-supply =3D <&vreg_pmu_rfa_1p2>; + vddrfa1p8-supply =3D <&vreg_pmu_rfa_1p7>; + }; +}; + + &uart17 { compatible =3D "qcom,geni-debug-uart"; =20 @@ -892,6 +915,13 @@ hastings_reg_en: hastings-reg-en-state { &tlmm { gpio-reserved-ranges =3D <74 6>, <83 4>, <125 2>, <128 2>, <154 7>; =20 + bt_en: bt-en-state { + pins =3D "gpio133"; + function =3D "gpio"; + drive-strength =3D <16>; + bias-disable; + }; + edp_reg_en: edp-reg-en-state { pins =3D "gpio25"; function =3D "gpio"; @@ -1091,6 +1121,34 @@ reset-n-pins { }; }; =20 + uart2_default: uart2-default-state { + cts-pins { + pins =3D "gpio121"; + function =3D "qup2"; + bias-bus-hold; + }; + + rts-pins { + pins =3D "gpio122"; + function =3D "qup2"; + drive-strength =3D <2>; + bias-disable; + }; + + rx-pins { + pins =3D "gpio124"; + function =3D "qup2"; + bias-pull-up; + }; + + tx-pins { + pins =3D "gpio123"; + function =3D "qup2"; + drive-strength =3D <2>; + bias-disable; + }; + }; + usb0_sbu_default: usb0-sbu-state { oe-n-pins { pins =3D "gpio101"; --=20 2.30.2 From nobody Thu Nov 28 16:45:13 2024 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (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 49BF918CBEF for ; Mon, 30 Sep 2024 10:30:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727692259; cv=none; b=l34aXo/rcYOHGveAe3LIaTGcJ0/kXkf9qugRvZ3LfWc4zCNf81aCspUW6Gu1DjwJ9y3VhJSAKADRO6X6xhQDMsDrkKRYEDCt2u9QzLmzzSFvW3zR5Td9x1tmkhLQY49KdBg7yMzeNz0BIHOA+Sva5QJP9oLfU4xZ06UL6v+EVIY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727692259; c=relaxed/simple; bh=XqjaR/d+4nA4AF+LZTpoGqHhkUJy91Jwj67qG0Wq6ho=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rEIpLH60gqmEZhGf2rMlEX952ianUxZeUiTxaFiJUx8QW7dnAdU/HRvrU2NK0MHYBSipkwHX2CdjXCsoMZkiKHilHjQXlayiJwCtw1hFMVdZjhseVRLMlLXe/TJxhfi95wlhnZNm/ULPk2lrkX+LISICYzLLuv3UNVQiLemTLMQ= 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=uABbopjg; arc=none smtp.client-ip=209.85.221.54 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="uABbopjg" Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-37cce5b140bso2725898f8f.3 for ; Mon, 30 Sep 2024 03:30:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1727692255; x=1728297055; 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=GW/QJNJ8nNrd40FA3cHMy88AWtEH7wB7y90tYnC9J0E=; b=uABbopjgU3TU22EVUdZgwKgeeTdkJmVxWGCmndtiBemCcIGDGE5JV/WDqG9ACbxmgZ 2e3ARk5ltRmOgpsNTuxMRKLk/Dm0UvyaJCWXFCkrscPGUrJkBoOumFejGiXhKDnsjVc3 m0LB8ZIymOcuJS13NWl838sTXeoiCmXLxY8kyUWYxp80XabSkZz/fdZg+ueGNuEhtsCx TpZFdzDxFr3Z3nfzvvYxEWH1EsjFoO/plKQxfcZY+jwBmjM/JDdkOv8e/5nqEjHjbGIf +lg8TP0tzMWalOmGgvr7/E8Bk6US6fD1GvlyXKfO7cX01BeJrvzWxAzmqVqRad7NFdyd P6Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727692255; x=1728297055; 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=GW/QJNJ8nNrd40FA3cHMy88AWtEH7wB7y90tYnC9J0E=; b=d+vKlsooaf6sMODu+C9BIXip4CPvngkUygZ/H+zqXEZ72uCaSjXfq1LHm2tlrULk99 OnChU106b+2ATClv+aKIFGyVo1aCmh9Bj+m4pnMOYeHpYlDnoUV9Dqwi6ClK8GHlTmDe tzTUX9MkpBRo/a0aeZvIXbwFXvTat+ylVD446Tnz/2GpvDDU0LnIV2c4dKrfVohXZ7Ow Own8WdSoNlicUTQWy9EjEl921jpLjv0EdxKalAW2y5yFQ1TQgXQmgfUT9sFjprBp1buT bAzDjSACZPFJRrcJJXSSD6x7sY1ggn0e4SZjbtqBgRKRjFvoWPf7lgNVhZPbbQ8UuZWt lGZg== X-Forwarded-Encrypted: i=1; AJvYcCW3cSENQ+nVg2Ang141gZi0F7JUPopJosqS+qJbrfcdiwowx1qPtaB2oajclFe3LothlLh49q8f0Jmb50c=@vger.kernel.org X-Gm-Message-State: AOJu0Yz0tKDrk2LSQ+W480PPdyEID5E6uXVw087pkVrbMc8DlXewrFWZ be+MQws6IEDx681yizQpniMRjI5oDVwcpi5F5xYp4vJWWYIWhQ1uzXOp9TzT1Ww= X-Google-Smtp-Source: AGHT+IFT/KiDXB2vyRF0VhSogHyTD4Xzls+HpKnh4lVIK6Ax8vju52xL/HVQuWpE1ertMMwB1PhjVQ== X-Received: by 2002:a5d:6791:0:b0:37c:d001:856d with SMTP id ffacd0b85a97d-37cd5b106d5mr6051416f8f.42.1727692254562; Mon, 30 Sep 2024 03:30:54 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:dc:7e00:8791:e3e5:a9ca:31a6]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37cd55a5414sm8835051f8f.0.2024.09.30.03.30.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Sep 2024 03:30:53 -0700 (PDT) From: Bartosz Golaszewski To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kalle Valo Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski , Steev Klimaszewski Subject: [PATCH v4 3/3] arm64: dts: qcom: sc8280xp-x13s: model the PMU of the on-board wcn6855 Date: Mon, 30 Sep 2024 12:30:39 +0200 Message-ID: <20240930103041.49229-4-brgl@bgdev.pl> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240930103041.49229-1-brgl@bgdev.pl> References: <20240930103041.49229-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: quoted-printable Content-Type: text/plain; charset="utf-8" From: Bartosz Golaszewski Add a node for the PMU of the WCN6855 and rework the inputs of the wifi and bluetooth nodes to consume the PMU's outputs. With this we can drop the regulator-always-on properties from vreg_s11b and vreg_s12b as they will now be enabled by the power sequencing driver. Tested-by: Steev Klimaszewski # Thinkpad X13s Signed-off-by: Bartosz Golaszewski --- .../qcom/sc8280xp-lenovo-thinkpad-x13s.dts | 100 +++++++++++++++--- 1 file changed, 86 insertions(+), 14 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts b/a= rch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts index 6a28cab97189..7230d5420199 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts +++ b/arch/arm64/boot/dts/qcom/sc8280xp-lenovo-thinkpad-x13s.dts @@ -400,6 +400,67 @@ usb1_sbu_mux: endpoint { }; }; }; + + wcn6855-pmu { + compatible =3D "qcom,wcn6855-pmu"; + + pinctrl-0 =3D <&bt_default>, <&wlan_en>; + pinctrl-names =3D "default"; + + wlan-enable-gpios =3D <&tlmm 134 GPIO_ACTIVE_HIGH>; + bt-enable-gpios =3D <&tlmm 133 GPIO_ACTIVE_HIGH>; + + vddio-supply =3D <&vreg_s10b>; + vddaon-supply =3D <&vreg_s12b>; + vddpmu-supply =3D <&vreg_s12b>; + vddrfa0p95-supply =3D <&vreg_s12b>; + vddrfa1p3-supply =3D <&vreg_s11b>; + vddrfa1p9-supply =3D <&vreg_s1c>; + vddpcie1p3-supply =3D <&vreg_s11b>; + vddpcie1p9-supply =3D <&vreg_s1c>; + + regulators { + vreg_pmu_rfa_cmn_0p8: ldo0 { + regulator-name =3D "vreg_pmu_rfa_cmn_0p8"; + }; + + vreg_pmu_aon_0p8: ldo1 { + regulator-name =3D "vreg_pmu_aon_0p8"; + }; + + vreg_pmu_wlcx_0p8: ldo2 { + regulator-name =3D "vreg_pmu_wlcx_0p8"; + }; + + vreg_pmu_wlmx_0p8: ldo3 { + regulator-name =3D "vreg_pmu_wlmx_0p8"; + }; + + vreg_pmu_btcmx_0p8: ldo4 { + regulator-name =3D "vreg_pmu_btcmx_0p8"; + }; + + vreg_pmu_pcie_1p8: ldo5 { + regulator-name =3D "vreg_pmu_pcie_1p8"; + }; + + vreg_pmu_pcie_0p9: ldo6 { + regulator-name =3D "vreg_pmu_pcie_0p9"; + }; + + vreg_pmu_rfa_0p8: ldo7 { + regulator-name =3D "vreg_pmu_rfa_0p8"; + }; + + vreg_pmu_rfa_1p2: ldo8 { + regulator-name =3D "vreg_pmu_rfa_1p2"; + }; + + vreg_pmu_rfa_1p7: ldo9 { + regulator-name =3D "vreg_pmu_rfa_1p7"; + }; + }; + }; }; =20 &apps_rsc { @@ -426,7 +487,6 @@ vreg_s11b: smps11 { regulator-min-microvolt =3D <1272000>; regulator-max-microvolt =3D <1272000>; regulator-initial-mode =3D ; - regulator-always-on; }; =20 vreg_s12b: smps12 { @@ -434,7 +494,6 @@ vreg_s12b: smps12 { regulator-min-microvolt =3D <984000>; regulator-max-microvolt =3D <984000>; regulator-initial-mode =3D ; - regulator-always-on; }; =20 vreg_l1b: ldo1 { @@ -927,6 +986,16 @@ wifi@0 { compatible =3D "pci17cb,1103"; reg =3D <0x10000 0x0 0x0 0x0 0x0>; =20 + vddrfacmn-supply =3D <&vreg_pmu_rfa_cmn_0p8>; + vddaon-supply =3D <&vreg_pmu_aon_0p8>; + vddwlcx-supply =3D <&vreg_pmu_wlcx_0p8>; + vddwlmx-supply =3D <&vreg_pmu_wlmx_0p8>; + vddpcie1p8-supply =3D <&vreg_pmu_pcie_1p8>; + vddpcie0p9-supply =3D <&vreg_pmu_pcie_0p9>; + vddrfa0p8-supply =3D <&vreg_pmu_rfa_0p8>; + vddrfa1p2-supply =3D <&vreg_pmu_rfa_1p2>; + vddrfa1p8-supply =3D <&vreg_pmu_rfa_1p7>; + qcom,ath11k-calibration-variant =3D "LE_X13S"; }; }; @@ -1258,20 +1327,16 @@ &uart2 { bluetooth { compatible =3D "qcom,wcn6855-bt"; =20 - vddio-supply =3D <&vreg_s10b>; - vddbtcxmx-supply =3D <&vreg_s12b>; - vddrfacmn-supply =3D <&vreg_s12b>; - vddrfa0p8-supply =3D <&vreg_s12b>; - vddrfa1p2-supply =3D <&vreg_s11b>; - vddrfa1p7-supply =3D <&vreg_s1c>; + vddrfacmn-supply =3D <&vreg_pmu_rfa_cmn_0p8>; + vddaon-supply =3D <&vreg_pmu_aon_0p8>; + vddwlcx-supply =3D <&vreg_pmu_wlcx_0p8>; + vddwlmx-supply =3D <&vreg_pmu_wlmx_0p8>; + vddbtcmx-supply =3D <&vreg_pmu_btcmx_0p8>; + vddrfa0p8-supply =3D <&vreg_pmu_rfa_0p8>; + vddrfa1p2-supply =3D <&vreg_pmu_rfa_1p2>; + vddrfa1p8-supply =3D <&vreg_pmu_rfa_1p7>; =20 max-speed =3D <3200000>; - - enable-gpios =3D <&tlmm 133 GPIO_ACTIVE_HIGH>; - swctrl-gpios =3D <&tlmm 132 GPIO_ACTIVE_HIGH>; - - pinctrl-0 =3D <&bt_default>; - pinctrl-names =3D "default"; }; }; =20 @@ -1761,4 +1826,11 @@ reset-pins { bias-disable; }; }; + + wlan_en: wlan-en-state { + pins =3D "gpio134"; + function =3D "gpio"; + drive-strength =3D <8>; + bias-pull-down; + }; }; --=20 2.30.2