From patchwork Tue Jul 25 02:34:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wesley Cheng X-Patchwork-Id: 125291 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp2198488vqg; Mon, 24 Jul 2023 20:05:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlEiInInwJfeNqj4e3z/33zytZj9lYLfy/rMZ+0jAjtd7O+31hhZy+Kf564EeG/9MExxQRBt X-Received: by 2002:aa7:888a:0:b0:64f:35c8:8584 with SMTP id z10-20020aa7888a000000b0064f35c88584mr14343010pfe.18.1690254348864; Mon, 24 Jul 2023 20:05:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690254348; cv=none; d=google.com; s=arc-20160816; b=ngm2nSCqUpHiF4BrPKoxhbtIutfcjy1Li8eYN0lEMa98AlhfwFzTOzIPJHk1Qgfyrw l0XuOn4+Uzz1Z6kxzlT1AG9RDDqtFUDClsC031s5GULQkumh9ZvmmLtaX1A7M19d7hOl 66y0Lq3g6UYMnkPblVQUGFxMxj7Q3Hm9PUJklbVUiNCpsYbu4lDjUcWTOiWJSXUlQplo qqBjFAdQlVaIFStkv3I9OrenalIvZ4R5gLqzOh1MzhnsWfNwn16p43mgWNzMqkXLhDDJ kvuvSwKR0H0twHRtEZP9lm887HYQEev9CZxevQ0zn2lh8E/rZgitihIz/QuZS+FOQYNf e7bg== 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=o0Rw9qE35+V7MizrEm53HNwa/Nf+pidbr2hynOSPp38=; fh=Zah5MX43vfshi7s92Ld+vn5YZO52CQtO4oeiq16jPIc=; b=TZN7oSpOhvbay8Akw8Sd7j7uvXHjxLvpHU8IkuX2A7JLbvWQTnMIlOrMA3e19hMHZc XqcbeUVCbPmjO3WTazinwkJEI4zvK88cdFa55dWzFIAXb7saVNeScsKYHsuduerjw3x3 KmopBFuo+uFFLmrhN2xv3zBqviHfKGogxUC0riZCSFQAqJs5Na4sSG9qym3doT50n8yF f38U7pc4nn2dmJg5JTS8M6Y03liZfHLhroo9uTOlwMgg5bUr4io9QtXisrblc6VbbYHV 3bU0PHbha4WJyw02JtvdtONeoKNvHVDIGfEJAQdjDnU9HM+8uUJHKi+cDllRzEZb7HN5 kvcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=nyUFoyxR; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c19-20020a056a000ad300b006762f8fe108si11016080pfl.111.2023.07.24.20.05.36; Mon, 24 Jul 2023 20:05:48 -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=qcppdkim1 header.b=nyUFoyxR; 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 S230060AbjGYCgR (ORCPT + 99 others); Mon, 24 Jul 2023 22:36:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230408AbjGYCfU (ORCPT ); Mon, 24 Jul 2023 22:35:20 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F531199E; Mon, 24 Jul 2023 19:35:11 -0700 (PDT) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36P2EQl9003420; Tue, 25 Jul 2023 02:34:47 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=o0Rw9qE35+V7MizrEm53HNwa/Nf+pidbr2hynOSPp38=; b=nyUFoyxReO1+50sYk4zuc36GFG5CSZ0UrCfhlHhIGAUXcoASqLbdGeMSPb9DtiVSHhKl 7fZyXAGqgy7pDjP94HHuZch+dQ/M5BT4hJkcFauT2ccmGN0HjSW2wDWgUPPxCIX8ZF3X KCUMLD0gj7VkKEwqNogWMGGDpi4JfY6JeAPHinD94tCyILxdU0Jdj3KmhQCV9PjXUdmy gOnPeAEQ/UyAptQQu+ZWqJ4gT96fbU1J0Ksh8QhUeVM8fc1jZoZqtxS9A2W1eWd0kT96 6U1FrwA3YBQWHPQb8zmWn/JhVHpUWlyU7NI2bezMVBEpzTZS0Hh+fgzvZW+KWk+JgrPA fg== Received: from nasanppmta05.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3s1vh8h4c3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Jul 2023 02:34:47 +0000 Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36P2Ykmi015192 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Jul 2023 02:34:46 GMT Received: from hu-wcheng-lv.qualcomm.com (10.49.16.6) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Mon, 24 Jul 2023 19:34:45 -0700 From: Wesley Cheng To: , , , , , , , , , , , , , , , CC: , , , , , , , , , , , Wesley Cheng Subject: [PATCH v4 23/32] ASoC: dt-bindings: Add Q6USB backend bindings Date: Mon, 24 Jul 2023 19:34:07 -0700 Message-ID: <20230725023416.11205-24-quic_wcheng@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230725023416.11205-1-quic_wcheng@quicinc.com> References: <20230725023416.11205-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 nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: I0xYkEgZ90BkM1TanFODSp9ubcxNSMC6 X-Proofpoint-GUID: I0xYkEgZ90BkM1TanFODSp9ubcxNSMC6 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-24_18,2023-07-24_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 bulkscore=0 impostorscore=0 mlxscore=0 spamscore=0 lowpriorityscore=0 suspectscore=0 mlxlogscore=999 priorityscore=1501 adultscore=0 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307250020 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,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-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772360144539738391 X-GMAIL-MSGID: 1772360144539738391 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 --- .../bindings/sound/qcom,q6usb-dais.yaml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,q6usb-dais.yaml diff --git a/Documentation/devicetree/bindings/sound/qcom,q6usb-dais.yaml b/Documentation/devicetree/bindings/sound/qcom,q6usb-dais.yaml new file mode 100644 index 000000000000..77bc9b4c3c90 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,q6usb-dais.yaml @@ -0,0 +1,49 @@ +# 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 driver will communicate the required settings to the QC USB SND + class driver for properly enabling the audio stream. Parameters defined + under this node will carry settings, which will be passed along during + the QMI stream enable request. + +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. + $ref: /schemas/types.yaml#/definitions/uint32 + +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>; + };