Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp787447pxb; Fri, 22 Apr 2022 11:08:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuz4ESob6ac8v8SXcUrMyN2RWjsEK+SC1167x6tBqZhil8CW3cwxMis9gViGnUfzY4KCl0 X-Received: by 2002:a17:902:e881:b0:158:fd34:7b28 with SMTP id w1-20020a170902e88100b00158fd347b28mr5654509plg.95.1650650895541; Fri, 22 Apr 2022 11:08:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650650895; cv=none; d=google.com; s=arc-20160816; b=q1GeGP5R/y+E0LlQaeb0pmy8jOoP9wbdSWlReCvwMiaTFuN7tInYMwZfR/us3Xyh1o UBEE0IaL5gc+5Iv7vWdiczduAN57NyVeyrMEObTX4ul9xGkEE0dYJYSI5qaQQJH/3f+X 0dW/G3i9nOGEFfuzk3fZ9TBDRlNFPZWswJ4SY97KTLttEZiKyiSG6SMeIPUDCaaKgAQT +1JQL7aulxKAH4hyQF691pY610I9h+LP1uno17it+sjYI7WQ9TD7WYcMvKZolC+9UVJW LVqfybUC1ZnrN/pA6YDW7bJyjVLuIuAk9qT/TsL0tt4MWGkwNqrsWhxHt/Wz7/NoMMTf HczQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=FO5HJLhOlc0undK2bVkLeqs+snE15I9Xj/fjUeq+J8k=; b=pboLCUt5UyGxbyBimbfuryTcdXD2DPpWlbSeQDLbZIKk6rkYW/cuVs2Hq5vFdjlsxK CkgXvf3Ajh1XzqMyUKmtIFjjRZ0ijbHLbiMyNvQKJghglT9JIV8idol55nhbWqz0zxU3 DCr0vX19EUSH0PaARu9vRDG+jaafCHGJXaOhldaiFNw0OIV3laalefZVKF/0+UYEPOhI a6LXMXusvy2hOzrbnVmin2GWnSE6QO5GIT+UHYuSBrJrBiALQI2C8ByS9B3g45UgZe8F M8iz8DtAiTO/tNHHcr1MmdJPkdQXSAORMTrXD9IuTlJc1HcWOuCopFQKgsw/WWc0NxmU dTMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=r0ox1+HA; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id c9-20020a17090a108900b001d0aa8594besi8254211pja.25.2022.04.22.11.08.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 11:08:15 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=r0ox1+HA; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CA2199137F; Fri, 22 Apr 2022 10:45:28 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1448406AbiDVONa (ORCPT + 99 others); Fri, 22 Apr 2022 10:13:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1448430AbiDVOMs (ORCPT ); Fri, 22 Apr 2022 10:12:48 -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 3F15BB23; Fri, 22 Apr 2022 07:09:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1650636594; x=1682172594; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=FO5HJLhOlc0undK2bVkLeqs+snE15I9Xj/fjUeq+J8k=; b=r0ox1+HA+G9HMlDmy6DhlXu4GSDrLizYVPQd7bo1/9gLkwSb0RJOyVTb sa69F5LB6a8fzZSWxLOc+CigCAsm5AlcIQT3dj+kibuEsIgZSzkncniWt twVyCsdk9KA4CZWC9bOHEytsKvTbLHoZzyinEDtVO6YfGN5mWbkT+ylvv U=; Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-02.qualcomm.com with ESMTP; 22 Apr 2022 07:09:54 -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; 22 Apr 2022 07:09: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; Fri, 22 Apr 2022 07:09:53 -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; Fri, 22 Apr 2022 07:09:49 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [PATCH v10 12/12] arm64: dts: qcom: sc7280: Add sound node for CRD 3.0/3.1 Date: Fri, 22 Apr 2022 19:38:41 +0530 Message-ID: <1650636521-18442-13-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1650636521-18442-1-git-send-email-quic_srivasam@quicinc.com> References: <1650636521-18442-1-git-send-email-quic_srivasam@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts | 98 +++++++++++++++++++++++ 1 file changed, 98 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts b/arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts index ba13d62..1a18ab17 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine-crd.dts @@ -12,6 +12,104 @@ / { model = "Qualcomm Technologies, Inc. sc7280 CRD platform (rev5+)"; compatible = "google,hoglin", "qcom,sc7280"; + + sound: sound { + compatible = "google,sc7280-herobrine"; + model = "sc7280-wcd938x-max98360a-1mic"; + + audio-routing = + "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 = <1>; + qcom,msm-mbhc-gnd-swh = <1>; + + #address-cells = <1>; + #size-cells = <0>; + #sound-dai-cells = <0>; + + dai-link@0 { + link-name = "MAX98360A"; + reg = <0>; + + cpu { + sound-dai = <&lpass_cpu MI2S_SECONDARY>; + }; + + codec { + sound-dai = <&max98360a>; + }; + }; + + dai-link@1 { + link-name = "DisplayPort"; + reg = <1>; + + cpu { + sound-dai = <&lpass_cpu LPASS_DP_RX>; + }; + + codec { + sound-dai = <&mdss_dp>; + }; + }; + + dai-link@2 { + link-name = "WCD9385 Playback"; + reg = <2>; + + cpu { + sound-dai = <&lpass_cpu LPASS_CDC_DMA_RX0>; + }; + + codec { + sound-dai = <&wcd9385 0>, <&swr0 0>, <&lpass_rx_macro 0>; + }; + }; + + dai-link@3 { + link-name = "WCD9385 Capture"; + reg = <3>; + + cpu { + sound-dai = <&lpass_cpu LPASS_CDC_DMA_TX3>; + }; + + codec { + sound-dai = <&wcd9385 1>, <&swr1 0>, <&lpass_tx_macro 0>; + }; + }; + + dai-link@4 { + link-name = "DMIC"; + reg = <4>; + + cpu { + sound-dai = <&lpass_cpu LPASS_CDC_DMA_VA_TX0>; + }; + + codec { + sound-dai = <&lpass_va_macro 0>; + }; + }; + }; }; /* ADDITIONS TO NODES DEFINED IN PARENT DEVICE TREE FILES */ -- 2.7.4