From patchwork Mon Jun 7 15:28:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 455311 Delivered-To: patch@linaro.org Received: by 2002:a02:735a:0:0:0:0:0 with SMTP id a26csp2845873jae; Mon, 7 Jun 2021 08:30:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBpoaA6AsMrQejw1JCp8mgNkYxdxG9MErv57TbV2Vvon+bo6oWyHVZGDKLuOuvcMfbtMtY X-Received: by 2002:a50:ed82:: with SMTP id h2mr20987224edr.140.1623079852592; Mon, 07 Jun 2021 08:30:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623079852; cv=none; d=google.com; s=arc-20160816; b=PO7jYNfiLS/h5VopDh+DG4lU8nGXkJmUVHvtClqEJU4r0SnMNxKotc0i9LnoEYwlVj B7R+b676valDRH/ej3XK6NhiRCyH04qpPP6/NfD6NVMTKs1Le7reQixajuxzNwbIGaiE mR8lH1j19v4LzXfhu11rY4/w5+WF2MII13h9lSh0ET6S4FXwA9F2O71KPcOUk85enLAI jw2YBXkB16qn96Jw6Girtv0Wo5DPYLstrPzx6C9woaI0ldZyHWMgsJ4NEEDTROO4bNCA 8R1qsL362w+t4VvA3d3BNw/sbOxyTChqYP0oTtvuq2F4svpAYdaZem7mEogc0hvq0OLO gtpw== 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=mfKfpXv/FKdYTJyCyYtnDd8R2p7FnhZ0IR4Bym/nKpw=; b=oc9CxoqHB8dRnrZ9bBk4JIGC09al2jAZ/N92DM0MuYFn/HBERf8XEEpjpjwVOmqfnP Yy40R/xkEEqeUEi+nkvz76Wk2k5KlH2wG3Q6fYl1UvosG9kfLFjcaBYjpN0nZaYhbcKM M9a4o3dS98QnfxshlUVG9WTUI0HnrUNLliko3R/KkaXVOvvMugflRmHyQEesXoOwYPCK pSe9fSTkFoeMmUFoR9ghp2HfHhaGeGnuyiFZ4k0k01Rg/AknWBju/MTJeKanYSqqiRVy LdcxkcQtzece9b9wuvJFZQ6rzG2ouX2rgKajnx8rXYbNYKjQ0Bup/muIegl0DNLirYml hsWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wkGj5rzV; 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 y13si12889379edu.346.2021.06.07.08.30.52; Mon, 07 Jun 2021 08:30:52 -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=wkGj5rzV; 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 S231287AbhFGPcL (ORCPT + 7 others); Mon, 7 Jun 2021 11:32:11 -0400 Received: from mail-wm1-f53.google.com ([209.85.128.53]:56264 "EHLO mail-wm1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231282AbhFGPcK (ORCPT ); Mon, 7 Jun 2021 11:32:10 -0400 Received: by mail-wm1-f53.google.com with SMTP id g204so10297364wmf.5 for ; Mon, 07 Jun 2021 08:30:03 -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=mfKfpXv/FKdYTJyCyYtnDd8R2p7FnhZ0IR4Bym/nKpw=; b=wkGj5rzV3qM3xQWilS7mtTQPd7a6twRqhOOKcVxbYhqE2syUo/m8UuljhncuIX9041 Wt8F1/JKhLFqbAnW+v1Isot3jcFABJIfvfC7Gi/HUZFXjNPHjShRXZjmeH4eKWkAjuJ3 1Y66Wf6iOOxGxJnjrQnGAhR/niTCC9pgb3cE9sg+Zh12cXSaVosbwB10jdGfNstDimh+ 8rEtZsq/qnKKtyWscjp1uT3vPYZsQXqtiYvOhhYIDyi4o1W/vO85NPq/Qu/w9MlbuE6o HPqGCy3hVFz/FVwO9nsREO6j+w2SSDiFntKjmnGy7gObpnOcRzgeuLrj3bbclq3fWt9b gTfA== 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=mfKfpXv/FKdYTJyCyYtnDd8R2p7FnhZ0IR4Bym/nKpw=; b=trBQe6OR8Ab6YCeyE1UdFsCQkUko0rk9pU0eQ0rjvrVHXM3LHDxxEfozJ88L/eOuDp kK17z8Zu4ZyENMZXbjvvYbfLXKWf30ej3CKQG1/viTUnPScBEUIsd8LKZWjpP50NYy4k h+/A/doojEs+hk32BA3OC4bc9S4nN7jS9rCHg5kzaaOv0/+sL3nlpgPtFSqVWI6k0grt NjAYjhUilow4QsH1v9ud6iu6WKGsD++tImQRKyCl4Lh6YPh2lxwzz0nHxINtH2ilEUFu GpFOOk9wV8jhpww8vvPG7EoYBVISs4BeuyBviuIQMGfvI239Sf+dGiM4x7Poaiuost01 e8Pg== X-Gm-Message-State: AOAM532nHdO78v2KR3cs4z9Ii3drqxnyVgDROCFl4pFySej2BxPOoOc+ wkGiGWLQS3yf9CjI+1fshdhrrw== X-Received: by 2002:a1c:32c6:: with SMTP id y189mr17515101wmy.54.1623079743076; Mon, 07 Jun 2021 08:29:03 -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 q3sm16370170wrr.43.2021.06.07.08.29.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jun 2021 08:29:02 -0700 (PDT) From: Srinivas Kandagatla To: bjorn.andersson@linaro.org, broonie@kernel.org Cc: plai@codeaurora.org, tiwai@suse.de, robh@kernel.org, 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: [RFC PATCH 03/13] ASoC: qcom: dt-bindings: add bindings Audio Processing manager Date: Mon, 7 Jun 2021 16:28:26 +0100 Message-Id: <20210607152836.17154-4-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210607152836.17154-1-srinivas.kandagatla@linaro.org> References: <20210607152836.17154-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 | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,q6apm.yaml -- 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..9906ef935206 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,q6apm.yaml @@ -0,0 +1,72 @@ +# 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 + +#APM Services +patternProperties: + "^.*@[0-9a-f]+$": + type: object + description: + APM devices use subnodes for services. + + properties: + compatible: + enum: + - qcom,q6apm-dai + - qcom,q6apm-bedai + + iommus: + maxItems: 1 + + "#sound-dai-cels": + const: 1 + + required: + - compatible + - reg + + additionalProperties: false + +required: + - compatible + - reg + +additionalProperties: true + +examples: + - | + gpr { + #address-cells = <1>; + #size-cells = <0>; + gprservice@1 { + compatible = "qcom,q6apm"; + reg = <1>; + + q6apm-dai { + compatible = "qcom,q6apm-dai"; + #sound-dai-cels = <1>; + }; + + q6apm-bedai { + compatible = "qcom,q6apm-bedai"; + #sound-dai-cels = <1>; + }; + }; + };