From patchwork Wed Sep 15 13:13:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 512209 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp170461jao; Wed, 15 Sep 2021 06:14:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycQ3m6Bi2DUa4wCt9JwPCsA27DcneED4vqZjaypcrc/Clo30SsvYkJFJ1iUx0RJN97Ztjm X-Received: by 2002:a6b:6c17:: with SMTP id a23mr18488034ioh.110.1631711697649; Wed, 15 Sep 2021 06:14:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631711697; cv=none; d=google.com; s=arc-20160816; b=OxElct0IuwUGjPe0OUm9SR2JhFHQIIMXj/QUd7i+IaqOyeF2wwI3YYkxF8JAfv4NKY TPOw+y36p0tkBhdXq690OvPIWCW/l8qJoo+X0ZjEPdhUbgR417ixb13HnS0XCIBFOKQ6 UtzQeIMOHeENRFtIAzLz10B4wwZ7lR8PjFjRkENsT9DmElx+ENAHoJkUHSR1AV/Sc+7V vDANrPHpb97JJkXAAQdaKUlfrXJBTyUzyQxS/Q8iIZzP7oCzu84qMKA/pSP+h2R2kw5+ 3CDvid4Vkt7yG9W29FNzA997j9HylsHcwUYR9QgjDjkZu8lLZKZkQsEcr0n/0mpnYjta FNkw== 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=GLrB2NeEyz8+BcL3Wo7g8JuFCMcSwzSxhcifz6bkMfLO4IYQZHCHHgXLXVycIvzKHC PDCh8qjh+MJtYGdlSAbi0ae9otSt1wETBE5UYNTwG9BtAOrWbt2wqqItgDvDKdWCU3Z0 DRJ6GZcDvFyjAbb8GH1bYM++gseODnqyNlBYkvzXUXxhVEhNSny5EnkSM+eZpcoBrEqA 2vrfO+9lOMde+6RqD5Mh2ckcNoWL7WeXlfnhqrf5ic/V+Kri74A0vtAaIUL/Z1aAe83h 1+knovtbe2khVvfgwwq4KS357MrOP4RvhssWwwLp2Gxg82g9lgfMAYLAJB8bbkhhs+Pn WtFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p0Iwmw4r; 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 t6si3200041jac.110.2021.09.15.06.14.57; Wed, 15 Sep 2021 06:14:57 -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=p0Iwmw4r; 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 S233839AbhIONQP (ORCPT + 6 others); Wed, 15 Sep 2021 09:16:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233967AbhIONQJ (ORCPT ); Wed, 15 Sep 2021 09:16:09 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CE8AC061768 for ; Wed, 15 Sep 2021 06:14:49 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id b6so3816108wrh.10 for ; Wed, 15 Sep 2021 06:14:49 -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=p0Iwmw4rigJNJUGGLy4q3j9PRpSDupYBKABq26kiPpMAL9Vx7SFzKRktbjTkA3C97C hBCXiFAaknhhEYLqGiOQbQvjvvNFwhESPXJNM1WKU5Xgfx8h2qbFDXNwFzo8JGH/ERwM o0lDrtAujmNcSk3ljlitchcq1oS8Y+JK2yTtdJzDnqwQ2VCjptOq2ooGMtoPm1aABoKf HYtz9Uq2JkN4vcyF05OTEQI0sJnUB1KDaaHPBnghVrvUMg0dzZRFjOa3HVxF6ANlQkph 3YF+pQLxbVn2TS8GUbdu+t4xsCMtA41RAJpk5sddS+uUuS/ajRVMgZhjDhDnbs9JZ3lz KjEg== 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=zP1fqnNJtyJ4kEU9EfXa9Kh4UMMUkMp/34OgNEhmFRB5kmQtFTxlYB7fF+WcBnrabb yfLKbWd8BYHD0A86ccLE4MLkbqm7d/G47iuA/ZpMOAQhZ49esQwoPdIKaVvCBfRYB8M8 /0hyMfwl7R0LctRvYaCnOlCnQEOME/KG+n2qbcYFVDves70nQOKtLAuYjTOaevcuPt2T alDiim05mOrXs5RTAN1r2TsK6Y55b+Da9BTjNhrKP9geZ+QLwAHNF0Z6Xb/5h/3KuNhc 4XeBqck+EkuWnmARTzoIWa3LauA41PVFj1I+u/UYf114wUUje3pG3K1lmsFcBqQsP0/G +AEA== X-Gm-Message-State: AOAM532t94xRum2J9R074gZBu62OFPAT4Q/N9xG7ElmccjVRO3YpuAxE PkiEz8VqW89I4WAGb08He1j+DA== X-Received: by 2002:a05:6000:1447:: with SMTP id v7mr3142999wrx.344.1631711688383; Wed, 15 Sep 2021 06:14:48 -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 m29sm14501717wrb.89.2021.09.15.06.14.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Sep 2021 06:14:47 -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 v6 07/22] ASoC: dt-bindings: move LPASS clocks related bindings out of q6afe Date: Wed, 15 Sep 2021 14:13:18 +0100 Message-Id: <20210915131333.19047-8-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210915131333.19047-1-srinivas.kandagatla@linaro.org> References: <20210915131333.19047-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>; + }; + }; + };