From patchwork Wed Oct 6 11:39:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 515307 Delivered-To: patch@linaro.org Received: by 2002:adf:fbc8:0:0:0:0:0 with SMTP id d8csp563053wrs; Wed, 6 Oct 2021 04:40:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaBZ5/Jy00FqzLcRNaN4+sBfSegPK1L2ml5r0/7fC0x0xtR++rLNhxZtbqib8T651ZnPe9 X-Received: by 2002:a63:cf44:: with SMTP id b4mr20295205pgj.215.1633520413551; Wed, 06 Oct 2021 04:40:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633520413; cv=none; d=google.com; s=arc-20160816; b=Lh75rRk5j0PQW2PTfQeaR42GoEKn3QmQuS86/Ujn4V7kow4N2IKDs4kCces6PeaD65 3BM7jhx0ZNvVyMAenR8sMKzVFOGjvB2BW1lO0oSvypwSchvDjeF/Q78w77xwT64Ms764 CZG2YDftjRv1OwU4iSztmyKXwNYcmUI/AOnDx2sUK+h8N182RdFyTjoM9kEcLAjhcVvh UEoSxdXs9rimj5nGp/hJormWlNZDPfltHrIdE1qw8YTNqwoJzfszsVagSoO4ZK2k4J0a vmk7G4NeGtyqkV9QmVe5aIehVwHbUeSCuEcZYn0aIOv22n/XDnPJwO8uQrR1BVtqzjzH YYKg== 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=m5eYbtEJzu3E7oAh69CGDWodkov248fkVimeP9fXZtEvetfzeHVNeWGhX0WRsSxHTd bTVwSSZx/zYUKZ7HHl5dSWpfaf0EfnoKgkDJEGdANGHt7t1CH9dACiq+wNmQYN5sBzLk S/30yjpUSGUATnZYCad0mJQOr1zRYQzUyOc8N/uQLL+amO6gNdWgF1/TCqeiCI+rlfMW xt9LmAJd+IwhsHXH5ljsNMuzkW4LelK6Z0YND0Krsbd2H+AUfC6ofFkF1Ye+MN03fXAm JLsQaDHBLVzArAm/5tk2HEHvLhNMvLw5c13p820nG9Qhet1yON6zyzFjrOdcLSLFH781 Zemg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TrOWQf5I; 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 o22si32587717pfu.175.2021.10.06.04.40.12; Wed, 06 Oct 2021 04:40:13 -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=TrOWQf5I; 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 S238253AbhJFLmD (ORCPT + 7 others); Wed, 6 Oct 2021 07:42:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238091AbhJFLmC (ORCPT ); Wed, 6 Oct 2021 07:42:02 -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 DB98EC061749 for ; Wed, 6 Oct 2021 04:40:09 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id r7so7854071wrc.10 for ; Wed, 06 Oct 2021 04:40:09 -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=TrOWQf5IjakmRus7abpk+oQ/tbz9XMRBT2PeKFG/iudPcnkL4haEBpld0cfjmUc9PG /+cBgoK3z4jC7fW8yEblhJp/u3yq6sWuSDpmAicS9Ah8ei89fLiCZj7RUi6/CMR/F//j dhWiEdHPAwDI8ym1e3sJG5Dez4yFSB+K9/zvW9dTuESfyg/FIeKJ7ZiEBWOy9ipTvULt DnU9BEsv03A3PirGsu2xUsXZVajwLB//0FP0hd6Jv5iJCwwrXa2NZOkwXiOdsTEhcFSb L1WyaC6Ybk4pjyNs7IQ4/zkNKa+6fDyYoZNCavNWK8bVpf0ifoo52QBgjghagjp/mUUm 33tg== 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=5PgezxSdBPwMGGwOJK9o86N2+/z9F0gylWxFWfn5/aQkl+NOTyNsPVMoDOjBjFlRYM 22UaYmDNVKwdwqPpWImMPSZXQ+9aOxH6Fs6FPG+9oHoVigRVodCISa1WQ1KDjvLuen5Q qeIYnrHm1Z8G/efD0zJmV9XMDHogZJBmOwE5DkT/qID8oe5i1u03i+N0qJn/xydy7tVZ 4OF21Z+dBVlcVRZGt8tRfjSNf4TtvyzaS5wRM0ERrXbdymDMIvHVM8Hk1Ugt3CpT+g/R YfBDziZTN8+KM/pxduAc3cHi42Ymwm+vOOL0jo/hVNh6aq0JaOYrrQxEFChObCy0PxtS uY9w== X-Gm-Message-State: AOAM530Tq5WV6UHsKz2wabQMoERZotrIQSOu8AHo4nz1Kirrg2SfP+3m pwNOalW7UX2gigZMERKYBNl/oQ== X-Received: by 2002:adf:b19b:: with SMTP id q27mr28269332wra.125.1633520408366; Wed, 06 Oct 2021 04:40:08 -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 n11sm5540110wmq.19.2021.10.06.04.40.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Oct 2021 04:40:07 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, bjorn.andersson@linaro.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 v9 02/17] ASoC: dt-bindings: move LPASS clocks related bindings out of q6afe Date: Wed, 6 Oct 2021 12:39:35 +0100 Message-Id: <20211006113950.10782-3-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20211006113950.10782-1-srinivas.kandagatla@linaro.org> References: <20211006113950.10782-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>; + }; + }; + };