From patchwork Tue Sep 21 13:36:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 514397 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp3090655jao; Tue, 21 Sep 2021 06:38:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNRjW4EHc8mVfNMHpNQdCzViNbT8UzYrq25i/uTBvXnqG77/3JORIBoTriJwqHCYVuzo5Y X-Received: by 2002:a05:600c:4f83:: with SMTP id n3mr4719073wmq.114.1632231505700; Tue, 21 Sep 2021 06:38:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632231505; cv=none; d=google.com; s=arc-20160816; b=PPA09errBVbZR3iz/MyaaphwzkGXqFTHC9dOh9qyRsbpdc5AhMJbhXckEK22FUCzr+ giIZigB6Ky4skYjEcww9kENlJGaynydyMEexPgjyMRiegxcgaIoFQgrsFqTLRsyGbgws 1FayIXG3BZQj5ueuK90kgzB5YaAqYq4MwRQTTz1XzJPH4aZzVnXJVajHlW+XKN16Ilw0 180F4qUSankzbtBwkAq0+vMXt4uj/q0e12OMKPFOykwv12e27KxwvP+PxrqO3odHtvXP Zy9IsvKM4dE8N/uhIF3NO06GRDM2FPeoFJRyRogUhcrAd7S55RHrCQ+3x3Cthx1wxn4F 2fIQ== 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=Xlbd+9AZwaPbgNqkd/+u+TL16jyyRNM2EOFpCcmuy2lYimFKEuSsOlg1Gld4PwEr+D Sr90b6SuvwNDnX+lUdP8TxuHlDNUZcjkXmuXJ//2o1XOOTUoyn6VoGnhpE3A6KIUeqlH pdiiaadZZ1IA+QssamOq1mr7ajbeszrOhXfRj+SFUv8V88vmYzQ+tVIi9xJeNI3s9Cu2 8GQ4w0xzIfNsvaCqZxeCb+witvqhjKCPt83MiTfoQhhj66yVyHmci+JxRVoXrPFN35r/ 1JKvq03lqscDUsXAt36UXcs5ERCV8XY8HTJ24cyFItDNwm5I4nYraF9iiCxgSnecDltP tHaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MlKcAK9y; 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 m27si20584416ejn.5.2021.09.21.06.38.25; Tue, 21 Sep 2021 06:38:25 -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=MlKcAK9y; 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 S233038AbhIUNjw (ORCPT + 7 others); Tue, 21 Sep 2021 09:39:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232227AbhIUNjw (ORCPT ); Tue, 21 Sep 2021 09:39:52 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A04E8C061574 for ; Tue, 21 Sep 2021 06:38:23 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id u27so2068654edi.9 for ; Tue, 21 Sep 2021 06:38:23 -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=MlKcAK9yudhd8orryUu2gwgOv3zjTZj5J1L4qY1dlrUmk/rshjCenRybgcXk2a/W6j Vha4HRqyWLohBS3wgMxpcEuNdVqKnZtVczcijnyn6JPB1GXR/Q1ni+jYls3Q3yIUR/ZG STvxCTmzWSqq43ri994MSHcLhmHaPyE7lTdiLxZFfl7170bx5n5ZKMRwFfKxlJycKxXZ UvECeo5rZBsO+MikMIHR4Xr3cd5Olh4L8kFNQoAWl6FJejji+BoGdgB9Jw5yo+jaVs7r fEMsQnJgrxx4PCNjsy+MS9GdeLZw23z/2FjKRx0L+2uHcwiXdAQRA1QN2ZLqej5K6iAm Gawg== 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=FOXxn1rVAeRmsuyn9LbmAgiaaGhgwZCQCasUUedDNFvVMHqXxtEk8nWRzJLuWV1sGv zWl+2hZUsfqG9radVmp8mPlMdOCgUaIMHZSPSszNWzR2bNkdO1dtfvQaBI4qZKrT5yV6 MJDD07xYtnMHweRIZBt82+hQgSdEmZ5D/BSX/aZG0h5Kk8hcXWgVjYEI/Vz4Oi4zoXxU wISOoZY1Z0VCLlBXWUfyGcMirBOlSTaKYJyBEopUz8cJPVUQ7RBT18qw6eREoboMVPay 65uqMJWSkcufwo+JwJaOY+WFyBG3g8nXRtEIfMnG4Gmh1wqzTH0qQDJouEMRB+60Sejl xOqg== X-Gm-Message-State: AOAM5300HH148VMtNaRzqtCPm1JUjjeKzCa+2sc7ZSCNcuKyGPkdrz6y HoScThZovpDG2agCT7MY/kyYRw== X-Received: by 2002:a17:906:c205:: with SMTP id d5mr35205409ejz.74.1632231453626; Tue, 21 Sep 2021 06:37:33 -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 b3sm7915799edx.55.2021.09.21.06.37.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Sep 2021 06:37:33 -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 v7 07/22] ASoC: dt-bindings: move LPASS clocks related bindings out of q6afe Date: Tue, 21 Sep 2021 14:36:54 +0100 Message-Id: <20210921133709.4973-8-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210921133709.4973-1-srinivas.kandagatla@linaro.org> References: <20210921133709.4973-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>; + }; + }; + };