From nobody Tue Dec 16 02:29:52 2025 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1F3D723C511; Mon, 23 Jun 2025 11:37:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750678637; cv=none; b=J9GvunwBdith2BDSFeS0wrokzP9QqlII6WfcA2+q9VNtgkZMA2Bed9m+/RTKS8zRFjHL5fCmtDaJmuOL7DovKJZKvyuxtYAQpTdL8h6QgtzXibxgYvf6Z3lsnwXVkKLju/YQrRciHwVC2f7e78ZmH2H51OekJrI1eLHGuW0m1UU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750678637; c=relaxed/simple; bh=Y0VB27RH0WYoiyehvQWxTYoe3QvLHXGk9F3Jdn/qOG0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NQiRChO7BpvaPk2C39vDy4UKP9gwIT4ok5grSxK73j01AChwKQ5gQcON0+TbOgioz7BhKbtt28HGo9M1CPeuxfmNAo+bk7GKs13tgEOYjXNn3OgSPx/zehnYhvIRHxZDq2d1VGGvzNiwCMVsPmaYb67DdG/uZTJhYSTk7QCQ53s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ltve4euP; arc=none smtp.client-ip=209.85.128.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ltve4euP" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-450ce3a2dd5so39120945e9.3; Mon, 23 Jun 2025 04:37:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750678634; x=1751283434; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=T0Lv0sWU+klYLwQqzfLavoUyPC5rHucRlBjUY90ufh4=; b=ltve4euPgVTB/cE5OMXtLJi8xQNUAAGlD/vaVx29EzDFVf4O6feRAxPk+YOYhRRfmV c1J+VhdDwohHvDq+dhbhvxOmKmnUGj+3GcL3PRM+76Q8waH1z+f5BmZhOtXFBi3QW6Fy BFg9xDBm/66Yzo8ZTtyAnBGzY8GKOX1D3F+sbr8BQwVJeeImV9HWHu+JpHLdvQ84HkCn JLpMTyvJyzmHb7Vzrbp0m7GVQ4FwxHfhQkRfP+JZO6kGZGbApHB/C23PUUtwQqaYaG9w VkuI3sTjhsdohsTOKOjGl1h8DK3xXBrutoiFo6HzdCakMpNeHQIsJPKnRnThOf4H+ghU cCqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750678634; x=1751283434; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=T0Lv0sWU+klYLwQqzfLavoUyPC5rHucRlBjUY90ufh4=; b=SpHLrWbo6G1F49oDcVhxPVopT5SLy1b9TRM1Xwk5wa9/6kLkydk5uyd1LqtaufgwLC esP7482vfAeddJFaMugMGWb4EySpSIvq2CpcqGdV68wwED3nU6sGrbgcTJPA5r8WOhNS ADPs2MJqHxeGCh6eHR9v2JVenGpAgDCM5uV54byyrQDfOT74V6FowH2k6bS4CL6cHG/A Ot0WG/IT7JSGiJMVklVc8XvYS9Ws3H9lrgIsyXzhWRv2khm7eE3vJbL4YPGHs96tvEaA NhHutoLXjipDp7OPj2JEoOPON7SqGRHeCMr+u9cHdV/sWccGCqHj5cNPHnx3uUGm26NZ /MkQ== X-Forwarded-Encrypted: i=1; AJvYcCW78eZo4FQNVWuHHLMPef2gXsMqSKKcOCk0cjPkC5+2GKpBInxDIIq8nJaVbfa1K1MC3pyqEZlAeMuQpgbleg==@vger.kernel.org, AJvYcCWwRzAdVkHbJ/Dqg6+UFOwWxZgA1uzTKaGvXRIohYWkoK8BWy0x16wVnlMLxvxRsFNaotl4r0rZmqBK@vger.kernel.org, AJvYcCX+Smo2abdSJbsCf8GG4rQx2awHgFSalBsYgzv1+uNMLinUd4tF08jMMMHxbEyMvt0YHJNQInjxgqLcbqNn@vger.kernel.org X-Gm-Message-State: AOJu0YyBBScs2weaGZ12dc90JDEIPWGjaP6ksoSoqf0szHnkX/7MQExo W8kzYz+Bj7TDZC79CRTNADxKmVJmjCaKp6iMuSk8yr53BBHPiGk35K4= X-Gm-Gg: ASbGncsW9Ax3u5AVbpGWaU/salSduyDCcWP7R+KluA5QTiA0dkZmN20uKe6XQD5R3Jx mO1ixUN80HGNjyeRmJp11Oo2WP7KON8ZOhkoftWQieZ3so//2F6px9nA745LksNJ06/aSzqX+ze gspcRSkoAC2iOopfzW+m0cs9dYm1LX/hpke7pcyvID5ZCPv4yK/5MGr0kI2Y2JIEywGgBnOp/yY ntUlu/sluj5ZBJ+CDg6k4ikLNXes68/HRk0AZ+mamt7JPL7loUhbnm5aLkyqVg95DyulXo8whJP so9Jq3LgONZdyZaVy47iOPNSrMP2rEj47bNqu40lZ0UGUhnVBNImMbkugBkWF4kHhzFmcZF76mm arD2WrhyMCXzPdAZbx35iJDBBfg61nQ== X-Google-Smtp-Source: AGHT+IEv+15TvjDvb3IzFbOpB1C98nfMg5GVXW0gUnO3EKDSPcIMvitHgUYF7Nucuyqmo7bf3faQKw== X-Received: by 2002:a05:600c:1e20:b0:453:81a:2f3f with SMTP id 5b1f17b1804b1-453659d7233mr125746725e9.30.1750678633817; Mon, 23 Jun 2025 04:37:13 -0700 (PDT) Received: from alex-x1.. (mob-194-230-148-213.cgn.sunrise.net. [194.230.148.213]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a6d0f18215sm9092625f8f.29.2025.06.23.04.37.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Jun 2025 04:37:13 -0700 (PDT) From: Aleksandrs Vinarskis To: Bjorn Andersson , Aleksandrs Vinarskis , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Subject: [PATCH v2 1/2] arm64: dts: qcom: x1-asus-zenbook: fixup GPU nodes Date: Mon, 23 Jun 2025 13:36:13 +0200 Message-ID: <20250623113709.21184-2-alex.vinarskis@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20250623113709.21184-1-alex.vinarskis@gmail.com> References: <20250623113709.21184-1-alex.vinarskis@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" It appears not the latest version of the patch was merged. Align with latest upstreamed version by correcting GPU enable location and typo in GPU firmware path for x1p42100 variant. Fixes: 6516961352a1 ("arm64: dts: qcom: Add support for X1-based Asus Zenbo= ok A14") Signed-off-by: Aleksandrs Vinarskis Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/x1-asus-zenbook-a14.dtsi | 4 ---- arch/arm64/boot/dts/qcom/x1e80100-asus-zenbook-a14.dts | 4 ++++ arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts | 6 +++++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/x1-asus-zenbook-a14.dtsi b/arch/arm64= /boot/dts/qcom/x1-asus-zenbook-a14.dtsi index 65c41d99c9bf..c8d6d66d05c8 100644 --- a/arch/arm64/boot/dts/qcom/x1-asus-zenbook-a14.dtsi +++ b/arch/arm64/boot/dts/qcom/x1-asus-zenbook-a14.dtsi @@ -645,10 +645,6 @@ vreg_l3j_0p8: ldo3 { }; }; =20 -&gpu { - status =3D "okay"; -}; - &i2c0 { clock-frequency =3D <400000>; =20 diff --git a/arch/arm64/boot/dts/qcom/x1e80100-asus-zenbook-a14.dts b/arch/= arm64/boot/dts/qcom/x1e80100-asus-zenbook-a14.dts index 5b254d867694..0d0bcc50207d 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-asus-zenbook-a14.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-asus-zenbook-a14.dts @@ -14,6 +14,10 @@ / { compatible =3D "asus,zenbook-a14-ux3407ra", "qcom,x1e80100"; }; =20 +&gpu { + status =3D "okay"; +}; + &gpu_zap_shader { firmware-name =3D "qcom/x1e80100/ASUSTeK/zenbook-a14/qcdxkmsuc8380.mbn"; }; diff --git a/arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts b/arch/= arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts index 86b16212c168..bd75ff898601 100644 --- a/arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts +++ b/arch/arm64/boot/dts/qcom/x1p42100-asus-zenbook-a14.dts @@ -80,8 +80,12 @@ vreg_pmu_rfa_1p7: ldo9 { }; }; =20 +&gpu { + status =3D "okay"; +}; + &gpu_zap_shader { - firmware-name =3D "qcom/x1e80100/ASUSTeK/zenbook-a14/qcdxkmsucpurwa.mbn"; + firmware-name =3D "qcom/x1p42100/ASUSTeK/zenbook-a14/qcdxkmsucpurwa.mbn"; }; =20 &pcie4_port0 { --=20 2.45.2 From nobody Tue Dec 16 02:29:52 2025 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 55AF3244686; Mon, 23 Jun 2025 11:37:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750678640; cv=none; b=rFuPSsojDvnXnDTKCWT3D0zc4wj4MhmHVHYEcac2ARB0Jzz0owud/ZYWgNda4ucDVE4yvaaGp997pz3onfINfORj5QcZ95gWiR3Z+THnnzPcFBUtqwdrSxuA0eLi3iHvzaLNrDKZh+1CgxAjdu6ZsrOIjW3TAi5QH9gbRqh51QE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750678640; c=relaxed/simple; bh=NuQE+VtPULSKz99eMdkfjSu9DyOuAfygqQqlwXuz5DA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VuxeiM+fixmzyaRR9jzoLj2vGpGhwEtWJSMdKgMpq3MzSEmfwIAF8LsFwSiz1WDJp07ulMFOsZ75Sx16dJpOb2/qJNgIH6VlKmnlO32gLAG59gEkGonHmarwBrWhgTqK1cEAxlaf2lEac7ZPLlJ7AoLDt0wkfaDw1+lDdtL7bU0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=YxkPS62p; arc=none smtp.client-ip=209.85.221.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YxkPS62p" Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-3a525eee2e3so2482153f8f.2; Mon, 23 Jun 2025 04:37:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750678635; x=1751283435; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1jWXuDqdKGWMgc7gD/OXhFVC0MHK9ISnD4RaPQLw2w4=; b=YxkPS62pli3rdgZIzsishWp2LuOqGcr+jppJwRbKUht+Re/ZcyJ5Lo+spO1dpEM57n 1vwQbUibZE10+rLd1BZ2AYSuUQtUfpQdQlvuDdKPt0cJIutaDvoQxAvEBG0ZAw+UCRqu FiyPHeV60+Kj4Xd6Tzj3np7mFD0bn6nJMDc4MmqgfiN6zxFwldLq02vFKYwz7cxwbZZE 7XvSV0uXTJw+sCFFf93XwfE6jELe1trHa7w+//kLs5aKd2p9lQA+3epyGwEKxHlFdBbn Mv0hZzkZw/da48it3B8osQXtM/nfAu0T6psLHL1y2JQIxDvkXqmEEPlGudfDLUdwB0Ey bOGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750678635; x=1751283435; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1jWXuDqdKGWMgc7gD/OXhFVC0MHK9ISnD4RaPQLw2w4=; b=d8MvPd1fuGoIhZ3duUK2nvEUoxUfqlYZkQvBZ9hKFPnVaUbn9Oj+x7z1UamhtO/E0F OoPNA69HUi9QOcb/ieVoeBNSap2SMyQNc0ko7t553xli5S2miihc0ifnjJNIPack7i+Y 02xPDGpmIvInVD4ZtwHR1cR5xc7mYAucUTFloT0abjTV3h/GFIEYd/jL3VhUgLoz4wWQ 9iDT+Ms5Q4Ak3S2lJ8bmPvHOUfMBS5Dk57QXAxNuGgj9FzdFUC+r7wTVtmMaX2ezb7XM IF0Z1+GlBfMxDEdkL5k65ePAj1gs23pOVbbolx+WWC8LQ/I4j2UQec/6aG7JpgXkFcKT wNwQ== X-Forwarded-Encrypted: i=1; AJvYcCV7D7rpb7PjJiphp//3qlmPGPL1oycr2gsP7lhiV9jEjSKJTNZh/yt/SOmLf8fUC6qnwAq7OT+nY9fwKBc4Wg==@vger.kernel.org, AJvYcCXvc2jpUXS54foALJxMzemW9gJTT/Re6ZEMljEpqhmCM8mCTSviItWTZ2Y+ME6Do69KfCaZruTrb3jG@vger.kernel.org, AJvYcCXydIE+g0wNws2iPKPXqAZSKPKB83gWQkYVYQuuUCvgeFTiWi3FXCSeUCwEs4dWnsOBlQhqN5VK6cnqi8mo@vger.kernel.org X-Gm-Message-State: AOJu0Yy7tWig3aAxu1/c0gKVFRDdfFONJwHg4FbvzR5MpnpcqlwUZScB 03VET6/qUOlI6LWlX4ZPl/6CC4n5iqjg8LsaTt9Q5Nd3uPr3JjUNanA= X-Gm-Gg: ASbGnctmsKQAtrVAm+dJzyiOrxM9vAQvXk4EJbNoIQMQMt5ou6CCfuzbiyukivHaEvI 6ovlY3VCd435GjG5qCIK3x03lfpIDQ5kMOhb9D/9YAUlz7+03qvCGeBdhxqP/7djsxd510LwrMB a8a8Gnu323galNqbQClPUQMdrDW2KFuaKiQ+WPtQffb7GKF0nyJClHRCF0hPuIdhB/Xtv8Hq0w/ YfVGQPVRQl+g/akG+y9yb94M4S+zkctSMl25TYR1Wp0vx854w50bEKur5iqNTMCC9FKs9fcOKUy jlJU4riaQs5fm1jAVgBxlgCS/kk1f8D6buCTD7M4Ms0pFQW83tk2lNqbDplChO6NMJEdc/ZhkKW pptEAAjcKkY5e7+Hyzesr1oUygBTo4w== X-Google-Smtp-Source: AGHT+IEpOJX7JsN4jEoVIV5mmedD+hqVX4ncDzReHmiTrkvg01JZj1k7H6WngFlh2Lo69muO4QbzvQ== X-Received: by 2002:a05:6000:65a:b0:3a6:d579:b78e with SMTP id ffacd0b85a97d-3a6d579b7f8mr8072036f8f.46.1750678635109; Mon, 23 Jun 2025 04:37:15 -0700 (PDT) Received: from alex-x1.. (mob-194-230-148-213.cgn.sunrise.net. [194.230.148.213]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a6d0f18215sm9092625f8f.29.2025.06.23.04.37.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Jun 2025 04:37:14 -0700 (PDT) From: Aleksandrs Vinarskis To: Bjorn Andersson , Aleksandrs Vinarskis , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio Subject: [PATCH v2 2/2] arm64: dts: qcom: x1-asus-zenbook: support sound Date: Mon, 23 Jun 2025 13:36:14 +0200 Message-ID: <20250623113709.21184-3-alex.vinarskis@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20250623113709.21184-1-alex.vinarskis@gmail.com> References: <20250623113709.21184-1-alex.vinarskis@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Works: * Both speakers * Both MICs * Headphones jack, L/R channels * Headphones jack, MIC Now working/untested: * Sound over DisplayPort * Sound over HDMI Reviewed-by: Konrad Dybcio Signed-off-by: Aleksandrs Vinarskis Reviewed-by: Krzysztof Kozlowski --- .../boot/dts/qcom/x1-asus-zenbook-a14.dtsi | 194 ++++++++++++++++++ 1 file changed, 194 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/x1-asus-zenbook-a14.dtsi b/arch/arm64= /boot/dts/qcom/x1-asus-zenbook-a14.dtsi index c8d6d66d05c8..c771fd1d8029 100644 --- a/arch/arm64/boot/dts/qcom/x1-asus-zenbook-a14.dtsi +++ b/arch/arm64/boot/dts/qcom/x1-asus-zenbook-a14.dtsi @@ -22,6 +22,32 @@ aliases { serial1 =3D &uart14; }; =20 + wcd938x: audio-codec { + compatible =3D "qcom,wcd9385-codec"; + + pinctrl-0 =3D <&wcd_default>; + pinctrl-names =3D "default"; + + 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>; + + reset-gpios =3D <&tlmm 191 GPIO_ACTIVE_LOW>; + + vdd-buck-supply =3D <&vreg_l15b_1p8>; + vdd-rxtx-supply =3D <&vreg_l15b_1p8>; + vdd-io-supply =3D <&vreg_l15b_1p8>; + vdd-mic-bias-supply =3D <&vreg_bob1>; + + #sound-dai-cells =3D <1>; + }; + gpio-keys { compatible =3D "gpio-keys"; =20 @@ -149,6 +175,88 @@ linux,cma { }; }; =20 + sound { + compatible =3D "qcom,x1e80100-sndcard"; + model =3D "X1E80100-ASUS-Zenbook-A14"; + audio-routing =3D "SpkrLeft IN", "WSA WSA_SPK1 OUT", + "SpkrRight IN", "WSA WSA_SPK2 OUT", + "IN1_HPHL", "HPHL_OUT", + "IN2_HPHR", "HPHR_OUT", + "AMIC2", "MIC BIAS2", + "VA DMIC0", "MIC BIAS1", + "VA DMIC1", "MIC BIAS1", + "VA DMIC0", "VA MIC BIAS1", + "VA DMIC1", "VA MIC BIAS1", + "TX SWR_INPUT1", "ADC2_OUTPUT"; + + va-dai-link { + link-name =3D "VA Capture"; + + codec { + sound-dai =3D <&lpass_vamacro 0>; + }; + + cpu { + sound-dai =3D <&q6apmbedai VA_CODEC_DMA_TX_0>; + }; + + platform { + sound-dai =3D <&q6apm>; + }; + }; + + wcd-capture-dai-link { + link-name =3D "WCD Capture"; + + codec { + sound-dai =3D <&wcd938x 1>, <&swr2 1>, + <&lpass_txmacro 0>; + }; + + cpu { + sound-dai =3D <&q6apmbedai TX_CODEC_DMA_TX_3>; + }; + + platform { + sound-dai =3D <&q6apm>; + }; + }; + + wcd-playback-dai-link { + link-name =3D "WCD Playback"; + + codec { + sound-dai =3D <&wcd938x 0>, <&swr1 0>, + <&lpass_rxmacro 0>; + }; + + cpu { + sound-dai =3D <&q6apmbedai RX_CODEC_DMA_RX_0>; + }; + + platform { + sound-dai =3D <&q6apm>; + }; + }; + + wsa-dai-link { + link-name =3D "WSA Playback"; + + codec { + sound-dai =3D <&left_spkr>, <&right_spkr>, + <&swr0 0>, <&lpass_wsamacro 0>; + }; + + cpu { + sound-dai =3D <&q6apmbedai WSA_CODEC_DMA_RX_0>; + }; + + platform { + sound-dai =3D <&q6apm>; + }; + }; + }; + vreg_edp_3p3: regulator-edp-3p3 { compatible =3D "regulator-fixed"; =20 @@ -372,6 +480,13 @@ vreg_bob2: bob2 { regulator-initial-mode =3D ; }; =20 + vreg_l1b_1p8: ldo1 { + regulator-name =3D "vreg_l1b_1p8"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-initial-mode =3D ; + }; + vreg_l2b_3p0: ldo2 { regulator-name =3D "vreg_l2b_3p0"; regulator-min-microvolt =3D <3072000>; @@ -843,6 +958,24 @@ keyboard@15 { }; }; =20 +&lpass_tlmm { + spkr_01_sd_n_active: spkr-01-sd-n-active-state { + pins =3D "gpio12"; + function =3D "gpio"; + drive-strength =3D <16>; + bias-disable; + output-low; + }; +}; + +&lpass_vamacro { + pinctrl-0 =3D <&dmic01_default>; + pinctrl-names =3D "default"; + + vdd-micb-supply =3D <&vreg_l1b_1p8>; + qcom,dmic-sample-rate =3D <4800000>; +}; + &mdss { status =3D "okay"; }; @@ -1045,6 +1178,59 @@ &spi10 { /* Unknown device */ }; =20 +&swr0 { + status =3D "okay"; + + pinctrl-0 =3D <&wsa_swr_active>, <&spkr_01_sd_n_active>; + pinctrl-names =3D "default"; + + /* WSA8845, Left Speaker */ + left_spkr: speaker@0,0 { + compatible =3D "sdw20217020400"; + reg =3D <0 0>; + reset-gpios =3D <&lpass_tlmm 12 GPIO_ACTIVE_LOW>; + #sound-dai-cells =3D <0>; + sound-name-prefix =3D "SpkrLeft"; + vdd-1p8-supply =3D <&vreg_l15b_1p8>; + vdd-io-supply =3D <&vreg_l12b_1p2>; + qcom,port-mapping =3D <1 2 3 7 10 13>; + }; + + /* WSA8845, Right Speaker */ + right_spkr: speaker@0,1 { + compatible =3D "sdw20217020400"; + reg =3D <0 1>; + reset-gpios =3D <&lpass_tlmm 12 GPIO_ACTIVE_LOW>; + #sound-dai-cells =3D <0>; + sound-name-prefix =3D "SpkrRight"; + vdd-1p8-supply =3D <&vreg_l15b_1p8>; + vdd-io-supply =3D <&vreg_l12b_1p2>; + qcom,port-mapping =3D <4 5 6 7 11 13>; + }; +}; + +&swr1 { + status =3D "okay"; + + /* WCD9385 RX */ + wcd_rx: codec@0,4 { + compatible =3D "sdw20217010d00"; + reg =3D <0 4>; + qcom,rx-port-mapping =3D <1 2 3 4 5>; + }; +}; + +&swr2 { + status =3D "okay"; + + /* WCD9385 TX */ + wcd_tx: codec@0,3 { + compatible =3D "sdw20217010d00"; + reg =3D <0 3>; + qcom,tx-port-mapping =3D <2 2 3 4>; + }; +}; + &tlmm { gpio-reserved-ranges =3D <44 4>, /* SPI11, TZ Protected */ <90 1>; /* Unknown, TZ Protected */ @@ -1175,6 +1361,14 @@ usb1_pwr_3p3_reg_en: usb1-pwr-3p3-reg-en-state { bias-disable; }; =20 + wcd_default: wcd-reset-n-active-state { + pins =3D "gpio191"; + function =3D "gpio"; + drive-strength =3D <16>; + bias-disable; + output-low; + }; + wcn_bt_en: wcn-bt-en-state { pins =3D "gpio116"; function =3D "gpio"; --=20 2.45.2