From patchwork Wed Jul 14 15:30:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 476799 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp676461jao; Wed, 14 Jul 2021 08:31:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVUg45H4Bn5lhjFB8PhJNwa/LPSIXqf0QOKMSO9OQ0J2uynOlX0cM7VdY1z0LOQVRoFm3Y X-Received: by 2002:a92:c64a:: with SMTP id 10mr7106855ill.159.1626276669584; Wed, 14 Jul 2021 08:31:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626276669; cv=none; d=google.com; s=arc-20160816; b=qF/C1HezwaKP+iMfCxm6IImNITCjtwGAXlG47p7R5HL0OpK6f3Oln38x7tujJIlUX0 qBY4pmlTyHQYQ2NTpwYvPnSE1UoE8SKtTRZodnya+pYMJYNTjFoU5R1V2hfv2OaBYnaY Kkni0jpZN7NYgel4NfruKlFQr4+UBxQY1J87n//w3a+5NXjYZzpLpJOihHK4gBRGl25F t6QK/iTGAWHDwGNLhZ/j56uuIwRAj5yYnR6MqKqu/4cg5p7anpi5Ss6S06szPSRIhMbd z2N8BpiQ8mS+JbprM0YDchE7HX4kW+o+F8g+AD+6wedzKrAJ1cdrxr08hQBc3yo64Jky Tmag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=UrNm6WC6FkrE8NCfyfqxMMW9r3LTd4X3kSslIi+iafU=; b=sWhGXOOkyfmmzBq25crRQqZdnebdJr5/OIAot5pcj8v0Q5OoOH7HnD2Dt9RiPtAeIJ grjTK/x7qaXZUUMK+0bZJqoFovqo5/3d4EW/L8h6TTHbGsyagbBRFvC+HuWtXCyI38QW Xiks7Bz3Xqq6X1aFjUHKHRu4Drny1rw3spkyTS3BFMShE6p85l5uuHOAadSThbDKz5gE rz7ARfp7mxOXxu/WjnabmNHMtO9VHCT44uIefQJPDaun0DaeBM9fZeNp4lycoM/jGk2i C7a7lqALSz8uSsBFQoPaplE6pl4nqPVU8z5hPUJsyD3Tw85P9pvY7ns7af1CqaVac7kh iYCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c7nJy1CC; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k2si2936383jao.12.2021.07.14.08.31.09; Wed, 14 Jul 2021 08:31:09 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c7nJy1CC; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239709AbhGNPd5 (ORCPT + 7 others); Wed, 14 Jul 2021 11:33:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239686AbhGNPd5 (ORCPT ); Wed, 14 Jul 2021 11:33:57 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EF6FC06175F for ; Wed, 14 Jul 2021 08:31:05 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id l8-20020a05600c1d08b02902333d79327aso1085340wms.3 for ; Wed, 14 Jul 2021 08:31:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UrNm6WC6FkrE8NCfyfqxMMW9r3LTd4X3kSslIi+iafU=; b=c7nJy1CCafNyk5ARpsiv/GYzpBo97LDBfVc80FFOF4i68EHkl2hENl466304IAHD8G yYw0pOQteFnLeco5tvonZN3X7BTWQ5jaHKJ14BbQ/WCwLCVoYKxy9Vsjpkvtvs1vx7yO Cn3OI4BJYMEfNhV2v4gMq1XRf/S8GGP7iOFeVjbWbHeeSWjrDQuUJE7gfLsnqV1lFXXu YuXkFpwNiDhAqTr+v/XPB6gzozxExO5smbc2rCTIKbYhxoMqyoE3vqoSHRDSR5eAGExG 49UK23sNKp85mVjdOIe6eOn5fmmypNRHCJQ5/18mPeqLuqp0A8Dhev+MDg0aSSIpdwQw z21w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UrNm6WC6FkrE8NCfyfqxMMW9r3LTd4X3kSslIi+iafU=; b=AHMWe/jdnypG8ajRIOI+A9qtrpDmYmEQ5aY7WO7IDHdlKDEMx2LYBL+8ZJrbUUv+sZ wS9MNg1TBARwXk7zjEWbHZE2leehqkz2PIS09N6iJFIuqBxGTJxdNT7qwM1VTKeJgkMt Qsugp+LtdQD9C5h6cjAa2hy+JpeZBmN6tmjpQ3GkduLGsVNYiIqpVyxbOA3VzBAFbuxP 7InzhlQxbaSttkBBqB2n/OZtYUBfXPJeXsnaTZ44oUAyE9hPfzxyLGQ+eHUuEgMgbjja KP338eLLhkbnf3sv9Qb+j4Vtgv38VRiqUuaSQ25Y+KPAPDVggCUe6ac5k6zqLbW2zrPF BiHA== X-Gm-Message-State: AOAM531WLumwwUPyl5eJL9M5PjMiFkq37CsvpVZ/vPm8BK9Lwke2rvLI XI76tagfU82IC4+fODaMUjkCCQ== X-Received: by 2002:a1c:143:: with SMTP id 64mr11940913wmb.187.1626276658727; Wed, 14 Jul 2021 08:30:58 -0700 (PDT) Received: from srini-hackbox.lan (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.gmail.com with ESMTPSA id y6sm2465174wma.48.2021.07.14.08.30.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jul 2021 08:30:58 -0700 (PDT) From: Srinivas Kandagatla To: bjorn.andersson@linaro.org, broonie@kernel.org, robh@kernel.org Cc: plai@codeaurora.org, tiwai@suse.de, devicetree@vger.kernel.org, perex@perex.cz, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, lgirdwood@gmail.com, bgoswami@codeaurora.org, Srinivas Kandagatla Subject: [PATCH v2 04/16] ASoC: qcom: dt-bindings: add bindings Audio Processing manager Date: Wed, 14 Jul 2021 16:30:27 +0100 Message-Id: <20210714153039.28373-5-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210714153039.28373-1-srinivas.kandagatla@linaro.org> References: <20210714153039.28373-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch adds bindings support for Qualcomm Audio Processing Manager service in Audio DSP. Audio Process Manager is one of the static service in DSP which is responsible for Command/response handling, graph Management and Control/Event management between modules. Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/sound/qcom,q6apm.yaml | 87 +++++++++++++++++++ include/dt-bindings/sound/qcom,q6apm.h | 8 ++ 2 files changed, 95 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,q6apm.yaml create mode 100644 include/dt-bindings/sound/qcom,q6apm.h -- 2.21.0 diff --git a/Documentation/devicetree/bindings/sound/qcom,q6apm.yaml b/Documentation/devicetree/bindings/sound/qcom,q6apm.yaml new file mode 100644 index 000000000000..6f27567523a9 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,q6apm.yaml @@ -0,0 +1,87 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/sound/qcom,q6apm.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Qualcomm Audio Process Manager binding + +maintainers: + - Srinivas Kandagatla + +description: | + This binding describes the Qualcomm Audio Process Manager service in DSP + +properties: + compatible: + const: qcom,q6apm + + reg: + maxItems: 1 + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + +#APM Services +patternProperties: + 'apm@[0-9]+$': + type: object + description: + APM devices use subnodes for services. + + properties: + compatible: + enum: + - qcom,q6apm-dais + - qcom,q6apm-bedais + + iommus: + maxItems: 1 + + "#sound-dai-cells": + const: 1 + + reg: + maxItems: 1 + + required: + - compatible + - reg + - '#sound-dai-cells' + + additionalProperties: false + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + gpr { + #address-cells = <1>; + #size-cells = <0>; + gprservice@1 { + compatible = "qcom,q6apm"; + reg = <1>; + + #address-cells = <1>; + #size-cells = <0>; + + apm@1 { + compatible = "qcom,q6apm-dais"; + #sound-dai-cells = <1>; + reg = <1>; + }; + + apm@2 { + compatible = "qcom,q6apm-bedais"; + #sound-dai-cells = <1>; + reg = <2>; + }; + }; + }; diff --git a/include/dt-bindings/sound/qcom,q6apm.h b/include/dt-bindings/sound/qcom,q6apm.h new file mode 100644 index 000000000000..3c3987eb6e95 --- /dev/null +++ b/include/dt-bindings/sound/qcom,q6apm.h @@ -0,0 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __DT_BINDINGS_Q6_APM_H__ +#define __DT_BINDINGS_Q6_APM_H__ + +/* Audio Process Manager (APM) virtual ports IDs */ +#include + +#endif /* __DT_BINDINGS_Q6_APM_H__ */