From patchwork Thu Dec 19 10:31:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 182061 Delivered-To: patch@linaro.org Received: by 2002:a92:d0a:0:0:0:0:0 with SMTP id 10csp293460iln; Thu, 19 Dec 2019 02:33:06 -0800 (PST) X-Google-Smtp-Source: APXvYqymCCLuen1FtifXEgIpYqD+8zJYriVhJA5K9BWJb9fF2v900YJOkmrmxin3plTFNbTV1C6f X-Received: by 2002:a05:6830:1d59:: with SMTP id p25mr8317867oth.308.1576751586805; Thu, 19 Dec 2019 02:33:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576751586; cv=none; d=google.com; s=arc-20160816; b=U4YyytUWh//CNG8Xg61Nk6DgAvrt/YKbv/WYTmq9obnZGXl2kLMhT8YFqpkMrhU1tV ynyuaIh7/mdfiwsr8FhifdxfzmunC65U/w4iiod2r2jUJ7bY+MLsHk8lR7Ss60ku+CPO wk/ge3VZyQcNSX6AQAijKRqaZ0OBo5yDjao00oKOIKv9J9EdPq5VfS1mGRa6QX90mss1 Z4lwgIfFu2CzB1gTOyXfBpilCLIi5gjsFW8tU+nOisFiSeF/NuSJKsGPSDsDUQsCyFxa ZKzjhNSyVqKlDgJLWa/m99lXSx8p43Cw25TFjODmYvFjDbqkIZ2cIyYnVxMJ6iODFTuN fBBg== 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=xp7wCXpGcTVvcKAxVVzo9jEX41qdh69vVDMu6rxufAY=; b=MKPFm0bNqVQa/1ETTnlJFQwwJPM2c3BFCSer6N3eokCEpqX4u9G9x294AloBMpQPkG jAcFZRWSfGb4RMnCi4193xepcXyvUvbJcv6XHnJBHm1wRPYud3oaQHOllglHYjmSxy3X gI3bd/0wh/L5ZRU4ij4434Co+IM20blWhaiOqEj7wlYKvE5unk+m0bJx/KO8/aqlCtYG 0cDCDir83JztdGYmNYKR5lC5V3+s+FJVd+VeQlYvooRjS1LxrUjd4K0460UIDBDW6wzU /SrC3KnvCwSk84c1m2gCE2/T3OOGFJOxfirdxs/AQ4v8j0DtPLKme4Xz8b+CoyObnKOm xd6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eEX5v9lX; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-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 j20si3044288otp.147.2019.12.19.02.33.06; Thu, 19 Dec 2019 02:33:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-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=eEX5v9lX; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-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 S1726719AbfLSKdG (ORCPT + 5 others); Thu, 19 Dec 2019 05:33:06 -0500 Received: from mail-wm1-f52.google.com ([209.85.128.52]:52502 "EHLO mail-wm1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726633AbfLSKdE (ORCPT ); Thu, 19 Dec 2019 05:33:04 -0500 Received: by mail-wm1-f52.google.com with SMTP id p9so4892103wmc.2 for ; Thu, 19 Dec 2019 02:33:03 -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=xp7wCXpGcTVvcKAxVVzo9jEX41qdh69vVDMu6rxufAY=; b=eEX5v9lX8C+ZtbyJB8auS8U8CsO36kg32qqSK3F7y5vQaTkEfTO23mFeSZ+2t3qwdA 6g3ZorcylCtjEpihICW97lcg+9XgghHL/GjFs1hwsOVZZ0h+dq/YAdc6YAjH7wco0wnF Hlvt20Xq9mQ0PjBiKyp2MK0u98XDKaHSNuo7UQsqD+M23IayKUodDl/AxnNZAdpvvqAy qo2QUcDLc8xmZNWrz0J6fozlNxLLwZ2LDPwBcRyfrG+vyn1vukDg2/fuoNAsooHccZ3J IANCKCmu9ng2i5X9B0FlvvoffWlz/2MxBauc31UZCvS1dbfkva6CBDMJRc+s7ScZHXq2 Kp4w== 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=xp7wCXpGcTVvcKAxVVzo9jEX41qdh69vVDMu6rxufAY=; b=ATUJ84Aaaf72QFGiBkQAO7HVBatJcjK7rPUqeciAQoAG5NNqnYhpvlbEw4OLyMRbxW aXDK1GXy5NwW91hq6/V+/k7MQPLsjLWQpW/SSdfCmNWAkGWI30DuuclH9QfdmxiDeq+1 KWx54fCmLp6sMO7Wb3hxHGVbtp8Jb086WGsgqU7HoakCQTnj6pbt8s1kR73CILBvY8XX l8hQuyxRLbq6EvvfWP9k/GyzyLao10IcCH18M4F7JlCOLs8YNCXLRHE2ng01ri7l9LuC peujQL5Hhx5PUopoH4GYkRlgZrUJM2G0eVe/R1U6gzuc84L2SBrxsr8woc2/f4/+cyZP RtyQ== X-Gm-Message-State: APjAAAWoZ7EJ9RK3DIDUG7zzL4Wf3ru/ThyuFCHY76CB2QJRUSpowip8 tqdkdwtQvWreVfj4Agse6TUgEQ== X-Received: by 2002:a1c:23d7:: with SMTP id j206mr8849848wmj.39.1576751582540; Thu, 19 Dec 2019 02:33:02 -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 i11sm5962942wrs.10.2019.12.19.02.33.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2019 02:33:01 -0800 (PST) From: Srinivas Kandagatla To: broonie@kernel.org, lee.jones@linaro.org, linus.walleij@linaro.org Cc: robh@kernel.org, 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 v6 01/11] ASoC: dt-bindings: add dt bindings for WCD9340/WCD9341 audio codec Date: Thu, 19 Dec 2019 10:31:43 +0000 Message-Id: <20191219103153.14875-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191219103153.14875-1-srinivas.kandagatla@linaro.org> References: <20191219103153.14875-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@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 Reviewed-by: Rob Herring --- .../bindings/sound/qcom,wcd934x.yaml | 175 ++++++++++++++++++ 1 file changed, 175 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..38eaf0c028f9 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,wcd934x.yaml @@ -0,0 +1,175 @@ +# 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: + description: micbias1 voltage + minimum: 1800000 + maximum: 2850000 + + qcom,micbias2-microvolt: + description: micbias2 voltage + minimum: 1800000 + maximum: 2850000 + + qcom,micbias3-microvolt: + description: micbias3 voltage + minimum: 1800000 + maximum: 2850000 + + qcom,micbias4-microvolt: + description: micbias4 voltage + minimum: 1800000 + maximum: 2850000 + + 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 + + gpio@42: + type: object + allOf: + - $ref: ../gpio/qcom,wcd934x-gpio.yaml# + +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>; + + gpio@42 { + compatible = "qcom,wcd9340-gpio"; + reg = <0x42 0x2>; + gpio-controller; + #gpio-cells = <2>; + }; + }; + +...