From patchwork Tue May 18 14:37:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 441208 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp293853jac; Tue, 18 May 2021 07:38:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwewqn4A7mEoglg4EQ4RnGF6V8P/rcs3SOouxZ+t5pMISQUf7CVPw+2kSDz1t9th6OEpA99 X-Received: by 2002:a05:6402:4cf:: with SMTP id n15mr900949edw.162.1621348695970; Tue, 18 May 2021 07:38:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621348695; cv=none; d=google.com; s=arc-20160816; b=VxvGfuXJFATGVBDFO7JaATjatv+6nzjevsTXj1zIu4jsg/7nLyhLR4ZjMSwoevF26p WRCucDIFFjghQtPLEWb0K10s08J0Mlw1HWLFjYU/nnvLGgCbxTMjeoh5x/iPrka2obBr eErmons1mFT/dUHjF4/ERpW3YuWgja+DQQ/xTbruSUuI7v8v5v0o4iwo1C9p3MpJHbar D4d32QTE6HguWrO/DTPove9FUI8AWwYC1Qf/W2RZdNcqah2pwiinLQfsJQL4k0BUJ8qn 8nW+jKPawwGkON8bat1iwGB4r4gq2VGhA45sifGJ62EJe9Cg5oQu8NkzOUac0OOycVwG Z5ZA== 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=rO3B9DY0dyy8VHZc4Q4GEo0Bv8YZgJXWUe0af0Jvhv54pgxR+RqNLsHyzDCy8xWdeS G7wa39HZEC+xkTZfcagfMl+PU7hWYgdFQsSC1Xz5XWeAKfvr2KsTvySZdWnePiVWpg5i ItKmEeZ+L6vTY9TsYOKwkdEiUZ+2+n8xAI7HN4j0TVfK/ynApbwxhwTPMyRZ4NwZXU29 70MGiLaAyipALNaEnD336MO2Kr+pr0SPpRzCAuP1z1NoJhY1PluYy7k03S7hFfzJtwul VyzcecfZbUXIOVDrjarDBHJbcDgyJhZR0BjowjOHUNt/dnP6bdL7txjcSLFg4iQCu/G7 cLVQ== 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 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 b64si19157507edf.308.2021.05.18.07.38.15; Tue, 18 May 2021 07:38:15 -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=G4VUZsx2; 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 S233851AbhEROja (ORCPT + 7 others); Tue, 18 May 2021 10:39:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233721AbhEROj2 (ORCPT ); Tue, 18 May 2021 10:39:28 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB7DBC06175F for ; Tue, 18 May 2021 07:38:10 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id z17so10478387wrq.7 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=I1A2ceV7uYSdUcyEdxhKOVSH7bNw3xZBFVlkkZmtDzYJhM1FI06X9xivC7HMZJeTqQ M8OO/IRp5AQV7wHflShD0WYOCcutnYgHU6EN5BY76yYzKtwoCLKfYJ1WQ8Vmnc6sE1Ed BuUNhL9fABT3GhsiAj6hGTiEd5vl0FRJjsvSsh5Vu4++ClknSr9kbQ1IwT5rxO3Qe8/5 QnSY6olymorBJdleTVf5FdVZI3DGtH2o1Lv83cTtFbsAPH02EUxbQYCMlIo2UVDhrROV PfCZA4sh8Gcaw7agnoP4iWpkjkA2GjT6d0ELIek48V8fS+6zBJ1nvyxUmLRe5b2ujVAi cKpw== X-Gm-Message-State: AOAM533QrVa+w2J3eOcvkE3/5Ag7rSIsGotIS45EwzK/lGVlC6+PFjpJ Oeam4tUB3IDkcvE/USUKPC9iTA== 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 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>; + }; + }; + +...