From patchwork Thu Nov 21 17:04:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 179928 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp3877492ilf; Thu, 21 Nov 2019 09:05:53 -0800 (PST) X-Google-Smtp-Source: APXvYqwIl9JdKCqAHUdCxgW6p27xGM8ik7rZIJR8JXcvVEy6hmFWHzSubXqXKCyOIRYKZhldMi9b X-Received: by 2002:a37:5dc4:: with SMTP id r187mr3833345qkb.173.1574355952496; Thu, 21 Nov 2019 09:05:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574355952; cv=none; d=google.com; s=arc-20160816; b=mol5TVDT9DFJmnQAqfgR1SoePRKbf3dPdwOUK97/obuW7TKtiNrY4IanCDfm7leCsJ bhLGZzbReyNNRbpsIA3nW3AESCDZ+Fb7JrUXTj8TfrYBATTcrGPIIymxMdvgbJN82uUj hewZp/DQU1xss1uvvlenMg0l9QNWOMuDA/ChDQoStURSGARNvoElNd3OnZVRmxwUJkTk V1VuYyAjZVu1gBF3UxYs42WoXWJ8K+uJYja2oaHDHuxppw9ltPbc76kPmdhezbyGeD9K x03WyrOSrS33rVXhW2TdwCbUf4h5av0dBov5LZXWsmYcqq6aVkWzoKN4ikDaLWE5g2bF GbWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0CdnmC51s8zyTnLpxAdvzFdi46JVkNPrKhVWokBLXxs=; b=YYllZK4IDnhZ6ri/YFSYUdCK0lZ8H5TnLzy+LLHJhdK8gBYNqJ42K7wQx+qWhmefPR R7dxUR8LAJuOzuDXnqPx1T5UQrkQNZWV/VKHbqai22AN6YLCqLUgCh4gUykZHOuIG0wZ oOYDGQ9zXtP2EmKvfQRQYGCTWBBNp59Knd0PuESXPWBF56vfQ1/ahUP7G2q5GXGrupN+ eQVQCw3yVnUzj8+OQS7Ub18wwp4JwsVV6wM1HNBb31aR5sshbw7tl7M5NMmOsIw/EaxA gFmIopvpUj2X+OJR8qn8f15MzOIkCisVnRFZsbn2EhtH7Uh7ZXF0BkWotMFWp+uAtshf dxdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MtHMFqGZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id m3si2497885edp.357.2019.11.21.09.05.51; Thu, 21 Nov 2019 09:05:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MtHMFqGZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726980AbfKURFr (ORCPT + 26 others); Thu, 21 Nov 2019 12:05:47 -0500 Received: from mail-wm1-f50.google.com ([209.85.128.50]:52428 "EHLO mail-wm1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726379AbfKURFo (ORCPT ); Thu, 21 Nov 2019 12:05:44 -0500 Received: by mail-wm1-f50.google.com with SMTP id l1so4573021wme.2 for ; Thu, 21 Nov 2019 09:05:42 -0800 (PST) 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=0CdnmC51s8zyTnLpxAdvzFdi46JVkNPrKhVWokBLXxs=; b=MtHMFqGZVY775jFfjaJ15GFKrvKbfCeBBsmVAs7NXZd7iIO3E+FWjIcTh7PT/DoXaO S6kpdiibTz0itXz2Sdu7eQdontLDT2ojO1VqikuX+pXiZjqYb/Yo/qi0F4e42ojrQ7Ki jPKPeyvP01tku3+kc0jV7S0B0kBxeFl3JgrOqZCq+eaaOa0RahXzS+1NbNgqslu3kuSs vOyAgwsF5IGTlK/VWfOoyX6wyGC5/psMGnukXjlTcA0UwbPJzlHufihHe0smfBgf+vqH nANKJ8vWlHDBuj4XlGbyN+c1bFaEFF/qmHEMPKHm5XvKt0duA6FEVG3notno8R0hGW5D CgyQ== 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=0CdnmC51s8zyTnLpxAdvzFdi46JVkNPrKhVWokBLXxs=; b=FUF7Vcn7NgPhcv4Dvlr3PS9RUp07b7eqiw5AxRkUBAHklZjaZF8UcGS6qCgPP74om4 Z6s52p603UspubZ6N94BR5F2iQmQHQRMsT0b/LKd0ubRCLRqOLOPE65GnXQCIgWBQpJc BmK1V1wq1bz12Z1+oa2IlYepv3B8sCbW6uMhmVlk148YoS9/nDnsFh76R4fIFfxVfWup TGdMEbGT2khMiDHuiC4wMBjIDxyPLd9S+5DDofJkBDs8TDz9AqQyfh/S/fBHXzmkZsiQ W+mSnV3oPR50+836T+nQFit18Bpkm62HahJ394bUz9xHE7IvmxxxK5r8A8G4DNQ241oW qfcQ== X-Gm-Message-State: APjAAAUkxO5s2lm70iPd/LO6au79w5MXmzKss4XlMJqblEVWbSjd1kCW id5Roa0BXvsCKkK1QeM09jonQg== X-Received: by 2002:a1c:720b:: with SMTP id n11mr10544212wmc.60.1574355941485; Thu, 21 Nov 2019 09:05:41 -0800 (PST) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id i71sm4423731wri.68.2019.11.21.09.05.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Nov 2019 09:05:40 -0800 (PST) From: Srinivas Kandagatla To: robh@kernel.org, broonie@kernel.org, lee.jones@linaro.org, linus.walleij@linaro.org Cc: vinod.koul@linaro.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, spapothi@codeaurora.org, bgoswami@codeaurora.org, linux-gpio@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH v4 02/12] ASoC: dt-bindings: add dt bindings for WCD9340/WCD9341 audio codec Date: Thu, 21 Nov 2019 17:04:59 +0000 Message-Id: <20191121170509.10579-3-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191121170509.10579-1-srinivas.kandagatla@linaro.org> References: <20191121170509.10579-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds bindings for wcd9340/wcd9341 audio codec which can support both SLIMbus and I2S/I2C interface. Signed-off-by: Srinivas Kandagatla --- .../bindings/sound/qcom,wcd934x.yaml | 163 ++++++++++++++++++ 1 file changed, 163 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,wcd934x.yaml -- 2.21.0 diff --git a/Documentation/devicetree/bindings/sound/qcom,wcd934x.yaml b/Documentation/devicetree/bindings/sound/qcom,wcd934x.yaml new file mode 100644 index 000000000000..197a53bfa6cb --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,wcd934x.yaml @@ -0,0 +1,163 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/qcom,wcd934x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Bindings for Qualcomm WCD9340/WCD9341 Audio Codec + +maintainers: + - Srinivas Kandagatla + +description: | + Qualcomm WCD9340/WCD9341 Codec is a standalone Hi-Fi audio codec IC. + It has in-built Soundwire controller, pin controller, interrupt mux and + supports both I2S/I2C and SLIMbus audio interfaces. + +properties: + compatible: + const: slim217,250 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + reset-gpios: + description: GPIO spec for reset line to use + maxItems: 1 + + slim-ifc-dev: true + + clocks: + maxItems: 1 + + clock-names: + const: extclk + + vdd-buck-supply: + description: A reference to the 1.8V buck supply + + vdd-buck-sido-supply: + description: A reference to the 1.8V SIDO buck supply + + vdd-rx-supply: + description: A reference to the 1.8V rx supply + + vdd-tx-supply: + description: A reference to the 1.8V tx supply + + vdd-vbat-supply: + description: A reference to the vbat supply + + vdd-io-supply: + description: A reference to the 1.8V I/O supply + + vdd-micbias-supply: + description: A reference to the micbias supply + + qcom,micbias1-microvolt: + $ref: '/schemas/types.yaml#/definitions/uint32' + description: micbias1 voltage between 1800000 - 2850000 microvolt + + qcom,micbias2-microvolt: + $ref: '/schemas/types.yaml#/definitions/uint32' + description: micbias2 voltage between 1800000 - 2850000 microvolt + + qcom,micbias3-microvolt: + $ref: '/schemas/types.yaml#/definitions/uint32' + description: micbias3 voltage between 1800000 - 2850000 microvolt + + qcom,micbias4-microvolt: + $ref: '/schemas/types.yaml#/definitions/uint32' + description: micbias4 voltage between 1800000 - 2850000 microvolt + + clock-output-names: + const: mclk + + clock-frequency: + description: Clock frequency of output clk in Hz + + interrupt-controller: true + + '#interrupt-cells': + const: 1 + + '#clock-cells': + const: 0 + + '#sound-dai-cells': + const: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + +patternProperties: + "^.*@[0-9a-f]+$": + type: object + description: | + WCD934x subnode for each slave devices. Bindings of each subnodes + depends on the specific driver providing the functionality and + documented in their respective bindings. + + properties: + reg: + maxItems: 1 + + required: + - reg + +required: + - compatible + - reg + - reset-gpios + - slim-ifc-dev + - interrupts + - interrupt-controller + - clock-frequency + - clock-output-names + - qcom,micbias1-microvolt + - qcom,micbias2-microvolt + - qcom,micbias3-microvolt + - qcom,micbias4-microvolt + - "#interrupt-cells" + - "#clock-cells" + - "#sound-dai-cells" + - "#address-cells" + - "#size-cells" + +examples: + - | + codec@1,0{ + compatible = "slim217,250"; + reg = <1 0>; + reset-gpios = <&tlmm 64 0>; + slim-ifc-dev = <&wcd9340_ifd>; + #sound-dai-cells = <1>; + interrupt-parent = <&tlmm>; + interrupts = <54 4>; + interrupt-controller; + #interrupt-cells = <1>; + #clock-cells = <0>; + clock-frequency = <9600000>; + clock-output-names = "mclk"; + qcom,micbias1-microvolt = <1800000>; + qcom,micbias2-microvolt = <1800000>; + qcom,micbias3-microvolt = <1800000>; + qcom,micbias4-microvolt = <1800000>; + clock-names = "extclk"; + clocks = <&rpmhcc 2>; + + #address-cells = <1>; + #size-cells = <1>; + + gpioctrl@42 { + reg = <0x42 0x2>; + }; + }; + +...