From patchwork Sun Nov 24 10:00:57 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: 13884022 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 CBB86155C8C; Sun, 24 Nov 2024 10:01:09 +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=1732442469; cv=none; b=mxdeCt/d6DeC/y264/1dimjIZtCoQf7L0sJ2OreffIxLCTwAw/7N9bGiXMuny3B87nuyBSKNO+JsQwZWZb+Ld5GXzMwd+7i8W+bwk0mirjnXuRHr2aeez85jwQwCJ+S0eA0jtxqZtE653Njecjp5JU6eosGyfW+VJeGHl4pzoOI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732442469; c=relaxed/simple; bh=63XROWs9Cl54JcUeUjSOu7n05NSvAswmnctcj5Q6Gf4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=IUcqV6o3A7TfF6LxilLR4O197ZD17nAAGWz0QrR3KgG6ehkgQUeTQyzlps+a2FTUkhsHO+lLBo1IYMAiGqVGXUHc+fksxzTKu7Bl5kyuDaT6kP+bzuzF5dNvJFrgmP4x4gx9MNA5lzPTMeTV/eS9S4kGicUru+AitdPxqh9H0qw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AXx4j1on; 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="AXx4j1on" Received: by smtp.kernel.org (Postfix) with ESMTPS id 5A877C4CED1; Sun, 24 Nov 2024 10:01:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1732442469; bh=63XROWs9Cl54JcUeUjSOu7n05NSvAswmnctcj5Q6Gf4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=AXx4j1ono4YYOaeIBMRcl7e9ABTI/imQPu+y0oCmca7iZs5N+QxqpLxj6ei+xUFax bc+GcdaOYQUKt9jIXYoQGAcyFXEgtEmPk4sv3eIVfVuUxnZt67UuLT/PCDX46Ez6T9 Fv4/hIvVUyo0UfZ8RIB+MRq6e+IHgClNGCaPmfuL57icQX+/raxHk2jYNUzNFhYGr/ AoMwKVoDklSVedwRS5mt5kthiUKYA/sDbHLHDgFAkzB5dd1xZ7+PG7Dk57tj4F0Gd/ TpkSewRabTP79wHiYXuosokrdhkyAYRt/YgVUgOoWxqEUgVNcH10t74ZmSvVjiy3nr duRF9xrVGLaLw== 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 475E8E66894; Sun, 24 Nov 2024 10:01:09 +0000 (UTC) From: Maud Spierings via B4 Relay Date: Sun, 24 Nov 2024 11:00:57 +0100 Subject: [PATCH v3 1/4] dt-bindings: display: panel: samsung,atna56ac03: Document ATNA56AC03 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241124-asus_qcom_display-v3-1-002b723b1920@hotmail.com> References: <20241124-asus_qcom_display-v3-0-002b723b1920@hotmail.com> In-Reply-To: <20241124-asus_qcom_display-v3-0-002b723b1920@hotmail.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Douglas Anderson , Bjorn Andersson , Konrad Dybcio Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Maud Spierings X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1732442467; l=1104; i=maud_spierings@hotmail.com; s=20241110; h=from:subject:message-id; bh=s4yKTNvJO3mx17xZFU/LK3Mq9NKRmsc9/ZsIIVmQu0M=; b=88PqRHIQd2UVupflLuSHUweEBp1Hb+Lq+/bPNq7X4rXbCptbDK1wS/Jf0FPZHbk3tfMUHujEQ e+xTT+oTmnSCZdpaH/LpacKKAX57gq1u7PsK2scdH3YIgccOhb4b+r2 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 Samsung ATNA56AC03 panel is an AMOLED eDP panel. It is similar to the ATNA33xc20 except it is larger and has a different resolution. Signed-off-by: Maud Spierings Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/display/panel/samsung,atna33xc20.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/samsung,atna33xc20.yaml b/Documentation/devicetree/bindings/display/panel/samsung,atna33xc20.yaml index 032f783eefc4508df35da10e53ca20ff8b1b9bdf..684c2896d2387077cf2d91cc5a025e0838c0f536 100644 --- a/Documentation/devicetree/bindings/display/panel/samsung,atna33xc20.yaml +++ b/Documentation/devicetree/bindings/display/panel/samsung,atna33xc20.yaml @@ -23,6 +23,8 @@ properties: - samsung,atna45af01 # Samsung 14.5" 3K (2944x1840 pixels) eDP AMOLED panel - samsung,atna45dc02 + # Samsung 15.6" 3K (2880x1620 pixels) eDP AMOLED panel + - samsung,atna56ac03 - const: samsung,atna33xc20 enable-gpios: true From patchwork Sun Nov 24 10:00:58 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: 13884021 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 CBB3E1531C4; Sun, 24 Nov 2024 10:01:09 +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=1732442469; cv=none; b=OliUpLf83LsIiy9VX3FxSd5H2FizldqcT30hPqX3Ta840wirKctzVNdwkOimOekwFwj4fQW20hMLUHb1TOGi41Z/E6akmc6quyDa7WOe6Hl3H0jWJGmLVoPJyUY+PC2uakSvbnQjLJs3PP+12cEvpRzvxJ6Y049mXxCb7lhmACo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732442469; c=relaxed/simple; bh=P85kdcuROFc2rILlppJv5y6/+fj45JK+pYOQuVNCxcc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=E+0a+PsPILss2iQxmq2KjpO2VpxhCUI3tltgdy7wWK/yxkLG0vGQNOyJqtHXEvjtdBFDOxvhTumdbvuXjwU1HCBISz6Vt2ij/ga/rfOsEYgcrUpyS0pVTdfXOWm1a1EGjt72svv7c8meNxwBjb5wTOYpC4d3eYXwXFBff7vzfDI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RIDatEFS; 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="RIDatEFS" Received: by smtp.kernel.org (Postfix) with ESMTPS id 6B60FC4CECF; Sun, 24 Nov 2024 10:01:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1732442469; bh=P85kdcuROFc2rILlppJv5y6/+fj45JK+pYOQuVNCxcc=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=RIDatEFSGB9iKvqIQmz6AK25Y9TCQyQ3KmIg2TWWPiAOSIkSGY9awYVm2mqNqsOkw PBjz9orAGBrXXpJ3C56oy6CuOxU6rglAl5nxOKniCplOYo2jTQxeVqIOvyJpKGidis tNrbb1URCXTDKunm1S2AZ5x7e0X0N5WIGCECrZ4GQaAdZntlByUZeLww4uAkYJOSk4 y3dOQZh7qJaC2MmGk7+8QE2ov3WJigHgcQrZDT1KFMx1D0dorIL0nX3vGwGpo3d/jQ RrtZArgOAUg04xTmmOX43eRnaCvO8oKoDW2RQIYovywcgk9dZwa5uQjtMmm9Wy291B bPElV+H5PqkKg== 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 579CDE668A5; Sun, 24 Nov 2024 10:01:09 +0000 (UTC) From: Maud Spierings via B4 Relay Date: Sun, 24 Nov 2024 11:00:58 +0100 Subject: [PATCH v3 2/4] 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: <20241124-asus_qcom_display-v3-2-002b723b1920@hotmail.com> References: <20241124-asus_qcom_display-v3-0-002b723b1920@hotmail.com> In-Reply-To: <20241124-asus_qcom_display-v3-0-002b723b1920@hotmail.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Douglas Anderson , Bjorn Andersson , Konrad Dybcio Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Maud Spierings X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1732442467; l=1388; i=maud_spierings@hotmail.com; s=20241110; h=from:subject:message-id; bh=io+Nj/5iQaZGfv6rQv+gwuuh43FX+z1Sx+z5yfCqbsM=; b=KSdSZkES7yt/5gOpmSg4b7kLuhXg4LBdbIabbS9XE1xUxLvej+SQwg6gJei/8uY/7WcYOhY3v 0BIIMHM8vwzBVUx1rgKoMbYF7MRrA2N99l7QbPM/Y/aqy8Olgh2KNsP 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 Signed-off-by: Maud Spierings --- arch/arm64/boot/dts/qcom/x1e80100-asus-vivobook-s15.dts | 16 +++++++++++++++- 1 file changed, 15 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..dbc85aff50a95bfc2ac11528d1901979ec7b1501 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,16 @@ &pcie6a_phy { status = "okay"; }; +&pmc8380_3_gpios { + edp_bl_en: edp-bl-en-state { + pins = "gpio4"; + function = "normal"; + power-source = <0>; + input-disable; + output-enable; + }; +}; + &qupv3_0 { status = "okay"; }; From patchwork Sun Nov 24 10:00:59 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: 13884020 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 CBAEA13D24D; Sun, 24 Nov 2024 10:01:09 +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=1732442469; cv=none; b=tbiQoP45QxkiWud6PnhR1mYAQBIDfZ+OFC8Y4EH1e1+/elRsumLpSNs3DBWr7QLbHfBEy8ok+opj8gwFOKrhLMyTNrN5b1r5UMJqjYsL5QMenFQUVbZQtPypSuvKMEggD9ge3SjQDUSQn2Sh3GRaa1vTPwGFfh1Lsp5BJzLW7gI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732442469; c=relaxed/simple; bh=pN0XPOk+azMB8nicVtcdNG4JiPjyTuemTD+GjJVRFxQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=cKWr5EBMTgaAJGy8Q+99eQjw6XsbH9nLQLtN9wt6LJVnyfusnFWMglCoIyKbPhtcFYv1NtTKxBH9898bNiprm4G4X1wJfl+SbAFcS8G9BGe4ieXwPMpKnktbDQbbOo7sny7BP/upp9VFl71s4VxYhRGZ5i6rA/XL1jSOmiq2LN8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rs2hobgK; 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="rs2hobgK" Received: by smtp.kernel.org (Postfix) with ESMTPS id 78579C4AF09; Sun, 24 Nov 2024 10:01:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1732442469; bh=pN0XPOk+azMB8nicVtcdNG4JiPjyTuemTD+GjJVRFxQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=rs2hobgKyr4qgPaeWqr0+N2H+9KWTmFafybPBKwbmhcJFvk5xS2NdiITnGd/BiJYY YXeBfiO+TD7oWw6GbKyeHV+P7RRolr1MRz8qymGERn+EXtf2WGE6JGqdIlk276x36o cnwqblC/Iaa2g6fDvt9JXt0tm2zqWNTp0Mg9LNXm9tnjKLFKpYSM0QTKAFJeIcZeUH sQ5IEuMo98QTt2WgKfLv7IPDxtPJdwXN0LYRSYd/9R5h6a6m3xsdmqTabm9CggXqvk eNhBWi7GeUGnJVkmfCoa0Eh3ztuErgd6ZuKczxeQ1h0VGpKKdnib7YyBKknKUWqJbX L4Me4CDomVXew== 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 68CB8E668A4; Sun, 24 Nov 2024 10:01:09 +0000 (UTC) From: Maud Spierings via B4 Relay Date: Sun, 24 Nov 2024 11:00:59 +0100 Subject: [PATCH v3 3/4] 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: <20241124-asus_qcom_display-v3-3-002b723b1920@hotmail.com> References: <20241124-asus_qcom_display-v3-0-002b723b1920@hotmail.com> In-Reply-To: <20241124-asus_qcom_display-v3-0-002b723b1920@hotmail.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Douglas Anderson , Bjorn Andersson , Konrad Dybcio Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Maud Spierings X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1732442467; l=1598; i=maud_spierings@hotmail.com; s=20241110; h=from:subject:message-id; bh=V0toP94nVQpKY9cawuLUKuZZPhlJQOyZXdc718iCBUw=; b=NiqcxiPlcYUWUE1CDRxQjeLFOZPKjvAaOng/FtfE7NUNW1nerc2zfpHWRbhEBYZ1OnYvoKqPR 4dhKeEaDnM9BGiNPFlW+9zGr8y8yeRUi6RYVGbzw6NIDIHq9puTZ8k1 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 Signed-off-by: Maud Spierings Reviewed-by: Konrad Dybcio --- .../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 dbc85aff50a95bfc2ac11528d1901979ec7b1501..d8324e7754e112aa12eca131218335fd3842efc5 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", @@ -537,6 +552,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 Sun Nov 24 10:01:00 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: 13884024 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 E38CB17BB16; Sun, 24 Nov 2024 10:01:09 +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=1732442470; cv=none; b=sMxkYSAgJXTeoDK2nWyN0D/cIDmYwvbbVDz6yg8/oqvE+06K7Lr63XoRCj6UG5RchEQCaAxnwFXz5C7KILDtXKyE/K3bSx8Fns9KKBKy9snVgX28sH5tnPzb+sXYPR3/pOtZREOzALJai3Wed4/Azh5l0TaFwfou3xk6NuA8C+g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732442470; c=relaxed/simple; bh=zkvP3khis5NFJJwILldGtYuiQntikGkSIdoRkESwAA0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=gnEwtCkVD9S2Ilr4tTJX7SR8DOVVvczFWc2KkjyecfEHppQ/IOvWEHYTvMhFEF/zNfyLjs0zZAlPcOyq04fHFKUJUGswqZoTvieDsTeeU1vJvSaVGV/hI9cppCbCEIXdjwj8XA/pPlIfYOMbVRNFKLKuZKczeCRRe+3V7z4gHf0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YHqQGl4i; 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="YHqQGl4i" Received: by smtp.kernel.org (Postfix) with ESMTPS id 8B804C4CEDE; Sun, 24 Nov 2024 10:01:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1732442469; bh=zkvP3khis5NFJJwILldGtYuiQntikGkSIdoRkESwAA0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=YHqQGl4idj5lIuemw51gBrJ2WPTn9B/DxEdcPuOHMiCYEAUVgSVj3/zTkWTP8pjEc xyuERzWCStRS5/cqaabuSy75xEaZ9Q0rwynwp8+kSFlM4E26W5W6FXWsWNrVfQGhbo 9CStIcYi1aVwXjZ3IDcfew003XB4YH4izaAgJPjAmOz4O30V2fosrB+NNCZYItn+bh yr2BeZaGj7IV/wKWA9dhxqxOYfeqrSgzi+Siw7AOr71icnkRuTDwAwHL/rI+BONW1k E5hekkpIngddGyQBCwoWdDBu+gXL6SduszkREnSbbGv/jLGHfFgjnfW6GBPtjr5ayh HgQb59gnJeSMg== 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 7A1A4E668A7; Sun, 24 Nov 2024 10:01:09 +0000 (UTC) From: Maud Spierings via B4 Relay Date: Sun, 24 Nov 2024 11:01:00 +0100 Subject: [PATCH v3 4/4] 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: <20241124-asus_qcom_display-v3-4-002b723b1920@hotmail.com> References: <20241124-asus_qcom_display-v3-0-002b723b1920@hotmail.com> In-Reply-To: <20241124-asus_qcom_display-v3-0-002b723b1920@hotmail.com> To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Douglas Anderson , Bjorn Andersson , Konrad Dybcio Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Maud Spierings X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1732442467; l=5497; i=maud_spierings@hotmail.com; s=20241110; h=from:subject:message-id; bh=GA2tx+yZgz/T7rDj77IyBaz7H8nX4XIm+5PQ9y/x1/w=; b=e3EJEDBKa2L/SHHC3CZUbAH0GlCFRKjBZdBUaaZGyqJ5GXkWpZF0hE1cHhg5EpsgZyCwgn6WJ 5ATo3bNxoLwBY6b+SJaxHepbVzqcLengL7dbstrlPHfRoqS/qAYF3dG 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 Signed-off-by: Maud Spierings --- .../boot/dts/qcom/x1e80100-asus-vivobook-s15.dts | 164 +++++++++++++++++++++ 1 file changed, 164 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 d8324e7754e112aa12eca131218335fd3842efc5..1333fe54fc98649274b12f24f600108553fe88e7 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,102 @@ vph_pwr: regulator-vph-pwr { regulator-always-on; regulator-boot-on; }; + + 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; + }; + + 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>; + }; + + 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>; + pinctrl-1 = <&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 +298,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 +583,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>; @@ -545,6 +670,28 @@ &tlmm { <44 4>, /* SPI (TPM) */ <238 1>; /* UFS Reset */ + wcn_bt_en: bt-en-state { + pins = "gpio116"; + function = "gpio"; + drive-strength = <16>; + output-low; + bias-pull-down; + }; + + wcn_wlan_en: wlan-en-state { + pins = "gpio117"; + function = "gpio"; + drive-strength = <16>; + bias-disable; + }; + + wcn_sw_en: wcn-sw-en-state { + pins = "gpio214"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + edp_reg_en: edp-reg-en-state { pins = "gpio70"; function = "gpio"; @@ -624,6 +771,23 @@ tpad_default: tpad-default-state { }; }; +&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 { vdd-supply = <&vreg_l3j_0p8>; vdda12-supply = <&vreg_l2j_1p2>;