Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5002506pxj; Wed, 9 Jun 2021 07:05:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxv9xL+q4+cw3xi+REKTBf8Lb7no85eDZnjcZfUajVS7Yhi3mn4StO7sMoDuLuCcND83Iz1 X-Received: by 2002:a17:906:2c52:: with SMTP id f18mr51950ejh.258.1623247555441; Wed, 09 Jun 2021 07:05:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623247555; cv=none; d=google.com; s=arc-20160816; b=q5b80b3P1J9c9+BODv3CYtyBH0vpBTFOae6UDTxxvMf3dZsqME/YgFP4V94MO6gZbs OXjGQa9YIyQrNNf6TiDwQ7dBQ5ZjNjRHdCAe6g+NP+v8WbAG41iMBpt7IFSy5CfAmzf/ k24SNQu/iHO27jNWv6nMX5SajYVGk+DPWPd+n2Tr85OD+YCuV5rljr1p30Wzx3q0Js+y 2ezkM8SHMd1FV4yE4FRfWkDMTzZR7KOwt5OXarn/Vfdx5z64v0C0DgJBogFYsBsYRYnI WtlTx3kiTUA6iTzQ1pxtv4Yl6hnuhHOjIqxADqBqM0G8RMpBuTZefnxeSmg9RvM72O1f LK+w== 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=Wa6KVypO/lUk6sP8b1Vj3nOblPyOnYfPALhyQc2P4l+Uo76xUtqcLveAh4sDeHMlla aSRP9DqTIoFdgCzx/KvbV6VylGQYg/xQRMRMZiTNu+47UZUma/BHdzCgvB/1xEKD5Y98 QXCZs+ucCQRha68dvgd7r8kkc8KIAThxPvqV3qDoqNf3PYLetfziaxHkckFdjd3euk0c niTXmZf+x6N/CMUnv6w0z3xVSyPoSwuvFw11i3NHt6f33DEyesewlifv5a0Ny4oJJkyR GMjUta/nW7WcjstATwiqt0plgcwe7fQjPazUyyTDYF7rN5f+KGXYrjJsJ/3uWz4QyN9w yoCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zJKzEkIN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 13si2321880eje.700.2021.06.09.07.05.30; Wed, 09 Jun 2021 07:05:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=zJKzEkIN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S237921AbhFIJNS (ORCPT + 99 others); Wed, 9 Jun 2021 05:13:18 -0400 Received: from mail-wm1-f52.google.com ([209.85.128.52]:54042 "EHLO mail-wm1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237911AbhFIJNP (ORCPT ); Wed, 9 Jun 2021 05:13:15 -0400 Received: by mail-wm1-f52.google.com with SMTP id h3so3532420wmq.3 for ; Wed, 09 Jun 2021 02:11:04 -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=zJKzEkINFVhTGIUS4kvq63QgUNmb7dwAHM4RxIWLdNr89TLi7MlVi/PsQnkHWAi2iN D+/3MnhgYQAE5IKjvPD9qKpbMBGHGKMoG0kDQnU7/mcF9NNVCNA6phEC+nm5vCiqkchb VLYV6eQU/N9z8c5a+9M7oQCzWifyJyhI3eCqljbgVzYzUw1kT+WZttHvo/68FUObZcAt nJetzZWhgWBgwdNcaw7EdkUE/Nn1B9mqJSxFOAuD7qDKy9DL4T7VzOC4RjFQfg7pwuGN YVxUGfnaCCocs5rH3ENlYq09AuTrzY3t0VlCPvnckCz4Niq9yUXd9v+Osqi44Ht0oYzs JD9Q== 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=lJVYDlm0+GRutOjU+GFoOHB9FhZpLICwNiDTTIgDx7jTs4SuBb5uomehKi1Z+a2y5I l26FGL1WUeBP+p5QyA7HB9gWmk+7yig5NXiIxd8czxnABs8a2RRsvzowm6hMOqmYvl1v dR+/bcMMdXa3hHApyy1eG9MSKptgN/67wkhbB8wTOF2eO2mHCmyRBhmGDtHLk7yx/mkM knbhJOV5oA4MVtJcKhiP8stT50q0Ldvfh1baRD1NJbwZsJpcSOl/EAa9VMbYw1XEn6mX 56XQZ0oueZ13qt58aN8kcBPEgLsjyElc+10cd9pX4vMRFXMdE2GTYxL8ZzIRyifF20Y8 wRpA== X-Gm-Message-State: AOAM530ULxfLXsZBxW3Sb+C6mIv/EWW1cHNNDsZLeG/O9p+mbUEeRfuu F7x5rkxmbXAoTiydp4OKmOzTWQ== X-Received: by 2002:a05:600c:3b11:: with SMTP id m17mr26629127wms.150.1623229803768; Wed, 09 Jun 2021 02:10:03 -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 v18sm25165385wrb.10.2021.06.09.02.10.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Jun 2021 02:10:03 -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 v9 4/9] ASoC: dt-bindings: wcd938x-sdw: add bindings for wcd938x-sdw Date: Wed, 9 Jun 2021 10:09:38 +0100 Message-Id: <20210609090943.7896-5-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210609090943.7896-1-srinivas.kandagatla@linaro.org> References: <20210609090943.7896-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 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>; + }; + }; + +... -- 2.21.0