From patchwork Mon Feb 8 18:01:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 378577 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp4903830jah; Mon, 8 Feb 2021 10:08:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxz8ejfhbEzhrSUdjEMl/ZA0T9LipFtayvz7NuuJ+AFs0eUkOk2wIvT7VZFFlhgQjEANKw3 X-Received: by 2002:adf:f7c5:: with SMTP id a5mr5725706wrq.243.1612807684198; Mon, 08 Feb 2021 10:08:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612807684; cv=none; d=google.com; s=arc-20160816; b=XN7JeL125QGWVVYHFQYD7kboO5ggjtJfxVuuS7YUxTh2dIrWUZbA1+iHDPN91KSf49 dRMxJTLsYNwKMYwp0xQMI+/aSOhpIqv5IkEg1zO+/EvLqx2JBDHE1cX7t1MziZ3eap+G 6M/vJ9gwebGyu99nI+UJ9m8ErWjJPgpVKt8JGua1O6qQ6iz3OxKBe9ysBmT3LhWn+oiX g4tpl/Qk8nbjessLB383k0FNQOzmxA+KjIQKdXakGUgqbIz7Jc2boZOC8PrVU2vKhdi9 uu/D2S0cxxcA7f7Bv6KB9TsSXQEU5UXdBYvFYgaoK7POws431OCBGYlDgeutIQ/9RTbk mkrw== 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=y4A5Uf4Os6WPGl/YWHkNN/4TU8yF2iW13SGgEG1fF60=; b=poEdpgkvkdJuIHnCbukKb4DUONHpEzeOnr0im8Nsbc/qsutDaHcrCgWmxkFZxLUaSa jbZ+ywjBhzIobef0CFS+Fwc2aevUdat6Bf2xGig/RoglgEGtqmMOhFmRHwaYvXybhBjI PQNKpU/JgdXCl/SwkQ/MwZv3V86/GzKTNQE5NQ1JvEzZrJqE0xATDOZJeEKJogJiH6gL JDpf0i8q9QwrBY487w55O2E1cqGqNCp3GXI17H8jtLs7OjQTri3+ifDaPNdYGZc+kQr6 pAMKSOF/LBLcp/aUkvvu5p92M3b2bOAha0Nv5gLiWQxtuKFP4mQWXiXHGXstu+uVtK5C xjGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZUZwlg4s; 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 g24si12140729edh.82.2021.02.08.10.08.04; Mon, 08 Feb 2021 10:08:04 -0800 (PST) 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=ZUZwlg4s; 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 S234939AbhBHSG4 (ORCPT + 6 others); Mon, 8 Feb 2021 13:06:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235141AbhBHSEP (ORCPT ); Mon, 8 Feb 2021 13:04:15 -0500 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B2EBC061222 for ; Mon, 8 Feb 2021 10:02:04 -0800 (PST) Received: by mail-wr1-x432.google.com with SMTP id n6so5475288wrv.8 for ; Mon, 08 Feb 2021 10:02:04 -0800 (PST) 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=y4A5Uf4Os6WPGl/YWHkNN/4TU8yF2iW13SGgEG1fF60=; b=ZUZwlg4sIkgC0iyQpoLuu4UGVFbp+brmBdl+ALXJRciOxNkS3i9LMgZp4AacdYEhbi luasaK9K5MSCs2nxnZYeEwcyCnWwDHwpf2ss+cuj/uVo45hE0vJh/qJ/7CtKFMkhtmTr viHGwcDDa+ijJaR27Y4hag5ZOvnuQajPxaus3ikDxUoyca1NNxXBIfuU/K226r3piT27 22gN9jfBO/FpiysPVw63N1R6T1xUTgkHDv5VJjqILOIuZDdOIDqEeYM0lthEe3I07RuE /SbqG/UoZpTjJy/95KTMK3fCMyRKB7mQ2hfl+koQa55ixjd+jfz0mbDx7GJQkTZj19/j G/bA== 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=y4A5Uf4Os6WPGl/YWHkNN/4TU8yF2iW13SGgEG1fF60=; b=MG77dvK8VpEPJvgBLLzzj2xdaX48gZ8crD1D6+NU2VzzSLfy5ea+8b3nmU0NvaUXdS GM/sTj4iOBrh64PBS1cOcRSDEpafahe8q4di3Ay2KmpbUK1wVd6mUR8Vtj+AsGan/rs4 DPvFJsxoYE1RLOIxW8bBm3CrlPmSL+o4iNzwLrU6/5o0Lza3uSmUE/wl0tyqwhbFam51 MCFJG5qZamGWpXSgsg4YT5Tml+9enY/WBkRd1ev9kx7RbvFHPGBO5dtiADwVRVbCR/LU LN8sh9d+nO49e35M8uFxOljQrno2WMHz49ofzjCdBFpiJRGtCAqlbu8MSAMIZEjx77VP GUMw== X-Gm-Message-State: AOAM531R1/9i5FOMc7H7ME9MdDASpLK0B1inI1en8/Xwu3ngpRJb9fFu BnMfERDQjvBr72ue/2RApguS3Q== X-Received: by 2002:a05:6000:1362:: with SMTP id q2mr998608wrz.31.1612807322603; Mon, 08 Feb 2021 10:02:02 -0800 (PST) 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 l2sm21194937wmq.17.2021.02.08.10.02.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Feb 2021 10:02:01 -0800 (PST) From: Srinivas Kandagatla To: broonie@kernel.org Cc: perex@perex.cz, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, lgirdwood@gmail.com, devicetree@vger.kernel.org, robh+dt@kernel.org, Srinivas Kandagatla Subject: [PATCH v3 5/7] ASoC: qcom: dt-bindings: add bindings for lpass tx macro codec Date: Mon, 8 Feb 2021 18:01:07 +0000 Message-Id: <20210208180109.518-6-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210208180109.518-1-srinivas.kandagatla@linaro.org> References: <20210208180109.518-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This binding is for LPASS has internal codec TX macro which is for connecting with Soundwire TX codecs like WCD938x. Signed-off-by: Srinivas Kandagatla --- .../bindings/sound/qcom,lpass-tx-macro.yaml | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,lpass-tx-macro.yaml -- 2.21.0 diff --git a/Documentation/devicetree/bindings/sound/qcom,lpass-tx-macro.yaml b/Documentation/devicetree/bindings/sound/qcom,lpass-tx-macro.yaml new file mode 100644 index 000000000000..6b5ca02ccce4 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,lpass-tx-macro.yaml @@ -0,0 +1,67 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/qcom,lpass-tx-macro.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LPASS(Low Power Audio Subsystem) TX Macro audio codec DT bindings + +maintainers: + - Srinivas Kandagatla + +properties: + compatible: + const: qcom,sm8250-lpass-tx-macro + + reg: + maxItems: 1 + + "#sound-dai-cells": + const: 1 + + '#clock-cells': + const: 0 + + clocks: + maxItems: 5 + + clock-names: + items: + - const: mclk + - const: npl + - const: macro + - const: dcodec + - const: fsgen + + clock-output-names: + items: + - const: mclk + + qcom,dmic-sample-rate: + description: dmic sample rate + $ref: /schemas/types.yaml#/definitions/uint32 + +required: + - compatible + - reg + - "#sound-dai-cells" + +additionalProperties: false + +examples: + - | + #include + codec@3220000 { + compatible = "qcom,sm8250-lpass-tx-macro"; + reg = <0x3220000 0x1000>; + #sound-dai-cells = <1>; + #clock-cells = <0>; + clocks = <&aoncc 0>, + <&aoncc 1>, + <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, + <&vamacro>; + clock-names = "mclk", "npl", "macro", "dcodec", "fsgen"; + clock-output-names = "mclk"; + qcom,dmic-sample-rate = <600000>; + };