Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1431956rdb; Fri, 16 Feb 2024 16:24:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUgKUHAdOzm2qGiENF95RzG3XdC0YFJ6vlSNMobpTQBIcb6ixwx9swsP4UO3xCA4N1pZCnS55on9Zp208CPm1sZNF0h1KIbjF9CZlFKJA== X-Google-Smtp-Source: AGHT+IFGdB+K5/Gs8Fj+x+uVTCCHCca52ggpRh4QT6vOkzgCZid7s+0vKhHV7TS1f70qec6ooQ9C X-Received: by 2002:a17:902:d508:b0:1d9:a148:49c with SMTP id b8-20020a170902d50800b001d9a148049cmr8204443plg.57.1708129470232; Fri, 16 Feb 2024 16:24:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708129470; cv=pass; d=google.com; s=arc-20160816; b=U59SgdePEMHm4TXQcXU4fBwlfdj7E3Ww9UTQb/A2PNEvWj2UGKDkX2FvHQcKd3tEm1 DdzPcywOAxw8eIjACbOOBvG6n2AScgFwVn9vIuhRssisJRAvegckKPUia9owl67iLyU1 tHfC6hQczmenfghDiG0zOOb38C2RqKwnlDiTvW/qVqY166wn0Frw90U3yYzEqWWkX81z kU5eaEY0zY9U2naTyF5jZuptnU2Ju6ZawJ8IIRXVoKYZDFvsuwNkBJS8vLFiphcXPfxx 64nFPzDV1eN/F151XaWhNNUGxs/44rUsblOYbZMYZOUxe/TVPBMq1gdB7KFuIYCLsont BTxg== 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=VKrp0Y7I/+wT36BfKZ6oI/4N9BIwFCn9zerObkOrgGw=; b=D3ix8kgGwrdRYgfAck6wCSje2WCxcleuc2sQn91stL0qNtbQqd39JDlVukxjpOMYXu bzJGUHEgsw9/XAFz66hSvmLMe010P0ivQuTyFWu17Jx4OhD/m8gOg97J7VTdlM6pDGV3 SXQtpRmw/Sho/qHOVWx44wADO+Ls0ukrnKkA50gHuIfzviWGxua+4UAB+AaRWgcYfNJ4 /RcL0h3va0ZHoz37ekv4/KsNAgxFQ7pFG8zvt8L60gcJhFWVT2yDfVOv1+OALu8riNuC 0DEG6xsRD48YNzwhdAKKCsMGbk8i8V35DB5bFfpIgbtvVOG6yx/A6BEgabYBnVjuIokB k5jA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=QfInCIgc; 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-69547-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69547-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x8-20020a170902a38800b001db5fc15a7csi621450pla.451.2024.02.16.16.24.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 16:24:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69547-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=QfInCIgc; 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-69547-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69547-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4733D28B8FF for ; Sat, 17 Feb 2024 00:21:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62C1878B4A; Sat, 17 Feb 2024 00:11:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="QfInCIgc" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 9D34A4F1E5; Sat, 17 Feb 2024 00:10:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708128660; cv=none; b=SNfWbBCzRIzEy1PbxaRHxJfFJ7GVkpQaKhD48OvPilKc9x1KFor2mWUIFilp9mpE+/YhTmAbRMf9YqCWKnU6OxqVR4oVdXvZLUIfHFnX552hMgygwwN4zqKpn4aEFrJUiDgLgc3anTXi4BQVdlsCmcJxf2NI14RjKLT4JphIHn8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708128660; c=relaxed/simple; bh=Q9v7m21SznsQRBxoPQiAbg8VdmmvPkGv0cpZczE0uEo=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=j06Jqj2+TvpgqcgMm/DJe/Umqm1ilDySe2+VvQFp29J9pfEmYyj18guH42oERX70h8LUUD6y8pVHcGZ/G6JJSUxIxldrBVUU7MrGC8VrTNpH9FPSGBaM1QuFMJXirvYN2dXjLD7JX5dqtX9zOcertR5wyw7B/CpbbS+Az61VLeU= 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=QfInCIgc; arc=none smtp.client-ip=205.220.168.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 (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41H0Aen1006796; Sat, 17 Feb 2024 00:10:40 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=QfInCIgcJYg5jzOM5VikddB6J6LXrmgiREvS 8FkXSbOeT42BOMIOdl3XyQFtHZq2qXuL/JKXibq8Oa1tkzGv5QLYc15cqjCBIHz+ vLwq6M8s9ml/JTM9d5SAt9E4KDXCBHYvJ6xcKzgF1BZb3Gkq13hZPj4mWF9Nh5gz PL3wOGwI4Mw3W5LfIK6fTyITNN9rPc9qIW4cG8rQhsmGzGDcWlIYiKhk1YpsJDhC RGtFi87HrdgGKWogFOk2DRVkGv4vjB5NbwEQeHgUvDvYVK3gvp8UtfItEhtcIKZK dt5cYe6LcATWcaFXe3Zxy3zfXflEAfmfzHV/sGAo9rSk6c1Rnw== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3w9xv9j89a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 17 Feb 2024 00:10:40 +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 41H0AdNN025777 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 17 Feb 2024 00:10:39 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; Fri, 16 Feb 2024 16:10:39 -0800 From: Wesley Cheng To: , , , , , , , , , , , , , , CC: , , , , , , , Wesley Cheng Subject: [PATCH v17 35/51] ASoC: dt-bindings: Add Q6USB backend Date: Fri, 16 Feb 2024 16:10:01 -0800 Message-ID: <20240217001017.29969-36-quic_wcheng@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240217001017.29969-1-quic_wcheng@quicinc.com> References: <20240217001017.29969-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 Content-Type: text/plain 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-ORIG-GUID: fb7J3wfyKa-PDfLNVsVNDcasvFisz6Pe X-Proofpoint-GUID: fb7J3wfyKa-PDfLNVsVNDcasvFisz6Pe 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-16_23,2024-02-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 clxscore=1015 bulkscore=0 adultscore=0 mlxscore=0 priorityscore=1501 suspectscore=0 spamscore=0 phishscore=0 lowpriorityscore=0 mlxlogscore=999 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401310000 definitions=main-2402160189 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>; + };