From patchwork Fri Jul 27 12:17:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 143034 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp750287ljj; Fri, 27 Jul 2018 05:20:30 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfpDpZREz/qWzpNzqZonnUzvu1CW4ZNPo5/dgxdlYOOlqyiYFqOwpOM1cRulidg8X2/2fiB X-Received: by 2002:a65:5907:: with SMTP id f7-v6mr5789974pgu.83.1532694030242; Fri, 27 Jul 2018 05:20:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532694030; cv=none; d=google.com; s=arc-20160816; b=NhrDAPhDMMJjhVfwfbJm0MWfHkMuQik+isLfz/KWzdLrmmSY+fQL65OdzDHqRLvWHN liuIXlYLBSCDnP7zdQlRrQfA7vsMXLR60w+cnAPc/mmAV06b0dnp7hb+uWQNSmqBSqNU 1/rez/7Jq5SvPEdL/WB39Qp19o8UnUXp91Oani3ji7s40hW6yY0/+Peq4mAbpoATFe/r clsHmw/p0ZzvToBh+h8jgTNxsfMl6YTTVTxsnbgFk94GCvO2ke5cxQzpcXMmCptw1kUp A/AihIkRjUktij214/CKXAGLrL47eKeHshO0F2CKa1evUb/2ggSUDvdPOkxF1y17V2nX rFAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=9G4YyZAdOqI9TSlqZYFLNXpTxS+xcOq3a9AfDevwbLs=; b=PZiA21i2lQpcvPKs8/rVg7jh8yfuTt/REFTlqSRL9veJ5LrlrsQ0wwlJCT+8MDP9fU ud+If3S/OESwY5sstXSpG9wqQC0i9XGtaQIpibGi2mSKf5pno1IKgZLBiPVaryfaF1wS pbBbZkUi+EQlkXnV9b0oi1TO9vyuvusijOoOErKyLejDYCfJJay4LZ7uxabIR9E4SLh1 9OJ3+KopMcp4KRcwyO92iU5yW2QdhswAfO/C46nqjf3fQ7cpULvZDZ/OCwxUOqoDP8md 595wwtPa9V+1PE70Hemsnyc2gZo1k17hAH3VwgxihmRg9ZAKbvjGuaqWvoUNbm9MpEJ9 MdsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AcNh0xkC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 r81-v6si3932450pfg.305.2018.07.27.05.20.29; Fri, 27 Jul 2018 05:20:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=AcNh0xkC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S2388593AbeG0NmI (ORCPT + 31 others); Fri, 27 Jul 2018 09:42:08 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35038 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732122AbeG0NmH (ORCPT ); Fri, 27 Jul 2018 09:42:07 -0400 Received: by mail-wm0-f66.google.com with SMTP id o18-v6so5302898wmc.0 for ; Fri, 27 Jul 2018 05:20:25 -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=9G4YyZAdOqI9TSlqZYFLNXpTxS+xcOq3a9AfDevwbLs=; b=AcNh0xkCJdaWOKQg2nkJH4VD0qSGsfj/C+eIpZrnfsU+i/cqvDFU9qnzD2suY7K1DZ n/cjWj/QouEw6y0d+s5YuoMofzMHqu80oEJsOZaSyL+nUqBstZw2k7JtcBjH0XUhFPmd xIYlrT86rJlUW0FLFjHryFFmuy7RS4zWzRSek= 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=9G4YyZAdOqI9TSlqZYFLNXpTxS+xcOq3a9AfDevwbLs=; b=Iim0rB9X5YLm+LgGOR+W28UPfpJ6LL4C9S1B7l92fm3epTMLRBI7dgUl4qSpaGGVMw zR3mN9r1U+PQSviRlVicuEyzBy4dfUiRcaLouwImRL44mprnXyR8U6K6HddnV2giWiYP dAFQlF61X8J5HI82evH5MxVj5cnuu52q8K5u8UgIA+jm2Hsvrr7f4uL9JOr1UZZptnhQ sEazMSFC9gEYXIquXJbPrOOR+EQkr3GZ4EDNC4sD2JaatfPC949AvVuCV3KMXzHkQ+Yg JQZkm3DeNTReeEnLF/Q/IT7jZ1ATPDlPDtqZ2dXq9Gy+1b8wwWngYQ/q3pP6CfhJfVhY 9hvQ== X-Gm-Message-State: AOUpUlG7i+R9Ty8V0qylyoJ5UxgpCF/XNQ27ITbEMVPqwCB4dMzDMJdx vQTXETGwIvsHf4h7VT53xa3BFA== X-Received: by 2002:a1c:5f56:: with SMTP id t83-v6mr4379795wmb.27.1532694024706; Fri, 27 Jul 2018 05:20:24 -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 b126-v6sm6178522wmf.41.2018.07.27.05.20.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Jul 2018 05:20:23 -0700 (PDT) From: Srinivas Kandagatla To: lee.jones@linaro.org, robh+dt@kernel.org, broonie@kernel.org Cc: mark.rutland@arm.com, lgirdwood@gmail.com, tiwai@suse.com, bgoswami@codeaurora.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, vkoul@kernel.org, alsa-devel@alsa-project.org, srinivas.kandagatla@linaro.org Subject: [PATCH v2 01/10] ASoC: dt-bindings: add dt bindings for wcd9335 audio codec Date: Fri, 27 Jul 2018 13:17:57 +0100 Message-Id: <20180727121806.18209-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180727121806.18209-1-srinivas.kandagatla@linaro.org> References: <20180727121806.18209-1-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds bindings for wcd9335 audio codec which can support both SLIMbus and I2S/I2C interface. Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/sound/qcom,wcd9335.txt | 123 +++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,wcd9335.txt -- 2.16.2 diff --git a/Documentation/devicetree/bindings/sound/qcom,wcd9335.txt b/Documentation/devicetree/bindings/sound/qcom,wcd9335.txt new file mode 100644 index 000000000000..1d8d49e30af7 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,wcd9335.txt @@ -0,0 +1,123 @@ +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-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,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 + +#sound-dai-cells + Usage: required + Value type: + Definition: Must be 1 + +codec@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>; + #sound-dai-cells = <1>; +}