From patchwork Thu Feb 8 23:13:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wesley Cheng X-Patchwork-Id: 198661 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp516439dyd; Thu, 8 Feb 2024 15:31:10 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXODtstY1WxTlWCawBRkpazO/vORGD9PuGRUpIKm5V9Pye0nL+5zHo2eFSKBp2HDf9Hy1B/DoEWBfrjvuj7fg1IrOJoHQ== X-Google-Smtp-Source: AGHT+IFAg1/uKHD1OMEYlIDDfxkbcFrtbl/S9CYi6yhqrCfbhirwFWj1H5BLF0mfhqy351q6el/P X-Received: by 2002:a05:6830:208:b0:6e1:4848:a41c with SMTP id em8-20020a056830020800b006e14848a41cmr1192649otb.7.1707435070178; Thu, 08 Feb 2024 15:31:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707435070; cv=pass; d=google.com; s=arc-20160816; b=iaTZeifmz6mbulrdC+maFCKOf3DSHT4WwtHmsQzQ7w3EoqA5wScgrMRY8KjwuW6lmK SBNuRF4Zq6R1UKZp3+xr8pyo7VAykOhDfaojk6uY7COQyECnvsX8/KDiHB1BOtw6Z9J4 T+xLDYwrVuYksVudHlr65JsmWc1nJNtGwkT7zPq8KXxVw7R/tQ/FrsWFbbAKj4J6dEUq R01t5Jl2TWOTVwPdyLqIaCforJpn/T0LdlOdq2Upks++pLhaZogn3HbXGQBD6r5iC/W+ UGLHH15lOz4F4DSFjRfMNNRMLVeJDPRrQFNqhFQG54yPjDtwIAALFr7AS3U/Wtwvn4yv y5zA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VRemWOXPXiXIlDmi9y+GTnchb7p3I7IDu6uqBmXbsdI=; fh=7z6anhazlpwnwyHiIFimKzXr5+m6l6t1CFmcQYTL2gQ=; b=Z3J+ElTWOPPF60zTfuAtWVG5UL9hJBROhZVs5eA/3KYDTGNCNRX1+f3b56pPgZ7NHL sPN2KmbWmIcgqAUicV0/MtnhdEHMhSOAv4m75Pumngr3idz0vUe7+FZmhqGvftTS3/SX HpuoDY1NC0CiK0M5DbiTZJLdQtwZiWtWXckC5VGx/Pk4BMWL5iUU+YiDDsD24eOGCMur 60dNyE7KQn+/KLiOmM6M5ma2wsaLNmJc8qlnrbdw3CL0tQYZ7qSZtVajnyx9RdVDzJMo H/kIVJpl6GiJ3IfFM3vEgWZNfErGNLLZdICHNUhqBjmFZlSVcX0tQqiA8Mmvp3l2QOyi /gPA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="JZC/FOlY"; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-58835-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58835-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com X-Forwarded-Encrypted: i=2; AJvYcCWcbMrCDVdl4tQxu9M9veHrjxGg6kOM0UpBO/AywjU3vGVbZ4D2u1BhWHP4R6Kam3xTXOKwH6bgC5dXfqxsJ3X0NeDHfQ== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u22-20020ac858d6000000b0042c28be0ebdsi604692qta.249.2024.02.08.15.31.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 15:31:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58835-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="JZC/FOlY"; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-58835-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58835-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C1AF11C243AA for ; Thu, 8 Feb 2024 23:30:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C396B612FC; Thu, 8 Feb 2024 23:15:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="JZC/FOlY" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CFD7D50A68; Thu, 8 Feb 2024 23:14:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707434087; cv=none; b=NHCLANHeF/6PLQqX69HSrW266kr0ejrvnlu1T6ARDkkpD97w1JKn4EOXDCv4ARmaSP7cHuljk6C49VX4lNcCOm3Dkp4OLd3HzoNPrE5NQEKUP3vDkriVZQ+VAujUA4AF6cK5mjQWW5th19RNud2C6h2lypuGljvlWf2CH9Te0nA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707434087; c=relaxed/simple; bh=Q9v7m21SznsQRBxoPQiAbg8VdmmvPkGv0cpZczE0uEo=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=JDIK0beaD56ArF/RStcYlq4U4bfr0FI1GKZKFuEIhZ1HE96han+nSBgVRopbsLz5138XkgNwLVYYiSHKdJg8Z0Q5C966rIEB9uebm8cFeAGZ9JWr+LLZmKFzlOxgez76FdJkKUaIuZvbanaYfzvyOEH/KpycUSkWoKitFJS/nV4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=JZC/FOlY; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 418MEeE9032659; Thu, 8 Feb 2024 23:14:27 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+G Tnchb7p3I7IDu6uqBmXbsdI=; b=JZC/FOlY9mHlXLczzW+49/MYLlwVO7wRBYdH rBsmWq7/k+Zg7LElz50ecsFvxgw/i/wndX6q8IGwJKk54lqFYSpZ8C8wj8VmNa2l XDwBGCGZrkcPdW4+Lb37RhSANxrWfkmOSa+1hLIsuECJAPqfg3J0zBOlOuz7E4aP PgU1Fal25odPFNm0uv9SEJ6Wn5vbo5FcwxpxqWIZMToDbmPkIO+EJC8QCZUQMYne Rh7DWsCYBDZK5keyAdEi13a/x9K4Q5WK8hUH6XzTpq07S/3dtNuoYBZbcPjsTxV/ x+d9AmCbES/IM+VHP5iNsNazkTiRYhhgUk56kQfO66NI7zguRA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3w4sns2ab1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 08 Feb 2024 23:14:27 +0000 (GMT) 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 418NEQ5x022125 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 8 Feb 2024 23:14:26 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.40; Thu, 8 Feb 2024 15:14:25 -0800 From: Wesley Cheng To: , , , , , , , , , , , , , , CC: , , , , , , , Wesley Cheng Subject: [PATCH v14 37/53] ASoC: dt-bindings: Add Q6USB backend Date: Thu, 8 Feb 2024 15:13:50 -0800 Message-ID: <20240208231406.27397-38-quic_wcheng@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240208231406.27397-1-quic_wcheng@quicinc.com> References: <20240208231406.27397-1-quic_wcheng@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) 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: ERBXskQchwE0Erp-d7F2pd-0nD19QeNz X-Proofpoint-GUID: ERBXskQchwE0Erp-d7F2pd-0nD19QeNz X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-08_11,2024-02-08_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxscore=0 adultscore=0 spamscore=0 lowpriorityscore=0 malwarescore=0 bulkscore=0 phishscore=0 clxscore=1015 suspectscore=0 impostorscore=0 mlxlogscore=991 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401310000 definitions=main-2402080131 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790375436010240135 X-GMAIL-MSGID: 1790375436010240135 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>; + };