Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp493969rdg; Tue, 10 Oct 2023 17:25:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFT1NSe53lUdXIRADpR7zViXDQx8k1ycWM9Tn8RVXs7uCzq0HQH/rJeF5DNvbEyn1JUW9/W X-Received: by 2002:a05:6830:18c4:b0:6b9:6a43:1f7c with SMTP id v4-20020a05683018c400b006b96a431f7cmr20655270ote.26.1696983911227; Tue, 10 Oct 2023 17:25:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696983911; cv=none; d=google.com; s=arc-20160816; b=zboPCXk+rbPK9oQFDV3abmAFNTy4Q+cJAxWxiDrC4u/0zVV4i4zEmUKAOCGER6k296 nIml9q6yvMwkHi6XqC77NMZHMt1OsnB7erybDBTIpgQk2scBp+XR6qfkLtLoPXm57P7S 59ihnNn5gQd+Yjtdx2mwuLB9/blRNMI/wqi9CWRWrjfQAX6ZpWB2YYzy2Fnpm1oP/SUB QMgtSN3gQ4DOwigY0YB7VudYIixqWmKleUkrlBBJLXfFqAvXfDWJ4pglEAn9PYLK3fUi FpzhLtkmFq8UswPqaPqW1rcm6lMkaGkV5oG2BCtCcUH3yaFwym55+rV9ewltKqTC3xCl f9aA== 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=VRemWOXPXiXIlDmi9y+GTnchb7p3I7IDu6uqBmXbsdI=; fh=ASZxE/GudOQkGCAz0d02NHHSpg4iNHYOcDWl1imlof0=; b=Uxelv/aX8L8y1DRbYQO9LKJOOVO0Lueg1LidfR0C1ugdzCrNnf+gEntixkXfcz1ujF v681k7peRb2AKuGBjVGYR7E37imX3kxwy15Z3BDEmwJtxRTdngPHqYaNio4/V9c8h76u WUU96hjo0w1R5jdmI0HaFAULbEeFzI7Wb+LKYEQksN7cgCsGmLNWvcvO/Jk2gBO4yN4u 9z8QSUqRaqEZeqKcQl4dx8xnIl1aDUBDRP67vKN/ivbt3yF3U0+90Eva4MiNVjE9MUIX E/EcsCVPzQS3PI8pXCpPZiI/1kas5ilX71z5i0Bu1YCNd2+dpikBJAWiO2r2bNG7Kzc2 AYEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=iiXc+oge; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id k185-20020a6384c2000000b00565dd108fd4si4133971pgd.115.2023.10.10.17.25.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 17:25:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=iiXc+oge; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 249C98129AC2; Tue, 10 Oct 2023 17:25:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344581AbjJKAYv (ORCPT + 99 others); Tue, 10 Oct 2023 20:24:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344427AbjJKAXR (ORCPT ); Tue, 10 Oct 2023 20:23:17 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28007E9; Tue, 10 Oct 2023 17:23:13 -0700 (PDT) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39ANWPrX024799; Wed, 11 Oct 2023 00:22:37 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=VRemWOXPXiXIlDmi9y+GTnchb7p3I7IDu6uqBmXbsdI=; b=iiXc+ogeEYSqbiU81l7v9UZZhZmKxy5l9IgW82a7cvgzylp3J0P6G+elsFIJU/E8/Jt2 kNXYJKqNBwUIvgZxg1aONw8ytKJpvFraUtuKHMxKoIDZ4Vu+lplIr67NAsRkObx5bstd yTHaCzQIAODg+WdRWu29OJPPeACXLTmDQ/Keg4KRqheyuPgo2lFFjQp0hfqi0mh3xVae N0BXSuTB+m3Jp4ZSWnTu0uGMfo7HdgqF0ypwMSO76uS3uOdJFspLNE0rE0IMnYdV/THe T3SVBwKyqKDLuGqBu+Z061L54CREb8ERy+rsBe3wsk//09TTOuyExoBwF8ABfGGSr3th 0g== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tnfu903qq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 Oct 2023 00:22:37 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 39B0MaNw004858 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 Oct 2023 00:22:36 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; Tue, 10 Oct 2023 17:22:36 -0700 From: Wesley Cheng To: , , , , , , , , , , , , , , CC: , , , , , Wesley Cheng Subject: [PATCH v8 24/34] ASoC: dt-bindings: Add Q6USB backend Date: Tue, 10 Oct 2023 17:21:36 -0700 Message-ID: <20231011002146.1821-25-quic_wcheng@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231011002146.1821-1-quic_wcheng@quicinc.com> References: <20231011002146.1821-1-quic_wcheng@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01b.na.qualcomm.com (10.47.209.197) 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-ORIG-GUID: 4NRgzFSNqxOnms9fTKoZl8CqqM6L6nHS X-Proofpoint-GUID: 4NRgzFSNqxOnms9fTKoZl8CqqM6L6nHS X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-10_19,2023-10-10_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=963 spamscore=0 bulkscore=0 adultscore=0 malwarescore=0 suspectscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 priorityscore=1501 phishscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310110001 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 (snail.vger.email [0.0.0.0]); Tue, 10 Oct 2023 17:25:10 -0700 (PDT) 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. Reviewed-by: Rob Herring 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..37161d2aa96e --- /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.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-idx: + 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-idx + +additionalProperties: false + +examples: + - | + dais { + compatible = "qcom,q6usb"; + #sound-dai-cells = <1>; + iommus = <&apps_smmu 0x180f 0x0>; + qcom,usb-audio-intr-idx = /bits/ 16 <2>; + };