From patchwork Wed Dec 4 12:26:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maud Spierings via B4 Relay X-Patchwork-Id: 13893656 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7B2E91B87F8; Wed, 4 Dec 2024 12:27:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733315236; cv=none; b=GqxubPvzvEdGjiwhVvuRpAPf/b4lj7/F44VGtGTaTObopa7GYDZooTKam6hk7sxWUwTB8U6gpeMes9WqmuzcZhbQpwQBEpoPvkoqNXZO9c9Sv7H0IkhjFPo7J3wGWYFXYex2RXXvQODF0kP+DEEbYnhtRreCadQpRoHEqNODSH8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733315236; c=relaxed/simple; bh=KQEwRGzVH6Guq7P9oNNRzHriyf5ebfsDPTck4Xq685Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=E2Hn1VMAJEWsmb3Jj7aRSAl1RhzlAm++JKggZ6s4Lh7LAN5MTZgi8hcGuq6ucF3SqU9GWvn1rDT2LYEugU7XsbRKcVyZ8fTdSPtuS3jlIVyykt1lrTLdh8zkOdgLSjTi7MqU+yHoH/a1wiZ9yelp2S/zGjvnD8/je+nDHIK8ME4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MJUZT5nx; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MJUZT5nx" Received: by smtp.kernel.org (Postfix) with ESMTPS id 50A44C4CEE1; Wed, 4 Dec 2024 12:27:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733315236; bh=KQEwRGzVH6Guq7P9oNNRzHriyf5ebfsDPTck4Xq685Q=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=MJUZT5nxEINyp/XN+HeUlRl90jts+RL99KAnp2TGuEuJJ6wJhZnOHo1b5iuaHSARW fi5ZPX97UxRUbLKwVReDNoLZBD6nwgwetFM4ZLAvlgPyIPYR/2XvptVJmxgg008LLS /JchyMR9k6v3A3h4KN96G2FmBZ4A4Laid2f+jR/AVc791nhCnsSE6SXemVB22YERKE TLs2e2Yma/D3kkdbO+iFyox8oiWYFJQuHv+0kGrcMpriRR7w8tr+blGVcgcCkcD8oQ WPJJxOBGjbKrPKss0aDPElTD4QchnfUO52AGvXhmrmt0AllwLY6YtvGpm1agHy9GkF ngDyFlzdz/WGw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37336E7716B; Wed, 4 Dec 2024 12:27:16 +0000 (UTC) From: Maud Spierings via B4 Relay Date: Wed, 04 Dec 2024 13:26:37 +0100 Subject: [PATCH v6 1/3] arm64: dts: qcom: x1e80100-vivobook-s15: Use the samsung,atna33xc20 panel driver Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241204-asus_qcom_display-v6-1-91079cd8234e@hotmail.com> References: <20241204-asus_qcom_display-v6-0-91079cd8234e@hotmail.com> In-Reply-To: <20241204-asus_qcom_display-v6-0-91079cd8234e@hotmail.com> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Johan Hovold Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , Maud Spierings X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733315235; l=1761; i=maud_spierings@hotmail.com; s=20241110; h=from:subject:message-id; bh=2plrXoM2oHD6ge2JBJBJrVaTYK/6c0XEQaFkS7h2S9s=; b=GCoUf+wme21lJ7gKtzW4klH/UMu4volNQo+Byt34+ICLXhmWrwG2SQiJ08tDg2Cn45ekTmKtG MRLof8zJvmwB6H9zDIeiuH9q/zCqhAjvTM5gtsP/dOdy1bQHy3jFEO7 X-Developer-Key: i=maud_spierings@hotmail.com; a=ed25519; pk=CeFKVnZvRfX2QjB1DpdiAe2N+MEjwLEB9Yhx/OAcxRc= X-Endpoint-Received: by B4 Relay for maud_spierings@hotmail.com/20241110 with auth_id=273 X-Original-From: Maud Spierings Reply-To: maud_spierings@hotmail.com From: Maud Spierings The Asus vivobook s15 uses the ATNA56AC03 panel. This panel is controlled by the atna33xc20 driver instead of the generic edp-panel driver Reviewed-by: Konrad Dybcio Signed-off-by: Maud Spierings --- .../boot/dts/qcom/x1e80100-asus-vivobook-s15.dts | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts b/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts index f25991b887de3fca0092c5f81c881c5d8bd71aac..d909167dc7119fba56e0240f6f24fd1a803fa94c 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts @@ -8,6 +8,7 @@ #include #include +#include #include "x1e80100.dtsi" #include "x1e80100-pmics.dtsi" @@ -407,9 +408,13 @@ &mdss_dp3 { aux-bus { panel { - compatible = "edp-panel"; + compatible = "samsung,atna56ac03", "samsung,atna33xc20"; + enable-gpios = <&pmc8380_3_gpios 4 GPIO_ACTIVE_HIGH>; power-supply = <&vreg_edp_3p3>; + pinctrl-0 = <&edp_bl_en>; + pinctrl-names = "default"; + port { edp_panel_in: endpoint { remote-endpoint = <&mdss_dp3_out>; @@ -475,6 +480,18 @@ &pcie6a_phy { status = "okay"; }; +&pmc8380_3_gpios { + edp_bl_en: edp-bl-en-state { + pins = "gpio4"; + function = "normal"; + power-source = <1>; /* 1.8 V */ + qcom,drive-strength = ; + bias-pull-down; + input-disable; + output-enable; + }; +}; + &qupv3_0 { status = "okay"; }; From patchwork Wed Dec 4 12:26:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maud Spierings via B4 Relay X-Patchwork-Id: 13893658 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C329B1CD1ED; Wed, 4 Dec 2024 12:27:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733315236; cv=none; b=nBIbCh6sOlKrKA3bJP9VPK4dUuU2icKWHaxt/myQswwZbkB+IM4H7EpusnV0+e001sk/omnMdVGcDU4o8vRs8UIZhyaV6ut/ZgsZ8VFZY34yOPcKsoBC61gq3spf/yvrTgfGEoSTEUd+dLAarFJuQpTf9QuyJ1M80IAnObxVGdQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733315236; c=relaxed/simple; bh=veOjOT3iEd6VMjm8v/gKMHePK0b17+jLJcqBAMqKg3Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HkMj6eK1GaC2T9V7esSRNBVMGQ+lbLHs+f+6dFuiiHvGF2yQ8CVZl2T3wxJqCJU3IkQ9ytKjCrTs16Yn4LfIhJ5JTmVTOt2wxsA4F77LuV2UUwBGI0LrgrrhLYnOeJL72N64wNaSF73Thn+mOhFHIELPPe2EkNNaBMHubLJF5CE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=cvK7kZXq; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="cvK7kZXq" Received: by smtp.kernel.org (Postfix) with ESMTPS id 61D8EC4CED2; Wed, 4 Dec 2024 12:27:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733315236; bh=veOjOT3iEd6VMjm8v/gKMHePK0b17+jLJcqBAMqKg3Y=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=cvK7kZXq3yTNtmgtBc+nJtvGW8WCPyeXofanDlduXedNIjgwcNitOvjyZhm8mPri6 WToy6UnkuxLkf0X+AvYlz9Hi7HfxIyFTFb7iGo/qAY8CD1Xq+FqMkJeA12BIEgTbHS 87x4+SAgfnWs1ik3Emq5z94kYAhwkpspvmerdbCokhbPWcG+V0FVLsIxVwm7afpd+u BU9slwNhR7H0ASOuiTJUUP1marO7t2NzuXFa3hbo2J4LmXThL0MAt+MxkspyWF+Cig XHyYmnHu5IzCiAiwSdTDchxa+bPsxpiooRrhSzaT6kjRsSVMnRmM/kFG4s7svVQXCb 9HPbI2n2hl/3Q== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 53DBDE77170; Wed, 4 Dec 2024 12:27:16 +0000 (UTC) From: Maud Spierings via B4 Relay Date: Wed, 04 Dec 2024 13:26:38 +0100 Subject: [PATCH v6 2/3] arm64: dts: qcom: x1e80100-vivobook-s15: Add lid switch Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241204-asus_qcom_display-v6-2-91079cd8234e@hotmail.com> References: <20241204-asus_qcom_display-v6-0-91079cd8234e@hotmail.com> In-Reply-To: <20241204-asus_qcom_display-v6-0-91079cd8234e@hotmail.com> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Johan Hovold Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , Maud Spierings X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733315235; l=1682; i=maud_spierings@hotmail.com; s=20241110; h=from:subject:message-id; bh=0B52a4aN6AtF5Fhm9CoQyjjWWNFyLW5DlJvH60vGtGk=; b=lEH4/pK8h+ZNPl1j9/+PElwRI9vgvmHWrPYbMbLZ7uQxn22XKDKO836Uh5tw8t34LagsqrBzM V/IE/5xy/YiBBynGdoWiGKWD6xtdPUJSi1GLpFPFFV9dbh6431WPh25 X-Developer-Key: i=maud_spierings@hotmail.com; a=ed25519; pk=CeFKVnZvRfX2QjB1DpdiAe2N+MEjwLEB9Yhx/OAcxRc= X-Endpoint-Received: by B4 Relay for maud_spierings@hotmail.com/20241110 with auth_id=273 X-Original-From: Maud Spierings Reply-To: maud_spierings@hotmail.com From: Maud Spierings Add the lid switch for the Asus vivobook s15 Reviewed-by: Konrad Dybcio Signed-off-by: Maud Spierings --- .../boot/dts/qcom/x1e80100-asus-vivobook-s15.dts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts b/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts index d909167dc7119fba56e0240f6f24fd1a803fa94c..ba52c0eef4e32019f6eb7c7ae3c4cd727df23490 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts @@ -7,6 +7,7 @@ /dts-v1/; #include +#include #include #include @@ -18,6 +19,20 @@ / { compatible = "asus,vivobook-s15", "qcom,x1e80100"; chassis-type = "laptop"; + gpio-keys { + compatible = "gpio-keys"; + pinctrl-0 = <&hall_int_n_default>; + pinctrl-names = "default"; + + switch-lid { + gpios = <&tlmm 92 GPIO_ACTIVE_LOW>; + linux,input-type = ; + linux,code = ; + wakeup-source; + wakeup-event-action = ; + }; + }; + pmic-glink { compatible = "qcom,x1e80100-pmic-glink", "qcom,sm8550-pmic-glink", @@ -540,6 +555,12 @@ edp_reg_en: edp-reg-en-state { bias-disable; }; + hall_int_n_default: hall-int-n-state { + pins = "gpio92"; + function = "gpio"; + bias-disable; + }; + kybd_default: kybd-default-state { pins = "gpio67"; function = "gpio"; From patchwork Wed Dec 4 12:26:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maud Spierings via B4 Relay X-Patchwork-Id: 13893659 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C32431CD1EA; Wed, 4 Dec 2024 12:27:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733315236; cv=none; b=DzgKrFzIEPK4+wWJnkTQBiS1IxxL91Jgus2G5D0suBACN20OHjxOC8aAorGNyuxslHY7dlZgxUWF2vciQSGO3tWIDYDBidPeawl4N5c4/Tn13eMwH+TpPX+Uc2bz1Ma+9AdhyJhLmvzVF/lIuZ+dMg4MhrofK4XLPOiRRoxpnhI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733315236; c=relaxed/simple; bh=UxizGPyiKooAv1o2lgGxygM1OJg+7KaIJs+QdQqJngE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EhmV74ZjKsQ9oYnN1N5llPBaDB0zXbC719TuxKtE+D1MjFr9mvLW/lhI874XwaV90JKu5qbz3RPapvElroMocsr3EOgwYbuoQbJPeiTXk7PHaa+2SmIowWq59GOpTppK23OpaXjglACA26lt7dX7Q05tN7TQMUu3qeuePpPFYOM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TEg+sV1R; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TEg+sV1R" Received: by smtp.kernel.org (Postfix) with ESMTPS id 734B2C4CEE5; Wed, 4 Dec 2024 12:27:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733315236; bh=UxizGPyiKooAv1o2lgGxygM1OJg+7KaIJs+QdQqJngE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=TEg+sV1Rb4Ibip2EhkX2eVJvOErSBta1V+8g+RV0GIwXuD1Wn3ocDQa3DO9av4xNE EFllm7ni2UWBjQwP9jQQGtut5o82He49+QuhVDOdIATFzaAqrHhzegemu2o1ebAVc6 lmsSpOJ/e3wA61e5/fabaHIbLCl2MK9BtJO3qEjm8uq37jw9LVYW06lrN1FvobQnI+ BysOtr+Xolzdulk0DGkGOUV1wGRrT8RPCFsRkipDCCHD5hQRPceaeTrt2xe98BcOik /wMeKQbLHn3DfZsPY711R56dFJt52Z1yWS8LBIFSWEsQcwjyZT6xCpsLJOuRm0TN/f PibELoDUPGW5Q== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 669BAE7716E; Wed, 4 Dec 2024 12:27:16 +0000 (UTC) From: Maud Spierings via B4 Relay Date: Wed, 04 Dec 2024 13:26:39 +0100 Subject: [PATCH v6 3/3] arm64: dts: qcom: x1e80100-vivobook-s15: Add bluetooth Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241204-asus_qcom_display-v6-3-91079cd8234e@hotmail.com> References: <20241204-asus_qcom_display-v6-0-91079cd8234e@hotmail.com> In-Reply-To: <20241204-asus_qcom_display-v6-0-91079cd8234e@hotmail.com> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Johan Hovold Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov , Maud Spierings X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733315235; l=5300; i=maud_spierings@hotmail.com; s=20241110; h=from:subject:message-id; bh=dNILjRbnJ8l6wI0B1HRe9YcN+zM+h5wgYgzS1Wi5B5M=; b=aM0ecy6evLFXeJloga0iyZRezMHEVmKFBahslAuBGck1N0Y3PWE/9xEn99TYyqYiDEWXDmoOM XEetiJgeBUSAfienYwLcbFaL2anaZ+KaI+PPqvyqH6QfB+FAMmhaQFW X-Developer-Key: i=maud_spierings@hotmail.com; a=ed25519; pk=CeFKVnZvRfX2QjB1DpdiAe2N+MEjwLEB9Yhx/OAcxRc= X-Endpoint-Received: by B4 Relay for maud_spierings@hotmail.com/20241110 with auth_id=273 X-Original-From: Maud Spierings Reply-To: maud_spierings@hotmail.com From: Maud Spierings Add bluetooth for the asus vivobook s15 Describe wlan configuration Reviewed-by: Dmitry Baryshkov Signed-off-by: Maud Spierings Acked-by: Konrad Dybcio --- .../boot/dts/qcom/x1e80100-asus-vivobook-s15.dts | 161 +++++++++++++++++++++ 1 file changed, 161 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts b/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts index ba52c0eef4e32019f6eb7c7ae3c4cd727df23490..6564386e92e5c8c08ae2807ba512f83537358cf5 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts @@ -19,6 +19,10 @@ / { compatible = "asus,vivobook-s15", "qcom,x1e80100"; chassis-type = "laptop"; + aliases { + serial1 = &uart14; + }; + gpio-keys { compatible = "gpio-keys"; pinctrl-0 = <&hall_int_n_default>; @@ -153,6 +157,101 @@ vph_pwr: regulator-vph-pwr { regulator-always-on; regulator-boot-on; }; + + vreg_wcn_0p95: regulator-wcn-0p95 { + compatible = "regulator-fixed"; + + regulator-name = "VREG_WCN_0P95"; + regulator-min-microvolt = <950000>; + regulator-max-microvolt = <950000>; + + vin-supply = <&vreg_wcn_3p3>; + }; + + vreg_wcn_1p9: regulator-wcn-1p9 { + compatible = "regulator-fixed"; + + regulator-name = "VREG_WCN_1P9"; + regulator-min-microvolt = <1900000>; + regulator-max-microvolt = <1900000>; + + vin-supply = <&vreg_wcn_3p3>; + }; + + vreg_wcn_3p3: regulator-wcn-3p3 { + compatible = "regulator-fixed"; + + regulator-name = "VREG_WCN_3P3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + + gpio = <&tlmm 214 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-0 = <&wcn_sw_en>; + pinctrl-names = "default"; + + regulator-boot-on; + }; + + wcn7850-pmu { + compatible = "qcom,wcn7850-pmu"; + + vdd-supply = <&vreg_wcn_0p95>; + vddio-supply = <&vreg_l15b_1p8>; + vddaon-supply = <&vreg_wcn_0p95>; + vdddig-supply = <&vreg_wcn_0p95>; + vddrfa1p2-supply = <&vreg_wcn_1p9>; + vddrfa1p8-supply = <&vreg_wcn_1p9>; + + wlan-enable-gpios = <&tlmm 117 GPIO_ACTIVE_HIGH>; + bt-enable-gpios = <&tlmm 116 GPIO_ACTIVE_HIGH>; + + pinctrl-0 = <&wcn_wlan_en>, <&wcn_bt_en>; + pinctrl-names = "default"; + + 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 { @@ -198,6 +297,13 @@ vreg_l14b_3p0: ldo14 { regulator-max-microvolt = <3072000>; regulator-initial-mode = ; }; + + vreg_l15b_1p8: ldo15 { + regulator-name = "vreg_l15b_1p8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-initial-mode = ; + }; }; regulators-1 { @@ -476,6 +582,23 @@ &pcie4_phy { status = "okay"; }; +&pcie4_port0 { + wifi@0 { + compatible = "pci17cb,1107"; + reg = <0x10000 0x0 0x0 0x0 0x0>; + + vddaon-supply = <&vreg_pmu_aon_0p59>; + vddwlcx-supply = <&vreg_pmu_wlcx_0p8>; + vddwlmx-supply = <&vreg_pmu_wlmx_0p85>; + vddrfacmn-supply = <&vreg_pmu_rfa_cmn>; + 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>; + }; +}; + &pcie6a { perst-gpios = <&tlmm 152 GPIO_ACTIVE_LOW>; wake-gpios = <&tlmm 154 GPIO_ACTIVE_LOW>; @@ -625,6 +748,44 @@ tpad_default: tpad-default-state { function = "gpio"; bias-disable; }; + + wcn_bt_en: wcn-bt-en-state { + pins = "gpio116"; + function = "gpio"; + drive-strength = <16>; + bias-pull-down; + }; + + wcn_sw_en: wcn-sw-en-state { + pins = "gpio214"; + function = "gpio"; + drive-strength = <16>; + bias-disable; + }; + + wcn_wlan_en: wcn-wlan-en-state { + pins = "gpio117"; + function = "gpio"; + drive-strength = <16>; + bias-disable; + }; +}; + +&uart14 { + status = "okay"; + + bluetooth { + compatible = "qcom,wcn7850-bt"; + max-speed = <3200000>; + + vddaon-supply = <&vreg_pmu_aon_0p59>; + vddwlcx-supply = <&vreg_pmu_wlcx_0p8>; + vddwlmx-supply = <&vreg_pmu_wlmx_0p85>; + vddrfacmn-supply = <&vreg_pmu_rfa_cmn>; + vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>; + vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>; + vddrfa1p8-supply = <&vreg_pmu_rfa_1p8>; + }; }; &usb_1_ss0_hsphy {