From patchwork Mon Dec 2 18:18:11 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: 13891161 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 B0BAD1DD866; Mon, 2 Dec 2024 18:18:23 +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=1733163503; cv=none; b=MgHHJSqpYW/zvRfepfJ5wRDWwIqJAQrf7U3GVtAHBqpuU93vzpBSU4AdvtzonNOlhoiWuXvTrCZYfpDMTUTP5RCESxziiE4NmF12MYyV09a60Olvx8u18wtpfY0Jfs1bm0dVPbPWYL7X5W0soAgErnDR0o9vNbreQO2dsbnlKMI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733163503; c=relaxed/simple; bh=KiM+r2+vbQFz4ZNDqr52yOHioGTJ04fsaje5jz3Xr5Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lVjPEc46ij8+WK4zePcD/QdmcHMOJnlj4sAKs4cNt0lms+ze3HZUNDoZajK04ZzVM6yOVSPmRLtUlA1NPf31iz1shp4cBQ9O39+Pep5+S24Y2GdMXg+CUAG/PnGRqVss9d74LicIldmNjv2Nx0Lg7qFjrHLaQjuUulzY4BYJZMM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PSjB0Axh; 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="PSjB0Axh" Received: by smtp.kernel.org (Postfix) with ESMTPS id 57919C4CED6; Mon, 2 Dec 2024 18:18:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733163503; bh=KiM+r2+vbQFz4ZNDqr52yOHioGTJ04fsaje5jz3Xr5Y=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=PSjB0Axhn9Bsigm4qrNtdYDoH0A5Ipu+Lb3QRUkEqaU2HMGYlwXRq2BAoCc9hsj/Q cfhVDn+BT32V6wasWFuERR/nErDjLUIFbY0sYcUI2El6OYGqdRVP+/ATeluk7kx14Q v5T+JtVvHPZ3XetL9c9OFnWwPpAbH7xup1NXerhAPGdXJF2Gc9DVym2Nmx906lS3rP 3cFEb/4pquhlPyR0QpvzcxmgJtC2Jfi3scMBQCiOKHTpEsWn7Nj28MHNVbB+a05VxL LabVIF7Za/X/3Ami9iDgtc0frTk5ia9OAI9ZiHcVuuVoz5cpY++xNUmUv2uDWZCsM8 bQ19Tc3Vd+NOg== 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 3AE78E69E81; Mon, 2 Dec 2024 18:18:23 +0000 (UTC) From: Maud Spierings via B4 Relay Date: Mon, 02 Dec 2024 19:18:11 +0100 Subject: [PATCH v5 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: <20241202-asus_qcom_display-v5-1-e0d3752ff71f@hotmail.com> References: <20241202-asus_qcom_display-v5-0-e0d3752ff71f@hotmail.com> In-Reply-To: <20241202-asus_qcom_display-v5-0-e0d3752ff71f@hotmail.com> 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, Konrad Dybcio , Maud Spierings X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733163500; l=1501; i=maud_spierings@hotmail.com; s=20241110; h=from:subject:message-id; bh=+p57oSoZcIYd3K5X0WVZ9oWNtOr7Y9V+E7VoIgmgr4k=; b=UvCXU/oj2NIOtXiRqc+lXairShldjGizHXQl22p7ObP16xd+ji8CLaUEUTe//M+/Q1XITtCW5 F6QjXCf8Ck7BZqX6gRkBFI5WMLlOMOkGYpkrMdm610q1AxSlKfp39Gp 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 --- .../arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts | 18 +++++++++++++++++- 1 file changed, 17 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..8cdb2888d10a1dfc0c28480b6636584ab06853bb 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts @@ -407,9 +407,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 +479,18 @@ &pcie6a_phy { status = "okay"; }; +&pmc8380_3_gpios { + edp_bl_en: edp-bl-en-state { + pins = "gpio4"; + function = "normal"; + power-source = <1>; + qcom,drive-strength = <2>; + bias-pull-down; + input-disable; + output-enable; + }; +}; + &qupv3_0 { status = "okay"; }; From patchwork Mon Dec 2 18:18:12 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: 13891160 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 981E81DACBE; Mon, 2 Dec 2024 18:18:23 +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=1733163503; cv=none; b=kaiUWtuAokrIH/WZWtM3DzCRLoknpGkRwlZp2Nd3T7VRK4UXpW3RHf6EzKwJ9KcSoVCVKweJn8biZCRSGxThn3VcNvF7B1yavdQCvBuWtHY0ABMxwehws38f/ibxvR+Lpgj1hniJttH7cEmbcHdAbobPQS4O5mzQm81Ohqu9Ofo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733163503; c=relaxed/simple; bh=8sJw68/x7LRX6GAezVBs9korCRxUnf0mjseISjnG5/M=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=RJJsfq1utkFVIr6Ccep18nfYrPymDiPjIgq6PtM++1nFBt7Dca5R3DqPHwtvCz7vv+MvLHDYtXmTe7KJneDe+Snmf192inQP7RFvSTp+nL8DIivjceEoO2ne2zhTLT23JxIXg7SJ8PsV5MyfjJeQea3IRepHLiBTM6o9+7YZMQg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=A89GfAx5; 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="A89GfAx5" Received: by smtp.kernel.org (Postfix) with ESMTPS id 5E782C4CED9; Mon, 2 Dec 2024 18:18:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733163503; bh=8sJw68/x7LRX6GAezVBs9korCRxUnf0mjseISjnG5/M=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=A89GfAx5cX1ythx96t5ytOB/Vcyb0cf86xZJySBmCPytP0WGHq/4kxzW3PBGrGUNY 1CSdG66d9hOtJHiUu/aFtmVP1hSj3FlvwwuIkg4oCViHwtScClytrrClkdp+K1RbMg IkJ3lDYgvJnHUJcVJ5nW7xXdrYadfq+GVPBD8zq305IlXarcSfvK0MVn2DAfY22jYq 4g29QWxSodYkPQDg2t42zDlrwMj/IMtMefG4S7GeGwA0KjiVw6SA8kujabdkpTEoOr zmjFfhrkvVfqpBKMsJlyUraos90YP4gBR0Y99uvMnCS3pF6GwzAXNR8CbLnibufBrp WVD0DCnslWr9w== 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 4C0D4E69E85; Mon, 2 Dec 2024 18:18:23 +0000 (UTC) From: Maud Spierings via B4 Relay Date: Mon, 02 Dec 2024 19:18:12 +0100 Subject: [PATCH v5 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: <20241202-asus_qcom_display-v5-2-e0d3752ff71f@hotmail.com> References: <20241202-asus_qcom_display-v5-0-e0d3752ff71f@hotmail.com> In-Reply-To: <20241202-asus_qcom_display-v5-0-e0d3752ff71f@hotmail.com> 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, Konrad Dybcio , Maud Spierings X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733163500; l=1659; i=maud_spierings@hotmail.com; s=20241110; h=from:subject:message-id; bh=dtYV+z9lYSzEf2bGKf8JU+PRYZscyBu18hsPuUz7+R4=; b=oFexVHzJ+JHXkTZSw77tN0eIKNWlVe1xOEP2WEw7dp4PyYUK/X7uJqwCH/VcifJihPkJ4okiM 7C7HG/KnkILDCyXQdDFvoOmuKia0bkBKUUjvdZ3evuOso0R3No4d3oq 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 8cdb2888d10a1dfc0c28480b6636584ab06853bb..7269f8e7709988657b363004875163a69142f16c 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 "x1e80100.dtsi" @@ -17,6 +18,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", @@ -539,6 +554,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 Mon Dec 2 18:18:13 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: 13891163 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 D73ED1DDC02; Mon, 2 Dec 2024 18:18:23 +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=1733163504; cv=none; b=VjcsiMETGKNmDD5/asc4glNOQ34d8ZUdjOY6Wc2vIkG5cQQecx8DWmgBfrJnq5Xz2buviqG5g/+3bfjhpkq50rFuN2amcwu8uud7JEEt4Y2Wx6urtxfqK16TXNZ34cYptnkHMeHObus+weVrPwyOmZIfxmEdNNxdiPRt0CAUnaM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733163504; c=relaxed/simple; bh=AhKIYAtC0w7cG+lrn93SvuanyHwnSNcPfymNq2kR5Pk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=c9hyB0gnP4D057p1tfYIZ4KzZ7gjKA0wycJFletHzpKjQpcNSTwq+5KQiDnpUt2QMEpiyTnTX8JrIlLMkI7U168Ux4s86Uap6dOhF02U7IZrYNGAoIiXCdj41Fh+vjyqxU0QxvAd2YRNWsZhWAkPqskGikKoRnkueOjl/to24o0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bcimmVec; 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="bcimmVec" Received: by smtp.kernel.org (Postfix) with ESMTPS id 72187C4CEE0; Mon, 2 Dec 2024 18:18:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733163503; bh=AhKIYAtC0w7cG+lrn93SvuanyHwnSNcPfymNq2kR5Pk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=bcimmVecXgpOSR9k3PS2j8eto5Fv/8C+mtqoxs82eko5JQiKQd4AyxMBXr/NZgzKF ks8XnUgMNSBLCE16vVRHjuLHpucAfKzI/Fyc99aqvSNaoroez9fzGvJ7r4Yf3yDse6 YVB3ItSPLQXistTW6DDrpndsPgotEhrDVK/0jhcou5yrhcIgwN6jEBPJLddRBWQAAN zKBon0TFmY5Lo4tppMHt3a888ibkZaOCLaEWONYsnUL4GgXkdLuRkn8un3WORiXukU CY961F2njG4ugXgYMr7ugKpg6ow8YgsLdRurZzDnZjEZZuPwvJxxgv3GNy+qY9hU+i 48vcA8EyDY85Q== 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 61751E69E82; Mon, 2 Dec 2024 18:18:23 +0000 (UTC) From: Maud Spierings via B4 Relay Date: Mon, 02 Dec 2024 19:18:13 +0100 Subject: [PATCH v5 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: <20241202-asus_qcom_display-v5-3-e0d3752ff71f@hotmail.com> References: <20241202-asus_qcom_display-v5-0-e0d3752ff71f@hotmail.com> In-Reply-To: <20241202-asus_qcom_display-v5-0-e0d3752ff71f@hotmail.com> 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, Dmitry Baryshkov , Maud Spierings X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1733163500; l=5331; i=maud_spierings@hotmail.com; s=20241110; h=from:subject:message-id; bh=R7SddrtNscYTiSFlO59UXfIspqmMFfrUbX7RUwGj7PM=; b=vIYMbfcG+kyAVEpsuEY1uFlHGTR/MzWqD83kGbDC1kxL8X/MbCczlQlB1oUv5kLSR8QG7b8DA zvfTTOvComkAoraR8KhHKFcnXzgcMqYSA+3IEAoOdG2YtAgeP9yRAj+ 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 --- .../boot/dts/qcom/x1e80100-asus-vivobook-s15.dts | 163 +++++++++++++++++++++ 1 file changed, 163 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 7269f8e7709988657b363004875163a69142f16c..0774bd65ae8cddab81b98e27a116fd5adbe1363c 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts @@ -18,6 +18,11 @@ / { compatible = "asus,vivobook-s15", "qcom,x1e80100"; chassis-type = "laptop"; + aliases { + serial0 = &uart21; + serial1 = &uart14; + }; + gpio-keys { compatible = "gpio-keys"; pinctrl-0 = <&hall_int_n_default>; @@ -152,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 { @@ -197,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 { @@ -475,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>; @@ -624,6 +748,45 @@ tpad_default: tpad-default-state { function = "gpio"; bias-disable; }; + + wcn_bt_en: bt-en-state { + pins = "gpio116"; + function = "gpio"; + drive-strength = <16>; + output-low; + bias-pull-down; + }; + + wcn_sw_en: wcn-sw-en-state { + pins = "gpio214"; + function = "gpio"; + drive-strength = <16>; + bias-disable; + }; + + wcn_wlan_en: 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 {