Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3905437rwo; Mon, 24 Jul 2023 19:47:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlEPMtePDkoqK5S6b+LanqfV52goYfJbiocYj9/6DLsc3BfMWvBQ0wnRbGi/7PII6HSj7izR X-Received: by 2002:a05:6a21:999a:b0:13a:43e8:3fb5 with SMTP id ve26-20020a056a21999a00b0013a43e83fb5mr9485749pzb.51.1690253278770; Mon, 24 Jul 2023 19:47:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690253278; cv=none; d=google.com; s=arc-20160816; b=VOBpRperonU7WYP8m2Pej56t5bkTOVIhAEEX2LL3HiSQXhZr65Z7VM0BC3/c/x2so4 2clvT2KY/UE5ebpU0m39Wc7qnu3wTuY/UhPRn2X4cBaL7rsawNsK7q93xLTvKHL7B14c rqnV57AWHQvgi09yEcN/BNkns9jvkJfb+oIN7LuZ+Vq4fE380dD4UqipKIW8X/zTT6vB mQjSQuXTjH9PKL0lniQQyhkT5kj8Mj0kchOD0Bat9EYOTaD9u3rX3EnJ+PfZ/DE4O+bh ziqKeRgJmZYIRUpRbBgrq/g+I6htnAicwZUoISZKAMbOZLfjAtN1EwZWVtKcDi+7m4Rf UHsg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bt20-20020a056a00439400b00668718e54c6si10113125pfb.202.2023.07.24.19.47.46; Mon, 24 Jul 2023 19:47:58 -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 S230395AbjGYCgR (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 Content-Type: text/plain 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 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>; + };