From patchwork Tue Jul 2 08:09:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 168291 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp3938496ilk; Tue, 2 Jul 2019 01:12:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqwG+/Dn+Gbuum98o037R0UtMnQsLmbmVpHXwgA6qPZ11Kf/ABN9wsliztckZqzXsqlugRLK X-Received: by 2002:a1c:6156:: with SMTP id v83mr2559130wmb.81.1562055143613; Tue, 02 Jul 2019 01:12:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562055143; cv=none; d=google.com; s=arc-20160816; b=JjX1TSxLp8SFr9adeu0N/9lzx+R9nMJzNhPSOh+GixJdnhHV92bTaZ2A06wek/dSN4 lF+b0N3YA7dGgZmWB5p/eX+KSqKEkVLuHabcFcZams3NceV2Pdv8cGPCLelkcW/Src+W DGbqtOxg5jOMdjFw3F/OZF2QQGft9lcfGw0r9G8cYcFQM85jKUdYMckrv1YyyShejxVX /wmVdqFMNB1cQLVXMaLPPLWGlmTUCIQ75ILAJkQQKGG7KG/yeGnufY5ztVEbmb+z94JR 6hKskwrA8/UGjFTLcm/3AusoCosaWmvAu+AsvFDw6ok0BHEzi0LmplRL8EB/VCXBwJS+ pIJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:dkim-filter:delivered-to:dkim-signature:dkim-filter; bh=V9lQdkI+0ZkLg3k7RxsTebTP3oRU9oG7bENNtcMShrg=; b=xygBdIzOL65pmVq1QzPW4Vtoo4alj6yWnJMoSQVZoCIbh5m6gzI4MdsLTYJ2qKPhFf nK73rIChjmls0ccG44wsHHTQf2jsP3cjx7qC73hhyWlUtPzT0EHGVXDMRftO7p3TBs3S ivcGJxxOBYjEXLF9RNN2F6LiGEwP9fNG4TIko6ph8jj2y7VbZLKZeXPoVCZaXelgbYvX 9zuGQezJ5AaMJ24EoSYz2lkl3oxSI2z99O7zDCU0z/0rvl6LQUKw8Pwz/wdQuSSVqLXt s1qCkxubw97zYGKQJKLNovpumNNYLbcV7EQClmLkXRUNZzO4AnC6pU98Ib83abONu6N+ jZrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alsa-project.org header.s=default header.b=kv5wsNPc; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ATtYMSiq; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTPS id m10si10135130wrs.105.2019.07.02.01.12.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Jul 2019 01:12:23 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=pass header.i=@alsa-project.org header.s=default header.b=kv5wsNPc; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ATtYMSiq; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id AE415167B; Tue, 2 Jul 2019 10:11:31 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz AE415167B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1562055142; bh=GO14cObmWRDtCDLVxrWA97Lg+i/xQmUBvVKl1grJkXA=; h=From:To:Date:In-Reply-To:References:Cc:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=kv5wsNPchNNajJWQBTL4Zdj5eMnLKmmgIc8WPS6puEIeDI2Q/dXl/w1PNe13OCC+O 7tOvGmE0jILnDIVitTnwiue5qK1azptfjUANbEx960McB8xE0F9o9uZttw/fpNj2Nb YVFbymNCa6shA3Ev0ID7q+pvi9gVWmBBUC53ouMs= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 6FBB9F800E1; Tue, 2 Jul 2019 10:10:38 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 00164F800C7; Tue, 2 Jul 2019 10:10:35 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id ADB3CF800C7 for ; Tue, 2 Jul 2019 10:10:32 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz ADB3CF800C7 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ATtYMSiq" Received: by mail-wm1-x344.google.com with SMTP id s15so2184855wmj.3 for ; Tue, 02 Jul 2019 01:10:32 -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=RsDRgnG30eH/2HxBr2CWqa8LThIzd6WAhW3RPg8E7LY=; b=ATtYMSiq8qyZaEXMNFb5e+Q1VIOVwuQ/cIZS9AYHlGxNZAf3RTf6nN5q1seQ09EHgP zb1FCvEsnqA+eEYxkdQZviWbWCTKnlv/jrHh9IYa3APdlmKxxw4Zg5ijEHFdOqXq1HTN ZPog4pcB5zmhpfGq+yfqHYea9B6OuulG6lgLi1Yf/EjoB/+kGaVAzTdKj91fnMxUzw1v d3Jv2ocNz2RNdqJkefwvMh5VaYaksRGdRDJKGaJTYYTf5tZ06mi+tpq01zpMfZRJyFky aPQmy+6JOz3bxqYQhhoJmtu4MokxglB7eaKIpdqUvSLnESGfGoZl8LSGZzuhI0vmjLCr fgrA== 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=RsDRgnG30eH/2HxBr2CWqa8LThIzd6WAhW3RPg8E7LY=; b=UrJQBD0slpHFa8r6sXZB7YdE6Wq75uNvEC8xpgc7TW5s4IqWGc5eu3hT8imv0ldYBL X8p/0N7Sr1IOypG1dD3CGfL6fPsXBWHSnxG1VQB4VzlYcI+Tvz5ClrhORv1NKdC7mk5v YLMWY6lrNgA3FFgL86gOiQ/4yNbzVrDae6gy8YRXydAOwOjFTBVJ2aClOKAmzkRl9dvJ s4iD8O2Ias3DCtEtgvHL9TcLNTwRWIHE6WogUa29N+AYyHcNsKvn6GMYispgZCMwwhGx l0cot+QY6WyWfvvXOR04n4dE3xAyj+q6vG/gzSJG/QkU6G/YVO9tgXp9oMXV7CiQiGiT xt6g== X-Gm-Message-State: APjAAAVxf7n1S7Wy5gDq/EQhKBtg9OU9fqbAgyTMsYsmB6yKaozAjDA8 5FCRd3gu5vZCQlovEJBNATmUYg== X-Received: by 2002:a1c:f115:: with SMTP id p21mr2257357wmh.134.1562055031841; Tue, 02 Jul 2019 01:10:31 -0700 (PDT) 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 e4sm1608859wme.16.2019.07.02.01.10.30 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 02 Jul 2019 01:10:31 -0700 (PDT) From: Srinivas Kandagatla To: robh+dt@kernel.org, broonie@kernel.org Date: Tue, 2 Jul 2019 09:09:15 +0100 Message-Id: <20190702080920.22623-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190702080920.22623-1-srinivas.kandagatla@linaro.org> References: <20190702080920.22623-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, alsa-devel@alsa-project.org, bgoswami@codeaurora.org, lgirdwood@gmail.com, vkoul@kernel.org, Srinivas Kandagatla , srini@kernel.org Subject: [alsa-devel] [PATCH 1/6] ASoC: dt-bindings: add dt bindings for WCD9340/WCD9341 audio codec X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" 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.txt | 188 ++++++++++++++++++ 1 file changed, 188 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,wcd934x.txt -- 2.21.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org https://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/Documentation/devicetree/bindings/sound/qcom,wcd934x.txt b/Documentation/devicetree/bindings/sound/qcom,wcd934x.txt new file mode 100644 index 000000000000..2b48c98b5b7d --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,wcd934x.txt @@ -0,0 +1,188 @@ +QCOM WCD9340/9341 Codec Bindings + +Qualcomm WCD9340/WCD9341 Codec is a standalone Hi-Fi audio codec IC, supports +Qualcomm Technologies, Inc. (QTI) multimedia solutions, including +the MSM8996, MSM8976, and MSM8956 chipsets. It has in-built +Soundwire controller, interrupt mux. It supports both I2S/I2C and +SLIMbus audio interfaces. + +Required properties with SLIMbus Interface: + +- compatible: + Usage: required + Value type: + Definition: For SLIMbus interface it should be "slimMID,PID", + textual representation of Manufacturer ID, Product Code, + shall be in lower case hexadecimal with leading zeroes + suppressed. Refer to slimbus/bus.txt for details. + Should be: + "slim217,250" for SDM845/SDA845 SoCs with SLIMbus. + +- reg + Usage: required + Value type: + Definition: Should be ('Device index', 'Instance ID') + +- interrupts + Usage: required + Value type: + Definition: Interrupts via WCD INTR1 and INTR2 pins + +- interrupt-names: + Usage: required + Value type: + Definition: Interrupt names of WCD INTR1 and INTR2 + Should be: "intr1", "intr2" + +- reset-gpios: + Usage: required + Value type: + Definition: Reset gpio line + +- slim-ifc-dev: + Usage: required + Value type: + Definition: SLIM interface device + +- clocks: + Usage: required + Value type: + Definition: See clock-bindings.txt section "consumers". List of + three clock specifiers for mclk, mclk2 and slimbus clock. + +- clock-names: + Usage: required + Value type: + Definition: Must contain "mclk", "mclk2" and "slimbus" strings. + +- vdd-buck-supply: + Usage: required + Value type: + Definition: Should contain a reference to the 1.8V buck supply + +- vdd-buck-sido-supply: + Usage: required + Value type: + Definition: Should contain a reference to the 1.8V SIDO buck supply + +- vdd-rx-supply: + Usage: required + Value type: + Definition: Should contain a reference to the 1.8V rx supply + +- vdd-tx-supply: + Usage: required + Value type: + Definition: Should contain a reference to the 1.8V tx supply + +- vdd-vbat-supply: + Usage: Optional + Value type: + Definition: Should contain a reference to the vbat supply + +- vdd-micbias-supply: + Usage: required + Value type: + Definition: Should contain a reference to the micbias supply + +- vdd-io-supply: + Usage: required + Value type: + Definition: Should contain a reference to the 1.8V io supply + +- qcom,micbias1-lvl: + Usage: required + Value type: + Definition: Should be voltage in milli Volts for micbias1 output + Supported values are in inbetween 1800mV-2850mV + +- qcom,micbias2-lvl: + Usage: required + Value type: + Definition: Should be voltage in milli Volts for micbias2 output + Supported values are in inbetween 1800mV-2850mV + +- qcom,micbias3-lvl: + Usage: required + Value type: + Definition: Should be voltage in milli Volts for micbias3 output + Supported values are in inbetween 1800mV-2850mV + +- qcom,micbias4-lvl: + Usage: required + Value type: + Definition: Should be voltage in milli Volts for micbias4 output + Supported values are in inbetween 1800mV-2850mV + +- clock-output-names: + Usage: required + Value type: + Definition: Should be the "mclk", corresponding to name + of the clk output. + +- clock-frequency: + Usage: required + Definition: Indicating the frequency of mclk output. + +- interrupt-controller: + Usage: required + Definition: Indicating that this is a interrupt controller + +- #interrupt-cells: + Usage: required + Value type: + Definition: should be 1 + +- #clock-cells: + Usage: required + Value type: + Definition: should be 0, as there is only one clock out supported. + +#sound-dai-cells + Usage: required + Value type: + Definition: Must be 1 + +Example: + +wcd9340: audio-codec@1{ + compatible = "slim217,250"; + reg = <1 0>; + reset-gpios = <&tlmm 64 0>; + slim-ifc-dev = <&wcd9340_ifd>; + vdd-buck-supply = <&vreg_s4a_1p8>; + vdd-buck-sido-supply = <&vreg_s4a_1p8>; + vdd-tx-supply = <&vreg_s4a_1p8>; + vdd-rx-supply = <&vreg_s4a_1p8>; + vdd-io-supply = <&vreg_s4a_1p8>; + qcom,micbias1-lvl = <1800>; + qcom,micbias2-lvl = <1800>; + qcom,micbias3-lvl = <1800>; + qcom,micbias4-lvl = <1800>; + + interrupt-parent = <&tlmm>; + interrupts = <54 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "intr1"; + interrupt-controller; + #interrupt-cells = <1>; + + #clock-cells = <0>; + clock-frequency = <9600000>; + clock-output-names = "mclk"; + #sound-dai-cells = <1>; + + pinctrl@42 { + compatible = "qcom,wcd9340-pinctrl"; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&wcdpinctrl 0 0 5>; + reg = <0x42 0x2>; + ... + }; + + soundwire@c85{ + compatible = "qcom,soundwire-v1.3.0"; + reg = <0xc85 0x40>; + ... + }; +};