Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1494373iob; Thu, 5 May 2022 02:37:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRsCTMVAaxB56P3a3d1BvIYvTrYfPR9HVKP9UwNJ2fsfHtH25AAEqF+k9Z4VBBQjZEmZ5t X-Received: by 2002:aa7:c31a:0:b0:425:df3c:de8e with SMTP id l26-20020aa7c31a000000b00425df3cde8emr28586190edq.83.1651743477860; Thu, 05 May 2022 02:37:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651743477; cv=none; d=google.com; s=arc-20160816; b=UQCcWjSEmiOzEFhT9jmsSujvUBFL7ZYMv/g2Sb+osEa0in+NIXg2dE5QKBGNkLZRr/ yG8ZzOW0Cke6nuTVst1mVvG9R8CXRoa8dYYABpYJ6KbIQNb5kplQjrhJDK1N75Zzey6K Gvq4xgl0g0JSIM7IJX78wS/CxABLBeY76EO7i8HBk7rsFaID0mefNyY/GRMHCPvE1UkE Kc83Wpk6PJVB5+TDV3hBdf6jtMVfRCK1MqTPby1v7BJdufwgFg/KavwPV3SOqP3OxcJ1 E9b5ZQzS9tO4r1kMYo70w/XRGE4SDkuiPcvOLKVuBmj+IYcTujJGVP2CwNhJnwTUDZps 5TzQ== 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=tzuzsMYuwIcic0PWiWemrB1BGpNJb/G4FkSp8vfATRw=; b=EA5BoBTTY+Uh4K7ZVzzvmNtastMK/lo6H4oy9ILzY3oUDj3wcCKaDGnQvqip0AVxSt RsWOkyfWbG/ph57aCjZzlzjzeWEbwQ81ZQ4scQAFW9/4cayuMwZlTKkUY6CwcTs+w5Mf rUAIZDAsK0bHD8V8AQ5Wqlfc2lJfpcMKKqBKT4TCVXTSpksuMhUGMw4SFXUd4qXUD0FW VP+8wnh4DYAfyn+pOpxm7ncO3MLj+rHIh2da6qdxGQkboKBLH9h6d20g4elW3HAq5+q/ fu80agyGC7GKH5YHcFQlQAWQ/o27qna5Hi759ePtxBqjskEReof8l7vMagRBg7mgO4rg gkcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=x9S6EWl5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f10-20020a17090624ca00b006f3b304d00dsi1416350ejb.720.2022.05.05.02.37.33; Thu, 05 May 2022 02:37:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=x9S6EWl5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349074AbiEDLt3 (ORCPT + 99 others); Wed, 4 May 2022 07:49:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349066AbiEDLtC (ORCPT ); Wed, 4 May 2022 07:49:02 -0400 Received: from alexa-out.qualcomm.com (alexa-out.qualcomm.com [129.46.98.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2A51BE7; Wed, 4 May 2022 04:45:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1651664725; x=1683200725; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=tzuzsMYuwIcic0PWiWemrB1BGpNJb/G4FkSp8vfATRw=; b=x9S6EWl55brS26bW6VRVFdvdHu4EK8473I0fcDC1Ht0J/eo1aLwnNli1 7Yl4Hz5N6OuugROSMXVUq7x1nd4CVPzsmmYz3KWNchNwEjD5T3AnfmjQ2 xLPJZwPMnq3X8AGcnZA4qD/WEhdr3f8DObN/d9F4tOcJTjykv3xql3WxZ Q=; Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 04 May 2022 04:45:24 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 May 2022 04:45:24 -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; Wed, 4 May 2022 04:45:23 -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; Wed, 4 May 2022 04:45:19 -0700 From: Srinivasa Rao Mandadapu To: , , , , , , , , , , CC: Srinivasa Rao Mandadapu , "Venkata Prasad Potturu" Subject: [PATCH v11 12/12] arm64: dts: qcom: sc7280: Add sound node for CRD 3.0/3.1 Date: Wed, 4 May 2022 17:14:09 +0530 Message-ID: <1651664649-25290-13-git-send-email-quic_srivasam@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1651664649-25290-1-git-send-email-quic_srivasam@quicinc.com> References: <1651664649-25290-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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 0fb0045..405252e 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