Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp957642rwb; Thu, 19 Jan 2023 05:03:16 -0800 (PST) X-Google-Smtp-Source: AMrXdXsPiSd5aP6Vo3wwKrAhOkRMBkWHk/cTzqUT5yEJUXlwv3FBQDxiilhYHxD6qRcuwOy3lGKB X-Received: by 2002:a17:906:855:b0:86e:f88:c098 with SMTP id f21-20020a170906085500b0086e0f88c098mr11567185ejd.70.1674133395860; Thu, 19 Jan 2023 05:03:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674133395; cv=none; d=google.com; s=arc-20160816; b=W77GF0OOuanBvwCeaLuetFQ/ywXuz9vV1xtWwoysP+oOt+9J624yZj3BSGflEt4sbq T11KJAu2+VfcBlxxUBTqWvYxun/pc4xtUilXDllHf6nfn9pRvV28uDOXXJIOU3KzNdyP 5L9+3a2Nl0FR1U9DPQ9PBTVS2JGGfmD8RFhnToO/YEMkBCq6DCkCqHmLaxXJZ0H68EGE T1F/EWoTu1hQqQ0/TbCV2mm5uvyJpQWWVtolgBkXuL613EEtg5qTKrOj24kSkclYOU0+ vl+ixk5G+XDtuDsG0aujCxLPmRB+B5FP4yZHdPpFbO+TGIOrAmKFmnw4LgmNyh/ZbVCp vfUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=1BLNPwdD2MIkGCnflVreUOktXJImRH9Nu9SpRY1ajKg=; b=JRTtWyUDnvTzdiiFn4Z6K18yYL/Zl4T4GFk2RRwRdKTDAYyDf1DPx9LYzYNhrnkMk8 fntiGY3pkkVbbtYvQpQly+k2Z/fB1QDeF4dcxQ3yC4REOvGaoa/osS8S3yKwqJIFGSd1 9+RD+iNq7YNo2r6g3ab1As+Q6zHcraFwVtLmZ+ipinTfDV08VPr+lq/YKPc7iobmL7No Y45nPF6B43KUrcou+cvn8gqJ1+mP7nOoEH0c5pwtCEetNL1Lc9YSi9qGT64WS1Su0NrV QhvDoKHEH+ZsBU2t2kHqAR9RinuxeHsBayCJ0WXI/gWXgsEAL/bI9bJxrFtevZl/CNZa ca+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=cl2EIhND; 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 i23-20020a50fc17000000b00486d50b7550si37553188edr.311.2023.01.19.05.03.04; Thu, 19 Jan 2023 05:03:15 -0800 (PST) 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=qcppdkim1 header.b=cl2EIhND; 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 S230070AbjASMNj (ORCPT + 44 others); Thu, 19 Jan 2023 07:13:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbjASMNh (ORCPT ); Thu, 19 Jan 2023 07:13:37 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4010B6E91; Thu, 19 Jan 2023 04:13:34 -0800 (PST) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30JBFiZ8013617; Thu, 19 Jan 2023 12:13:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=1BLNPwdD2MIkGCnflVreUOktXJImRH9Nu9SpRY1ajKg=; b=cl2EIhNDrbmVNGeTnOw52zuwov7a0mHYxOV+QnF98y/aZnzKg7lRC70ZjT8ybbPtL1Kh TK9zmySNRJF2Z+inLDd1dDIcXC9ODyl5aMcigUMRAcCQTOG84I27K/YG0QI/3LYXd93B /mxb0eZymaU6jsymDrOmyAS+6zDhoNIdnyt6FNvb6PIeo9vcN+XaRrcRQm8pYnjed29+ OAf4rwqcd/2hBxmrwyjgp7wSXO8HTCx+dOSbqc0s9uPf4dB1TxRfkUo6ngJU953H8PkX Dk3atpX3dz+/lEE3fCXNYxhIutPAqosdqHse6YeHgb5W6MwIaZUk6GEwQ+YPlyezqIUH Fw== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n6ya2s4d7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Jan 2023 12:13:30 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 30JCDT08019257 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 19 Jan 2023 12:13:29 GMT Received: from [10.216.43.228] (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.36; Thu, 19 Jan 2023 04:13:25 -0800 Message-ID: <94d64ba8-4a49-5f94-79a0-5b09c6f39f5d@quicinc.com> Date: Thu, 19 Jan 2023 17:43:21 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v2 2/8] arm64: dts: qcom: sc7280: audioreach: Add sound node Content-Language: en-US To: Krzysztof Kozlowski , , , , , , , , , , , , , , References: <1672925875-2107-1-git-send-email-quic_srivasam@quicinc.com> <1672925875-2107-3-git-send-email-quic_srivasam@quicinc.com> From: Srinivasa Rao Mandadapu Organization: Qualcomm In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit 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) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: 9MFpG3EPn8hPxc-IpzkqH9dEu15KHocz X-Proofpoint-GUID: 9MFpG3EPn8hPxc-IpzkqH9dEu15KHocz X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.122.1 definitions=2023-01-19_09,2023-01-19_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 bulkscore=0 mlxscore=0 priorityscore=1501 lowpriorityscore=0 suspectscore=0 impostorscore=0 adultscore=0 mlxlogscore=830 malwarescore=0 phishscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301190096 X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS 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 On 1/10/2023 4:30 PM, Krzysztof Kozlowski wrote: Thanks for your time Krzysztof!!! > On 05/01/2023 14:37, Srinivasa Rao Mandadapu wrote: >> Add sound node for sc7280 based audioreach platforms. >> >> Include audioreach dtsi into crd-rev3 platform specific dts file. >> Also remove phandle to sound node, as audio routing is same as >> audioreach specific dtsi file. >> > Thank you for your patch. There is something to discuss/improve. > >> +#include >> + >> +/{ >> + /* BOARD-SPECIFIC TOP LEVEL NODES */ >> + sound: sound { >> + compatible = "google,sc7280-herobrine"; >> + model = "SC7280-AUDIOREACH"; >> + adsp-mode; > There is no such property. Test DTS against your schema, so make > dtbs_check DT_SCHEMA_FILES=google,sc7280-herobrine Okay. Will fix it. > >> + 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 = "WCD9385 Playback"; >> + reg = <0>; >> + >> + cpu { >> + sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>; >> + }; >> + codec { >> + sound-dai = <&wcd9385 0>, <&swr0 0>, <&lpass_rx_macro 0>; >> + }; >> + platform { >> + sound-dai = <&q6apm>; >> + }; >> + }; >> + >> + dai-link@1 { >> + link-name = "WCD9385 Capture"; >> + reg = <1>; >> + >> + cpu { >> + sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>; >> + }; >> + codec { >> + sound-dai = <&wcd9385 1>, <&swr1 0>, <&lpass_tx_macro 0>; >> + }; >> + platform { >> + sound-dai = <&q6apm>; >> + }; >> + }; >> + >> + dai-link@2 { >> + link-name = "Amplifier Playback"; >> + reg = <3>; > Missing dtbs W=1 build. Okay. Will fix it. > >> + >> + cpu { >> + sound-dai = <&q6apmbedai SECONDARY_MI2S_RX>; >> + }; >> + > Use consistent style. Either blank line or not between the > cpu/codec/platform nodes. Okay. will fix it. > >> + codec { >> + sound-dai = <&max98360a>; >> + }; >> + >> + platform { >> + sound-dai = <&q6apm>; >> + }; >> + }; >> + >> + dai-link@3 { >> + link-name = "DMIC"; >> + reg = <4>; > Same problem, wrong reg. Okay. > >> + >> + cpu { >> + sound-dai = <&q6apmbedai VA_CODEC_DMA_TX_0>; >> + }; >> + >> + codec { >> + sound-dai = <&lpass_va_macro 0>; >> + }; >> + >> + platform { >> + sound-dai = <&q6apm>; >> + }; >> + }; >> + }; >> +}; > Best regards, > Krzysztof >