From patchwork Thu Jan 28 14:19:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 372612 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp1298373jam; Thu, 28 Jan 2021 06:23:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJwC7Op6hjeZ3SIJ3WNhoEPRJk0TT8BtrRcisFD4VpxaJabNund/CYhC33723hcRqIarXJNn X-Received: by 2002:a17:906:3883:: with SMTP id q3mr11149169ejd.160.1611843829606; Thu, 28 Jan 2021 06:23:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611843829; cv=none; d=google.com; s=arc-20160816; b=cnXxDtcx9OdsUa9MBI1HqQ+nFZI5P4+qgxPVPqGy45JzJ8Y8jbm4BLn+GAKf0lV9Pc 1mQRHd/ABIYXqOZiXCYkj2D/tdMn1WQgHd88aj3g7a6LSqNKx/SBJQq2P/aAun8MX94m cvMHxh7e6kwy5OvGqJ1CXa/qSCMz8vBkaC+z/4iiW+xvDaEgb/Esnp+HWAgMFw0Sgq0S 0Gpn/6zU7XMgw/XtzP8mo1sOfyckd+ZV9UyvqKxLij2HIj7KkAcBocT7nacmbv0DlE+g riJmROzI/aUn6N+LrsCtZ6ySDf2OtcgACljFP6pCGMC7F0v9Consf2RngcJfW80iPgvh K17A== 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=bksn5JYEit605Cq3F8xZ8R4+OS2BFQGJcvtjWr5Lh1QESdjxkK1yjF2u94o0MulXBB 6ynSczY9JyFImtBaGOSPZVpBJhE120uuTO+A0LyXfWfjAdaI0UdatzWIGJaUYICwojRo Jbg1oH5j5JzkdQFxWr6ttEZL/fdFWlZXAjf1ui1NmQya5ACTx6xBpFmvDfUAsutC7Rj9 jomfqoWlIwcuualvhlckMMV4NaPYWMN0zaoqY3m9vqb4DcnXbeTuxE/+lmP3yNk+zsgr qxC+E0hLGGGxsnSSaeNEOoPoyCWZ703tCq8CEpGtMkCdhes/fHpxDJJ/r90U055ZFHtC XJgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="h9QKz/rb"; 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 h4si2917852edv.124.2021.01.28.06.23.49; Thu, 28 Jan 2021 06:23:49 -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="h9QKz/rb"; 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 S231672AbhA1OWw (ORCPT + 6 others); Thu, 28 Jan 2021 09:22:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231529AbhA1OV3 (ORCPT ); Thu, 28 Jan 2021 09:21:29 -0500 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A511C061794 for ; Thu, 28 Jan 2021 06:20:02 -0800 (PST) Received: by mail-wr1-x42d.google.com with SMTP id g10so5584911wrx.1 for ; Thu, 28 Jan 2021 06:20:02 -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=h9QKz/rb7BLkCNbgzJD+55FjmmybjmFgtq+sPIlpDNLzLjN/vdTTlclqj/Ss4YY2Pc 5x0RmRkhd8insWMIKw3t3H5aGbuSoGap0l4Mq7RlmxooiRGd5gwr7jY2stypHqwk7d32 fTL2mm/OJgJcEYRG5iuaOXrJf8jitJEaFCGCj7I6I3lutoHAyJi1oIZorbdrgkMYKax6 H8JfSkM0ScIXRRi21KlPS3BXk0qPZ3kPeAot/2ALxnCRWxhwVp+QEBNdlFMYrozoyhn+ gR5aFptgw8oDhPeGEFIbpzWxAly1gYLHatDDKOZbQax/4iFksZBt6rl08sgu5v23uMjU H0hg== 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=MfYeu64+aVngm8Bflm9bIWw70bBYxBTxItyyfWFkJe8eE+wJtx39Yj7eNTUvt0Pj/o 11A04n7DUYdleAyOoCVzVEWyuNqfSFNRjIBuxTrZJyX6qhaOKxXbFRhh/t7xVo9q8tpe YwG8cLzSLVx8CeiD/MOntE74O5mkcB+AoeUj78ImRvsfYT5VSVsQLSoQkIt1uoN7VCVL WmyxXXAnvDRlQ12c1xpF61UOoqcLudx02XwEF2LPNB4E/CJR1fJGxei3Ru6GUK5hF+i5 mY25i2SQkLq+cILvrQhymXbiKyiFTvkt+UqxSvvVlPhhse8mcfCrO6VLg6QYIHEXJtyS YAyw== X-Gm-Message-State: AOAM532cphvi1zT3F9reKVsi75KpwTHa0TqfwMXdo5MN1cF5dX9U+QGi bSAYjNjwO2QIJrepn9ob+uFlwg== X-Received: by 2002:adf:f58b:: with SMTP id f11mr16624976wro.3.1611843601338; Thu, 28 Jan 2021 06:20:01 -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 d9sm7257096wrq.74.2021.01.28.06.20.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Jan 2021 06:20:00 -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 5/7] ASoC: qcom: dt-bindings: add bindings for lpass tx macro codec Date: Thu, 28 Jan 2021 14:19:27 +0000 Message-Id: <20210128141929.26573-6-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210128141929.26573-1-srinivas.kandagatla@linaro.org> References: <20210128141929.26573-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>; + };