From patchwork Mon Aug 9 11:23:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 493847 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:396:0:0:0:0 with SMTP id y22csp2811368jap; Mon, 9 Aug 2021 04:24:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzalbBjAd3gF7aECGA1noPg+UgsK3MxhF2iSiXPOcyGrotcjeSriV/vIzD3zr/sAbO6HtHw X-Received: by 2002:a5d:88c4:: with SMTP id i4mr419257iol.210.1628508285169; Mon, 09 Aug 2021 04:24:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628508285; cv=none; d=google.com; s=arc-20160816; b=m2bxgIEnkWxJ3bYNhhzqUsGlz0d6HXYzmz0sUmbWBNbiyXFtP63JQuLR/IzPBh0So3 qwnQXERhmJdM7PxdfmcJCYoxRu4cQ7CECz45f54OzOHvtOD0GppgFPdZIjuSH0U9vurX NaPFGA/qgYleXG/mitnitPDtO6csEG26tgoYDW4lbIVwg186/DUuWzJRaGUEi2E/gvxP y3SBB/7vFIoKWOk0XZB/25VVplyxME537MHqBzt/cvYQMk3iJ1YAHYeqA5GB9tQ9ssOv j9FtpBW2PsB1g+oQzDX/mNSSt3fjsiRcQby5XKpqH/xpvm+4MKq76wEWYOXXnjhGo11/ 039A== 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=nYEWa/HKSJQjTvnn6iA3ib7mu+pCaYYklCX9PU/ESf0=; b=fPfANzCfrKQ4zi1YrCMv2g9Pp8QBAiJQa1G+Rr7hJO5OtqlOP7EXrujYaH4esnCUrQ WqnbV1Ue9jy0uCrri2esE1OND6c1UOfzv7Z/lQjzmK4vTkN/LcoOaRQstMqHfFXF1gnp b4OI8/SPxqfS0TfOfLeAJjWlcPtaunkO4aV+vYC8uSexXXQhU/XiUM91X6mWo/MU18bp rgCh+4sPX4nJRJSPUuz+urh1LNxsnLychd61/KFhTJN1Hr4OLrWWdqmoflHV0eNb33Jd jei+Ie+TzLSh89rptkRmpBH/flmYHkNQ6iaK3a0T36bSvcNX61cybXOveoGLn/7Jd08m caIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=asuP73Gl; 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 q9si16629084jap.5.2021.08.09.04.24.45; Mon, 09 Aug 2021 04:24:45 -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=asuP73Gl; 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 S235131AbhHILZA (ORCPT + 7 others); Mon, 9 Aug 2021 07:25:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234969AbhHILY6 (ORCPT ); Mon, 9 Aug 2021 07:24:58 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F232C0613D3 for ; Mon, 9 Aug 2021 04:24:38 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id o1-20020a05600c5101b02902e676fe1f04so2791356wms.1 for ; Mon, 09 Aug 2021 04:24:38 -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=nYEWa/HKSJQjTvnn6iA3ib7mu+pCaYYklCX9PU/ESf0=; b=asuP73GlFn3PtEwjF8baCfib0D7YxDsTJf+8d7P5wQ6scytZaSf6o5elvh764HUDOI GX+cwSnQ/pWeffWSyfDKCs07SmQchpISkqMTwJk7UqWZFmPTecV7LasD2RaZdP/1Hx6g SaGXoTvI5syuxQmm5Z0jBorJlwAT2ItpuXPlrYVeQKNSxn8JZrtOGix2zbn9+gjZ02bY 0qYEqrs2dIGAjh3F4ITpG1qNZnhUEAQZIo5FHDg14LbL67+zC4Ia1D5RAHkGEkn6rheD XGyomiVaJCWLeruCh/csRBBBl3bEzyqf8W6tTtIukpOZRGzSChbFgaLYF7E8K8q3Ygm1 3S2g== 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=nYEWa/HKSJQjTvnn6iA3ib7mu+pCaYYklCX9PU/ESf0=; b=nbAOWItNHMdYn47DhE+8/ByPAgCUFC3ze8KKDv49QiJpZW+uUDdy8hd8VHJD3M6CT/ 1h76NhxXQeYhVLdkTnmhEP6ld3O8uQKhvfYK7dSlTYbayNJJM8TZmnL+HRvenIWDYmNM VNJmmmbP6nYMMvIm5dS4DV2Lj1T2my7z9hSvzghq0ggf9SVV/J7hWjYyturKmZafsKOU bKsRRemjkaVSKPwPL8sSnnF93lVtjlM59Q+LOjkwqDN6xwETDOSBB6r3B/TPEnVP5FU+ MTrcas6q+y7ekBuhABQqDCp7vIo/Szh3qLzPtZAlJZPyAL3zk1YDbgEasCgzMbCgVyWG SNCw== X-Gm-Message-State: AOAM532UEWKO+SEU2to8UzKGFa6t9juA7rNug3ATYnW2GkH/5DRt34Pf dAwH/NdRZ6n9xweYVjKWFQlJMA== X-Received: by 2002:a05:600c:4f0f:: with SMTP id l15mr9138482wmq.106.1628508276762; Mon, 09 Aug 2021 04:24:36 -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 b80sm7774900wmb.2.2021.08.09.04.24.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Aug 2021 04:24:36 -0700 (PDT) From: Srinivas Kandagatla To: bjorn.andersson@linaro.org, broonie@kernel.org, robh@kernel.org Cc: plai@codeaurora.org, 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 v4 06/20] ASoC: dt-bindings: move LPASS clocks related bindings out of q6afe Date: Mon, 9 Aug 2021 12:23:25 +0100 Message-Id: <20210809112339.8368-7-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210809112339.8368-1-srinivas.kandagatla@linaro.org> References: <20210809112339.8368-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 --- .../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..589c3f1e2008 --- /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>; + q6afecc@2 { + compatible = "qcom,q6afe-clocks"; + reg = <2>; + #clock-cells = <2>; + }; + }; + };