From nobody Wed Apr 29 09:52:15 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 476FAC433EF for ; Mon, 13 Jun 2022 10:37:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232763AbiFMKhc (ORCPT ); Mon, 13 Jun 2022 06:37:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345609AbiFMKgL (ORCPT ); Mon, 13 Jun 2022 06:36:11 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82BFFD120; Mon, 13 Jun 2022 03:22:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1655115759; x=1686651759; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=P0C/r7CssKx3hxTC9MeZV3WMMnfycujIR/DSLZoMRu0=; b=KF7yZMupSOYh5fZOi/zqLwH4/BN1Lvq3IPhw76WxgsYziqwVJwuwoShM b+nciewxoCWsGKtGXc8a0o9DqrdHEB54cocAeCWump1qnkmrtWJ7pPdvn K2ytvBrt1gfCbTiKi25fHmdkFvKvTWOUVTO0fTS62w4u4YFqP5+wKY6b1 A=; Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-02.qualcomm.com with ESMTP; 13 Jun 2022 03:22:37 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg05-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2022 03:22:37 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 13 Jun 2022 03:22:37 -0700 Received: from hu-srivasam-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 13 Jun 2022 03:22:32 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [PATCH v13 01/12] arm64: dts: qcom: sc7280: Add nodes for soundwire and va tx rx digital macro codecs Date: Mon, 13 Jun 2022 15:52:02 +0530 Message-ID: <1655115733-16309-2-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1655115733-16309-1-git-send-email-quic_srivasam@quicinc.com> References: <1655115733-16309-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" SC7280 has VA, TX and RX macros with SoundWire Controllers to attach with external codecs using soundwire masters. Add these nodes for sc7280 based platforms audio use case. Signed-off-by: Srinivasa Rao Mandadapu Co-developed-by: Venkata Prasad Potturu Signed-off-by: Venkata Prasad Potturu Reviewed-by: Matthias Kaehlcke --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 128 +++++++++++++++++++++++++++++++= ++++ 1 file changed, 128 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qco= m/sc7280.dtsi index b14134a..e5f6b50 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -2176,6 +2176,114 @@ #clock-cells =3D <1>; }; =20 + lpass_rx_macro: codec@3200000 { + compatible =3D "qcom,sc7280-lpass-rx-macro"; + reg =3D <0 0x03200000 0 0x1000>; + + pinctrl-names =3D "default"; + pinctrl-0 =3D <&lpass_rx_swr_clk>, <&lpass_rx_swr_data>; + + clocks =3D <&lpass_aon LPASS_AON_CC_TX_MCLK_CLK>, + <&lpass_aon LPASS_AON_CC_TX_MCLK_2X_CLK>, + <&lpass_va_macro>; + clock-names =3D "mclk", "npl", "fsgen"; + + power-domains =3D <&lpass_hm LPASS_CORE_CC_LPASS_CORE_HM_GDSC>, + <&lpass_aon LPASS_AON_CC_LPASS_AUDIO_HM_GDSC>; + power-domain-names =3D "macro", "dcodec"; + + #clock-cells =3D <0>; + #sound-dai-cells =3D <1>; + + status =3D "disabled"; + }; + + swr0: soundwire@3210000 { + compatible =3D "qcom,soundwire-v1.6.0"; + reg =3D <0 0x03210000 0 0x2000>; + + interrupts =3D ; + clocks =3D <&lpass_rx_macro>; + clock-names =3D "iface"; + + qcom,din-ports =3D <0>; + qcom,dout-ports =3D <5>; + + resets =3D <&lpass_audiocc LPASS_AUDIO_SWR_RX_CGCR>; + reset-names =3D "swr_audio_cgcr"; + + qcom,ports-word-length =3D /bits/ 8 <0x01 0x07 0x04 0xff 0xff>; + qcom,ports-sinterval-low =3D /bits/ 8 <0x03 0x3f 0x1f 0x03 0x03>; + qcom,ports-offset1 =3D /bits/ 8 <0x00 0x00 0x0b 0x01 0x01>; + qcom,ports-offset2 =3D /bits/ 8 <0x00 0x00 0x0b 0x00 0x00>; + qcom,ports-lane-control =3D /bits/ 8 <0x01 0x00 0x00 0x00 0x00>; + qcom,ports-block-pack-mode =3D /bits/ 8 <0xff 0x00 0x01 0xff 0xff>; + qcom,ports-hstart =3D /bits/ 8 <0xff 0x03 0xff 0xff 0xff>; + qcom,ports-hstop =3D /bits/ 8 <0xff 0x06 0xff 0xff 0xff>; + qcom,ports-block-group-count =3D /bits/ 8 <0xff 0xff 0xff 0xff 0x00>; + + #sound-dai-cells =3D <1>; + #address-cells =3D <2>; + #size-cells =3D <0>; + + status =3D "disabled"; + }; + + lpass_tx_macro: codec@3220000 { + compatible =3D "qcom,sc7280-lpass-tx-macro"; + reg =3D <0 0x03220000 0 0x1000>; + + pinctrl-names =3D "default"; + pinctrl-0 =3D <&lpass_tx_swr_clk>, <&lpass_tx_swr_data>; + + clocks =3D <&lpass_aon LPASS_AON_CC_TX_MCLK_CLK>, + <&lpass_aon LPASS_AON_CC_TX_MCLK_2X_CLK>, + <&lpass_va_macro>; + clock-names =3D "mclk", "npl", "fsgen"; + + power-domains =3D <&lpass_hm LPASS_CORE_CC_LPASS_CORE_HM_GDSC>, + <&lpass_aon LPASS_AON_CC_LPASS_AUDIO_HM_GDSC>; + power-domain-names =3D "macro", "dcodec"; + + #clock-cells =3D <0>; + #sound-dai-cells =3D <1>; + + status =3D "disabled"; + }; + + swr1: soundwire@3230000 { + compatible =3D "qcom,soundwire-v1.6.0"; + reg =3D <0 0x03230000 0 0x2000>; + + interrupts-extended =3D <&intc GIC_SPI 496 IRQ_TYPE_LEVEL_HIGH>, + <&pdc 130 IRQ_TYPE_LEVEL_HIGH>; + clocks =3D <&lpass_tx_macro>; + clock-names =3D "iface"; + + qcom,din-ports =3D <3>; + qcom,dout-ports =3D <0>; + + resets =3D <&lpass_audiocc LPASS_AUDIO_SWR_TX_CGCR>; + reset-names =3D "swr_audio_cgcr"; + + qcom,ports-sinterval-low =3D /bits/ 8 <0x01 0x03 0x03>; + qcom,ports-offset1 =3D /bits/ 8 <0x01 0x00 0x02>; + qcom,ports-offset2 =3D /bits/ 8 <0x00 0x00 0x00>; + qcom,ports-hstart =3D /bits/ 8 <0xff 0xff 0xff>; + qcom,ports-hstop =3D /bits/ 8 <0xff 0xff 0xff>; + qcom,ports-word-length =3D /bits/ 8 <0xff 0x00 0xff>; + qcom,ports-block-pack-mode =3D /bits/ 8 <0xff 0xff 0xff>; + qcom,ports-block-group-count =3D /bits/ 8 <0xff 0xff 0xff>; + qcom,ports-lane-control =3D /bits/ 8 <0x00 0x01 0x00>; + qcom,port-offset =3D <1>; + + #sound-dai-cells =3D <1>; + #address-cells =3D <2>; + #size-cells =3D <0>; + + status =3D "disabled"; + }; + lpass_audiocc: clock-controller@3300000 { compatible =3D "qcom,sc7280-lpassaudiocc"; reg =3D <0 0x03300000 0 0x30000>; @@ -2187,6 +2295,26 @@ #power-domain-cells =3D <1>; }; =20 + lpass_va_macro: codec@3370000 { + compatible =3D "qcom,sc7280-lpass-va-macro"; + reg =3D <0 0x03370000 0 0x1000>; + + pinctrl-names =3D "default"; + pinctrl-0 =3D <&lpass_dmic01_clk>, <&lpass_dmic01_data>; + + clocks =3D <&lpass_aon LPASS_AON_CC_TX_MCLK_CLK>; + clock-names =3D "mclk"; + + power-domains =3D <&lpass_hm LPASS_CORE_CC_LPASS_CORE_HM_GDSC>, + <&lpass_aon LPASS_AON_CC_LPASS_AUDIO_HM_GDSC>; + power-domain-names =3D "macro", "dcodec"; + + #clock-cells =3D <0>; + #sound-dai-cells =3D <1>; + + status =3D "disabled"; + }; + lpass_aon: clock-controller@3380000 { compatible =3D "qcom,sc7280-lpassaoncc"; reg =3D <0 0x03380000 0 0x30000>; --=20 2.7.4 From nobody Wed Apr 29 09:52:15 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3E96DC43334 for ; Mon, 13 Jun 2022 10:37:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346253AbiFMKhm (ORCPT ); Mon, 13 Jun 2022 06:37:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346204AbiFMKg7 (ORCPT ); Mon, 13 Jun 2022 06:36:59 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A107910FFC; Mon, 13 Jun 2022 03:22:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1655115762; x=1686651762; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=kW2JZLfcN2/TBSEbyLIBogBKHPmKsa+h+qA83vhr7FA=; b=FCrddeqYvhUDoOecpOZwfySUyfZrpJl0IHbCjFUPhV+KWZJM97wW1z/7 cV8PYGKDV0q4+dky3m5TkEx+yOPwQXT4b92tIfwmQMcLVwc6o+Eu3w6oK uh/OdIbwHqXEDCxW1/PIpCOw5jFGszMz0aRdOeUJKi7niUbLbsA8nSJ6X Q=; Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-02.qualcomm.com with ESMTP; 13 Jun 2022 03:22:41 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg05-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2022 03:22:41 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 13 Jun 2022 03:22:41 -0700 Received: from hu-srivasam-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 13 Jun 2022 03:22:36 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [PATCH v13 02/12] arm64: dts: qcom: sc7280: Enable digital codecs and soundwire for CRD 1.0/2.0 and IDP boards Date: Mon, 13 Jun 2022 15:52:03 +0530 Message-ID: <1655115733-16309-3-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1655115733-16309-1-git-send-email-quic_srivasam@quicinc.com> References: <1655115733-16309-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Enable rx, tx and va macro codecs and soundwire nodes on revision 3, 4 (aka CRD 1.0 and 2.0) and IDP boards. Signed-off-by: Srinivasa Rao Mandadapu Co-developed-by: Venkata Prasad Potturu Signed-off-by: Venkata Prasad Potturu Reviewed-by: Matthias Kaehlcke --- arch/arm64/boot/dts/qcom/sc7280-idp.dtsi | 35 ++++++++++++++++++++++++++++= ++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi b/arch/arm64/boot/dts= /qcom/sc7280-idp.dtsi index 4461a07..eb61135 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi @@ -246,6 +246,19 @@ modem-init; }; =20 +&lpass_rx_macro { + status =3D "okay"; +}; + +&lpass_tx_macro { + status =3D "okay"; +}; + +&lpass_va_macro { + status =3D "okay"; + vdd-micb-supply =3D <&vreg_bob>; +}; + &pcie1 { status =3D "okay"; perst-gpio =3D <&tlmm 2 GPIO_ACTIVE_LOW>; @@ -306,6 +319,28 @@ cd-gpios =3D <&tlmm 91 GPIO_ACTIVE_LOW>; }; =20 +&swr0 { + status =3D "okay"; + + wcd_rx: codec@0,4 { + compatible =3D "sdw20217010d00"; + reg =3D <0 4>; + #sound-dai-cells =3D <1>; + qcom,rx-port-mapping =3D <1 2 3 4 5>; + }; +}; + +&swr1 { + status =3D "okay"; + + wcd_tx: codec@0,3 { + compatible =3D "sdw20217010d00"; + reg =3D <0 3>; + #sound-dai-cells =3D <1>; + qcom,tx-port-mapping =3D <1 2 3 4>; + }; +}; + &uart5 { compatible =3D "qcom,geni-debug-uart"; status =3D "okay"; --=20 2.7.4 From nobody Wed Apr 29 09:52:15 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68B25C433EF for ; Mon, 13 Jun 2022 10:37:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344535AbiFMKht (ORCPT ); Mon, 13 Jun 2022 06:37:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344691AbiFMKhC (ORCPT ); Mon, 13 Jun 2022 06:37:02 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DD9B120BD; Mon, 13 Jun 2022 03:22:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1655115766; x=1686651766; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=aYwxWhkR54p21X8xH7TcTR0H53//wdwLb0i2oW6DOzI=; b=Mf1/0hl0J3DBox0nFPlmakbexHDh38r/d0yeQAJfQnokhl+WS3vye/iA 7YzrmPyUGbeIqqU05YkA26o/3oQahp49wP0TkF1I8ZzhnbWTg+OCv0iDr cY7vibHs54R/ZLt3Kr8PYcHH9tXAN7wpUyhzdpHUBL+1zr2NgHMhyAkQb 4=; Received: from unknown (HELO ironmsg03-sd.qualcomm.com) ([10.53.140.143]) by alexa-out-sd-02.qualcomm.com with ESMTP; 13 Jun 2022 03:22:46 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg03-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2022 03:22:46 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 13 Jun 2022 03:22:45 -0700 Received: from hu-srivasam-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 13 Jun 2022 03:22:41 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [PATCH v13 03/12] arm64: dts: qcom: sc7280: Enable digital codecs and soundwire for CRD 3.0/3.1 Date: Mon, 13 Jun 2022 15:52:04 +0530 Message-ID: <1655115733-16309-4-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1655115733-16309-1-git-send-email-quic_srivasam@quicinc.com> References: <1655115733-16309-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Enable rx, tx and va macro codecs and soundwire nodes for CRD rev5+ (aka CRD 3.0/3.1) boards. Signed-off-by: Srinivasa Rao Mandadapu Co-developed-by: Venkata Prasad Potturu Signed-off-by: Venkata Prasad Potturu Reviewed-by: Matthias Kaehlcke --- arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts | 20 ++++++++++++++++++++ arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi | 22 +++++++++++++++++++= +++ 2 files changed, 42 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts b/arch/arm64= /boot/dts/qcom/sc7280-herobrine-crd.dts index d92575e..32927db 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts @@ -103,6 +103,18 @@ ap_ts_pen_1v8: &i2c13 { }; }; =20 +&lpass_rx_macro { + status =3D "okay"; +}; + +&lpass_tx_macro { + status =3D "okay"; +}; + +&lpass_va_macro { + status =3D "okay"; +}; + &mdss_edp { status =3D "okay"; }; @@ -135,6 +147,14 @@ ap_ts_pen_1v8: &i2c13 { status =3D "okay"; }; =20 +&swr0 { + status =3D "okay"; +}; + +&swr1 { + status =3D "okay"; +}; + /* PINCTRL - BOARD-SPECIFIC */ =20 /* diff --git a/arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi b/arch/arm64/boot/d= ts/qcom/sc7280-qcard.dtsi index d59002d..e933ebf 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi @@ -303,6 +303,10 @@ modem-init; }; =20 +&lpass_va_macro { + vdd-micb-supply =3D <&vreg_bob>; +}; + /* NOTE: Not all Qcards have eDP connector stuffed */ &mdss_edp { vdda-0p9-supply =3D <&vdd_a_edp_0_0p9>; @@ -375,6 +379,24 @@ no-sdio; }; =20 +&swr0 { + wcd_rx: codec@0,4 { + compatible =3D "sdw20217010d00"; + reg =3D <0 4>; + #sound-dai-cells =3D <1>; + qcom,rx-port-mapping =3D <1 2 3 4 5>; + }; +}; + +&swr1 { + wcd_tx: codec@0,3 { + compatible =3D "sdw20217010d00"; + reg =3D <0 3>; + #sound-dai-cells =3D <1>; + qcom,tx-port-mapping =3D <1 2 3 4>; + }; +}; + uart_dbg: &uart5 { compatible =3D "qcom,geni-debug-uart"; status =3D "okay"; --=20 2.7.4 From nobody Wed Apr 29 09:52:15 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33A4DCCA47B for ; Mon, 13 Jun 2022 10:39:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348707AbiFMKjw (ORCPT ); Mon, 13 Jun 2022 06:39:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346207AbiFMKhk (ORCPT ); Mon, 13 Jun 2022 06:37:40 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3A6911C30; Mon, 13 Jun 2022 03:22:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1655115772; x=1686651772; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=h2v8e40mVfe2WF8dG6GEVa+PxEJn3cNr+yXu+SzwRoU=; b=Aol+wdpy65uFZIwh7ZMxmE8pUix5bTyUOH4bSGLgk7SvmAEO3s8/jIby 8RNbVWLcjwBk4bu6742zheKwpaxn9W6Tz5tCsbdyHS8jxYqZZWes/p5L5 h0+ASwdOrcW/webVh1kms2ZPG3y18IewuyC7BFHadEjox0LVY9xtqc2KQ M=; Received: from ironmsg07-lv.qualcomm.com ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 13 Jun 2022 03:22:51 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg07-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2022 03:22:50 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 13 Jun 2022 03:22:50 -0700 Received: from hu-srivasam-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 13 Jun 2022 03:22:45 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [PATCH v13 04/12] arm64: dts: qcom: sc7280: Add wcd9385 codec node for CRD 1.0/2.0 and IDP boards Date: Mon, 13 Jun 2022 15:52:05 +0530 Message-ID: <1655115733-16309-5-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1655115733-16309-1-git-send-email-quic_srivasam@quicinc.com> References: <1655115733-16309-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add wcd9385 codec node for audio use case on sc7280 based platforms of revision 3, 4 (aka CRD 1.0 and 2.0) and IDP boards. Add tlmm gpio property for switching CTIA/OMTP Headset. Signed-off-by: Srinivasa Rao Mandadapu Co-developed-by: Venkata Prasad Potturu Signed-off-by: Venkata Prasad Potturu Reviewed-by: Matthias Kaehlcke --- arch/arm64/boot/dts/qcom/sc7280-crd-r3.dts | 14 ++++++++++ arch/arm64/boot/dts/qcom/sc7280-idp.dtsi | 42 ++++++++++++++++++++++++++= ++++ 2 files changed, 56 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280-crd-r3.dts b/arch/arm64/boot/d= ts/qcom/sc7280-crd-r3.dts index 344338a..9c21207 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-crd-r3.dts +++ b/arch/arm64/boot/dts/qcom/sc7280-crd-r3.dts @@ -87,6 +87,13 @@ ap_ts_pen_1v8: &i2c13 { pins =3D "gpio51"; }; =20 +&wcd9385 { + pinctrl-names =3D "default", "sleep"; + pinctrl-0 =3D <&wcd_reset_n>, <&us_euro_hs_sel>; + pinctrl-1 =3D <&wcd_reset_n_sleep>, <&us_euro_hs_sel>; + us-euro-gpios =3D <&tlmm 81 GPIO_ACTIVE_HIGH>; +}; + &tlmm { tp_int_odl: tp-int-odl { pins =3D "gpio7"; @@ -105,4 +112,11 @@ ap_ts_pen_1v8: &i2c13 { function =3D "gpio"; bias-disable; }; + + us_euro_hs_sel: us-euro-hs-sel { + pins =3D "gpio81"; + function =3D "gpio"; + bias-pull-down; + drive-strength =3D <2>; + }; }; diff --git a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi b/arch/arm64/boot/dts= /qcom/sc7280-idp.dtsi index eb61135..0025a78 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi @@ -20,6 +20,34 @@ serial1 =3D &uart7; }; =20 + wcd9385: audio-codec-1 { + compatible =3D "qcom,wcd9385-codec"; + pinctrl-names =3D "default", "sleep"; + pinctrl-0 =3D <&wcd_reset_n>; + pinctrl-1 =3D <&wcd_reset_n_sleep>; + + reset-gpios =3D <&tlmm 83 GPIO_ACTIVE_HIGH>; + + qcom,rx-device =3D <&wcd_rx>; + qcom,tx-device =3D <&wcd_tx>; + + vdd-rxtx-supply =3D <&vreg_l18b_1p8>; + vdd-io-supply =3D <&vreg_l18b_1p8>; + vdd-buck-supply =3D <&vreg_l17b_1p8>; + 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>; + #sound-dai-cells =3D <1>; + }; + gpio-keys { compatible =3D "gpio-keys"; label =3D "gpio-keys"; @@ -670,6 +698,20 @@ function =3D "gpio"; bias-pull-down; }; + + wcd_reset_n: wcd-reset-n { + pins =3D "gpio83"; + function =3D "gpio"; + drive-strength =3D <8>; + output-high; + }; + + wcd_reset_n_sleep: wcd-reset-n-sleep { + pins =3D "gpio83"; + function =3D "gpio"; + drive-strength =3D <8>; + bias-disable; + }; }; =20 &remoteproc_wpss { --=20 2.7.4 From nobody Wed Apr 29 09:52:15 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F000CCA482 for ; Mon, 13 Jun 2022 10:40:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346539AbiFMKkD (ORCPT ); Mon, 13 Jun 2022 06:40:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346301AbiFMKhv (ORCPT ); Mon, 13 Jun 2022 06:37:51 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDD8813CD2; Mon, 13 Jun 2022 03:22:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1655115775; x=1686651775; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=rx2DvSLkLdzI3r6yAuUJ2LGZvHt6B8djgeXH8BkRTS0=; b=Ri6RJFjLP0U3fTUH0n/u9uIQZz8khEfdn+j8OLy95apJNdNikdhBtRv5 RN0LCuPSu+s62Ua8Z2j2HsienOGHbOp54M+Q8aWVmIwcGdiJClhLF3PoD 1rgNSiZzxiU91MtOvtoZ+xmVRtkWpYGTBZ8iFG2PEse2gICZggCbW10VY s=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-02.qualcomm.com with ESMTP; 13 Jun 2022 03:22:55 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg02-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2022 03:22:54 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 13 Jun 2022 03:22:54 -0700 Received: from hu-srivasam-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 13 Jun 2022 03:22:50 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [PATCH v13 05/12] arm64: dts: qcom: sc7280: Add wcd9385 codec node for CRD 3.0/3.1 Date: Mon, 13 Jun 2022 15:52:06 +0530 Message-ID: <1655115733-16309-6-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1655115733-16309-1-git-send-email-quic_srivasam@quicinc.com> References: <1655115733-16309-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add wcd9385 codec node for audio use case on CRD rev5+ (aka CRD 3.0/3.1) boards. Add tlmm gpio property for switching CTIA/OMTP Headset. Signed-off-by: Srinivasa Rao Mandadapu Co-developed-by: Venkata Prasad Potturu Signed-off-by: Venkata Prasad Potturu Reviewed-by: Matthias Kaehlcke --- arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts | 4 ++ arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi | 52 +++++++++++++++++++= ++++ 2 files changed, 56 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts b/arch/arm64= /boot/dts/qcom/sc7280-herobrine-crd.dts index 32927db..c7537fb 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts @@ -155,6 +155,10 @@ ap_ts_pen_1v8: &i2c13 { status =3D "okay"; }; =20 +&wcd9385 { + status =3D "okay"; +}; + /* PINCTRL - BOARD-SPECIFIC */ =20 /* diff --git a/arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi b/arch/arm64/boot/d= ts/qcom/sc7280-qcard.dtsi index e933ebf..efa6787 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi @@ -30,6 +30,37 @@ serial1 =3D &uart7; }; =20 + wcd9385: audio-codec-1 { + compatible =3D "qcom,wcd9385-codec"; + pinctrl-names =3D "default", "sleep"; + pinctrl-0 =3D <&wcd_reset_n>, <&us_euro_hs_sel>; + pinctrl-1 =3D <&wcd_reset_n_sleep>, <&us_euro_hs_sel>; + + reset-gpios =3D <&tlmm 83 GPIO_ACTIVE_HIGH>; + us-euro-gpios =3D <&tlmm 81 GPIO_ACTIVE_HIGH>; + + qcom,rx-device =3D <&wcd_rx>; + qcom,tx-device =3D <&wcd_tx>; + + vdd-rxtx-supply =3D <&vreg_l18b_1p8>; + vdd-io-supply =3D <&vreg_l18b_1p8>; + vdd-buck-supply =3D <&vreg_l17b_1p8>; + 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>; + #sound-dai-cells =3D <1>; + + status =3D "disabled"; + }; + pm8350c_pwm_backlight: backlight { compatible =3D "pwm-backlight"; status =3D "disabled"; @@ -629,4 +660,25 @@ mos_bt_uart: &uart7 { bias-pull-up; drive-strength =3D <2>; }; + + us_euro_hs_sel: us-euro-hs-sel { + pins =3D "gpio81"; + function =3D "gpio"; + bias-pull-down; + drive-strength =3D <2>; + }; + + wcd_reset_n: wcd-reset-n { + pins =3D "gpio83"; + function =3D "gpio"; + drive-strength =3D <8>; + output-high; + }; + + wcd_reset_n_sleep: wcd-reset-n-sleep { + pins =3D "gpio83"; + function =3D "gpio"; + drive-strength =3D <8>; + bias-disable; + }; }; --=20 2.7.4 From nobody Wed Apr 29 09:52:15 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C8304C43334 for ; Mon, 13 Jun 2022 10:40:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346683AbiFMKkH (ORCPT ); Mon, 13 Jun 2022 06:40:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244021AbiFMKiP (ORCPT ); Mon, 13 Jun 2022 06:38:15 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1313B13E03; Mon, 13 Jun 2022 03:22:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1655115780; x=1686651780; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=82Rrll2/L7iJrO24KVB4CluXJhPAo9df1QYPpK1k4KA=; b=JThyY1R7AjZelokxU6zeVqvPsIJ6fGC9rrNJHPedVlDZ2EM1BcVk7a4R QSnzD9Y7XAPhYzjDRaxBwDjqXBHiCeyrQ8WOGxoZEdpbFGAMnj9jEziYF vJRf3JUcwhmDBSKjK7+O/UECZIPTkEevUZPZnhIN3hjIskjxoV7GLzGPi c=; Received: from unknown (HELO ironmsg04-sd.qualcomm.com) ([10.53.140.144]) by alexa-out-sd-01.qualcomm.com with ESMTP; 13 Jun 2022 03:22:59 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg04-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2022 03:22:59 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 13 Jun 2022 03:22:58 -0700 Received: from hu-srivasam-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 13 Jun 2022 03:22:54 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [PATCH v13 06/12] arm64: dts: qcom: sc7280: Add max98360a codec for CRD 1.0/2.0 and IDP boards Date: Mon, 13 Jun 2022 15:52:07 +0530 Message-ID: <1655115733-16309-7-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1655115733-16309-1-git-send-email-quic_srivasam@quicinc.com> References: <1655115733-16309-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add max98360a codec node for audio use case on revision 3, 4 (aka CRD 1.0 and 2.0) and IDP boards. Add amp_en node for max98360a codec pin control. Signed-off-by: Srinivasa Rao Mandadapu Co-developed-by: Venkata Prasad Potturu Signed-off-by: Venkata Prasad Potturu Reviewed-by: Matthias Kaehlcke --- arch/arm64/boot/dts/qcom/sc7280-idp.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi b/arch/arm64/boot/dts= /qcom/sc7280-idp.dtsi index 0025a78..ccdbad4a 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi @@ -20,6 +20,14 @@ serial1 =3D &uart7; }; =20 + max98360a: audio-codec-0 { + compatible =3D "maxim,max98360a"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&_en>; + sdmode-gpios =3D <&tlmm 63 GPIO_ACTIVE_HIGH>; + #sound-dai-cells =3D <0>; + }; + wcd9385: audio-codec-1 { compatible =3D "qcom,wcd9385-codec"; pinctrl-names =3D "default", "sleep"; @@ -613,6 +621,12 @@ }; =20 &tlmm { + amp_en: amp-en { + pins =3D "gpio63"; + bias-pull-down; + drive-strength =3D <2>; + }; + bt_en: bt-en { pins =3D "gpio85"; function =3D "gpio"; --=20 2.7.4 From nobody Wed Apr 29 09:52:15 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 795F5C43334 for ; Mon, 13 Jun 2022 10:41:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244748AbiFMKl2 (ORCPT ); Mon, 13 Jun 2022 06:41:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347036AbiFMKia (ORCPT ); Mon, 13 Jun 2022 06:38:30 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32E2513E05; Mon, 13 Jun 2022 03:23:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1655115784; x=1686651784; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=ePtNVNeW/upibIXa1g8IP42rTGKoLQIlCMu62PBIHpM=; b=UQ+dW8a2JILIHhp/yyiZ9PKIJgMBFkosJoEsiXxz/uuXsw8vxoLltJ1d nvgao/RfmAFnRwGBOEV01Ic8KhgMyPwUbWm2/oz6YYX5La8w9pHuNcfcF GOLdEIIHU6JHCMTKUyjagRGRMn3H+rjIndPyWhhtb41D0cdNSJNASCpJB M=; Received: from ironmsg07-lv.qualcomm.com ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 13 Jun 2022 03:23:03 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg07-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2022 03:23:03 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 13 Jun 2022 03:23:03 -0700 Received: from hu-srivasam-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 13 Jun 2022 03:22:58 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [PATCH v13 07/12] arm64: dts: qcom: sc7280: herobrine: Add max98360a codec node Date: Mon, 13 Jun 2022 15:52:08 +0530 Message-ID: <1655115733-16309-8-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1655115733-16309-1-git-send-email-quic_srivasam@quicinc.com> References: <1655115733-16309-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add max98360a codec node for audio use case on all herobrine boards. Signed-off-by: Srinivasa Rao Mandadapu Co-developed-by: Venkata Prasad Potturu Signed-off-by: Venkata Prasad Potturu Reviewed-by: Matthias Kaehlcke --- arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi b/arch/arm64/bo= ot/dts/qcom/sc7280-herobrine.dtsi index 9cb1bc8..1098916 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi @@ -295,6 +295,14 @@ =20 /* BOARD-SPECIFIC TOP LEVEL NODES */ =20 + max98360a: audio-codec-0 { + compatible =3D "maxim,max98360a"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&_en>; + sdmode-gpios =3D <&tlmm 63 GPIO_ACTIVE_HIGH>; + #sound-dai-cells =3D <0>; + }; + pwmleds { compatible =3D "pwm-leds"; status =3D "disabled"; --=20 2.7.4 From nobody Wed Apr 29 09:52:15 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 92CBBC43334 for ; Mon, 13 Jun 2022 10:40:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344130AbiFMKkr (ORCPT ); Mon, 13 Jun 2022 06:40:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347432AbiFMKi6 (ORCPT ); Mon, 13 Jun 2022 06:38:58 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8109613F2C; Mon, 13 Jun 2022 03:23:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1655115788; x=1686651788; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=eENHtNiWrS3MENh6dCmHrWJEDYGD0k8qjCG6VuCcQnc=; b=wpbN6U4ueAILVt9LFQOwZnkXXi8yMHabFozUtrad/B7lARh654v2GGjo TY3J3nGrq8Zp6iEEDR+JlIRGeH0mdq6v/L6ZAqme/tPRHiOGtAYuGvzCr HdSUq0E/XtSPirP1z2C9cOtbcJDrF2nBOuEXepv9klhGTLGhomGtbZCWw Q=; Received: from unknown (HELO ironmsg03-sd.qualcomm.com) ([10.53.140.143]) by alexa-out-sd-01.qualcomm.com with ESMTP; 13 Jun 2022 03:23:08 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg03-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2022 03:23:08 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 13 Jun 2022 03:23:07 -0700 Received: from hu-srivasam-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 13 Jun 2022 03:23:03 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [PATCH v13 08/12] arm64: dts: qcom: sc7280: Add lpass cpu node Date: Mon, 13 Jun 2022 15:52:09 +0530 Message-ID: <1655115733-16309-9-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1655115733-16309-1-git-send-email-quic_srivasam@quicinc.com> References: <1655115733-16309-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add lpass cpu node for audio on sc7280 based platforms. Signed-off-by: Srinivasa Rao Mandadapu Co-developed-by: Venkata Prasad Potturu Signed-off-by: Venkata Prasad Potturu Reviewed-by: Matthias Kaehlcke Reviewed-by: Stephen Boyd --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 62 ++++++++++++++++++++++++++++++++= ++++ 1 file changed, 62 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qco= m/sc7280.dtsi index e5f6b50..06fe14e 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -22,6 +22,7 @@ #include #include #include +#include #include =20 / { @@ -2336,6 +2337,67 @@ #power-domain-cells =3D <1>; }; =20 + lpass_cpu: audio@3987000 { + compatible =3D "qcom,sc7280-lpass-cpu"; + + reg =3D <0 0x03987000 0 0x68000>, + <0 0x03b00000 0 0x29000>, + <0 0x03260000 0 0xc000>, + <0 0x03280000 0 0x29000>, + <0 0x03340000 0 0x29000>, + <0 0x0336c000 0 0x3000>; + reg-names =3D "lpass-hdmiif", + "lpass-lpaif", + "lpass-rxtx-cdc-dma-lpm", + "lpass-rxtx-lpaif", + "lpass-va-lpaif", + "lpass-va-cdc-dma-lpm"; + + iommus =3D <&apps_smmu 0x1820 0>, + <&apps_smmu 0x1821 0>, + <&apps_smmu 0x1832 0>; + + power-domains =3D <&rpmhpd SC7280_LCX>; + power-domain-names =3D "lcx"; + required-opps =3D <&rpmhpd_opp_nom>; + + clocks =3D <&lpass_aon LPASS_AON_CC_AUDIO_HM_H_CLK>, + <&lpass_core LPASS_CORE_CC_EXT_MCLK0_CLK>, + <&lpass_core LPASS_CORE_CC_SYSNOC_MPORT_CORE_CLK>, + <&lpass_core LPASS_CORE_CC_EXT_IF0_IBIT_CLK>, + <&lpass_core LPASS_CORE_CC_EXT_IF1_IBIT_CLK>, + <&lpass_audiocc LPASS_AUDIO_CC_CODEC_MEM_CLK>, + <&lpass_audiocc LPASS_AUDIO_CC_CODEC_MEM0_CLK>, + <&lpass_audiocc LPASS_AUDIO_CC_CODEC_MEM1_CLK>, + <&lpass_audiocc LPASS_AUDIO_CC_CODEC_MEM2_CLK>, + <&lpass_aon LPASS_AON_CC_VA_MEM0_CLK>; + clock-names =3D "aon_cc_audio_hm_h", + "core_cc_ext_mclk0", + "core_cc_sysnoc_mport_core", + "core_cc_ext_if0_ibit", + "core_cc_ext_if1_ibit", + "audio_cc_codec_mem", + "audio_cc_codec_mem0", + "audio_cc_codec_mem1", + "audio_cc_codec_mem2", + "aon_cc_va_mem0"; + + #sound-dai-cells =3D <1>; + #address-cells =3D <1>; + #size-cells =3D <0>; + + interrupts =3D , + , + , + ; + interrupt-names =3D "lpass-irq-lpaif", + "lpass-irq-hdmi", + "lpass-irq-vaif", + "lpass-irq-rxtxif"; + + status =3D "disabled"; + }; + lpass_hm: clock-controller@3c00000 { compatible =3D "qcom,sc7280-lpasshm"; reg =3D <0 0x3c00000 0 0x28>; --=20 2.7.4 From nobody Wed Apr 29 09:52:15 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CFAEAC43334 for ; Mon, 13 Jun 2022 10:41:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244566AbiFMKlB (ORCPT ); Mon, 13 Jun 2022 06:41:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347844AbiFMKjL (ORCPT ); Mon, 13 Jun 2022 06:39:11 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8F4514013; Mon, 13 Jun 2022 03:23:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1655115792; x=1686651792; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=soAslaynwLWuk9ni7o/esKtvLbUcnx/OJF8cC/HrDSA=; b=s/QRK5IdMLR5jDbCYL40M8OPs0/PIHxSsIxBgWMcsUOHXpbKNKyi5Krk ocWn7ii/X7f6y1d+jmTEmX0gAao6Ru6Icviiz+JRo7InvIjCA0iwJHDUQ K1w8elnyG9qLHXe5EmQ7/Tr9hjbjK68ez4+olIyVXZ73DTFOdPidtbTF+ 8=; Received: from unknown (HELO ironmsg-SD-alpha.qualcomm.com) ([10.53.140.30]) by alexa-out-sd-02.qualcomm.com with ESMTP; 13 Jun 2022 03:23:12 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-SD-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2022 03:23:11 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 13 Jun 2022 03:23:12 -0700 Received: from hu-srivasam-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 13 Jun 2022 03:23:07 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [PATCH v13 09/12] arm64: dts: qcom: sc7280: Enable lpass cpu node for CRD 1.0/2.0 and IDP boards. Date: Mon, 13 Jun 2022 15:52:10 +0530 Message-ID: <1655115733-16309-10-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1655115733-16309-1-git-send-email-quic_srivasam@quicinc.com> References: <1655115733-16309-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Enable lpass cpu node and add pin control and dai-links for audio on sc7280 based platforms of revision 3, 4 (aka CRD 1.0 and 2.0) and IDP boards. Signed-off-by: Srinivasa Rao Mandadapu Co-developed-by: Venkata Prasad Potturu Signed-off-by: Venkata Prasad Potturu Reviewed-by: Matthias Kaehlcke Reviewed-by: Stephen Boyd --- arch/arm64/boot/dts/qcom/sc7280-idp.dtsi | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi b/arch/arm64/boot/dts= /qcom/sc7280-idp.dtsi index ccdbad4a..10f646d 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi @@ -282,6 +282,34 @@ modem-init; }; =20 +&lpass_cpu { + status =3D "okay"; + + pinctrl-names =3D "default"; + pinctrl-0 =3D <&mi2s1_data0>, <&mi2s1_sclk>, <&mi2s1_ws>; + + dai-link@1 { + reg =3D ; + qcom,playback-sd-lines =3D <0>; + }; + + dai-link@5 { + reg =3D ; + }; + + dai-link@6 { + reg =3D ; + }; + + dai-link@19 { + reg =3D ; + }; + + dai-link@25 { + reg =3D ; + }; +}; + &lpass_rx_macro { status =3D "okay"; }; --=20 2.7.4 From nobody Wed Apr 29 09:52:15 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0D1CC433EF for ; Mon, 13 Jun 2022 10:41:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245404AbiFMKlJ (ORCPT ); Mon, 13 Jun 2022 06:41:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348080AbiFMKjW (ORCPT ); Mon, 13 Jun 2022 06:39:22 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3543E1570D; Mon, 13 Jun 2022 03:23:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1655115797; x=1686651797; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=SGTGI09eIYQ9or7GvKepm+lY1O614Xg9d1hBsynOCdU=; b=l02xSL9JEBU0SQpA5GWiGbestNmnkkWBs6MAHW1SOKXmsSjDm6La40aG x/11W3Z4zxn696HRjIsfj1Wn2MGUIFz3kRwAZ5+tkl4KZP1zMuwbqyW3P eACPCmYK6IsnRb+aKIFmWiBG0KpBOwk6j1JAxWznNn7S2d6B8X9lqNYte c=; Received: from ironmsg07-lv.qualcomm.com ([10.47.202.151]) by alexa-out.qualcomm.com with ESMTP; 13 Jun 2022 03:23:16 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg07-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2022 03:23:17 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 13 Jun 2022 03:23:16 -0700 Received: from hu-srivasam-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 13 Jun 2022 03:23:12 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [PATCH v13 10/12] arm64: dts: qcom: sc7280: Enable lpass cpu node for CRD 3.0/3.1 Date: Mon, 13 Jun 2022 15:52:11 +0530 Message-ID: <1655115733-16309-11-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1655115733-16309-1-git-send-email-quic_srivasam@quicinc.com> References: <1655115733-16309-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Enable lpass cpu node and add pin control and dai-links for audio on sc7280 based platforms of rev5+ (aka CRD 3.0/3.1) boards. Signed-off-by: Srinivasa Rao Mandadapu Co-developed-by: Venkata Prasad Potturu Signed-off-by: Venkata Prasad Potturu Reviewed-by: Matthias Kaehlcke --- .../dts/qcom/sc7280-herobrine-audio-wcd9385.dtsi | 28 ++++++++++++++++++= ++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine-audio-wcd9385.dtsi b= /arch/arm64/boot/dts/qcom/sc7280-herobrine-audio-wcd9385.dtsi index 32a1e78..2303b98 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-herobrine-audio-wcd9385.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine-audio-wcd9385.dtsi @@ -5,6 +5,34 @@ * Copyright (c) 2022, The Linux Foundation. All rights reserved. */ =20 +&lpass_cpu { + status =3D "okay"; + + pinctrl-names =3D "default"; + pinctrl-0 =3D <&mi2s1_data0>, <&mi2s1_sclk>, <&mi2s1_ws>; + + dai-link@1 { + reg =3D ; + qcom,playback-sd-lines =3D <0>; + }; + + dai-link@5 { + reg =3D ; + }; + + dai-link@6 { + reg =3D ; + }; + + dai-link@19 { + reg =3D ; + }; + + dai-link@25 { + reg =3D ; + }; +}; + &mi2s1_data0 { drive-strength =3D <6>; bias-disable; --=20 2.7.4 From nobody Wed Apr 29 09:52:15 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34571C43334 for ; Mon, 13 Jun 2022 10:41:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345185AbiFMKlm (ORCPT ); Mon, 13 Jun 2022 06:41:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348225AbiFMKjc (ORCPT ); Mon, 13 Jun 2022 06:39:32 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE85915A16; Mon, 13 Jun 2022 03:23:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1655115801; x=1686651801; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=01kA263hwXPhT5HxBQ+kdt4vpfNDUNRi6gZQFXOPTL0=; b=KpbNACfSpFm5IGY86KwZwNawbFmC68r6MnlKe4fBFXbX03GlCYyMU56U Fxj+OnogPPW0dutGY+vChd0KMN04V+zA4ZrwVsLyZ7tX15U0i+kbHwa6+ nLNsiu1zimwPIE9qb7m48bNWuEwvmPIQ8rSrxg8Z/dFeDpa7/Crd/fzKu o=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-02.qualcomm.com with ESMTP; 13 Jun 2022 03:23:21 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg02-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2022 03:23:21 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 13 Jun 2022 03:23:20 -0700 Received: from hu-srivasam-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 13 Jun 2022 03:23:16 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [PATCH v13 11/12] arm64: dts: qcom: sc7280: Add sound node for CRD 1.0/2.0 and IDP boards Date: Mon, 13 Jun 2022 15:52:12 +0530 Message-ID: <1655115733-16309-12-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1655115733-16309-1-git-send-email-quic_srivasam@quicinc.com> References: <1655115733-16309-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add dt nodes for sound card support on revision 3, 4 (aka CRD 1.0 and 2.0) and IDP boards, which is using WCD9385 headset playback, capture, I2S speaker playback and DMICs via VA macro. Signed-off-by: Srinivasa Rao Mandadapu Co-developed-by: Venkata Prasad Potturu Signed-off-by: Venkata Prasad Potturu Reviewed-by: Matthias Kaehlcke --- arch/arm64/boot/dts/qcom/sc7280-crd-r3.dts | 23 +++++++ arch/arm64/boot/dts/qcom/sc7280-idp.dtsi | 98 ++++++++++++++++++++++++++= ++++ 2 files changed, 121 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280-crd-r3.dts b/arch/arm64/boot/d= ts/qcom/sc7280-crd-r3.dts index 9c21207..dddb505 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-crd-r3.dts +++ b/arch/arm64/boot/dts/qcom/sc7280-crd-r3.dts @@ -87,6 +87,29 @@ ap_ts_pen_1v8: &i2c13 { pins =3D "gpio51"; }; =20 +&sound { + audio-routing =3D + "IN1_HPHL", "HPHL_OUT", + "IN2_HPHR", "HPHR_OUT", + "AMIC1", "MIC BIAS1", + "AMIC2", "MIC BIAS2", + "VA DMIC0", "MIC BIAS1", + "VA DMIC1", "MIC BIAS1", + "VA DMIC2", "MIC BIAS3", + "VA DMIC3", "MIC BIAS3", + "TX SWR_ADC0", "ADC1_OUTPUT", + "TX SWR_ADC1", "ADC2_OUTPUT", + "TX SWR_ADC2", "ADC3_OUTPUT", + "TX SWR_DMIC0", "DMIC1_OUTPUT", + "TX SWR_DMIC1", "DMIC2_OUTPUT", + "TX SWR_DMIC2", "DMIC3_OUTPUT", + "TX SWR_DMIC3", "DMIC4_OUTPUT", + "TX SWR_DMIC4", "DMIC5_OUTPUT", + "TX SWR_DMIC5", "DMIC6_OUTPUT", + "TX SWR_DMIC6", "DMIC7_OUTPUT", + "TX SWR_DMIC7", "DMIC8_OUTPUT"; +}; + &wcd9385 { pinctrl-names =3D "default", "sleep"; pinctrl-0 =3D <&wcd_reset_n>, <&us_euro_hs_sel>; diff --git a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi b/arch/arm64/boot/dts= /qcom/sc7280-idp.dtsi index 10f646d..ec2b6c9 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi @@ -85,6 +85,104 @@ pinctrl-names =3D "default"; pinctrl-0 =3D <&nvme_pwren>; }; + + sound: sound { + compatible =3D "google,sc7280-herobrine"; + model =3D "sc7280-wcd938x-max98360a-1mic"; + + audio-routing =3D + "IN1_HPHL", "HPHL_OUT", + "IN2_HPHR", "HPHR_OUT", + "AMIC1", "MIC BIAS1", + "AMIC2", "MIC BIAS2", + "VA DMIC0", "MIC BIAS3", + "VA DMIC1", "MIC BIAS3", + "VA DMIC2", "MIC BIAS1", + "VA DMIC3", "MIC BIAS1", + "TX SWR_ADC0", "ADC1_OUTPUT", + "TX SWR_ADC1", "ADC2_OUTPUT", + "TX SWR_ADC2", "ADC3_OUTPUT", + "TX SWR_DMIC0", "DMIC1_OUTPUT", + "TX SWR_DMIC1", "DMIC2_OUTPUT", + "TX SWR_DMIC2", "DMIC3_OUTPUT", + "TX SWR_DMIC3", "DMIC4_OUTPUT", + "TX SWR_DMIC4", "DMIC5_OUTPUT", + "TX SWR_DMIC5", "DMIC6_OUTPUT", + "TX SWR_DMIC6", "DMIC7_OUTPUT", + "TX SWR_DMIC7", "DMIC8_OUTPUT"; + + qcom,msm-mbhc-hphl-swh =3D <1>; + qcom,msm-mbhc-gnd-swh =3D <1>; + + #address-cells =3D <1>; + #size-cells =3D <0>; + #sound-dai-cells =3D <0>; + + dai-link@0 { + link-name =3D "MAX98360A"; + reg =3D <0>; + + cpu { + sound-dai =3D <&lpass_cpu MI2S_SECONDARY>; + }; + + codec { + sound-dai =3D <&max98360a>; + }; + }; + + dai-link@1 { + link-name =3D "DisplayPort"; + reg =3D <1>; + + cpu { + sound-dai =3D <&lpass_cpu LPASS_DP_RX>; + }; + + codec { + sound-dai =3D <&mdss_dp>; + }; + }; + + dai-link@2 { + link-name =3D "WCD9385 Playback"; + reg =3D <2>; + + cpu { + sound-dai =3D <&lpass_cpu LPASS_CDC_DMA_RX0>; + }; + + codec { + sound-dai =3D <&wcd9385 0>, <&swr0 0>, <&lpass_rx_macro 0>; + }; + }; + + dai-link@3 { + link-name =3D "WCD9385 Capture"; + reg =3D <3>; + + cpu { + sound-dai =3D <&lpass_cpu LPASS_CDC_DMA_TX3>; + }; + + codec { + sound-dai =3D <&wcd9385 1>, <&swr1 0>, <&lpass_tx_macro 0>; + }; + }; + + dai-link@4 { + link-name =3D "DMIC"; + reg =3D <4>; + + cpu { + sound-dai =3D <&lpass_cpu LPASS_CDC_DMA_VA_TX0>; + }; + + codec { + sound-dai =3D <&lpass_va_macro 0>; + }; + }; + }; }; =20 &apps_rsc { --=20 2.7.4 From nobody Wed Apr 29 09:52:15 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5ABD6C43334 for ; Mon, 13 Jun 2022 10:42:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343807AbiFMKmB (ORCPT ); Mon, 13 Jun 2022 06:42:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348407AbiFMKji (ORCPT ); Mon, 13 Jun 2022 06:39:38 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6F8221274; Mon, 13 Jun 2022 03:23:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1655115805; x=1686651805; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=80tH91xsIee26DL/mA+qrZoaLnNKExi79e6OQL5Ii1I=; b=XKmmYTILbkj6//bNkyAiL818DzxfjwTcmHzzv+gCObvFQZ2yZp8eS6/l hUJxqniRAZ6MG03/y+Js4kvfCKyzuoqW51sQXEDdDKqUO9FSvPqprL/jc 7rOPBk75ta3Wrm+RgfcFhUolj56rTyFZCUDcGtTR4mCVBdlVO1vyudVmj I=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-02.qualcomm.com with ESMTP; 13 Jun 2022 03:23:25 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2022 03:23:26 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 13 Jun 2022 03:23:25 -0700 Received: from hu-srivasam-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Mon, 13 Jun 2022 03:23:20 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [PATCH v13 12/12] arm64: dts: qcom: sc7280: Add sound node for CRD 3.0/3.1 Date: Mon, 13 Jun 2022 15:52:13 +0530 Message-ID: <1655115733-16309-13-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1655115733-16309-1-git-send-email-quic_srivasam@quicinc.com> References: <1655115733-16309-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add dt nodes for sound card support on rev5+ (aka CRD 3.0/3.1) boards, which is using WCD9385 headset playback, capture, I2S speaker playback and DMICs via VA macro. Signed-off-by: Srinivasa Rao Mandadapu Co-developed-by: Venkata Prasad Potturu Signed-off-by: Venkata Prasad Potturu Reviewed-by: Matthias Kaehlcke --- .../dts/qcom/sc7280-herobrine-audio-wcd9385.dtsi | 101 +++++++++++++++++= ++++ 1 file changed, 101 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine-audio-wcd9385.dtsi b= /arch/arm64/boot/dts/qcom/sc7280-herobrine-audio-wcd9385.dtsi index 2303b98..bd2c340 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-herobrine-audio-wcd9385.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine-audio-wcd9385.dtsi @@ -5,6 +5,107 @@ * Copyright (c) 2022, The Linux Foundation. All rights reserved. */ =20 +/ { + /* BOARD-SPECIFIC TOP LEVEL NODES */ + sound: sound { + compatible =3D "google,sc7280-herobrine"; + model =3D "sc7280-wcd938x-max98360a-1mic"; + + audio-routing =3D + "IN1_HPHL", "HPHL_OUT", + "IN2_HPHR", "HPHR_OUT", + "AMIC1", "MIC BIAS1", + "AMIC2", "MIC BIAS2", + "VA DMIC0", "MIC BIAS1", + "VA DMIC1", "MIC BIAS1", + "VA DMIC2", "MIC BIAS3", + "VA DMIC3", "MIC BIAS3", + "TX SWR_ADC0", "ADC1_OUTPUT", + "TX SWR_ADC1", "ADC2_OUTPUT", + "TX SWR_ADC2", "ADC3_OUTPUT", + "TX SWR_DMIC0", "DMIC1_OUTPUT", + "TX SWR_DMIC1", "DMIC2_OUTPUT", + "TX SWR_DMIC2", "DMIC3_OUTPUT", + "TX SWR_DMIC3", "DMIC4_OUTPUT", + "TX SWR_DMIC4", "DMIC5_OUTPUT", + "TX SWR_DMIC5", "DMIC6_OUTPUT", + "TX SWR_DMIC6", "DMIC7_OUTPUT", + "TX SWR_DMIC7", "DMIC8_OUTPUT"; + + qcom,msm-mbhc-hphl-swh =3D <1>; + qcom,msm-mbhc-gnd-swh =3D <1>; + + #address-cells =3D <1>; + #size-cells =3D <0>; + #sound-dai-cells =3D <0>; + + dai-link@0 { + link-name =3D "MAX98360A"; + reg =3D <0>; + + cpu { + sound-dai =3D <&lpass_cpu MI2S_SECONDARY>; + }; + + codec { + sound-dai =3D <&max98360a>; + }; + }; + + dai-link@1 { + link-name =3D "DisplayPort"; + reg =3D <1>; + + cpu { + sound-dai =3D <&lpass_cpu LPASS_DP_RX>; + }; + + codec { + sound-dai =3D <&mdss_dp>; + }; + }; + + dai-link@2 { + link-name =3D "WCD9385 Playback"; + reg =3D <2>; + + cpu { + sound-dai =3D <&lpass_cpu LPASS_CDC_DMA_RX0>; + }; + + codec { + sound-dai =3D <&wcd9385 0>, <&swr0 0>, <&lpass_rx_macro 0>; + }; + }; + + dai-link@3 { + link-name =3D "WCD9385 Capture"; + reg =3D <3>; + + cpu { + sound-dai =3D <&lpass_cpu LPASS_CDC_DMA_TX3>; + }; + + codec { + sound-dai =3D <&wcd9385 1>, <&swr1 0>, <&lpass_tx_macro 0>; + }; + }; + + dai-link@4 { + link-name =3D "DMIC"; + reg =3D <4>; + + cpu { + sound-dai =3D <&lpass_cpu LPASS_CDC_DMA_VA_TX0>; + }; + + codec { + sound-dai =3D <&lpass_va_macro 0>; + }; + }; + }; +}; + &lpass_cpu { status =3D "okay"; =20 --=20 2.7.4