Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1680782pxj; Wed, 19 May 2021 11:19:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySMiZn45dX7b9GG29lx/zS7sNFfiMpJAkuTvNagMUW4f3GMMaqTtWEvcl6E8iWEerzewyg X-Received: by 2002:a17:906:a0a:: with SMTP id w10mr456650ejf.416.1621448358807; Wed, 19 May 2021 11:19:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621448358; cv=none; d=google.com; s=arc-20160816; b=iwxExCeXGlxCRPU3kaeidebpuvidzPbkXedoLkOplmH3tJ7PWZQ/aourrGGkh8F2X/ VtDsfabCvGwxH5GtNJ2G9Vo2dKv87VqsyJ2LvtzbwUd2gKuOf8Lg7/LazvStMScPhbhn 6fU0qsSqrIdDVm2ga2sA3z7YkdEbi7D5bTxZgDAZrHT7APp+4LTi/DCdGypKI2kA4VF8 9JYk+5Ezm1b/4rT/c62J45KVlHJjT09NDHONxgqr0XsC7FZxCV8gXKAuLke+MwwdaXqU 2J9LwEF/Lm9GfEdT+iBN/Yn9JmJs8AiBKi9SBCa0JqBspv/DVDjtHy1CGaEuCFUk4ZKU F27A== 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=UqQy09s/omUaVxRqKyZf7XiUL0Z3ZQikCqDetNAmvDYyvAHc3HYXSH+W0wwYD3ZP6b UneN8teu1CmObt6LP4YZRICnf2Z7nvLH90Af3BjZmfLHm4MG5U/Dv4RRPJhPzgSaskz5 s202D6e3Y04cBcql6HnjeDqyUzrs8Yv2DKkaQXO0iiR+0aD6sbzhVmESCw0P60d3eXo3 mxNsB7sSbofyT6ru2GKmMSIwUBkrkpVokQNC3mVcOcKsOYY8a34kvanpXDEXTQUcGO4F LC0v0hsERxc5Kd7slMUWlIHZbP9jMIun6HHkziMydRUIeKql1JTekIhXwanDRvQzwN3G KQBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=G4VUZsx2; 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 e18si306966eja.585.2021.05.19.11.18.54; Wed, 19 May 2021 11:19:18 -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=G4VUZsx2; 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 S234095AbhEROje (ORCPT + 99 others); Tue, 18 May 2021 10:39:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233731AbhEROj3 (ORCPT ); Tue, 18 May 2021 10:39:29 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC3AFC061760 for ; Tue, 18 May 2021 07:38:10 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id r12so10524579wrp.1 for ; Tue, 18 May 2021 07:38:10 -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=G4VUZsx2f5aesTTAUc0HKjw22l1mpxmMaYDtriJQtoi+Ul6qa23OIAriyuNbIABPPp 8kJwTfOYFztNguzI60C8xzFQYPaPV9ppJXfy0HMba/cfsW0GPj4YAXFmuYOK2lergmMl QCHVKxi84469uul5Wl9t29ZE8LjefDAVlzYN2j447Jzc2gwaRZT918TxlIxelKng8zTR VkHo7e//MlgbhnhXCY+r0Np0CbaToU9FwL+l/YrnVnCVjS+1yK6aslA2JvqF3xv5eYDA d6I2DJmX2hslwWbEAXaUBEmpby7yNf22PfrBmcmijPfUVoTkcCovv/YKI/Z+0LVVN7Tg AuTg== 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=aG0ECRQdXZDw4qcjxTJtISzeWrEyhJpInxCQA2FOJIj/lLmDcGf1KUlzRluDN3XeK6 w/lToa+PC353vkt23objv1Om6ivEZwMmOGqoqwS0YP3Qwo6gtwxN2koJarW6MOSGRIf9 DjG1ifYHMj9XqGxvl3gOC/uiDBRMXv/UHLC+1p1F+EoIyZXuyBJ5UcKe9rBMdjz1n+mJ LUIyhoT6m4c5/6/L66bYKzF07aczCLNVHYTTkpM3OgGeh7pSxssza0HulurtFqQXIf7p RfCa1y9DQjXpRKIeBMN1w1jviRf5BvgJvusNutCHQ+MChDKOLAqUM60juVj0ENnf2BeT 9XNg== X-Gm-Message-State: AOAM533JL0jZ/Uap+DDqObAI+t/tvI25Z7REccU/S50DWvzoxf4HsV6a NnAQJIDiqL9ezqr33oHKm1Tlfw== X-Received: by 2002:adf:ce85:: with SMTP id r5mr7875105wrn.198.1621348689424; Tue, 18 May 2021 07:38:09 -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 m6sm21329087wrp.29.2021.05.18.07.38.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 07:38:08 -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 v6 4/9] ASoC: dt-bindings: wcd938x-sdw: add bindings for wcd938x-sdw Date: Tue, 18 May 2021 15:37:54 +0100 Message-Id: <20210518143759.16837-5-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210518143759.16837-1-srinivas.kandagatla@linaro.org> References: <20210518143759.16837-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