From patchwork Mon Sep 27 13:55:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 514699 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp4144275jao; Mon, 27 Sep 2021 06:56:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3kygLh7aCLvPZrSEoXV8/RCg5f47PLWWhNzrcLpt7QK4S/4Vqk+GaRJd+ZAqMAyBClTDh X-Received: by 2002:a17:902:c407:b0:13d:93aa:8098 with SMTP id k7-20020a170902c40700b0013d93aa8098mr23085678plk.3.1632750994829; Mon, 27 Sep 2021 06:56:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632750994; cv=none; d=google.com; s=arc-20160816; b=aV3dAY0nxPON2g/xd+4oi+DZLYLdZhpRr2arHuNFJOHOw3XAaGBhwSJVHPMeXr57sN wKQjC2q6aK4O7VOQ9/YhQGVzofYAqiZY+nwZ1d5cnOIeoB4+/FP7qph8nfvPneDyA5Hq xYwiyRWfwgIsdo04epUWDtYPX0kMUYJqSfm1NWUzgG+EM5jIjXRYbB69n37Gi6Ef/Otz tDN5UEcq0L4pEXWBBuVeB+2re7jzVkGDdjCQqBLKzkOyobdfX9q8uENxRFMJbRoYjyZO etryGEa2A25rwQWL7zSSeWXv0RrcHzNxKlm+av0RN49GgzxyoS/SIDJo0GOs69mj1+vY 6kxg== 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=imP3Ut5HB4n6q2DrZyy9qRcidcMnxdcc3SMVUqr3MKw=; b=qcsjnmA8OEjannxsbeTTkiL3rV9DtFLMP7IXKC882hIRSdphuOYRfuly5b2Hv0xqZW pyU2trgcfyjaJjgvw6x+qjjkJJdvQ1Evvs1+pJ2XR+sznbB+mTv6qazZccZ0SwEcEuYq pNCKYRhvPouU1zoe7BZm/uHiytyT+guI29hfa2juAMdRCbFSWLS9pP3JOjgrQW/2xlsE nA1F3WzCSqkXklIBcJQ0jnA2HsvFi6Xm/OJgXr+V5PCjSUCstNFkl8C3vKTR4/ccnWlo 9MoeXGzkZwcsnFyp+dXrwh1d8JtB5RM6VgTdohZ87eIg+qwB3V8eN5yelCDjJdd8XIR0 ZXwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ljd9cUkx; 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 lx2si22295696pjb.61.2021.09.27.06.56.34; Mon, 27 Sep 2021 06:56:34 -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=Ljd9cUkx; 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 S234658AbhI0N6L (ORCPT + 7 others); Mon, 27 Sep 2021 09:58:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234655AbhI0N6L (ORCPT ); Mon, 27 Sep 2021 09:58:11 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95767C061575 for ; Mon, 27 Sep 2021 06:56:32 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id t16-20020a1c7710000000b003049690d882so655290wmi.5 for ; Mon, 27 Sep 2021 06:56:32 -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=imP3Ut5HB4n6q2DrZyy9qRcidcMnxdcc3SMVUqr3MKw=; b=Ljd9cUkxbAdpy/GJP8qxESHf9YjYyB94bxdw9x9va7KIGB4D57keslk10gjc2QpZbn fF7gScqVTgcKfpV4cErKl8riPOZcFDSHxyQlOCX6W1yN+Nq6fyFm82Tw1PbNkqIo1yJ6 10OCCrJBBliv4xf+9DY2jqUcEBhsuy9n82DVZOBVgSwvhmqQGlSmErsXhMZRj8aHD931 U47aYmEepawVngCBVZNGanrwU8CVM92h1i31LzlOSfHBXF7RZlPu7yjiETu8gvDcTvlF dPgbAUw8jXz4RIfLOw8kO4UXK5H1Ia1QQe5oar6kG/gGGXjDHv3rjIsbgg2LQ2Ndz3kS qj7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=imP3Ut5HB4n6q2DrZyy9qRcidcMnxdcc3SMVUqr3MKw=; b=DT6T8extU7kY8r7IqO1oh3VYNpte8MccnHeDYFW4dOlnhUk40QLvMOmAZG4CVXKXt/ ZEBDMGigUo3WtzR5aCK3be+9BhmeGBS4sea5tTXSsDt5iBAO7CUeEbd6MM+NpH+N4cl5 tyZmKZ+hRnUDsO1SJA2yTIWub8aNJsQR/7kd9eJAEgW++4vYyNZL8a51vZN6oiMazWkZ 2q7K8rkU2Pn543p5eUiGOibFH94dRnbnjNma+97xZQOmbrujtHioIXq4nb++OwUvQRZ+ dYBegDriCwRcu77ioeRE6xdV4yHsDYzpInyxgaYApRTcT0P1sQXAlKabfti1qTBJcY86 pRvw== X-Gm-Message-State: AOAM530APNxMXfB1ux+L4626vsiR6SmYFacy4i/Za9T/9sXw5O0Z6E02 CbvKXbzr9cDMXFZX3jqb4cvakg== X-Received: by 2002:a7b:c5c7:: with SMTP id n7mr58796wmk.5.1632750991180; Mon, 27 Sep 2021 06:56:31 -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 b7sm20485606wrm.9.2021.09.27.06.56.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 06:56:30 -0700 (PDT) From: Srinivas Kandagatla To: bjorn.andersson@linaro.org, broonie@kernel.org, robh@kernel.org Cc: plai@codeaurora.org, pierre-louis.bossart@linux.intel.com, tiwai@suse.de, devicetree@vger.kernel.org, perex@perex.cz, alsa-devel@alsa-project.org, lgirdwood@gmail.com, bgoswami@codeaurora.org, Srinivas Kandagatla Subject: [PATCH v8 07/22] ASoC: dt-bindings: move LPASS clocks related bindings out of q6afe Date: Mon, 27 Sep 2021 14:55:44 +0100 Message-Id: <20210927135559.738-8-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210927135559.738-1-srinivas.kandagatla@linaro.org> References: <20210927135559.738-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org q6afe (Audio Front End) is one of the DSP service that handles both LPASS (Low Power Audio SubSystem) Audio ports and LPASS clocks. As LPASS is a hardwware IP and commonly used by Qualcomm Audio DSP. In order to allow multiple DSP frameworks to use these bindings its best to move it out from the dsp specific bindings. For compatibility reasons and not breaking which is already working we still maintain same compatible string "qcom,q6afe-clocks" Also as part of this change convert these LPASS clocks related bindings into yaml format. Signed-off-by: Srinivas Kandagatla Reviewed-by: Rob Herring --- .../devicetree/bindings/sound/qcom,q6afe.txt | 23 -------- .../sound/qcom,q6dsp-lpass-clocks.yaml | 56 +++++++++++++++++++ 2 files changed, 56 insertions(+), 23 deletions(-) create mode 100644 Documentation/devicetree/bindings/sound/qcom,q6dsp-lpass-clocks.yaml -- 2.21.0 diff --git a/Documentation/devicetree/bindings/sound/qcom,q6afe.txt b/Documentation/devicetree/bindings/sound/qcom,q6afe.txt index fcf81058504c..bc6b5f1fe4f1 100644 --- a/Documentation/devicetree/bindings/sound/qcom,q6afe.txt +++ b/Documentation/devicetree/bindings/sound/qcom,q6afe.txt @@ -12,32 +12,9 @@ used by all apr services. Must contain the following properties. from DSP. example "qcom,q6afe" -= AFE CLOCKSS -"clocks" subnode of the AFE node. It represents q6afe clocks -"clocks" node should have following properties. -- compatible: - Usage: required - Value type: - Definition: must be "qcom,q6afe-clocks" - -- #clock-cells: - Usage: required - Value type: - Definition: Must be 2. Clock Id followed by - below valid clock coupling attributes. - 1 - for no coupled clock - 2 - for dividend of the coupled clock - 3 - for divisor of the coupled clock - 4 - for inverted and no couple clock - = EXAMPLE apr-service@4 { compatible = "qcom,q6afe"; reg = ; - - clocks { - compatible = "qcom,q6afe-clocks"; - #clock-cells = <2>; - }; }; diff --git a/Documentation/devicetree/bindings/sound/qcom,q6dsp-lpass-clocks.yaml b/Documentation/devicetree/bindings/sound/qcom,q6dsp-lpass-clocks.yaml new file mode 100644 index 000000000000..c686164732aa --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,q6dsp-lpass-clocks.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/sound/qcom,q6dsp-lpass-clocks.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Qualcomm DSP LPASS Clock Controller binding + +maintainers: + - Srinivas Kandagatla + +description: | + This binding describes the Qualcomm DSP Clock Controller + +properties: + compatible: + enum: + - qcom,q6afe-clocks + + reg: + maxItems: 1 + + '#clock-cells': + const: 2 + description: + Clock Id is followed by clock coupling attributes. + 1 = for no coupled clock + 2 = for dividend of the coupled clock + 3 = for divisor of the coupled clock + 4 = for inverted and no couple clock + +required: + - compatible + - reg + - "#clock-cells" + +additionalProperties: false + +examples: + - | + #include + #include + apr { + #address-cells = <1>; + #size-cells = <0>; + apr-service@4 { + reg = ; + #address-cells = <1>; + #size-cells = <0>; + clock-controller@2 { + compatible = "qcom,q6afe-clocks"; + reg = <2>; + #clock-cells = <2>; + }; + }; + };