From patchwork Tue Oct 29 11:26:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 177999 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp4728164ill; Tue, 29 Oct 2019 04:28:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqycVwtN1BraPErQ5uWO/e5T+qd4SJRLTaHSWjm5Do2db/lhJmC4jjjFh4vIcpdXiiB8aXqh X-Received: by 2002:aa7:d305:: with SMTP id p5mr25645041edq.80.1572348539719; Tue, 29 Oct 2019 04:28:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572348539; cv=none; d=google.com; s=arc-20160816; b=NpS2wTyzaK9zsl2QExygO9Qxb5NwK4HoI+k4F61wZ68GFjLy/u9Q5NcIdsUDKnxA1A C7QZLjXth/KtMdHjr9UglMobYSmw76uvd1+NSa1SOprZaPDhpMhY7AA7x9gLYm5SChby TUu7WDYkgaK/NM9hiJoc3G30DGThg3dCWf1D8u7sf/x5/Y7DYti+zp2tPAHlk88xpC81 VSQmtQB2CXQA8mcKNqHhxSWosEmPFjYcLkZ7Ik/jAqj/t9dO9AJWUVftvA6NI4NhDRFG J+YmTO9Qhz++Kn9cX/k/Kkc7zUXRS47cgqqdHirreGK6Sy9EeQd25dtwLGm9b8i63nc5 d8QQ== 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=180LRLtVibZuNEGVjJ0cua0pIuWoyx489HZ44l4xhjA=; b=n/vrw277TJ/gRYjk8IN0tIuIrhRYgizxdzaJkZnteITWJN9W2JV0U/V/Oe5NOr7IUU l6gfByaUAGGdOa9ODnvA3W0UfuLfxDgLE9fY2cUDNPYUsLIM1Bi0iyNMUKQM8BBiUD8U Pdc2+q0bpCjtb9mN9buAOvEeH065u9eEqHtLeu/1XaPTTSMfwT/ILz0AzludeLrzEg9Y 4Tltws70dNiSQSZMHL/BaSH/pRwGq1KK43Q9WBhrNB9AdE1GIXMuAOBeMNKskVUgmcmQ DHAqTsLAYIfEJ0pR5TBv6qeO5pHOX2F6A3KcknnzeaETmyMYz9TEgM4tQCIxBb3MZBLG mkvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PU3WiNMq; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id a12si7425891ejp.425.2019.10.29.04.28.59; Tue, 29 Oct 2019 04:28:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=PU3WiNMq; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 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 S1731893AbfJ2L2y (ORCPT + 8 others); Tue, 29 Oct 2019 07:28:54 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:46064 "EHLO mail-wr1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725927AbfJ2L2y (ORCPT ); Tue, 29 Oct 2019 07:28:54 -0400 Received: by mail-wr1-f53.google.com with SMTP id q13so13186659wrs.12 for ; Tue, 29 Oct 2019 04:28:52 -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=180LRLtVibZuNEGVjJ0cua0pIuWoyx489HZ44l4xhjA=; b=PU3WiNMq4xmp4SOp6Nym7RsV7fF+pmSZrVhFa9Gghmlmjgf+AD0zD45oHeA/l0A9hd dncbpaNvA995dWoQzYXMncMDHWjUz2K8lA2llvlp3SUG9GF9KX/AILx286Giop9GPLYs VrQ+D1Ck9AbEKVZy+EqhtjTLkXLu+6cCvfD+j6dJmaOCgZUmJYTPoIsVO1cpLRDb4kDt x8PvNumAgLUgcSLWhwLYtWnM5OlbC0DjZcxsOx4jUxNRlPNFTJe2gkVRvCD4YXaplNvJ I983YTh9IAr2CrcP1nYaUEkvSTknzLXbW9/CkHu3DuIT6+tJi4jmB/nZeuZG6IqvZbHV LWGw== 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=180LRLtVibZuNEGVjJ0cua0pIuWoyx489HZ44l4xhjA=; b=NcVi4SEk11rnsJ4Yj+u+QGMOS1Nu1xIkdsfLpv/iS68MpQTTnBGneQUtSjt94HMRb7 pW6DpHx/hFoRrzHDbBYpLc17OxrFYECDOPyMuyFDW+Ewj3PbioL/wOvn4YfbBtKD+8M3 J0VtQ40rdlhKNMS/Grmo52wB8Xvykjvk0zqLvzwYs/IZmQAOejuHTESJhPk0jSqlNCaH by6YBO83N7HXIu00MQZBUR5b1VbopADtkTEksYADmXDtXcm0W89ca7ueCq30KPZ757/6 gOJq+AhoZu3Sdr1FHPH3Lok10AytL3c1NUMP5zT0IabyqWAVqNxxQJz8VO867Sa6Rtiq eEfQ== X-Gm-Message-State: APjAAAUoHQrJ9+uo5BhTLoJ785QzedRqh/WgcojtBitDyylzirOxmLsK 9S4GDyQi7MlNcRt3/vsVu7GxiA== X-Received: by 2002:a5d:4b42:: with SMTP id w2mr18948240wrs.360.1572348532034; Tue, 29 Oct 2019 04:28:52 -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 f20sm2373247wmb.6.2019.10.29.04.28.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Oct 2019 04:28:51 -0700 (PDT) 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 v3 01/11] ASoC: dt-bindings: add dt bindings for WCD9340/WCD9341 audio codec Date: Tue, 29 Oct 2019 11:26:50 +0000 Message-Id: <20191029112700.14548-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191029112700.14548-1-srinivas.kandagatla@linaro.org> References: <20191029112700.14548-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 | 162 ++++++++++++++++++ 1 file changed, 162 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..d6cfde6597db --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,wcd934x.yaml @@ -0,0 +1,162 @@ +# 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: + description: SLIMBus Interface device phandle + $ref: '/schemas/types.yaml#/definitions/phandle' + maxItems: 1 + + 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-microvolts: + description: micbias1 voltage between 1800000 - 2850000 microvolts + + qcom,micbias2-microvolts: + description: micbias2 voltage between 1800000 - 2850000 microvolts + + qcom,micbias3-microvolts: + description: micbias3 voltage between 1800000 - 2850000 microvolts + + qcom,micbias4-microvolts: + description: micbias4 voltage between 1800000 - 2850000 microvolts + + 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-microvolts + - qcom,micbias2-microvolts + - qcom,micbias3-microvolts + - qcom,micbias4-microvolts + - "#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-microvolts = <1800000>; + qcom,micbias2-microvolts = <1800000>; + qcom,micbias3-microvolts = <1800000>; + qcom,micbias4-microvolts = <1800000>; + clock-names = "extclk"; + clocks = <&rpmhcc 2>; + + #address-cells = <1>; + #size-cells = <1>; + + pinctrl@42 { + reg = <0x42 0x2>; + }; + }; + +...