From patchwork Tue Jun 1 11:31:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 451363 Delivered-To: patch@linaro.org Received: by 2002:a02:c735:0:0:0:0:0 with SMTP id h21csp1688663jao; Tue, 1 Jun 2021 04:34:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbZVCY1+cE+XpUJmrZoCFjKHcpMBQqkmdc0iafj44QpS0UoWHik9B/D2VipIiLGrf08Q1f X-Received: by 2002:a05:6e02:92a:: with SMTP id o10mr21152788ilt.270.1622547288179; Tue, 01 Jun 2021 04:34:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622547288; cv=none; d=google.com; s=arc-20160816; b=AINNARRCy16i6b/TmycBl9ZGAorRUOW516MVO6JVBN+eiWROjP49/gjJcwA4wrjT+v 4Ed1AiaGU41pjo/PacqMxurwrur+wNxA6g45qoiYSfrg0E/2a12naVcpc96rQ9knkzm1 I5oWkyfO3NffBJFs7yQvtzUpLGUlOt6xDq5lS5i14LobuKd+J+A7Zb0sX2n8Kl3dY8rO m7dGhNjpAG/fkymDOZNslD78s6vfxIeXCNWHoyI5ZFolKxAJiykvwf8KNbzvED9VkZB7 joWVURAfXMBhcP5UJ7cWGJMzUT/85l8IjlBGT2C6BzY/2D9fIPZvCPWWSl1kYjb8qSbW WhYg== 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=lgmJGXmS6RCspCVU9ceSBH9yezcF2/kLSegrw/MRv68=; b=NHcEsgH/ItgXIay+LDXEBfQXmx9d/2o3oTILhqwMOmdDGnjOFpqkEu1vb7tYo+Ibql sfX/AIm7jyt4qlt1jDxDYPQM9DkVfZHrUZcrTLYZOOnGGvHhAKRzZF4VQDNBsa5dl8PM xAoHCtMRX/TnRvtMdgV+l/hy6wUGRQd8N4Mq79vyJ4xaZ0HoR9wFIpAc57KPjHlEneF9 NpdxISpahgsS1Sm0NoGBk2oEPHuy3SmRzjPdyevu8U3a0UzKrom0eI1WdRhbE21+UU1T rns37XY2QGe/KT8BvYgpDEkYepdk+oPWigr4AUnYBbptulF4GjcGZ4n8uEj0U3rNZ1kk hIrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rlf6Krry; 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 x9si15839506ilo.119.2021.06.01.04.34.48; Tue, 01 Jun 2021 04:34:48 -0700 (PDT) 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=rlf6Krry; 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 S233723AbhFALgY (ORCPT + 7 others); Tue, 1 Jun 2021 07:36:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233740AbhFALgW (ORCPT ); Tue, 1 Jun 2021 07:36:22 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BBEBC061761 for ; Tue, 1 Jun 2021 04:34:41 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id u24so7347268edy.11 for ; Tue, 01 Jun 2021 04:34:41 -0700 (PDT) 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=lgmJGXmS6RCspCVU9ceSBH9yezcF2/kLSegrw/MRv68=; b=rlf6KrryNjuWoFtwfTRdj7mc8GaC0XMcJLK9BFjt41Ahu+ewXHkB0kHEz0+M5qhPW3 PieA2QDzIQPNNUGmz1mSWJEGg9pUnrHaMG5xWru0TiaYrS2g/2OIHYa/Bt55KwaAfTZM TzQ8CBaPzLr7JHxwU8w11ApDbF0+3PmFWZKgmxQKXRB8RK7kmd18FG6SWaX71gsa2fM+ JFfKA/8ab1QxwyhF/UbrIPn1onrRbRA8I4P4BgHH+MGpL0f0G+huzp7FG8rS+mKS++jc FaT9bbsamvLW7FA2jSbCHQieE2mwV8PICaT8gxsYGSidezkAAyibOPevYx6QwBKyV93B Gbqg== 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=lgmJGXmS6RCspCVU9ceSBH9yezcF2/kLSegrw/MRv68=; b=JJJExhHPRqq/ApFmZ6FknVQ8cHhDekvtK73HqoH6lBCVi0j7NBgvdLH/XlCj6kgZqR 82i1kP1Lhg8QS8AG74M9adl8LUHX2gdt/cCFbFQYZnDomPj0KIDd3HQbUwog9y60aO2j baYAZ8e+i1hJWDKugd5RGJBnjk3LEYSF4bYmIrS/4MKZ4SlbiNUrsUvJXMLgRnq2eCZ3 zifTKn/C7AgnAPcUeULdmDVTwDshGDDF9ZzqcChuNI+4KIQT3J7ZMDlqBd32sCzYMOsS P1nj4zz9gRRYr8JknIVdiiTkUPi56E0lHtBB8P04dE4dcGddiyEEEMF6e1E40y1hy5PV QKIQ== X-Gm-Message-State: AOAM530PJF7NsZKCS3OSBAard3mGCEZohi7pK1Ld9Wv/rMBGIXGTJxci 3jwP4A+RZiNqhtPOeLejwq2bgA== X-Received: by 2002:aa7:d1d1:: with SMTP id g17mr4309925edp.86.1622547280063; Tue, 01 Jun 2021 04:34:40 -0700 (PDT) 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 f10sm4729487edx.60.2021.06.01.04.34.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Jun 2021 04:34:39 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org Cc: robh@kernel.org, devicetree@vger.kernel.org, perex@perex.cz, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, lgirdwood@gmail.com, Srinivas Kandagatla Subject: [PATCH v8 4/9] ASoC: dt-bindings: wcd938x-sdw: add bindings for wcd938x-sdw Date: Tue, 1 Jun 2021 12:31:53 +0100 Message-Id: <20210601113158.16085-5-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210601113158.16085-1-srinivas.kandagatla@linaro.org> References: <20210601113158.16085-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Qualcomm WCD9380/WCD9385 Codec is a standalone Hi-Fi audio codec IC connected over SoundWire. This device has two SoundWire devices RX and TX respectively. This bindings is for those slave devices on WCD9380/WCD9385. Signed-off-by: Srinivas Kandagatla Reviewed-by: Rob Herring --- .../bindings/sound/qcom,wcd938x-sdw.yaml | 70 +++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,wcd938x-sdw.yaml -- 2.21.0 diff --git a/Documentation/devicetree/bindings/sound/qcom,wcd938x-sdw.yaml b/Documentation/devicetree/bindings/sound/qcom,wcd938x-sdw.yaml new file mode 100644 index 000000000000..49a267b306f6 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,wcd938x-sdw.yaml @@ -0,0 +1,70 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/qcom,wcd938x-sdw.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Bindings for Qualcomm SoundWire Slave devices on WCD9380/WCD9385 + +maintainers: + - Srinivas Kandagatla + +description: | + Qualcomm WCD9380/WCD9385 Codec is a standalone Hi-Fi audio codec IC. + It has RX and TX Soundwire slave devices. This bindings is for the + slave devices. + +properties: + compatible: + const: sdw20217010d00 + + reg: + maxItems: 1 + + qcom,tx-port-mapping: + description: | + Specifies static port mapping between slave and master tx ports. + In the order of slave port index. + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 4 + maxItems: 4 + + qcom,rx-port-mapping: + description: | + Specifies static port mapping between slave and master rx ports. + In the order of slave port index. + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 5 + maxItems: 5 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + soundwire@3210000 { + #address-cells = <2>; + #size-cells = <0>; + reg = <0x03210000 0x2000>; + wcd938x_rx: codec@0,4 { + compatible = "sdw20217010d00"; + reg = <0 4>; + qcom,rx-port-mapping = <1 2 3 4 5>; + }; + }; + + soundwire@3230000 { + #address-cells = <2>; + #size-cells = <0>; + reg = <0x03230000 0x2000>; + wcd938x_tx: codec@0,3 { + compatible = "sdw20217010d00"; + reg = <0 3>; + qcom,tx-port-mapping = <2 3 4 5>; + }; + }; + +...