From nobody Mon Nov 25 02:47:02 2024 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 A9B211E47BD; Wed, 30 Oct 2024 11:02:28 +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=1730286148; cv=none; b=ele6A25GhDSUEojYDDiBRmCcCeJCo6fSbs6uy89vjelnnf7oTFSTEVPJIuiT6ikfpCUFtk3m87RSUMl1QefV2FazJf20VkQClCnTIZacXXJ+hfM56lYk2uVBNQLv/mERWiaoyTnIDk5bYXW2NFKAd9mdBCnqgaIRJ6ECmjiBU6g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730286148; c=relaxed/simple; bh=4rUNI+JFXZ5XibbCKmsFyYD6XhVKbqENJ1d3wM8EVj4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=M6+tsy+/BHAWd4uDTRlDY+XwzlyfCrYY3qCpRpoX30eM3UR5TMqthEHjqm9XXyLq+ywrelfSrR9+sLRaD5XUoK55vQxizDg/rm18UUjdc6u2REIuXkbiol59MfZ6kUayQVWaK07hbLld7HXX+p5sE+YCgfaTFM32zEh7C8q2XMc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=r39WD0Y5; 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="r39WD0Y5" Received: by smtp.kernel.org (Postfix) with ESMTPS id 35C6AC4CEE5; Wed, 30 Oct 2024 11:02:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1730286148; bh=4rUNI+JFXZ5XibbCKmsFyYD6XhVKbqENJ1d3wM8EVj4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=r39WD0Y5yqozNEB5m/P+QtUMXBo6iU2C1uGsV6nYNYiHU09mNlmbjwLvcy6ALc7Yv 2NlrvOo13xmMmKL4k0flQUUwsC5iIcFCMmEmlFssm56ngQzM237c7aGy/tKXQJAdE5 TCjd1kPn48q7b5OKA+rvjymC8cuW4qTVCHBgJG+FU1K3G5Sv06OVFUmxXlKDmoLfw5 6lNmEdQIOKQZqWsADt+DwNF1xJCE6uJ/H3uoQ2A6v77US/Ay50uJGr28Sgd3EeScdM +GOUe6TGyIYysls3UQP65/R51KDsVV8mhYFSC1eGFCTcfV4ofTRAsEVP5icwGiGbmq R2tNj6tf4xJmA== 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 249C0D5CC93; Wed, 30 Oct 2024 11:02:28 +0000 (UTC) From: Jens Glathe via B4 Relay Date: Wed, 30 Oct 2024 12:02:01 +0100 Subject: [PATCH v6 1/3] dt-bindings: arm: qcom: Add Microsoft Windows Dev Kit 2023 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241030-jg-blackrock-for-upstream-v6-1-7cd7f7d8d97c@oldschoolsolutions.biz> References: <20241030-jg-blackrock-for-upstream-v6-0-7cd7f7d8d97c@oldschoolsolutions.biz> In-Reply-To: <20241030-jg-blackrock-for-upstream-v6-0-7cd7f7d8d97c@oldschoolsolutions.biz> 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, Merck Hung , Jens Glathe , Krzysztof Kozlowski X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1730286146; l=1093; i=jens.glathe@oldschoolsolutions.biz; s=20240919; h=from:subject:message-id; bh=DgFc8aQ8HIqN64ClW7BBe1urBd5WcqgKYWYBfBQ5dNU=; b=B1ICw3LaH7gCKfi1eSMRcDnT7aSPe97g2v77yqiLSjxzrLVAfGYXsRS7B2N/4xVJJQybT7tIS ubl5wB9CCGcBheQ0w5REkTrZu1fBMs1Ug0YHhjGU6vXDgWDnwovWEe3 X-Developer-Key: i=jens.glathe@oldschoolsolutions.biz; a=ed25519; pk=JcRJqJc/y8LsxOlPakALD3juGfOKmFBWtO+GfELMJVg= X-Endpoint-Received: by B4 Relay for jens.glathe@oldschoolsolutions.biz/20240919 with auth_id=216 X-Original-From: Jens Glathe Reply-To: jens.glathe@oldschoolsolutions.biz From: Jens Glathe Add compatible values for the Microsoft Windows Dev Kit (WDK2023) with its codename "blackrock". The Dev kit is a small desktop box based on the mainboard of the Surface pro 9 5G, intended for developers to test/build arm64-based Windows software. Link: https://learn.microsoft.com/en-us/windows/arm/dev-kit/ Acked-by: Krzysztof Kozlowski Signed-off-by: Jens Glathe --- Documentation/devicetree/bindings/arm/qcom.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentatio= n/devicetree/bindings/arm/qcom.yaml index 0f18cb35c774a..32381638b6f9e 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -823,6 +823,7 @@ properties: - enum: - lenovo,thinkpad-x13s - microsoft,arcata + - microsoft,blackrock - qcom,sc8280xp-crd - qcom,sc8280xp-qrd - const: qcom,sc8280xp --=20 2.43.0 From nobody Mon Nov 25 02:47:02 2024 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 A9AC01E47B9; Wed, 30 Oct 2024 11:02:28 +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=1730286148; cv=none; b=pXUSH6eg9K1/s48NMn6Z+9Ipiw74A71FGrQgLMhnuNfBKo8lw+TmJM49OBK3jyi5Y6s2Kx6CPihbxQm2ugxlRjw7Z+ubtsNlFITc6IHfd+P1pOeSGictMa07uejTWS608KgjUDW1UZ9b3FijRmBTUH7ew8a95qznGdLdS564hEM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730286148; c=relaxed/simple; bh=kCfyUhNHR9D7tvw5ITY07k1JaopSNx68HTUtT4Le+jU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kOnY2iAy11Vqx+eS85y24AeHHq+7cRpVEamuThXXB5qQfaN4N5+33Vtc2rcxWcnVw8A3sSNbhema3vJzTcA6j6y3IvjRTi7eX5Oa1ZWFNtv7uGkT4XYByRYvYFxSLYxuwc5sRc08J4i779mnYF6cU4yFRvWXLFq9YzZx+XkWwdc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AHz1qaOI; 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="AHz1qaOI" Received: by smtp.kernel.org (Postfix) with ESMTPS id 483DDC4CEE4; Wed, 30 Oct 2024 11:02:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1730286148; bh=kCfyUhNHR9D7tvw5ITY07k1JaopSNx68HTUtT4Le+jU=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=AHz1qaOIp76xedSAMP595Br6mVZ9CcHfKY0uxhtkQ9t1obH/o1RsFJV0LAPiZSOmp Am27Sc/qt2/6USI4O2xLwfBOZeVXk/p72yRcOKSGVF5rcin7iddSBfCgZrsbFXpYPZ f81/Y4MxKJZIiljk3hX1Ijw/LFa8rvfMhkAkrfgeK/P4w7dB480ko2eGWuZuXAJmbZ mq2jJ5sPXlJlyCyI8acsIPm1E03DwAwSiK3r5iGM/2AIsDsVDHoQhgetDlPLQ+jGHl DFwwaLS1JY/aJ81hp9MxPm0bhKjngGHVVNIcJer7/KCIqly8XBJp5DW9zDCbRn7adV 8SiJ/nFrKMQ/A== 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 36976D5CC95; Wed, 30 Oct 2024 11:02:28 +0000 (UTC) From: Jens Glathe via B4 Relay Date: Wed, 30 Oct 2024 12:02:02 +0100 Subject: [PATCH v6 2/3] firmware: qcom: scm: Allow QSEECOM for Windows Dev Kit 2023 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241030-jg-blackrock-for-upstream-v6-2-7cd7f7d8d97c@oldschoolsolutions.biz> References: <20241030-jg-blackrock-for-upstream-v6-0-7cd7f7d8d97c@oldschoolsolutions.biz> In-Reply-To: <20241030-jg-blackrock-for-upstream-v6-0-7cd7f7d8d97c@oldschoolsolutions.biz> 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, Merck Hung , Jens Glathe X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1730286146; l=916; i=jens.glathe@oldschoolsolutions.biz; s=20240919; h=from:subject:message-id; bh=8pA9VSgmqgAkjVtPY7nnFqV8q/fkJiqZKAYlfJlGts0=; b=PseP+BvxRIM816gbwVIjTMMKRdQQ45/6cfyFEIJNq3HtGdfxFfZzShxpIJff2SY7woDUZfAO3 Hs4LxApe21RBmaAlfUfXx5U+FbZ+dIck3tRUhts9mPOIX3edtJ5CrjE X-Developer-Key: i=jens.glathe@oldschoolsolutions.biz; a=ed25519; pk=JcRJqJc/y8LsxOlPakALD3juGfOKmFBWtO+GfELMJVg= X-Endpoint-Received: by B4 Relay for jens.glathe@oldschoolsolutions.biz/20240919 with auth_id=216 X-Original-From: Jens Glathe Reply-To: jens.glathe@oldschoolsolutions.biz From: Jens Glathe add "microsoft,blackrock" as compatible device for QSEECOM This is required to get access to efivars and uefi boot loader support. Signed-off-by: Jens Glathe --- drivers/firmware/qcom/qcom_scm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/firmware/qcom/qcom_scm.c b/drivers/firmware/qcom/qcom_= scm.c index 4785386042252..f1b10c89b9638 100644 --- a/drivers/firmware/qcom/qcom_scm.c +++ b/drivers/firmware/qcom/qcom_scm.c @@ -1748,6 +1748,7 @@ static const struct of_device_id qcom_scm_qseecom_all= owlist[] __maybe_unused =3D { { .compatible =3D "lenovo,thinkpad-x13s", }, { .compatible =3D "lenovo,yoga-slim7x" }, { .compatible =3D "microsoft,arcata", }, + { .compatible =3D "microsoft,blackrock" }, { .compatible =3D "microsoft,romulus13", }, { .compatible =3D "microsoft,romulus15", }, { .compatible =3D "qcom,sc8180x-primus" }, --=20 2.43.0 From nobody Mon Nov 25 02:47:02 2024 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 C9E5E1E4123; Wed, 30 Oct 2024 11:02:28 +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=1730286148; cv=none; b=WgZwl/+l+xEu3MXoFUkiJLh21NddSxWetUT5nWDoOC/X3LDo0/0rqBpKBGbJ2KanSnc7SLHkOJNXMUY0r/XjJC0hrPgI6LfoZFuaxxE5GKxCeI/HewgW/hQRZkay7HrSDJHlpAyMweCxnrdNfKuSejsqr9yOsS64cFiCfXIXAx4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730286148; c=relaxed/simple; bh=ZlLx5tMuTTXeQgbWsj7RfzLd6J5cfX0WWlqdGsV2f6I=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=NdUskalwMiWRqlsEMQKbEys54E942GaUw84h7Is2ZR1GBHvFVX8bzRq9s6mYD8LyNh3X5swHqX38vbXq5VfrCmbnOH3mB2PF1D2KeXHksGr7xp5VXM13i1JjcdmA39zYR89HR/OUJ8ZKBEbUTLRBRFv1kS6Z7D9QbBBXKSFIbgg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GoMx/Nc0; 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="GoMx/Nc0" Received: by smtp.kernel.org (Postfix) with ESMTPS id 50E14C4CEEB; Wed, 30 Oct 2024 11:02:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1730286148; bh=ZlLx5tMuTTXeQgbWsj7RfzLd6J5cfX0WWlqdGsV2f6I=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=GoMx/Nc0V6VBVo+f7eXLd/JixQEmOfwwrmZ8aQbMe4gqYVeIthzp0hjOu721v5Uje aAo8qTNgychtAUxGwPLKS3OvC36WPwmiIk9kf6I2z9NgwZj6lPwrORvdVL1NXCVZVf CpYGO5j+PYa112gqHN5mvPXpucTS+LFBhce4rHgaSvlfzJutRxTpQooNvYqnR6/FkU bo6uawam4MPKu/hJ2YpMDfJ5Do6zeLYAeviS+GkkVTdys8wNw5WafRYEu+VunJY3ye FAVVUcNyoZVrw92Gp1jZd/VrHb7nDakXQ1zY6JtLwGmxlQ6lPyLlKC1OsoU2OtzBk1 6AXLqsQnU4yxg== 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 48B45D5CC97; Wed, 30 Oct 2024 11:02:28 +0000 (UTC) From: Jens Glathe via B4 Relay Date: Wed, 30 Oct 2024 12:02:03 +0100 Subject: [PATCH v6 3/3] arm64: dts: qcom: sc8280xp-blackrock: dt definition for WDK2023 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241030-jg-blackrock-for-upstream-v6-3-7cd7f7d8d97c@oldschoolsolutions.biz> References: <20241030-jg-blackrock-for-upstream-v6-0-7cd7f7d8d97c@oldschoolsolutions.biz> In-Reply-To: <20241030-jg-blackrock-for-upstream-v6-0-7cd7f7d8d97c@oldschoolsolutions.biz> 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, Merck Hung , Jens Glathe X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1730286146; l=30831; i=jens.glathe@oldschoolsolutions.biz; s=20240919; h=from:subject:message-id; bh=+WWBywgCuNd/YCLKVgddiDKVuBaBzZcyCnCkVhao3Wk=; b=S/tQur+YGM1rwbU1WVUdkFYMnItzrXrXoJm9a6tYwxJ7G8ijyZgzfR87nlA8kDdABDTlJjDxX SyhivhwNObyCiHnXb9o8v3/TOiMwLzU3S3gt3/cprhrGMvVkUgWpd7g X-Developer-Key: i=jens.glathe@oldschoolsolutions.biz; a=ed25519; pk=JcRJqJc/y8LsxOlPakALD3juGfOKmFBWtO+GfELMJVg= X-Endpoint-Received: by B4 Relay for jens.glathe@oldschoolsolutions.biz/20240919 with auth_id=216 X-Original-From: Jens Glathe Reply-To: jens.glathe@oldschoolsolutions.biz From: Jens Glathe Device tree for the Microsoft Windows Dev Kit 2023. This work is based on the initial work of Merck Hung . Original work: https://github.com/merckhung/linux_ms_dev_kit/blob/ms-dev-ki= t-2023-v6.3.0/arch/arm64/boot/dts/qcom/sc8280xp-microsoft-dev-kit-2023.dts The Windows Dev Kit 2023 is a nice little desktop based on sc8280xp. Link: https://learn.microsoft.com/en-us/windows/arm/dev-kit/ Supported features: - USB type-c and type-a ports - minidp connector - built-in r8152 Ethernet adapter - PCIe devices - nvme - ath11k WiFi (WCN6855) - WCN6855 Bluetooth - A690 GPU - ADSP and CDSP - GPIO keys - Audio definition (works via USB) Signed-off-by: Jens Glathe --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../boot/dts/qcom/sc8280xp-microsoft-blackrock.dts | 1373 ++++++++++++++++= ++++ 2 files changed, 1374 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/M= akefile index ac199f809b0d4..0e354299f832b 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -192,6 +192,7 @@ dtb-$(CONFIG_ARCH_QCOM) +=3D sc8180x-primus.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D sc8280xp-crd.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D sc8280xp-lenovo-thinkpad-x13s.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D sc8280xp-microsoft-arcata.dtb +dtb-$(CONFIG_ARCH_QCOM) +=3D sc8280xp-microsoft-blackrock.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D sda660-inforce-ifc6560.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D sdm450-lenovo-tbx605f.dtb dtb-$(CONFIG_ARCH_QCOM) +=3D sdm450-motorola-ali.dtb diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-microsoft-blackrock.dts b/ar= ch/arm64/boot/dts/qcom/sc8280xp-microsoft-blackrock.dts new file mode 100644 index 0000000000000..a882865e2f6ef --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sc8280xp-microsoft-blackrock.dts @@ -0,0 +1,1373 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2021, The Linux Foundation. All rights reserved. + * Copyright (c) 2022, Linaro Limited + * Copyright (c) 2023, Merck Hung + * Copyright (c) 2023, 2024 Jens Glathe + */ + +/dts-v1/; + +#include +#include +#include +#include +#include + +#include "sc8280xp.dtsi" +#include "sc8280xp-pmics.dtsi" + +/ { + model =3D "Windows Dev Kit 2023"; + compatible =3D "microsoft,blackrock", "qcom,sc8280xp"; + chassis-type =3D "desktop"; + + aliases { + i2c4 =3D &i2c4; + i2c21 =3D &i2c21; + serial1 =3D &uart2; + }; + + wcd938x: audio-codec { + compatible =3D "qcom,wcd9380-codec"; + + pinctrl-0 =3D <&wcd_default>; + pinctrl-names =3D "default"; + + reset-gpios =3D <&tlmm 106 GPIO_ACTIVE_LOW>; + + vdd-buck-supply =3D <&vreg_s10b>; + vdd-rxtx-supply =3D <&vreg_s10b>; + vdd-io-supply =3D <&vreg_s10b>; + vdd-mic-bias-supply =3D <&vreg_bob>; + + qcom,micbias1-microvolt =3D <1800000>; + qcom,micbias2-microvolt =3D <1800000>; + qcom,micbias3-microvolt =3D <1800000>; + qcom,micbias4-microvolt =3D <1800000>; + qcom,mbhc-buttons-vthreshold-microvolt =3D <75000 150000 237000 500000 5= 00000 500000 500000 500000>; + qcom,mbhc-headset-vthreshold-microvolt =3D <1700000>; + qcom,mbhc-headphone-vthreshold-microvolt =3D <50000>; + qcom,rx-device =3D <&wcd_rx>; + qcom,tx-device =3D <&wcd_tx>; + + #sound-dai-cells =3D <1>; + }; + + dp3_connector: connector { + compatible =3D "dp-connector"; + label =3D "DP-3"; + type =3D "mini"; + + dp-pwr-supply =3D <&vreg_misc_3p3>; + + port { + dp1_connector_in: endpoint { + remote-endpoint =3D <&mdss0_dp2_phy_out>; + }; + }; + }; + + pmic-glink { + compatible =3D "qcom,sc8280xp-pmic-glink", "qcom,pmic-glink"; + + #address-cells =3D <1>; + #size-cells =3D <0>; + orientation-gpios =3D <&tlmm 166 GPIO_ACTIVE_HIGH>, + <&tlmm 49 GPIO_ACTIVE_HIGH>; + + /* Left-side rear port */ + connector@0 { + compatible =3D "usb-c-connector"; + reg =3D <0>; + power-role =3D "source"; + data-role =3D "dual"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + + pmic_glink_con0_hs: endpoint { + remote-endpoint =3D <&usb_0_dwc3_hs>; + }; + }; + + port@1 { + reg =3D <1>; + + pmic_glink_con0_ss: endpoint { + remote-endpoint =3D <&usb_0_qmpphy_out>; + }; + }; + + port@2 { + reg =3D <2>; + + pmic_glink_con0_sbu: endpoint { + remote-endpoint =3D <&usb0_sbu_mux>; + }; + }; + }; + }; + + /* Left-side front port */ + connector@1 { + compatible =3D "usb-c-connector"; + reg =3D <1>; + power-role =3D "source"; + data-role =3D "dual"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + + pmic_glink_con1_hs: endpoint { + remote-endpoint =3D <&usb_1_dwc3_hs>; + }; + }; + + port@1 { + reg =3D <1>; + + pmic_glink_con1_ss: endpoint { + remote-endpoint =3D <&usb_1_qmpphy_out>; + }; + }; + + port@2 { + reg =3D <2>; + + pmic_glink_con1_sbu: endpoint { + remote-endpoint =3D <&usb1_sbu_mux>; + }; + }; + }; + }; + }; + + vreg_misc_3p3: regulator-misc-3p3 { + compatible =3D "regulator-fixed"; + + regulator-name =3D "VCC3B"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + + gpio =3D <&pmc8280_1_gpios 1 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-0 =3D <&misc_3p3_reg_en>; + pinctrl-names =3D "default"; + + regulator-boot-on; + regulator-always-on; + }; + + vreg_nvme: regulator-nvme { + compatible =3D "regulator-fixed"; + + regulator-name =3D "VCC3_SSD"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + + gpio =3D <&tlmm 135 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-0 =3D <&nvme_reg_en>; + pinctrl-names =3D "default"; + + regulator-boot-on; + }; + + vreg_vph_pwr: regulator-vph-pwr { + compatible =3D "regulator-fixed"; + + regulator-name =3D "VPH_VCC3R9"; + regulator-min-microvolt =3D <3900000>; + regulator-max-microvolt =3D <3900000>; + + regulator-always-on; + }; + + vreg_wlan: regulator-wlan { + compatible =3D "regulator-fixed"; + + regulator-name =3D "VCC_WLAN_3R9"; + regulator-min-microvolt =3D <3900000>; + regulator-max-microvolt =3D <3900000>; + + gpio =3D <&pmr735a_gpios 1 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-0 =3D <&hastings_reg_en>; + pinctrl-names =3D "default"; + + regulator-boot-on; + }; + + vreg_wwan: regulator-wwan { + compatible =3D "regulator-fixed"; + + regulator-name =3D "VCC3B_WAN"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + + gpio =3D <&pmc8280_2_gpios 1 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-0 =3D <&wwan_sw_en>; + pinctrl-names =3D "default"; + + regulator-boot-on; + }; + + reserved-memory { + gpu_mem: gpu-mem@8bf00000 { + reg =3D <0 0x8bf00000 0 0x2000>; + no-map; + }; + + linux,cma { + compatible =3D "shared-dma-pool"; + size =3D <0x0 0x8000000>; + reusable; + linux,cma-default; + }; + }; + + usb0-sbu-mux { + compatible =3D "pericom,pi3usb102", "gpio-sbu-mux"; + + enable-gpios =3D <&tlmm 101 GPIO_ACTIVE_LOW>; + select-gpios =3D <&tlmm 164 GPIO_ACTIVE_HIGH>; + + pinctrl-0 =3D <&usb0_sbu_default>; + pinctrl-names =3D "default"; + + mode-switch; + orientation-switch; + + port { + usb0_sbu_mux: endpoint { + remote-endpoint =3D <&pmic_glink_con0_sbu>; + }; + }; + }; + + usb1-sbu-mux { + compatible =3D "pericom,pi3usb102", "gpio-sbu-mux"; + + enable-gpios =3D <&tlmm 48 GPIO_ACTIVE_LOW>; + select-gpios =3D <&tlmm 47 GPIO_ACTIVE_HIGH>; + + pinctrl-0 =3D <&usb1_sbu_default>; + pinctrl-names =3D "default"; + + mode-switch; + orientation-switch; + + port { + usb1_sbu_mux: endpoint { + remote-endpoint =3D <&pmic_glink_con1_sbu>; + }; + }; + }; + + 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"; + }; + }; + }; +}; + +&apps_rsc { + regulators-0 { + compatible =3D "qcom,pm8350-rpmh-regulators"; + qcom,pmic-id =3D "b"; + + vdd-s10-supply =3D <&vreg_vph_pwr>; + vdd-s11-supply =3D <&vreg_vph_pwr>; + vdd-s12-supply =3D <&vreg_vph_pwr>; + vdd-l1-l4-supply =3D <&vreg_s12b>; + vdd-l2-l7-supply =3D <&vreg_bob>; + vdd-l3-l5-supply =3D <&vreg_s11b>; + vdd-l6-l9-l10-supply =3D <&vreg_s12b>; + vdd-l8-supply =3D <&vreg_s12b>; + + vreg_s10b: smps10 { + regulator-name =3D "vreg_s10b"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-initial-mode =3D ; + regulator-always-on; + }; + + vreg_s11b: smps11 { + regulator-name =3D "vreg_s11b"; + regulator-min-microvolt =3D <1272000>; + regulator-max-microvolt =3D <1272000>; + regulator-initial-mode =3D ; + }; + + vreg_s12b: smps12 { + regulator-name =3D "vreg_s12b"; + regulator-min-microvolt =3D <984000>; + regulator-max-microvolt =3D <984000>; + regulator-initial-mode =3D ; + }; + + vreg_l1b: ldo1 { + regulator-name =3D "vreg_l1b"; + regulator-min-microvolt =3D <912000>; + regulator-max-microvolt =3D <912000>; + regulator-initial-mode =3D ; + }; + + vreg_l3b: ldo3 { + regulator-name =3D "vreg_l3b"; + regulator-min-microvolt =3D <1200000>; + regulator-max-microvolt =3D <1200000>; + regulator-initial-mode =3D ; + regulator-boot-on; + }; + + vreg_l4b: ldo4 { + regulator-name =3D "vreg_l4b"; + regulator-min-microvolt =3D <912000>; + regulator-max-microvolt =3D <912000>; + regulator-initial-mode =3D ; + }; + + vreg_l6b: ldo6 { + regulator-name =3D "vreg_l6b"; + regulator-min-microvolt =3D <880000>; + regulator-max-microvolt =3D <880000>; + regulator-initial-mode =3D ; + regulator-boot-on; + }; + }; + + regulators-1 { + compatible =3D "qcom,pm8350c-rpmh-regulators"; + qcom,pmic-id =3D "c"; + + vdd-bob-supply =3D <&vreg_vph_pwr>; + vdd-l1-l12-supply =3D <&vreg_s1c>; + vdd-l2-l8-supply =3D <&vreg_s1c>; + vdd-l3-l4-l5-l7-l13-supply =3D <&vreg_bob>; + vdd-l6-l9-l11-supply =3D <&vreg_bob>; + vdd-l10-supply =3D <&vreg_s11b>; + + vreg_s1c: smps1 { + regulator-name =3D "vreg_s1c"; + regulator-min-microvolt =3D <1880000>; + regulator-max-microvolt =3D <1900000>; + regulator-initial-mode =3D ; + regulator-always-on; + }; + + vreg_l1c: ldo1 { + regulator-name =3D "vreg_l1c"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-initial-mode =3D ; + }; + + vreg_l6c: ldo6 { + regulator-name =3D "vreg_l6c"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <2960000>; + regulator-initial-mode =3D ; + }; + + vreg_l7c: ldo7 { + regulator-name =3D "vreg_l7c"; + regulator-min-microvolt =3D <2504000>; + regulator-max-microvolt =3D <2504000>; + regulator-initial-mode =3D ; + regulator-allow-set-load; + regulator-allowed-modes =3D ; + }; + + vreg_l8c: ldo8 { + regulator-name =3D "vreg_l8c"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-initial-mode =3D ; + }; + + vreg_l9c: ldo9 { + regulator-name =3D "vreg_l9c"; + regulator-min-microvolt =3D <2960000>; + regulator-max-microvolt =3D <2960000>; + regulator-initial-mode =3D ; + }; + + vreg_l12c: ldo12 { + regulator-name =3D "vreg_l12c"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-initial-mode =3D ; + }; + + vreg_l13c: ldo13 { + regulator-name =3D "vreg_l13c"; + regulator-min-microvolt =3D <3072000>; + regulator-max-microvolt =3D <3072000>; + regulator-initial-mode =3D ; + }; + + vreg_bob: bob { + regulator-name =3D "vreg_bob"; + regulator-min-microvolt =3D <3008000>; + regulator-max-microvolt =3D <3960000>; + regulator-initial-mode =3D ; + regulator-always-on; + }; + }; + + regulators-2 { + compatible =3D "qcom,pm8350-rpmh-regulators"; + qcom,pmic-id =3D "d"; + + vdd-l1-l4-supply =3D <&vreg_s11b>; + vdd-l2-l7-supply =3D <&vreg_bob>; + vdd-l3-l5-supply =3D <&vreg_s11b>; + vdd-l6-l9-l10-supply =3D <&vreg_s12b>; + vdd-l8-supply =3D <&vreg_s12b>; + + vreg_l2d: ldo2 { + regulator-name =3D "vreg_l2d"; + regulator-min-microvolt =3D <3072000>; + regulator-max-microvolt =3D <3072000>; + regulator-initial-mode =3D ; + }; + + vreg_l3d: ldo3 { + regulator-name =3D "vreg_l3d"; + regulator-min-microvolt =3D <1200000>; + regulator-max-microvolt =3D <1200000>; + regulator-initial-mode =3D ; + regulator-allow-set-load; + regulator-allowed-modes =3D ; + }; + + vreg_l4d: ldo4 { + regulator-name =3D "vreg_l4d"; + regulator-min-microvolt =3D <1200000>; + regulator-max-microvolt =3D <1200000>; + regulator-initial-mode =3D ; + }; + + vreg_l6d: ldo6 { + regulator-name =3D "vreg_l6d"; + regulator-min-microvolt =3D <880000>; + regulator-max-microvolt =3D <880000>; + regulator-initial-mode =3D ; + }; + + vreg_l7d: ldo7 { + regulator-name =3D "vreg_l7d"; + regulator-min-microvolt =3D <3072000>; + regulator-max-microvolt =3D <3072000>; + regulator-initial-mode =3D ; + }; + + vreg_l8d: ldo8 { + regulator-name =3D "vreg_l8d"; + regulator-min-microvolt =3D <912000>; + regulator-max-microvolt =3D <912000>; + regulator-initial-mode =3D ; + }; + + vreg_l9d: ldo9 { + regulator-name =3D "vreg_l9d"; + regulator-min-microvolt =3D <912000>; + regulator-max-microvolt =3D <912000>; + regulator-initial-mode =3D ; + }; + + vreg_l10d: ldo10 { + regulator-name =3D "vreg_l10d"; + regulator-min-microvolt =3D <912000>; + regulator-max-microvolt =3D <912000>; + regulator-initial-mode =3D ; + }; + }; +}; + +&dispcc0 { + status =3D "okay"; +}; + +&gpu { + status =3D "okay"; + + zap-shader { + memory-region =3D <&gpu_mem>; + firmware-name =3D "qcom/sc8280xp/microsoft/blackrock/qcdxkmsuc8280.mbn"; + }; +}; + +&mdss0 { + status =3D "okay"; +}; + +&mdss0_dp0 { + status =3D "okay"; +}; + +&mdss0_dp0_out { + data-lanes =3D <0 1>; + remote-endpoint =3D <&usb_0_qmpphy_dp_in>; +}; + +&mdss0_dp1 { + status =3D "okay"; +}; + +&mdss0_dp1_out { + data-lanes =3D <0 1>; + remote-endpoint =3D <&usb_1_qmpphy_dp_in>; +}; + +&mdss0_dp2 { + compatible =3D "qcom,sc8280xp-dp"; + + data-lanes =3D <0 1 2 3>; + + status =3D "okay"; + + ports { + port@1 { + reg =3D <1>; + mdss0_dp2_phy_out: endpoint { + remote-endpoint =3D <&dp1_connector_in>; + }; + }; + }; +}; + +&mdss0_dp2_phy { + compatible =3D "qcom,sc8280xp-dp-phy"; + + vdda-phy-supply =3D <&vreg_l3b>; + vdda-pll-supply =3D <&vreg_l6b>; + + status =3D "okay"; +}; + +&pcie2a { + max-link-speed =3D <4>; + + perst-gpios =3D <&tlmm 143 GPIO_ACTIVE_LOW>; + wake-gpios =3D <&tlmm 145 GPIO_ACTIVE_LOW>; + + vddpe-3v3-supply =3D <&vreg_nvme>; + + pinctrl-0 =3D <&pcie2a_default>; + pinctrl-names =3D "default"; + + status =3D "okay"; +}; + +&pcie2a_phy { + vdda-phy-supply =3D <&vreg_l4d>; + vdda-pll-supply =3D <&vreg_l6d>; + + status =3D "okay"; +}; + +&pcie4 { + max-link-speed =3D <2>; + + perst-gpios =3D <&tlmm 141 GPIO_ACTIVE_LOW>; + wake-gpios =3D <&tlmm 139 GPIO_ACTIVE_LOW>; + + vddpe-3v3-supply =3D <&vreg_wlan>; + + pinctrl-0 =3D <&pcie4_default>; + pinctrl-names =3D "default"; + + status =3D "okay"; +}; + +&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 "MS_Volterra"; + }; +}; + +&pcie4_phy { + vdda-phy-supply =3D <&vreg_l4d>; + vdda-pll-supply =3D <&vreg_l6d>; + + status =3D "okay"; +}; + +&pmc8280c_lpg { + status =3D "okay"; +}; + +&pmk8280_adc_tm { + status =3D "okay"; + + sys-therm@0 { + reg =3D <0>; + io-channels =3D <&pmk8280_vadc PM8350_ADC7_AMUX_THM1_100K_PU(1)>; + qcom,hw-settle-time-us =3D <200>; + qcom,avg-samples =3D <2>; + qcom,ratiometric; + }; + + sys-therm@1 { + reg =3D <1>; + io-channels =3D <&pmk8280_vadc PM8350_ADC7_AMUX_THM2_100K_PU(1)>; + qcom,hw-settle-time-us =3D <200>; + qcom,avg-samples =3D <2>; + qcom,ratiometric; + }; + + sys-therm@2 { + reg =3D <2>; + io-channels =3D <&pmk8280_vadc PM8350_ADC7_AMUX_THM3_100K_PU(1)>; + qcom,hw-settle-time-us =3D <200>; + qcom,avg-samples =3D <2>; + qcom,ratiometric; + }; + + sys-therm@3 { + reg =3D <3>; + io-channels =3D <&pmk8280_vadc PM8350_ADC7_AMUX_THM4_100K_PU(1)>; + qcom,hw-settle-time-us =3D <200>; + qcom,avg-samples =3D <2>; + qcom,ratiometric; + }; + + sys-therm@4 { + reg =3D <4>; + io-channels =3D <&pmk8280_vadc PM8350_ADC7_AMUX_THM1_100K_PU(3)>; + qcom,hw-settle-time-us =3D <200>; + qcom,avg-samples =3D <2>; + qcom,ratiometric; + }; + + sys-therm@5 { + reg =3D <5>; + io-channels =3D <&pmk8280_vadc PM8350_ADC7_AMUX_THM2_100K_PU(3)>; + qcom,hw-settle-time-us =3D <200>; + qcom,avg-samples =3D <2>; + qcom,ratiometric; + }; + + sys-therm@6 { + reg =3D <6>; + io-channels =3D <&pmk8280_vadc PM8350_ADC7_AMUX_THM3_100K_PU(3)>; + qcom,hw-settle-time-us =3D <200>; + qcom,avg-samples =3D <2>; + qcom,ratiometric; + }; + + sys-therm@7 { + reg =3D <7>; + io-channels =3D <&pmk8280_vadc PM8350_ADC7_AMUX_THM4_100K_PU(3)>; + qcom,hw-settle-time-us =3D <200>; + qcom,avg-samples =3D <2>; + qcom,ratiometric; + }; +}; + +&pmk8280_pon_pwrkey { + status =3D "okay"; +}; + +&pmk8280_pon_resin { + status =3D "okay"; +}; + +&pmk8280_rtc { + nvmem-cells =3D <&rtc_offset>; + nvmem-cell-names =3D "offset"; + + status =3D "okay"; +}; + +&pmk8280_sdam_6 { + status =3D "okay"; + + rtc_offset: rtc-offset@bc { + reg =3D <0xbc 0x4>; + }; +}; + +&pmk8280_vadc { + channel@144 { + reg =3D ; + qcom,hw-settle-time =3D <200>; + qcom,ratiometric; + label =3D "sys_therm1"; + }; + + channel@145 { + reg =3D ; + qcom,hw-settle-time =3D <200>; + qcom,ratiometric; + label =3D "sys_therm2"; + }; + + channel@146 { + reg =3D ; + qcom,hw-settle-time =3D <200>; + qcom,ratiometric; + label =3D "sys_therm3"; + }; + + channel@147 { + reg =3D ; + qcom,hw-settle-time =3D <200>; + qcom,ratiometric; + label =3D "sys_therm4"; + }; + + channel@344 { + reg =3D ; + qcom,hw-settle-time =3D <200>; + qcom,ratiometric; + label =3D "sys_therm5"; + }; + + channel@345 { + reg =3D ; + qcom,hw-settle-time =3D <200>; + qcom,ratiometric; + label =3D "sys_therm6"; + }; + + channel@346 { + reg =3D ; + qcom,hw-settle-time =3D <200>; + qcom,ratiometric; + label =3D "sys_therm7"; + }; + + channel@347 { + reg =3D ; + qcom,hw-settle-time =3D <200>; + qcom,ratiometric; + label =3D "sys_therm8"; + }; +}; + +&qup0 { + status =3D "okay"; +}; + +&qup1 { + status =3D "okay"; +}; + +&qup2 { + status =3D "okay"; +}; + +&remoteproc_adsp { + firmware-name =3D "qcom/sc8280xp/microsoft/blackrock/qcadsp8280.mbn"; + + status =3D "okay"; +}; + +&remoteproc_nsp0 { + firmware-name =3D "qcom/sc8280xp/microsoft/blackrock/qccdsp8280.mbn"; + + status =3D "okay"; +}; + +&rxmacro { + status =3D "okay"; +}; + +&sound { + compatible =3D "qcom,sc8280xp-sndcard"; + model =3D "microsoft/blackrock"; + audio-routing =3D + "SpkrLeft IN", "WSA_SPK1 OUT", + "SpkrRight IN", "WSA_SPK2 OUT", + "IN1_HPHL", "HPHL_OUT", + "IN2_HPHR", "HPHR_OUT", + "AMIC2", "MIC BIAS2", + "VA DMIC0", "MIC BIAS1", + "VA DMIC1", "MIC BIAS1", + "VA DMIC2", "MIC BIAS3", + "VA DMIC0", "VA MIC BIAS1", + "VA DMIC1", "VA MIC BIAS1", + "VA DMIC2", "VA MIC BIAS3", + "TX SWR_ADC1", "ADC2_OUTPUT"; + + wcd-playback-dai-link { + link-name =3D "WCD Playback"; + + cpu { + sound-dai =3D <&q6apmbedai RX_CODEC_DMA_RX_0>; + }; + + codec { + sound-dai =3D <&wcd938x 0>, <&swr1 0>, <&rxmacro 0>; + }; + + platform { + sound-dai =3D <&q6apm>; + }; + }; + + wcd-capture-dai-link { + link-name =3D "WCD Capture"; + + cpu { + sound-dai =3D <&q6apmbedai TX_CODEC_DMA_TX_3>; + }; + + codec { + sound-dai =3D <&wcd938x 1>, <&swr2 0>, <&txmacro 0>; + }; + + platform { + sound-dai =3D <&q6apm>; + }; + }; + + wsa-dai-link { + link-name =3D "WSA Playback"; + + cpu { + sound-dai =3D <&q6apmbedai WSA_CODEC_DMA_RX_0>; + }; + + codec { + sound-dai =3D <&swr0 0>, <&wsamacro 0>; + }; + + platform { + sound-dai =3D <&q6apm>; + }; + }; + + va-dai-link { + link-name =3D "VA Capture"; + + cpu { + sound-dai =3D <&q6apmbedai VA_CODEC_DMA_TX_0>; + }; + + platform { + sound-dai =3D <&q6apm>; + }; + + codec { + sound-dai =3D <&vamacro 0>; + }; + }; +}; + +&swr0 { + status =3D "okay"; +}; + +&swr1 { + status =3D "okay"; + + wcd_rx: wcd9380-rx@0,4 { + compatible =3D "sdw20217010d00"; + reg =3D <0 4>; + qcom,rx-port-mapping =3D <1 2 3 4 5>; + }; +}; + +&swr2 { + status =3D "okay"; + + wcd_tx: wcd9380-tx@0,3 { + compatible =3D "sdw20217010d00"; + reg =3D <0 3>; + qcom,tx-port-mapping =3D <1 1 2 3>; + }; +}; + +&txmacro { + status =3D "okay"; +}; + +&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>; + + max-speed =3D <3200000>; + }; +}; + +&usb_0 { + status =3D "okay"; +}; + +&usb_0_dwc3 { + dr_mode =3D "host"; +}; + +&usb_0_dwc3_hs { + remote-endpoint =3D <&pmic_glink_con0_hs>; +}; + +&usb_0_hsphy { + vdda-pll-supply =3D <&vreg_l9d>; + vdda18-supply =3D <&vreg_l1c>; + vdda33-supply =3D <&vreg_l7d>; + + status =3D "okay"; +}; + +&usb_0_qmpphy { + vdda-phy-supply =3D <&vreg_l4d>; + vdda-pll-supply =3D <&vreg_l9d>; + + orientation-switch; + + status =3D "okay"; +}; + +&usb_0_qmpphy_dp_in { + remote-endpoint =3D <&mdss0_dp0_out>; +}; + +&usb_0_qmpphy_out { + remote-endpoint =3D <&pmic_glink_con0_ss>; +}; + +&usb_1 { + status =3D "okay"; +}; + +&usb_1_dwc3 { + dr_mode =3D "host"; +}; + +&usb_1_dwc3_hs { + remote-endpoint =3D <&pmic_glink_con1_hs>; +}; + +&usb_1_hsphy { + vdda-pll-supply =3D <&vreg_l4b>; + vdda18-supply =3D <&vreg_l1c>; + vdda33-supply =3D <&vreg_l13c>; + + status =3D "okay"; +}; + +&usb_1_qmpphy { + vdda-phy-supply =3D <&vreg_l3b>; + vdda-pll-supply =3D <&vreg_l4b>; + + orientation-switch; + + status =3D "okay"; +}; + +&usb_1_qmpphy_dp_in { + remote-endpoint =3D <&mdss0_dp1_out>; +}; + +&usb_1_qmpphy_out { + remote-endpoint =3D <&pmic_glink_con1_ss>; +}; + +&usb_2 { + pinctrl-0 =3D <&usb2_en_state>; + pinctrl-names =3D "default"; + + status =3D "okay"; +}; + +&usb_2_dwc3 { + dr_mode =3D "host"; + phy-names =3D "usb2-port0", "usb3-port0"; + phys =3D <&usb_2_hsphy0>, <&usb_2_qmpphy0>; + + status =3D "okay"; +}; + +&usb_2_hsphy0 { + vdda-pll-supply =3D <&vreg_l1b>; + vdda18-supply =3D <&vreg_l1c>; + vdda33-supply =3D <&vreg_l7d>; + + status =3D "okay"; +}; + +&usb_2_hsphy1 { + vdda-pll-supply =3D <&vreg_l8d>; + vdda18-supply =3D <&vreg_l1c>; + vdda33-supply =3D <&vreg_l7d>; + + status =3D "okay"; +}; + +&usb_2_hsphy2 { + vdda-pll-supply =3D <&vreg_l10d>; + vdda18-supply =3D <&vreg_l8c>; + vdda33-supply =3D <&vreg_l2d>; + + status =3D "okay"; +}; + +&usb_2_hsphy3 { + vdda-pll-supply =3D <&vreg_l10d>; + vdda18-supply =3D <&vreg_l8c>; + vdda33-supply =3D <&vreg_l2d>; + + status =3D "okay"; +}; + +&usb_2_qmpphy0 { + vdda-phy-supply =3D <&vreg_l1b>; + vdda-pll-supply =3D <&vreg_l4d>; + + status =3D "okay"; +}; + +&usb_2_qmpphy1 { + vdda-phy-supply =3D <&vreg_l8d>; + vdda-pll-supply =3D <&vreg_l4d>; + + status =3D "okay"; +}; + +&vamacro { + pinctrl-0 =3D <&dmic01_default>, <&dmic23_default>; + pinctrl-names =3D "default"; + + vdd-micb-supply =3D <&vreg_s10b>; + + qcom,dmic-sample-rate =3D <4800000>; + + status =3D "okay"; +}; + +&wsamacro { + status =3D "okay"; +}; + +&xo_board_clk { + clock-frequency =3D <38400000>; +}; + +/* PINCTRL */ + +&lpass_tlmm { + status =3D "okay"; +}; + +&pmc8280_1_gpios { + edp_bl_en: edp-bl-en-state { + pins =3D "gpio8"; + function =3D "normal"; + }; + + edp_bl_reg_en: edp-bl-reg-en-state { + pins =3D "gpio9"; + function =3D "normal"; + }; + + misc_3p3_reg_en: misc-3p3-reg-en-state { + pins =3D "gpio1"; + function =3D "normal"; + }; +}; + +&pmc8280_2_gpios { + wwan_sw_en: wwan-sw-en-state { + pins =3D "gpio1"; + function =3D "normal"; + }; +}; + +&pmc8280c_gpios { + edp_bl_pwm: edp-bl-pwm-state { + pins =3D "gpio8"; + function =3D "func1"; + }; +}; + +&pmr735a_gpios { + hastings_reg_en: hastings-reg-en-state { + pins =3D "gpio1"; + function =3D "normal"; + }; +}; + +&tlmm { + gpio-reserved-ranges =3D <70 2>, <74 6>, <125 2>, <128 2>, <154 4>; + + bt_default: bt-default-state { + hstp-bt-en-pins { + pins =3D "gpio133"; + function =3D "gpio"; + drive-strength =3D <16>; + bias-disable; + }; + + hstp-sw-ctrl-pins { + pins =3D "gpio132"; + function =3D "gpio"; + bias-pull-down; + }; + }; + + nvme_reg_en: nvme-reg-en-state { + pins =3D "gpio135"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + }; + + pcie2a_default: pcie2a-default-state { + clkreq-n-pins { + pins =3D "gpio142"; + function =3D "pcie2a_clkreq"; + drive-strength =3D <2>; + bias-pull-up; + }; + + perst-n-pins { + pins =3D "gpio143"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + }; + + wake-n-pins { + pins =3D "gpio145"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-pull-up; + }; + }; + + pcie3a_default: pcie3a-default-state { + clkreq-n-pins { + pins =3D "gpio150"; + function =3D "pcie3a_clkreq"; + drive-strength =3D <2>; + bias-pull-up; + }; + + perst-n-pins { + pins =3D "gpio151"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + }; + + wake-n-pins { + pins =3D "gpio148"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-pull-up; + }; + }; + + pcie4_default: pcie4-default-state { + clkreq-n-pins { + pins =3D "gpio140"; + function =3D "pcie4_clkreq"; + drive-strength =3D <2>; + bias-pull-up; + }; + + perst-n-pins { + pins =3D "gpio141"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + }; + + wake-n-pins { + pins =3D "gpio139"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-pull-up; + }; + }; + + 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"; + function =3D "gpio"; + bias-disable; + drive-strength =3D <16>; + output-high; + }; + + sel-pins { + pins =3D "gpio164"; + function =3D "gpio"; + bias-disable; + drive-strength =3D <16>; + }; + }; + + usb1_sbu_default: usb1-sbu-state { + oe-n-pins { + pins =3D "gpio48"; + function =3D "gpio"; + bias-disable; + drive-strength =3D <16>; + output-high; + }; + + sel-pins { + pins =3D "gpio47"; + function =3D "gpio"; + bias-disable; + drive-strength =3D <16>; + }; + }; + + usb2_en_state: usb2-en-state { + /* TS3USB221A USB2.0 mux select */ + pins =3D "gpio24"; + function =3D "gpio"; + drive-strength =3D <2>; + bias-disable; + output-low; + }; + + wcd_default: wcd-default-state { + reset-pins { + pins =3D "gpio106"; + function =3D "gpio"; + bias-disable; + }; + }; + + wlan_en: wlan-en-state { + pins =3D "gpio134"; + function =3D "gpio"; + drive-strength =3D <8>; + bias-pull-down; + }; +}; --=20 2.43.0