From patchwork Sat Sep 16 00:10:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wesley Cheng X-Patchwork-Id: 140975 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp1511148vqi; Fri, 15 Sep 2023 23:37:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFmxk1BBTGTWrZkJWywDzRp/pfYRaeRDTpHlCyAamoLQgXP+bdCHTix9qdM/2jcT024eB1P X-Received: by 2002:a05:6830:1db4:b0:6b8:7a79:db37 with SMTP id z20-20020a0568301db400b006b87a79db37mr3804789oti.22.1694846267490; Fri, 15 Sep 2023 23:37:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694846267; cv=none; d=google.com; s=arc-20160816; b=G8QvPgycL4oFSNBAIpAT5RRsbzU4XTCexZuOQEJchj5szPvDQbbTcB1MrudVsTk/MR l6KMyYOda7ZyQaWMiPjhHB+WqaHP7984Znxvd7oLAjv8x8igBYUGNGy6DGjB6DfFbR/p 6p6+Y6woWloyjiJvyee0nC7NFHBrvNRXU3z409gTt8clLmgCgGcpPAwhM6rXbpAQq/8a af8O/S9nCFBx16b4rvjT5ZT7EEn+OjWBO2tSeFoyjKNbDyPyaHNEOKjSgOKLlgUEWXcm dJy3iGWEPxhtVFhwFKEzZY7jiYBY0NQyAssViNL6BQ+3EofFcU7XHGDTEOlwiKBbIOYc 11OQ== 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=RQb7X+I6gWcsQbiUPILUchiRP1Fo7LvcS+tvUQYc6xo=; fh=MhCCCRx4c0AeUz43uLzZOKA4YzcBN2mk3tAWrRRVvW4=; b=WHeu4qGGaGQtk4E3UhXJjVEOj7nlhGzbXCSDMVGSJen5zTNfHPJoOy2FZCIxPbFy3N cv2TDh8YX+lpc5bYXUnYLECxAwXQX9opDA3gTCXyjrs0/cl51P9uq5dOKk9/kTxbD8C4 c9ejZMInuCgT4OZjn771rgFERFe51rwDuYr+1sMp28u38Q4YCPCa8kh472wIVQO9HiIV CrPHY01Ua7jDlTM3Fiho0nq2wO7WxeW9BcK2nvCbpdUFEvozSEkAdI7mw9I7NaA0kBV2 e05CGWUURI2GfFWjmoytevn0V8ovQ1QDej2II2mWxA3nXYLSATrkJGZbmQ8G7ldszc1E Tp9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=P+sj1735; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id w4-20020a17090abc0400b002748041094dsi3362964pjr.51.2023.09.15.23.37.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 23:37:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=P+sj1735; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id CAF17805A5CF; Fri, 15 Sep 2023 17:13:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238130AbjIPALK (ORCPT + 28 others); Fri, 15 Sep 2023 20:11:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238207AbjIPALF (ORCPT ); Fri, 15 Sep 2023 20:11:05 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83F052130; Fri, 15 Sep 2023 17:10:59 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38G0Ajwp018114; Sat, 16 Sep 2023 00:10:45 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=RQb7X+I6gWcsQbiUPILUchiRP1Fo7LvcS+tvUQYc6xo=; b=P+sj1735tCikMVSvL7J+w8n/F+4D+Zdpi7v8hvcLOXHT3BpM4QzXWp4S663GfpnXd+jj HffVwFUI3CSD0QXTGNeBgTL+/guojitRBQmHfklC2frzp9yciRkP6sT5Kmm5THs0Ky0B l+oLaJf/xJcw84hcx1iPtaVePJnmjg+NY0y6mIhS8EPwrQgailA1wUPSiX46D66XJ45T KHdnjLYhMbFNS6XTqC6fv5q711fEYanAO/t1pbG5/mPqHJQb0aRHBGOhPJvy6hVzvX4a NaZRGhSkrMy/P51bqmm7vJ3CzelEAPgd3OpVSvWBloWbgxicBg3PClN6b7AVwFbs5vT9 Tg== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t4g86tdev-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 16 Sep 2023 00:10:44 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38G0Ahg9018260 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 16 Sep 2023 00:10:43 GMT Received: from hu-wcheng-lv.qualcomm.com (10.49.16.6) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.36; Fri, 15 Sep 2023 17:10:43 -0700 From: Wesley Cheng To: , , , , , , , , , , , , , , CC: , , , , , Wesley Cheng Subject: [PATCH v6 23/33] ASoC: dt-bindings: Add Q6USB backend Date: Fri, 15 Sep 2023 17:10:16 -0700 Message-ID: <20230916001026.315-24-quic_wcheng@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230916001026.315-1-quic_wcheng@quicinc.com> References: <20230916001026.315-1-quic_wcheng@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: Ix3if8y1TobTBIvUU5mxeZ391yDm6BAs X-Proofpoint-ORIG-GUID: Ix3if8y1TobTBIvUU5mxeZ391yDm6BAs X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-15_20,2023-09-15_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 clxscore=1015 bulkscore=0 impostorscore=0 adultscore=0 suspectscore=0 malwarescore=0 spamscore=0 mlxscore=0 priorityscore=1501 mlxlogscore=822 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309150216 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_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 15 Sep 2023 17:13:16 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777161066703083257 X-GMAIL-MSGID: 1777175119996461643 Add a dt-binding to describe the definition of enabling the Q6 USB backend device for audio offloading. The node carries information, which is passed along to the QC USB SND class driver counterpart. These parameters will be utilized during QMI stream enable requests. Signed-off-by: Wesley Cheng --- .../devicetree/bindings/sound/qcom,q6usb.yaml | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,q6usb.yaml diff --git a/Documentation/devicetree/bindings/sound/qcom,q6usb.yaml b/Documentation/devicetree/bindings/sound/qcom,q6usb.yaml new file mode 100644 index 000000000000..51ff0b1ffa2d --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,q6usb.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/qcom,q6usb-dais.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm ASoC DPCM USB backend DAI + +maintainers: + - Wesley Cheng + +description: + The USB port is a supported AFE path on the Q6 DSP. This ASoC DPCM + backend DAI will communicate the required settings to initialize the + XHCI host controller properly for enabling the offloaded audio stream. + Parameters defined under this node will carry settings, which will be + passed along during the QMI stream enable request and configuration of + the XHCI host controller. + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + enum: + - qcom,q6usb + + iommus: + maxItems: 1 + + "#sound-dai-cells": + const: 1 + + qcom,usb-audio-intr-num: + description: + Desired XHCI interrupter number to use. Depending on the audio DSP + on the platform, it will operate on a specific XHCI interrupter. + $ref: /schemas/types.yaml#/definitions/uint16 + maximum: 8 + +required: + - compatible + - "#sound-dai-cells" + - qcom,usb-audio-intr-num + +additionalProperties: false + +examples: + - | + dais { + compatible = "qcom,q6usb"; + #sound-dai-cells = <1>; + iommus = <&apps_smmu 0x180f 0x0>; + qcom,usb-audio-intr-num = <2>; + };