From patchwork Mon Feb 8 14:17:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 378552 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp4722480jah; Mon, 8 Feb 2021 06:21:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzh1RVOmHAePneC6Zb1PyBObc04R0TVL74vLSF7eEZnORyVe3GeZ5nX5wx712S2JJJwKZvY X-Received: by 2002:a17:906:f0c4:: with SMTP id dk4mr16784818ejb.6.1612794096005; Mon, 08 Feb 2021 06:21:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612794096; cv=none; d=google.com; s=arc-20160816; b=qAS7siiLh0LF2d6QGQvET6ZvzIcK1tKl3i4YgKRzsuctr6AJsMWAhRxEMeaZbCQ0LL AEknWMtdbLaYzPBRmKc4Uq/h/kKdQCtkqgDAkOU1ywJg+pOw7flAUnuE2BTxVHhaC7Mj twC9AMilyHyZdtiF5eeBCLjB5zXzYYEm7oA71p6AKxwwWQH/2shbCfi5rmcCaDRiaY0B QIiNkxQ9k4P/px26u12nxdlYk1rYLQAHK4vLtCWlHz9hrM5dRDCgwboCc/yym51Aytxx gouxxQ6PMgR68PnWSlIOlnATJLJJv/r8WNzvbCGmANRaKlXSbipcL+Znd90WZ7zMhEUc HNWw== 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=5s1sQMKmA5X4b0lhaDVUuKBYgKx/IDMprYcIvq92de4=; b=fCzxk8E5k0iPOVfZYptZ62motRE4qLauunb9o8IbCatVtorHCTX3I7ojtOEwAHnctS rVAKIBdp766frmTHFdaGbjVBsZnrz6OYtSUrM52V+jDqyfQjjbZ7zbvqpEzDRUi2tIUy pnA7n0VFVdrMoi0dnba1nUj6SUSg8xEonsjfrQz2fEzf7uwFgLo4yjhpnmYnrcpm+dKx pa8P8ceWV/rqir2+X4L1T9Hs4LI6FP6mXLS5pPi9ZNGU2bIWqCbGF6Qzr3XbAXXDnlyA 3cbnj4Kf4sKgY4wNnB08Vi2Jwzb5+q+TdoQO1ESTf83UjJ98wbYvnG6vISV2AzGK4Rnk aDrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="g///r3gP"; 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 fe6si7905840ejc.349.2021.02.08.06.21.35; Mon, 08 Feb 2021 06:21:35 -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="g///r3gP"; 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 S232837AbhBHOUQ (ORCPT + 6 others); Mon, 8 Feb 2021 09:20:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232935AbhBHOSH (ORCPT ); Mon, 8 Feb 2021 09:18:07 -0500 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23FB1C06178B for ; Mon, 8 Feb 2021 06:17:27 -0800 (PST) Received: by mail-wr1-x42a.google.com with SMTP id l12so17362722wry.2 for ; Mon, 08 Feb 2021 06:17:27 -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=5s1sQMKmA5X4b0lhaDVUuKBYgKx/IDMprYcIvq92de4=; b=g///r3gPY7GNdhBKs6DE1SEDvLXVa81vGXGmKGu9HUrSVJT3Wh9Sr1+MfJcub7ZaQe O0f8grh9i3M7W3NVMAf3XhhViExaiTZVHLcEqYBXIyJNY+irSybgrffJEfOu9jknin7e 5bBxKPrONG5NtHoEvVXUJRdhXPE/uHyHXsjCKWEM7gA1505WIT7SeeQ2I8GmDEjkA0W2 FYXMxMm+aGcAD6LZkHArfA8VMx7rjvWBc8R4LB3W4Uygudq4coECVw7xt9qb5U2dr92/ r6i0nGcUuuWbN2PBGOz5QAj978Ps1QKVm83hkklBVcFRCjiFXbsSPuRfgnjqIXEYttJf 9saQ== 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=5s1sQMKmA5X4b0lhaDVUuKBYgKx/IDMprYcIvq92de4=; b=Z42szzg140QBfKr8P4y5qtIOH/HWNQuDMDHD7n0e2zXHbrwEM6vqeqqse3aozbt6kz 2ax+2TaKivm/Otniu35WLbDzR5T7E7IRGNkx/wjUuODAUMsVRnufWXohvSka+71kz8Us hlT5Fh6PsiIxoXZooxx1XZULQvyJfMoQjPim7MVjZOrw7PhV5Cvs0dWiVtE3xo2pBkA9 JX3XpITYC4TLODjVkpjLEI4PZEJDKyqzF0D1zQroZ0LT4xWGCfKEhS3wzmLVCvvjnJgl uv9YnatxsBZ6a7tcuTrc6OXQi5rfCDAWZcOZJhNO/NzpxBEUc9MGZjyFVHd59tctKfAI 1D/g== X-Gm-Message-State: AOAM5315FsIwPUudAK0+AJq0Y3Yetsh1VWi1rxwqJp8vkODcZ96JChRB 7rJFykcrmAytB8m6PmuiGVMHHA== X-Received: by 2002:adf:e642:: with SMTP id b2mr20289781wrn.221.1612793845728; Mon, 08 Feb 2021 06:17:25 -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 t18sm27949809wrr.56.2021.02.08.06.17.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Feb 2021 06:17:25 -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 v2 1/7] ASoC: qcom: dt-bindings: add bindings for lpass rx macro codec Date: Mon, 8 Feb 2021 14:17:13 +0000 Message-Id: <20210208141719.23305-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210208141719.23305-1-srinivas.kandagatla@linaro.org> References: <20210208141719.23305-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 RX macro which is for connecting with SoundWire RX codecs like WCD938x. Signed-off-by: Srinivas Kandagatla --- .../bindings/sound/qcom,lpass-rx-macro.yaml | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,lpass-rx-macro.yaml -- 2.21.0 diff --git a/Documentation/devicetree/bindings/sound/qcom,lpass-rx-macro.yaml b/Documentation/devicetree/bindings/sound/qcom,lpass-rx-macro.yaml new file mode 100644 index 000000000000..443d556caa69 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,lpass-rx-macro.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/qcom,lpass-rx-macro.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LPASS(Low Power Audio Subsystem) RX Macro audio codec DT bindings + +maintainers: + - Srinivas Kandagatla + +properties: + compatible: + const: qcom,sm8250-lpass-rx-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 + +required: + - compatible + - reg + - "#sound-dai-cells" + +additionalProperties: false + +examples: + - | + #include + codec@3200000 { + compatible = "qcom,sm8250-lpass-rx-macro"; + reg = <0x3200000 0x1000>; + #sound-dai-cells = <1>; + #clock-cells = <0>; + clocks = <&audiocc 0>, + <&audiocc 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"; + };