From patchwork Wed Feb 10 09:30:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 380201 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp986177jah; Wed, 10 Feb 2021 01:34:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJwztkvjzZHfQblln4GWWhlZrU+9Wi/WXiBg10vVZ/JUIyaiNhBm+LMo111BN77IzgP3nvLK X-Received: by 2002:a17:906:fb9a:: with SMTP id lr26mr2135542ejb.474.1612949695944; Wed, 10 Feb 2021 01:34:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612949695; cv=none; d=google.com; s=arc-20160816; b=b/nkQKeBWsmo9KvJxAZ4NVxy4A/TSKlHFZDStUvyHOpAUn2tqt+2ultKxUxKLoBb4E ybW1YeNB+VfE63AUFU6332vPT391hFI0MMMc1IgxMtS5mXEh+9ywju98HRXu4HUGtzhs YSvrPBlJMF9hrLUwa+C97B23vM1kqhInrnNVnoRqhWIsd3TL1veEVOcVGWPzAnv27rxd EsKQ2syf5Zu/Gct2OsfvKr6qZItAMUXHlv0ghnHrr760ZLYW0u6VVWVHmmar6Xw0Tffh 2PtCERwM9FPVxGkVyVnA0bREPUhSBGScviWM15oe5a+nUbzNs3RLfff0lxOLxJdyXyl2 mFMw== 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=yqjzOcUGTCBx6WpuV6oXM41vG+0jGHHRGvKLwK2JxbTjsfqyqC8DiB3uCj8ZJGAs5q 3iw53iYJ2jyuEDlv3MxTNj2W4h2X+aznxXSaZDGGV3JndOjTi6cb43Cpz+ifkbpH3GOo WoHg7h9nfMHap+OMHVl3fH1VUM1EErIpVgzpPLbzGqdqAwbTjKEcuUwh8BXt8thvibwi NilUvhMchIakMimIkbGozycgOquU6iYswmLr/Tdp51QTNi7YzeCTos1BrfVdKu3ZGMzJ PvinoawtQowqCFZLxT0ETcUQe0BzLbpsaJSLWY8XzYCfQMkgMByGs0LfeAC1Pfrp2OYR xbRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TMEzTh9g; 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 a29si1160432edm.271.2021.02.10.01.34.55; Wed, 10 Feb 2021 01:34:55 -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=TMEzTh9g; 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 S229783AbhBJJew (ORCPT + 6 others); Wed, 10 Feb 2021 04:34:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229577AbhBJJcp (ORCPT ); Wed, 10 Feb 2021 04:32:45 -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 1D1F9C061788 for ; Wed, 10 Feb 2021 01:32:05 -0800 (PST) Received: by mail-wr1-x432.google.com with SMTP id b3so1657697wrj.5 for ; Wed, 10 Feb 2021 01:32:05 -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=TMEzTh9geMRRJWQhpTLw+8HJy+00LR7QXqD597quqbBxBvGS8e92GmYT8BsMeC7QiP 4UB7NY3LAm6oGcMyNxvY6RXy+TvYiUGx7Pf8G4AnpyMwR3m1zhoJTZX7ZueuWlvZXCZj QKpFH4KuvP8/mBD508Iq2lajhbTYaBbEtPqFNFNfNxxAmOLvG0yvsLA0ITG9hngSyZgw u9k1XoPJW5oJOdLP76PCqpSmrWyGkki0JMk9a5j1Kr0L5CO7EvA/n4dOI8Su7FRqIURR gaXIsvIfGxgQ1fIjaiZaLGV8S+iN2U3eD2aBuGA5AQ5+9VRwhH2hjs5wr8xgxGKWSvXG VEsw== 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=Zs+DHbZq8HyDQCipOURfwl1OTKNJWM+b5zp9MRUPkoiGF0BkbvI4WCKM/Eaq0ddmcc y4E1BF73hrHvk5Ns3JKnWxcurfSi+2HxIKxowejzpCutLZvsd65Gxgx1sQq80kn4UzQN 5SzGCxEmrUlyFhlh+yuv61+OJDS/74BmFEcCYeiIdWSajWuR+oLuWqLPeb2JpRmoD4xJ hUempfwq7JwIcdHGZrDoHJANAOCXzp2WC1KtuuhT+MQobyKR5+fXi6eWfSOta8IAeqJs l/3xMLJ0mdkgsW3vhli3fRsMXtHmQ0Q3obbftiUveavGM8LC/tVnNpl5mHRAl+7c/w3g o5sQ== X-Gm-Message-State: AOAM532m4b2rYOrt6Cz6v1GIh0THqbewKQdvLNhWAF4tSFhaxzqqYaae pU941oJ1Uq5ajLs4WNpIXbj48qQfh7/+bA== X-Received: by 2002:adf:fb49:: with SMTP id c9mr2645300wrs.72.1612949523910; Wed, 10 Feb 2021 01:32:03 -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 t2sm2150583wru.53.2021.02.10.01.31.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Feb 2021 01:32:03 -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 v4 1/7] ASoC: qcom: dt-bindings: add bindings for lpass rx macro codec Date: Wed, 10 Feb 2021 09:30:49 +0000 Message-Id: <20210210093055.18350-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210210093055.18350-1-srinivas.kandagatla@linaro.org> References: <20210210093055.18350-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 Reviewed-by: Rob Herring 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"; + };