From patchwork Thu Feb 11 12:27:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 380927 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp2031896jah; Thu, 11 Feb 2021 04:37:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyNclLtFlg3IbaLRhEaRjM6pYjI5rraTC8RQpxtVGO0b3oQjBs21f7ccCUXchH12I/AXGLP X-Received: by 2002:aa7:d1da:: with SMTP id g26mr8046439edp.154.1613047026453; Thu, 11 Feb 2021 04:37:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613047026; cv=none; d=google.com; s=arc-20160816; b=xZVwP3/wmy0qN/NrN7ONKocqcnZAUxN+wiVBaUiYQYp8GdU40lvLYcUXrZgcbgBZFF pitY2aNpQOAEzvKZkv03omrG2k70FL/0MNhsUSCZW/S++x+iOo8zVQ9k7JKRmR16V1wg xett2s9JSBD4SpCQRE8WR/3/zafmR11JW+S/H+m1fX1MqGxjCFyV7rhpiCxUffxf9/m1 dqfo09R+5x1fy5TXYiH4cp5tiZv8Cgu5ySrOHz7qVGZyL/FwXzyDv5yDL5OhQvaK9g1h ef9hPTjcs0lA4lhhLJWs24163IXikZPojPy3l/DZ2Z/eIJkR2he2kpS95fW10RKn2BMb g5cA== 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=2yW/hk09p66uX8WS858rHDTLq5rtQMroyjmtenWxC34=; b=Z2hBD2BOJNweB9fipLz/BGojollPDB+9hsrI8+aPZqV63p6BkIoLqPW5KKLlX16GK4 52yR/EfNuNfgM2d7WujjfAodyJF5I4jdz+uqUQNTKt6RPGE0Y9hPeq1Fu4aRBkLF8Ne4 eVq2bu6GjAFcFl/lhxl8SaMsBsv3Wwm0pSR8Rbk/QrucBaixGUjxyrFSla/8XZbcQv+k 585aTMyLDuTi1JLDPRQv/Q+NFHcZpp2xN24748WHNoG5uulgHZpZcanuUoPj59l8PcGt 1+FpCMXS9ga8qBT1Wa36WW4GmBzWpoG26l1qpZQjHoHY4P2cdnAohIuBVyXUAEmgVgK0 QoZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N12R1Vp4; 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 dd22si60424edb.69.2021.02.11.04.37.06; Thu, 11 Feb 2021 04:37:06 -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=N12R1Vp4; 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 S230317AbhBKMfy (ORCPT + 6 others); Thu, 11 Feb 2021 07:35:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231166AbhBKMbQ (ORCPT ); Thu, 11 Feb 2021 07:31:16 -0500 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02C6CC061797 for ; Thu, 11 Feb 2021 04:28:04 -0800 (PST) Received: by mail-wr1-x433.google.com with SMTP id n6so3980655wrv.8 for ; Thu, 11 Feb 2021 04:28:03 -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=2yW/hk09p66uX8WS858rHDTLq5rtQMroyjmtenWxC34=; b=N12R1Vp4V4jY2vL511pCxty/p5pS8eH5Lp2htNYa1eQlE7UUypEBiHAedhJfIpuAZk 9ie4lnos6r4RA3ijipYNBhsUjlblhGMuyPlg/kxKtejHR/MsVe3pLTv52gVIz9myejiF 9IXvhiq5DaJ9WQP5GXnMPaBh1qZBnDdwIQ2BeiwMQN5HSRYe/RUGhmQo0KOYWvtPYFyJ L+UvHzsD+w0B7iNHzxrtDEH9im4ixC4duw0jcZOIU/g3OnANYXzNm5pVgLl3apn7tEc4 Y+pq5twei3Sgtof5WE5KpKrdrJO9qGej0CiDGhG0s6IF6FSLZoMF/Qk6kYQIUZzhpCV8 xA9A== 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=2yW/hk09p66uX8WS858rHDTLq5rtQMroyjmtenWxC34=; b=foOfUItTQtvRbbeV0HhCvd+KiO4mpRbq0EIydv3wweZYNOOJs7AFKfEc+tlr8kXOwb fxVt3Id/VyfjxQ4F/8L4/HXvvx8s73J6eL8+EEJnGKwWcbfP87leY/XZ0LMOhmIeUic8 wTaRUl3IIVFMAHNVwp5G8tzsSaFgoPQ0V4QjhJ5YtSRi/q1Lc5RDaOcM6e/r+U3IBH8O xSW/Qe9Yyr5RsXdqXj+7v/h4x96y0KM+17hOYfGIUXRi4G0lZ6qXxYEhqR3Yx7skPVpQ CiDB2+y0FyO3ImhD08Y4fI8xWct9hReXj8aNasJI64pt0hCdEp5RhDtizQ+UyeZc1IFP +Txg== X-Gm-Message-State: AOAM531pol9KlfBnI9hqRG2gcioDz3vMP7ZGcfhJV0LDqBcm02tw73b0 KfaNThO+pSSGQp48PEBDgZtsYA== X-Received: by 2002:adf:9565:: with SMTP id 92mr5477528wrs.201.1613046482804; Thu, 11 Feb 2021 04:28: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 d20sm4026477wrc.12.2021.02.11.04.27.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Feb 2021 04:28:02 -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 , Rob Herring Subject: [PATCH v5 5/7] ASoC: qcom: dt-bindings: add bindings for lpass tx macro codec Date: Thu, 11 Feb 2021 12:27:33 +0000 Message-Id: <20210211122735.5691-6-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210211122735.5691-1-srinivas.kandagatla@linaro.org> References: <20210211122735.5691-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 Reviewed-by: Rob Herring --- .../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>; + };