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: 10540537 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 912EC13BB for ; Mon, 23 Jul 2018 15:58:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C0D528C33 for ; Mon, 23 Jul 2018 15:58:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6F7C628CE8; Mon, 23 Jul 2018 15:58:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A2FA828C33 for ; Mon, 23 Jul 2018 15:58:31 +0000 (UTC) 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) 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-Google-Smtp-Source: AAOMgpfYZX79xog3eIdjZ67JmfH8gktXkLHw5HWqYZUQSvyJwrFMJ7Mjmdidwx9UAzM4dILYC/1IaQ== 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 X-Virus-Scanned: ClamAV using ClamSMTP 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 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>; + }; +}