From patchwork Mon Jul 23 15:53:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 142620 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp6208546ljj; Mon, 23 Jul 2018 08:58:30 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe3ojb+4n7pdu9wHfH9419j/+z59t8CBXd+XICYe9QZRcWcNP979f+U31UYAMTepW59239o X-Received: by 2002:adf:9a0b:: with SMTP id z11-v6mr8677582wrb.47.1532361510842; Mon, 23 Jul 2018 08:58:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532361510; cv=none; d=google.com; s=arc-20160816; b=m8AuQ3IM8yb06Boue9TannkM8Pwq90JpHaSc/t67KCymOPyqRqLApNyp2R0741mNdL 1ZLyhd8h9wCnIqZKAJgdRUvBYHePUUn53nMWNxaH/bNpVY1GDzoA44lvB/6cEvutkrI9 3RTs8cdo8lOfyokBHj2QpWQ+04chA4rUTmUkB5Y4xt5+wBceFe6mzwyAI/WWEqrSTpX9 X3hxFzDUmMPZLkTuVuYTlGc8urAIpg9DmUNSwPlx1WX/KhcyhjYIN1eUsU7V4S3LlzVg baPcyCI0tIZnSk2qodkqr4TSk5Lm/oi2baDF8ONMBa3WY/ouR21+SLzcg9IrsgIolKD2 uO4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to:arc-authentication-results; bh=rbJnUoSFktB6lfudmQdpaPP8lxFqIRSYJCsrmugMJ+0=; b=SMb27oFUvhKNHioXxkB+NRGwREe19XL8GTw93K2FOk+oVBWtGKJlFhS9VtIYN/kFZU T2FRxoYDhf3p5aOTyZnobFerrpRJRJ3SCaQCBlMiVvuBUKfLeVDuorq/qpsvrHasQOZE Rg9mTwQ3OJzM9eQUn9NmGhVpqu7SXiyCcKr00+QJ7vp3qz257MrgogSKtQaQ3W/y97NA bq0oGT4WX72P5jb/7UDjmjhzcG7/onaojDrsi14HPB+tHqLkhb08z84r6a1gXBmDzSCx 0e6pRXD/8uhzZIewyv2j+JVKbW1rtxQ1dQmqw636rfLtCbTMux0KhrcbmQcGmfbH9MKM LssA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=B5mF7Fya; 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 ESMTP id f10-v6si5803436wmc.85.2018.07.23.08.58.30; Mon, 23 Jul 2018 08:58:30 -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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=B5mF7Fya; 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 alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 5C1AB2676CC; Mon, 23 Jul 2018 17:58:22 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 1AE812675D4; Mon, 23 Jul 2018 17:58:19 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS autolearn=disabled version=3.4.0 Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by alsa0.perex.cz (Postfix) with ESMTP id 6497226739D for ; Mon, 23 Jul 2018 17:58:17 +0200 (CEST) Received: by mail-wm0-f65.google.com with SMTP id o18-v6so1766221wmc.0 for ; Mon, 23 Jul 2018 08:58:17 -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; bh=usbvpM84D03PVtnGQhVCdxXJhk8fO01uK4ITF8UQWmY=; b=B5mF7Fyarhrc3QWrxoy2h4hQg7HRWWaOrV/VnRwXr7pEp9uUP6POsDTV2MU73Q9sLG Rl+gIMVkiH+EjPlhB7nhO5pTpcx0B0Swn1fhgwdxEo58GILaGooLBldbvCUU/M97HyYH zFZDxRV0HGkUcok5fc7YlIgdkZELDQn33/sHs= 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; bh=usbvpM84D03PVtnGQhVCdxXJhk8fO01uK4ITF8UQWmY=; b=DaIOvRMyxcZ6rTsabWqTVrbGtN6VQoNBMvFciLRZZpdogD3PecSoixK6WunbqvdtYl /z/252qJvVATFBbTT5Mx+AVlBuYjGkOQOxG6aiUjvTtVNLWqvBWtbZ5Jl9rlKBcsRehb RfMqP3QJwTOt3CHewycpJwca36e4H2cUjOIn+Hb0d1Ve2xFYuiB5CDHtWAM4xZZpMZD3 ppS/cB2ptZEmPE287h0zywe5zBIazUgZzuMNtt+GTe3ByZ/fMfVtlXVPTSYhv9Bqe3Tj 5+zZN0Ht61yLfFXiiFUXDFdSXUwUcC0ulZy5UEtczzQDyn/BzOLsoZn0q5Oov+QgMKzH pLnw== X-Gm-Message-State: AOUpUlF1UlWYNVeE5KvLLvQykeGPVYzK3OTr9gkdRr8Nxv03NOCGILc0 PRRZ98ExLPtp8B/02O3KA/GuaQ== X-Received: by 2002:a1c:5e08:: with SMTP id s8-v6mr8293652wmb.88.1532361496869; Mon, 23 Jul 2018 08:58:16 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id 14-v6sm206385wmt.1.2018.07.23.08.58.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Jul 2018 08:58:16 -0700 (PDT) From: Srinivas Kandagatla To: lee.jones@linaro.org, robh+dt@kernel.org, broonie@kernel.org Date: Mon, 23 Jul 2018 16:53:59 +0100 Message-Id: <20180723155410.9494-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180723155410.9494-1-srinivas.kandagatla@linaro.org> References: <20180723155410.9494-1-srinivas.kandagatla@linaro.org> Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, alsa-devel@alsa-project.org, bgoswami@codeaurora.org, tiwai@suse.com, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, vkoul@kernel.org, Srinivas Kandagatla Subject: [alsa-devel] [PATCH 01/12] mfd: dt-bindings: Add wcd9335 mfd bindings X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 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: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org Qualcomm WCD9335 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-build Soundwire controller, interrupt mux. It supports both I2S/I2C and SLIMbus audio interfaces. Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/mfd/qcom,wcd9335.txt | 130 +++++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/qcom,wcd9335.txt -- 2.16.2 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/Documentation/devicetree/bindings/mfd/qcom,wcd9335.txt b/Documentation/devicetree/bindings/mfd/qcom,wcd9335.txt new file mode 100644 index 000000000000..1f8c9e8d4e3d --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/qcom,wcd9335.txt @@ -0,0 +1,130 @@ +QCOM WCD9335 Codec + +Qualcomm WCD9335 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-build +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,1a0" for MSM8996 and APQ8096 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-gpio: + Usage: required + Value type: + Definition: Reset gpio line + +- qcom,ifd: + 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 + +- interrupt-controller: + Usage: required + Definition: Indicating that this is a interrupt controller + +- #interrupt-cells: + Usage: required + Value type: + Definition: should be 1 + += WCD9335 Child devices +Each subnode of WCD9335 represents a functional blocks like +"audio codec", "soundwire Controller" of WCD. The name of the +nodes are not important. The properties of these nodes are +defined by the individual bindings for the specific device. + +Example: + +wcd9335@1 { + compatible = "slim217,1a0"; + reg = <1 0>; + interrupts = <&msmgpio 54 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "intr2" + reset-gpio = <&msmgpio 64 0>; + qcom,ifd = <&wc9335_ifd>; + clock-names = "mclk", "native"; + clocks = <&rpmcc RPM_SMD_DIV_CLK1>, + <&rpmcc RPM_SMD_BB_CLK1>; + vdd-buck-supply = <&pm8994_s4>; + vdd-rx-supply = <&pm8994_s4>; + vdd-buck-sido-supply = <&pm8994_s4>; + vdd-tx-supply = <&pm8994_s4>; + vdd-io-supply = <&pm8994_s4>; + + codec { + compatible = "qcom,wcd9335-codec"; + #sound-dai-cells = <1>; + }; +}