From patchwork Tue Feb 13 00:54:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wesley Cheng X-Patchwork-Id: 200152 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp272394dyb; Mon, 12 Feb 2024 17:39:51 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVTp77oWarw5nPLGXLjJO3T/vGXAp4NAm2qwBpH2lhi2Z2aR6Rw1bxzPa/gUuSL8dfOR5IhdHrFIMLufg1VT9K24xD9DA== X-Google-Smtp-Source: AGHT+IGBv4aljWQErd4i/9jbGPFwO+o+2t5auOYDiN4cwcw7Yxj2tRwSHPj7VwnF/yD0mRbgbV33 X-Received: by 2002:a05:6a00:189c:b0:6e0:31c4:3f09 with SMTP id x28-20020a056a00189c00b006e031c43f09mr9540902pfh.3.1707788391264; Mon, 12 Feb 2024 17:39:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707788391; cv=pass; d=google.com; s=arc-20160816; b=DrxSvNbNEXLt92ze5HVRYMO6QQNuCEP0gFQBrF940Lk3JoAMoqm2HLeVweU8MXBGfC GSKBMMH2AwbAq8K6oLZog5fXPt2V2moAFJ9GRNio76tDPnAYp/wB63A1tY2v9OUNbdU5 jL/W58wYd9gP7xJBI8DInzp2o80+gt8wG9xyz+VlghdVWCsQtQ/xJ2lFmNwOq3/McTKJ /d5+UWKKvB7TJYuHWD3FxjCMNxI6be82xO2rW83SQhF91fdrffpOdgfw5u7aQ1zkFXPu HCNDR0xsE8ZZpxJlpZZgt8voK8kSk2VkGHslSE/azyenp0m0zgQbksrKG3jRC4RANRzX ZHSA== 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=aXcsiD2TssaqMy+wKuED/CbjIXXn+jj6fiBDb7oBJaQ=; b=Sv4vAAFmPAOPxGDgHam/mlcGKGGSO3r39qmhCzZ4WSJEyG25h8/5TTLrS84Izb0QO6 MYUfjK9SIfRcuoLUBdwep5gbzoksKR0g7E4I7MKzC8pvNzwiXEN5kOVJ1bHTbVg388G6 oVM9hhAURKNMe8w7bWpwcwyCxDw/XcyKvPGM5okD0A5Es2DXvhrG23PK+XyHHEmbmIrZ FB52HDnWv175A1iMZfPwWr4elSbWI3xtsWKRpaSpPnE+xwMGYEQCYuoyNNYMNUzRpdK5 5wH/rC7crzb19MMzS9A8OTki0rzIYLg2GoN8zUy0Ctk4vvdWKS/kj/1PA4LKFLEUUa2K sD0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=eyRU9uuz; 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-62812-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62812-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com X-Forwarded-Encrypted: i=2; AJvYcCUlrbQpndP6h2OG2/O3BlHrMjy8a4Or72RjTw9/XZsswoF51Ci1r2lF0FdXimOPUXDbP3G2AdWtfcUlnAIEPjfeeLWYxQ== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id dr21-20020a056a020fd500b005d8bb95ce75si1094872pgb.197.2024.02.12.17.39.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 17:39:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62812-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=eyRU9uuz; 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-62812-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62812-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 326E22877A4 for ; Tue, 13 Feb 2024 01:35:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2EAA662A00; Tue, 13 Feb 2024 00:55:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="eyRU9uuz" 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 1CF5455769; Tue, 13 Feb 2024 00:55:04 +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=1707785706; cv=none; b=pa7SG80uk/wsnSpC8uzN4JnlOSdJ6YJ4Ze76S9+xWlurg0i3IzuOb3mRBM5b+vMakwwyYxlKBW3b53BhvywdDiN8Gkzz92uZJYko6fN1FClpXVCpr2WijPj099sl8cXpXRkxg4TuxpeUzKjqm+VN8SpGHLVUrNV3LfYc+3c2FvU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707785706; c=relaxed/simple; bh=Q9v7m21SznsQRBxoPQiAbg8VdmmvPkGv0cpZczE0uEo=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=RyKDqSyh2piVpmc/GbSYpf/e40GtVbQ2TaHy5SgClHj6ijIh1EStS7xXtleq0FWxpz+J8LJaUWBEWYgN62AjxGVkiCg024NySf9IBhxWQUyKstKbGz3QqN5v4eN1/9O1sEBElcshgSF9uU7DJNNoqJf08SCvz6AFQAW4F7Oz07g= 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=eyRU9uuz; 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 (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41D00l8M018326; Tue, 13 Feb 2024 00:54:44 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=eyRU9uuzNOwW+q2Qp6545HKAOXSyHsM3cAty mgKN5K+jv1BFaxgu15TwE3yI5kaGxu0wKv6nSeub38pu1fsL7W5u3U3Nq8igbkid YU1m2grdseRnTxhM0byGu+8RkshBzt2uh/Vz9eP9r645ZIm0PpMFVhs7gr3+ZyBv DHEUG2ssSG1PLZl9T6up86otVnScG7qkepcR+K9pA+8UqEE6GHjBnpI8JAQzz9ha PUm1OpaKj+mjZ7l8aPlVIT107u8CXAdidXVVNBDDLt4Ds8ZGyAFuGum5CMQ/SATy t+3NKBmTsk+alq+09wo9ICSh3DvWVBkFqPBRDwxWHPeLTxh0Nw== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3w7wfy82j5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Feb 2024 00:54:43 +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 41D0sgw4031134 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Feb 2024 00:54:42 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; Mon, 12 Feb 2024 16:54:42 -0800 From: Wesley Cheng To: , , , , , , , , , , , , , , CC: , , , , , , , Wesley Cheng Subject: [PATCH v15 35/50] ASoC: dt-bindings: Add Q6USB backend Date: Mon, 12 Feb 2024 16:54:07 -0800 Message-ID: <20240213005422.3121-36-quic_wcheng@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240213005422.3121-1-quic_wcheng@quicinc.com> References: <20240213005422.3121-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: 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-GUID: HgIdYvISWcCrJEvHwu9B1osMThBhrxiR X-Proofpoint-ORIG-GUID: HgIdYvISWcCrJEvHwu9B1osMThBhrxiR 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-12_20,2024-02-12_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=991 priorityscore=1501 clxscore=1015 mlxscore=0 lowpriorityscore=0 bulkscore=0 phishscore=0 malwarescore=0 impostorscore=0 spamscore=0 suspectscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401310000 definitions=main-2402130005 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790745920187622633 X-GMAIL-MSGID: 1790745920187622633 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>; + };