From patchwork Wed Apr 14 15:48:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 421110 Delivered-To: patch@linaro.org Received: by 2002:a02:c4d2:0:0:0:0:0 with SMTP id h18csp3668220jaj; Wed, 14 Apr 2021 08:51:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+5wUrKRzSJl0P1QYdYdEZHf0D89sTYUYHfQjxQ6/kNX/ivdZP5tIkWg8TxJD0prAMCo3G X-Received: by 2002:a17:906:39c1:: with SMTP id i1mr14240075eje.59.1618415482856; Wed, 14 Apr 2021 08:51:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618415482; cv=none; d=google.com; s=arc-20160816; b=aTsXW+X/VYW4bH8CB2PRQKa5t/hthjzdUqaNavZcb++NZr/a/afvb9Z8+582CLyPI2 51svPDIJrf7xXz8dgPODW7RQvMfrzkpDikfi56Hy0swVZ7GY8rfLSqv6vSvQMhPHgflC sv14HYLzoskqNJ3hJ5D2f+ivb2RaYBGTCdFrmbIOObml4dKkCXxDRdJckLYl3miaxFuz JQ64OesO4RqaSJ4QzX/e62pV2LI5PvyEaE1knPlN9lXLSviVpdaw/QUX4q9WUvH8ntl/ /uaASvNFMgI6+fnfLs42oGwu+OEPrNpvAhIhsBKpOhEhORluuBpQzdKQbC+Zi1RaJkHC bUfw== 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=X9klurVQ9zaPgZiimhz9hUIzAK6dPBY5bXiVGcul6OE=; b=op8Dn92gBmjdiZQWdiNkhrMz8k2stFTOHJJtPXdcsuqtwU1ctqhVqhF9fNClX3PaHw Qe2p8xy8MlTpJwNRboxtlTEACRsILFG2tUmEpOHSbV7/3auzPR9ije1KolWiLRA91Qfs JplPGu4R4dcPHNveJVNwB+G4neqb18utgDV2a1xBPUvyYK4pzE1XTLge5/ePWyH60gx2 Bv0MipWS5fWT9bwbKvcBN64BhNeCVnyL7EXjwq4kEJDQv8nPumCPpW/PoHIMLLTtCZuH NJ7Lpi8UzZ6SdFq+gH4vhNIV0PeApGCYH3+JfNPkLeJb+pLu49wk/hZdwnVR5FekORoV Yq8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w3P0MHZg; 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 c5si2227342eds.46.2021.04.14.08.51.13; Wed, 14 Apr 2021 08:51:22 -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=w3P0MHZg; 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 S1352180AbhDNPuK (ORCPT + 6 others); Wed, 14 Apr 2021 11:50:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352271AbhDNPt7 (ORCPT ); Wed, 14 Apr 2021 11:49:59 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DF33C061343 for ; Wed, 14 Apr 2021 08:49:29 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id r9so32151079ejj.3 for ; Wed, 14 Apr 2021 08:49:29 -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=X9klurVQ9zaPgZiimhz9hUIzAK6dPBY5bXiVGcul6OE=; b=w3P0MHZgxNgpNfFYAq2gmPdZrV7GUG+M5QtlVg6DAc8uPqNt93EKgxKPFCjkJ35Q7F gmPG+NEEm/uO2i7CkLyIp4plI6sV/IG7gHmngXfZ+QtF+SuPMQ3iujXnmWYlUO+lBBig 6fuEWVzhrcSBZSdoVB3vBzOUJ4MN0I4IMlo4OmwZOH2PeMl0mry4dsDaMWnMSE41OojN 16/D0CZ4guSwifAAKV0r6b7OGE45Qq5sj/tjOpAdAlG5RnROkQW5UvdshCSm4v495FFZ fUeSQzePBsCFpJzL2VT0m6qU/LBnE4ISp1nevv9dAU5HZht2xOE75ru6s1k1Hl/4+wlh I/+Q== 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=X9klurVQ9zaPgZiimhz9hUIzAK6dPBY5bXiVGcul6OE=; b=R2aE3w9jX5HgIz7dJ6TsCwSDgbGW7pZIYM8CDg7IJtyVtb7Gn9F/HzdaLS77cmNJh4 Xu0AO6gn10JIt/uBioDr2KDObL4y/VjBaTeFlJnJIUKJ2/tID6aKnCBoa77SlLMgt7+c sfn961QXpCMhfEVcssu0bwQqzPziSMlb3KzjI5oLLvnU2Sk9C/dCIm1kSUd+7uLgjr4d jJd55EZZqx54lQ3Gq1yNi5f6YOdddSXgBsUbb+1GvTVff8GlOHZXUbpC4DW1yD2U/Epy 0vrixFcsSPt5pWdSfSJhzwJ8BPhOqf/ZGk9KY9viTF2mHeeN2CBY8NGBu7yFtvqTVFBn Tf9w== X-Gm-Message-State: AOAM532nV38U+UpoT7zQsCeS+E9GYiIuhiP5h7tf2c0lELHYurmrXEZQ 1PhiBICdA0vAev3wan+OI2FE6g== X-Received: by 2002:a17:906:ecb8:: with SMTP id qh24mr39510393ejb.162.1618415368378; Wed, 14 Apr 2021 08:49:28 -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 q12sm10495540ejy.91.2021.04.14.08.49.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Apr 2021 08:49:27 -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 v4 4/9] ASoC: dt-bindings: wcd938x-sdw: add bindings for wcd938x-sdw Date: Wed, 14 Apr 2021 16:48:40 +0100 Message-Id: <20210414154845.21964-5-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210414154845.21964-1-srinivas.kandagatla@linaro.org> References: <20210414154845.21964-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 --- .../bindings/sound/qcom,wcd938x-sdw.yaml | 61 +++++++++++++++++++ 1 file changed, 61 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..fff33c65491b --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,wcd938x-sdw.yaml @@ -0,0 +1,61 @@ +# 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,direction: + description: direction of the SoundWire device instance + enum: + - rx + - tx + + qcom,port-mapping: + description: | + Specifies static port mapping between slave and master ports. + In the order of slave port index. + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 4 + maxItems: 5 + +required: + - compatible + - reg + - qcom,direction + - qcom,port-mapping + +additionalProperties: false + +examples: + - | + soundwire@3230000 { + #address-cells = <2>; + #size-cells = <0>; + reg = <0x03230000 0x2000>; + + codec@0,3 { + compatible = "sdw20217010d00"; + reg = <0 3>; + qcom,direction = "tx"; + qcom,port-mapping = <2 3 4 5>; + }; + }; + +...