Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1295977ybg; Fri, 18 Oct 2019 15:23:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxr8/55ZO8D8uCiW1dVXo0/T53UVArRqDKIrSqNKRd3gDQYrxO2MgkPdhV/qrNw4lDgZ/z/ X-Received: by 2002:a50:af44:: with SMTP id g62mr12359800edd.164.1571437427572; Fri, 18 Oct 2019 15:23:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571437427; cv=none; d=google.com; s=arc-20160816; b=iaXa8EVacOTT9+lhVxpul4L247Ufv8I2WqL2vOJqmXZM7Z4x+V/EjWeqnetY7ZPn5P loz/y50Tx9jbw1q1HBkvsh/Miqge9yw6p+uYDJczBNHzw5Ro7iflfoqY4NoQO5alcov+ VHIo7jLU/dVQur93x1f/T8PM61PMrnHYl0U2o3Lia4K0m+Uza4iHA0Yp51tdily3jvrf OlwTyvtjdO9PL/squ0C1X79lz3u2ILNvMz/OKU4OmzNQLFjqvq1LvcPcr/1dnydd5kh3 nYbRUS/Um4dzJhOaB1qs5jRKP/eaMEhYNH0KYu0NoBWlaiwJhvl+iKVCfIrD0lPSyAJQ LYmw== 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=n4me+CazbBGjq6Vioao9/Gq1F8FYE0afxuUK4F7+V3U=; b=iDYGf7K1monY8MPHjRfKE4LTKPerHUnHOsQ6meOCxuYCKp52TYubfUB6SkwKv+eDZ/ bMT5fYkVzCABP7trsXkIanerjFRXz1Lfd9hNBce7VNtNH9amxZfwwgrUnFk4VLQe0pYj DrfvbWlIJk90be6zg9ObiwmTb9cvUd+Pvuo87NoKzDM3pIFOvHw3PgzCOn3Ct1iQKt9m aGPigu0kb4HWgN3IAMYPBApJJmlXHr/uSnthGO299bLJWOojnEewIl1KqFn9iBW7UTWA NHmbRAiBs2g0cjwNBnMpuCjsnEA63lE1ikp17X4CZXS/zUB/nWPHs10xh0IvtFxprVVK usZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oCiIsJX6; 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 r8si4510488edm.158.2019.10.18.15.23.24; Fri, 18 Oct 2019 15:23:47 -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=oCiIsJX6; 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 S2503849AbfJRAUC (ORCPT + 99 others); Thu, 17 Oct 2019 20:20:02 -0400 Received: from mail-wm1-f47.google.com ([209.85.128.47]:52343 "EHLO mail-wm1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2503826AbfJRAUA (ORCPT ); Thu, 17 Oct 2019 20:20:00 -0400 Received: by mail-wm1-f47.google.com with SMTP id r19so4305421wmh.2 for ; Thu, 17 Oct 2019 17:19:58 -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=n4me+CazbBGjq6Vioao9/Gq1F8FYE0afxuUK4F7+V3U=; b=oCiIsJX6F+gH7PaC1dF1wSvdbr3nvuj/rpASrcfUBXDPa9TLVMRNynYfDh1s9gpLC+ MaXA2dVh2of8i+tP8nNdU/uDgyq2kMPAJolA10VHH+a+6JvIzkzTQmK4wSjglc8Yhzq7 pz2gDZ/udH1P7WEFFQyV9EPp0zeIe57FdALWZ2IjTqYFUzXkD3k+62elQAkQCUw8L21i QDJh//t0JwTcz4/+vgvq6iKNNu3hyYOQn+Lli+O6vbvIf0e61v5ZQRIjVhYWi5QFMxc7 xtfEKSjK9w0VEDfWRcUILT0rBr4D3w1HJ+lIc2wM6l1EhTqhU+TPsEEcvWLoATzQ0nec H08g== 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=n4me+CazbBGjq6Vioao9/Gq1F8FYE0afxuUK4F7+V3U=; b=SHj71ffvpWkQVtgoYraZlHD++Gjj7QHlQpFHlsN5np2WKLUphkMmIGp0r1w5Ou//u5 wfufwxlWzhik38DhPiOf3MyWwRUyvarm5OP6oXh3+nGDJ2R41HggEU1aVYDy2cTncq7P kLdQzjXAn8NToiILhXD5eSQ/FfoWYfqYE3wkujv8zslT1C/+UD2O69lQZZnCSj8KRqPV S0o0M6+UYrLkZ5R0BLs/SqNlAOW36WXQ58/6tv6mgeYs0pk0vTRc4XsluEsneiYmGLzF usEItr5ZvGYE7Fj9SKUy8zXZhN4lh+COcMi7o5hlMST3APsruyXo/PFc68iEg7LDkJOp xO/Q== X-Gm-Message-State: APjAAAVpNTD1+Z6ToRW4/N8Dq1xqOI4XiVFlDdDUP3voR+/W67NTguD+ xN8OjqrBfen38RDtm/ndRUq3ww== X-Received: by 2002:a1c:740a:: with SMTP id p10mr5178592wmc.130.1571357997300; Thu, 17 Oct 2019 17:19:57 -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 z189sm4851248wmc.25.2019.10.17.17.19.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 17:19:56 -0700 (PDT) From: Srinivas Kandagatla To: robh@kernel.org, broonie@kernel.org, linus.walleij@linaro.org, lee.jones@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 v2 01/11] ASoC: dt-bindings: add dt bindings for WCD9340/WCD9341 audio codec Date: Fri, 18 Oct 2019 01:18:39 +0100 Message-Id: <20191018001849.27205-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191018001849.27205-1-srinivas.kandagatla@linaro.org> References: <20191018001849.27205-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 | 169 ++++++++++++++++++ 1 file changed, 169 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,wcd934x.yaml diff --git a/Documentation/devicetree/bindings/sound/qcom,wcd934x.yaml b/Documentation/devicetree/bindings/sound/qcom,wcd934x.yaml new file mode 100644 index 000000000000..299d6b96c339 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,wcd934x.yaml @@ -0,0 +1,169 @@ +# 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 + 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-millivolt: + description: Voltage betwee 1800mv-2850mv for micbias1 output + allOf: + - $ref: /schemas/types.yaml#/definitions/uint32 + + qcom,micbias2-millivolt: + description: Voltage betwee 1800mv-2850mv for micbias2 output + allOf: + - $ref: /schemas/types.yaml#/definitions/uint32 + + qcom,micbias3-millivolt: + description: Voltage betwee 1800mv-2850mv for micbias3 output + allOf: + - $ref: /schemas/types.yaml#/definitions/uint32 + + qcom,micbias4-millivolt: + description: Voltage betwee 1800mv-2850mv for micbias4 output + allOf: + - $ref: /schemas/types.yaml#/definitions/uint32 + + 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 there 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-millivolt + - qcom,micbias2-millivolt + - qcom,micbias3-millivolt + - qcom,micbias4-millivolt + - "#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-millivolt = <1800>; + qcom,micbias2-millivolt = <1800>; + qcom,micbias3-millivolt = <1800>; + qcom,micbias4-millivolt = <1800>; + clock-names = "extclk"; + clocks = <&rpmhcc 2>; + + #address-cells = <1>; + #size-cells = <1>; + + wcdpinctrl@42 { + reg = <0x42 0x2>; + }; + }; + +... -- 2.21.0