From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=205.220.180.131 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795718301; b=juyx/KHz6UlEagVXQ4T+TXS4+TUSTzM1OSNeCM3QBSrgdE4GHp78QEg7sW94K619rfsq KJNOOWU/9b4YTz+gQSuRGNjnMgboN93YD4SVOP4EwuxfMCaNwI/QV/O6oNV3hJqdUAQhN cLdkb4q0rEIwrj0xC2sL2GNGayJT6FH7XBLrq9vaRSFiQq10DuS+7WcOMnLa49frsb5lU kOdciy8NimiuXdXT1vK5y7Jza2pH0jZB9Tq5lKwH4PS2O35fdR/EjYffxlOwKUrVJdnYi 7FZ3GLhE5YuYvNj8YFdtHaGBNf3wCNCf1IN9oNjd4Dydy/Vtrh0tSAiOCr8Jz9FtaNA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795718301; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:Received:From:To:Cc: Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-Proofpoint-ORIG-GUID:X-Proofpoint-GUID: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-Spam-Info: X-Authority-Analysis:X-Proofpoint-Virus-Version: X-Proofpoint-Spam-Details; bh=SHsUn0aTWWBo0eohtK1PRk4fIWyn3LhpNOhDPiOgl7I=; b=DDwnRBGcBRLwHZE1n/s48TCFTAyJsmIw1qjLJNt5zN16XYMUPty+McduY85fgs7OWrsC g6vdjqYEKC+32h+ofP6xXrYgpAkWzGrRmNwtru0Wu/PzXpCogaeYeChknX7OpKsqlzCLD r33Kc7EdDaC7CTTsZcBCVrQtha5mlR9Gqkivk3a8ZUGfy42qey01GKuAiGCpRA+YtJpvN cWP0Vcca0Uib4gA3CbvDEvcporrqo7D9PdMmXo1nsOU/tlRMOMgnUCNqP8985dsQbuBI9 1fYQc13npePHgUKOhQNO5KUoYQ/zpeGX3fvm4vwGJao1zNK9CbFLeauCK1SQEmUOf3Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=gxSpMd7x; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=CnxiPf6q; arc=none smtp.remote-ip=205.220.180.131 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 55ECC606A685 for ; Thu, 26 Nov 2026 18:38:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 55ECC606A685 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=gxSpMd7x; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=CnxiPf6q Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AQFu7Ji3850556 for ; Thu, 26 Nov 2026 18:38:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=SHsUn0aTWWB o0eohtK1PRk4fIWyn3LhpNOhDPiOgl7I=; b=gxSpMd7xOOUubdQAcfiHFP7z1J/ 325j/+8oYEF1W84hFYpkybUL6bkBtNxo5ebc8xo7QZDR19HHpv2oMx2uWAaDWQlS 1YuoEhbJeSIarpZdeJC4Nh1me3esj7g+PoKjaxJFxZ7Bi3++CDKMc09BaWlAG1FU ikdl6dhIkDdeEaf0WNxrsgGQxLpF0UOno3YMUj5laDViWIMuRx1yKHhRKSP9xtL4 DFJIdfQFmVE+DHV973UlGAwaZjn0TH2P3UUz9Yf+bOX0gGHM0loFImU8Ks0B30l8 HM6WYf085Fx8a0/60+RVgwywmdm9InEdtUADHKdL9/+3fSSmG1r1JgpGSBA== Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j6h7ga4kj-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 26 Nov 2026 18:38:20 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-949b0d322fcso1214606285a.2 for ; Thu, 26 Nov 2026 10:38:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1795718300; x=1796323100; 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:content-type; bh=SHsUn0aTWWBo0eohtK1PRk4fIWyn3LhpNOhDPiOgl7I=; b=CnxiPf6qN4cLSE7s9GKuenKbD4V3yvMMVSRB5Qz/zMpNsrbw3oJh01G1ADdyx/5nJ2 Vu0ylbVF7T/PjUy3ll5M1P8BvTshaQoLOENdWKC4Zo7KxKUXk0sdo5EQr1uQGRtfaCZr HIgiGZv2pvhT0B8cP80ZrguwwBfl/rkQNtGqhqXZGcDe+pZA09WOy10j7H4aIjMuMhyg csiSv6MkQikM2TO8y7d8q+FuW52VSs57F/fTm87hJSatC4KiEBvGsfrybCb8BORUYuR1 Q2YIKhvMWufpXS/S6Uy619nQwtl+/Tucywly3WBXKlsr9nT2Zd4ZBaLE+W7hJKq4ZDkI G0Dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795718300; x=1796323100; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=SHsUn0aTWWBo0eohtK1PRk4fIWyn3LhpNOhDPiOgl7I=; b=ckNNqCD4jDjMSuK9kC5Goeuo7wVFdPirPqr/eKmeMHPkp0vFOnZEAldciHQuQJqOc0 VCAcPkpB86JrXjMujwQGhJdKEjP1xIWAv7lhsyDmU3APVauU7WyuoYH0Q+8Cj4tASRxg l8GZksS/9DgPymYLpQxoEkcahdvlhU5jxRly9fUBx4bEC0AGttSxo1aL7mu+BO62YXck buRfqod+CyiN9GDGcF5hntU3PduoJKFkmmKcF3liTZOcbyIecqa2Pd5PN/ilCbdkJHfD uYamCOC32HyPEeOWUEqdfKlWUerYsbpTZS+x6pPZD+2jc84/0NaFnZEg7F30TCEadbgU 93eQ== X-Forwarded-Encrypted: i=1; AL+hErHj4+fFKut7RH5N6dXrazyiUKhXvsDDDEm/5Y0b+fkVBKqwZghq3d2tJXojpBSmQk9yQEeN9vTSSxjChcQ=@vger.kernel.org X-Gm-Message-State: APuU4Z8OM7s+GJCrMJ3o6vaJENYhKGAUXGbqWTB4uXXIi9wHLVPP7l2d ncUU79LHevwe8ESbk312uSJmwyMNHHsakdTQPAf4g6OSMgXkjYnqUqPWEPRlg+qViSUAmN3plZw VtS/NCsNnkwli+B7bzHXTTVCRIsVHrZVbHut1ahY5/pUCyGVtFiyKAZcziiZIzjVOnF0= X-Gm-Gg: AZFdTZfjO2zka7LrYIBNlDK0avJKrD/VIgyCBgQyb0enspMcuj6vpP5X6Ahz2J6Uduy rjoEz2l0huV1YnCV4KZtjRPnwIMe5gQ1+dNpYqsm7yj2c7i1T1yl3+hu399lMlqVgQC/06vo1gT m5nrv1y7A6x2LOxZz4iBjvab6ZSa0xp++YNE5lSqhMZ2RmDK9sjIoqYETNzeiHQIKmtbXRDbqsX 0jiSvIC2qJkeAMtqwRh8SXoC4XkZy0cZuYqDNbtfpRiihj5aIdEOu2F3CpiAYHKvtQmQnPWi//U tmI4GJuFS82oQkWd40wB7PYfokrRWQonNfFSBrZh9wmjsYiphRC5QYmHhBiw3dL4D1wvAtTYqDu aR69+4P+Bv5LKulxWmxca5vUKCR4vmzJ6fyEkpiU3gfLnnERhjNIONGp4LkdchArE X-Received: by 2002:a05:620a:f04:b0:949:a71b:ec68 with SMTP id af79cd13be357-949ba823b7bmr3934218585a.3.1795718299548; Thu, 26 Nov 2026 10:38:19 -0800 (PST) X-Received: by 2002:a05:620a:f04:b0:949:a71b:ec68 with SMTP id af79cd13be357-949ba823b7bmr3934214185a.3.1795718299104; Thu, 26 Nov 2026 10:38:19 -0800 (PST) Received: from debian ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb895f7bc1sm239659035e9.3.2026.11.26.10.38.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2026 10:38:18 -0800 (PST) From: Srinivas Kandagatla To: andersson@kernel.org, konrad.dybcio@oss.qualcomm.com, abel.vesa@linaro.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH 1/7] arm64: dts: qcom: glymur: add LPASS macros and RX/TX SoundWire Date: Thu, 26 Nov 2026 18:38:00 +0000 Message-ID: <20261126183806.172485-2-srinivas.kandagatla@oss.qualcomm.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20261126183806.172485-1-srinivas.kandagatla@oss.qualcomm.com> References: <20261126183806.172485-1-srinivas.kandagatla@oss.qualcomm.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: tBZVLAhrNovVaG1uWDrc_96W9pl3fHY6 X-Proofpoint-GUID: tBZVLAhrNovVaG1uWDrc_96W9pl3fHY6 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTI2MDA3MyBTYWx0ZWRfX04QxHPuOOaod Tmumso3kDiZC/AnN9bfEqvnautcih+UeNasYaMAm/JW2iRBM9BvWJKZvZOxqtZHpDuIRCXXhg0p G0hCVupgX29zVTpcNOxi4REQk8itKrtdqdqyG4mDZ2KSZsCZKRCeRR40hWeUL6LdGkajRxOuym1 UHz+m8OH62MCATlAhmYgym1Us/68C7yQTPkp3l3Eqfz9KlRr+KLelxVxzrIM43FCT7RUbMjF9cG QpNGPaJt/aGA07nk4GnNEq9+G3517XxZnM0VERG0nWTOGPgIb3jxL8yhFhCaVbgfZ8A1Y6n/9jm 0Qw+sMS0jeGQ2U08Jex2QWIvvKO37FvYL4wLPqpFG6zdU8tHQcoLExMyq65cijuWXMyHqJY607s cJvE0Vyquvv3GEBfScaEVmeH6wEFRk0YYcY+kOnl04wKtKwn0NTmd5dMqqPTyR0eJ3P0qP/6rQn zXWiywzuzhvT1Ln531w== X-Proofpoint-Spam-Info: AW1haW4tMjYxMTI2MDA3MyBTYWx0ZWRfX/p30sNTG5dqL eZGHh05iogYY/cJEkDO5nghZ80Rc5CPO/OoSTd8F+hsRShDtbtNLHzs3IWCnpZcJbtVRtPbLj68 ZSAwQXHFPgvYMi/aWYvXeBoHP6ouSn8= X-Authority-Analysis: v=2.4 cv=L4GI0OT8 c=1 sm=1 tr=0 ts=6b087c9c cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=ZsC4DHZuhs/kKio7QBcDoQ==:17 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=EUspDBNiAAAA:8 a=uy-xvz6Cr5JHlQA9vFwA:9 a=IoWCM6iH3mJn3m4BftBB:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-26_04,2026-11-26_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 bulkscore=0 suspectscore=0 malwarescore=0 lowpriorityscore=0 clxscore=1015 spamscore=0 impostorscore=0 phishscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611260073 Add the LPASS pieces needed to bring up analog audio on Glymur: lpass_rxmacro and lpass_txmacro codec nodes, lpass_audiocc and lpasscc clock controllers for the SoundWire RX/TX CGCR resets, and the swr1 (RX) and swr2 (TX) SoundWire controllers (disabled by default). The swr2 port-shaping arrays describe the WCD9378 slave topology shared by all Glymur-based laptops. Boards enable swr1/swr2 and wire the WCD9378 codec on top. Signed-off-by: Srinivas Kandagatla --- arch/arm64/boot/dts/qcom/glymur.dtsi | 100 +++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/glymur.dtsi b/arch/arm64/boot/dts/qcom/glymur.dtsi index 165dfa11f17f..e3bba14bf36c 100644 --- a/arch/arm64/boot/dts/qcom/glymur.dtsi +++ b/arch/arm64/boot/dts/qcom/glymur.dtsi @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -4669,6 +4670,73 @@ q6prmcc: clock-controller { }; }; + lpass_rxmacro: codec@6a70000 { + compatible = "qcom,glymur-lpass-rx-macro", "qcom,sm8550-lpass-rx-macro"; + reg = <0 0x06a70000 0 0x1000>; + clocks = <&q6prmcc LPASS_CLK_ID_RX_CORE_TX_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6prmcc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6prmcc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&lpass_vamacro>; + clock-names = "mclk", + "macro", + "dcodec", + "fsgen"; + + #clock-cells = <0>; + clock-output-names = "mclk"; + #sound-dai-cells = <1>; + }; + + swr1: soundwire@6a80000 { + compatible = "qcom,soundwire-v3.1.0"; + reg = <0 0x06a80000 0 0x10000>; + clocks = <&lpass_rxmacro>; + clock-names = "iface"; + interrupts = ; + label = "RX"; + + pinctrl-0 = <&rx_swr_active>; + pinctrl-names = "default"; + + resets = <&lpass_audiocc LPASS_AUDIO_SWR_RX_CGCR>; + reset-names = "swr_audio_cgcr"; + + #address-cells = <2>; + #size-cells = <0>; + status = "disabled"; + }; + + lpass_txmacro: codec@6a90000 { + compatible = "qcom,glymur-lpass-tx-macro", "qcom,sm8550-lpass-tx-macro"; + reg = <0 0x06a90000 0 0x1000>; + clocks = <&q6prmcc LPASS_CLK_ID_TX_CORE_MCLK LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6prmcc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6prmcc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&lpass_vamacro>; + clock-names = "mclk", + "macro", + "dcodec", + "fsgen"; + + #clock-cells = <0>; + clock-output-names = "mclk"; + #sound-dai-cells = <1>; + }; + + lpass_audiocc: clock-controller@6a94000 { + compatible = "qcom,glymur-lpassaudiocc"; + reg = <0 0x06a94000 0 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; + + lpasscc: clock-controller@7680000 { + compatible = "qcom,glymur-lpasscc"; + reg = <0 0x07680000 0 0x10000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; + swr0: soundwire@6c80000 { compatible = "qcom,soundwire-v3.1.0"; reg = <0x0 0x06c80000 0x0 0x10000>; @@ -4787,6 +4855,38 @@ lpass_vamacro: codec@7660000 { #sound-dai-cells = <1>; }; + swr2: soundwire@7630000 { + compatible = "qcom,soundwire-v3.1.0"; + reg = <0 0x07630000 0 0x10000>; + interrupts = ; + clocks = <&lpass_txmacro>; + clock-names = "iface"; + label = "TX"; + + resets = <&lpasscc LPASS_AUDIO_SWR_TX_CGCR>; + reset-names = "swr_audio_cgcr"; + + pinctrl-0 = <&tx_swr_active>; + pinctrl-names = "default"; + + qcom,ports-sinterval-low = /bits/ 8 <0x00 0x01 0x03 0x03 0x00 0x03 0x1f 0x1f 0 0 0 0 0 0>; + qcom,ports-offset1 = /bits/ 8 <0x00 0x01 0x02 0x00 0x00 0x00 0x00 0x0b 0 0 0 0 0 0>; + qcom,ports-offset2 = /bits/ 8 <0x00 0x00 0x00 0x00 0xff 0x00 0x00 0x0b 0 0 0 0 0 0>; + qcom,ports-hstart = /bits/ 8 <0xff 0xff 0xff 0xff 0xff 0x00 0x00 0x00 0xff 0xff 0xff 0xff 0xff 0xff>; + qcom,ports-hstop = /bits/ 8 <0xff 0x0f 0xff 0xff 0xff 0x0f 0x0f 0x0f 0xff 0xff 0xff 0xff 0xff 0xff>; + qcom,ports-word-length = /bits/ 8 <0xff 0xff 0xff 0xff 0xff 0x01 0x07 0x04 0xff 0xff 0xff 0xff 0xff 0xff>; + qcom,ports-block-pack-mode = /bits/ 8 <0xff 0xff 0xff 0xff 0xff 0xff 0x00 0x01 0xff 0xff 0xff 0xff 0xff 0xff>; + qcom,ports-block-group-count = /bits/ 8 <0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff>; + qcom,ports-lane-control = /bits/ 8 <0xff 0x01 0x00 0x01 0xff 0x03 0x02 0x02 0xff 0xff 0xff 0xff 0xff 0xff>; + qcom,ports-ch-mask = /bits/ 8 <0xff 0x01 0xff 0xff 0xff 0x03 0x01 0x03 0xff 0xff 0xff 0xff 0xff 0xff>; + + #address-cells = <2>; + #size-cells = <0>; + #sound-dai-cells = <1>; + + status = "disabled"; + }; + lpass_tlmm: pinctrl@7760000 { compatible = "qcom,glymur-lpass-lpi-pinctrl", "qcom,sm8650-lpass-lpi-pinctrl"; reg = <0x0 0x07760000 0x0 0x20000>; -- 2.53.0