Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4140319ybg; Fri, 25 Oct 2019 13:59:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7hY5y6UO28JQX9CZTAF7M3ld+y1wdEH93LAivFwXIlnGmM1//pGejQ11Zn8wkngFCKuOp X-Received: by 2002:a50:890c:: with SMTP id e12mr6303995ede.277.1572037173426; Fri, 25 Oct 2019 13:59:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572037173; cv=none; d=google.com; s=arc-20160816; b=oDyHbuNRDl89Bgwkqorbh/5HBZTIVtuTjGx0BKNpzH/QUyh9IMuvgtF2uyP5Wbeyl4 g514yVqBBS5MZ1xpo/mR3V2OTShI62bwOIhd9hzQIYuCiae2+gZMNY2S/h+fR0TTuVyx zRcVoH3p2HFgyqiwS/nT1SMln9zYzxalPDkf6dyC4dpcj2tfNX69aUTyg7+wBFMnzYpu iu9xt5IuA9i3xgTkXCVgS589FUb9xyvZg3s5eYIndtvCgbvJQS0nIGGZEGPx+KLds1dN 1q8WQUphGWzEQXi0AXM1kk2G/PNg0jgMJ07Dvku4Sfshw/fQclajffpWXDgrHrbudy8u /ObA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=mY7W9Qwoy2hYsmzd/xysMomRgnBoZZlGLUvtU9rwd9Y=; b=FN1pfqKLxeoIiSJGmsAaqSWoXwsWMK/xLkkRe+iwvS4lRNuC9Ge2GNEUk51v3N0vk8 fTpcppLTUyKGukaoNV+TWJHQ3gvrfQFl/FgcCNONRThNdpOeUek/p0kyDwXDfCz2nJpw MH1q95Lfgg4h+hE8bmu85srDwPpvWV7LwEctjRMrs6mkm8LVF9uRvvybNzXC9My/tvGZ nzfJMuW1AkM4kr12adTl5GlyT7uey5ltrEr0ZftAw8IITrKMpcX08rK5hIaGJt+w+VNi oGhZeYx0koSb2l7PHz99cbfnO7l3RB2J7r5NgGimbSiTpd14c04ZVVICjljyLPADsr02 bT6Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j52si1885422eda.438.2019.10.25.13.59.10; Fri, 25 Oct 2019 13:59:33 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728712AbfJYUnl (ORCPT + 99 others); Fri, 25 Oct 2019 16:43:41 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:36093 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726008AbfJYUnk (ORCPT ); Fri, 25 Oct 2019 16:43:40 -0400 Received: by mail-ot1-f67.google.com with SMTP id c7so2965183otm.3; Fri, 25 Oct 2019 13:43:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=mY7W9Qwoy2hYsmzd/xysMomRgnBoZZlGLUvtU9rwd9Y=; b=XEUUEBkvFzqf1YBNMq3MwFmqad2yZIMj7V6eHvCAtgO0HoGWwHxJQvnD+tFhfgq83c 4fB1yiRBs0pX8V6jvKYNJFrY64aEwNL2kdzV6Ou/R9WLFv96xr/Bx63OqtKYjNDghoXX LK5cxtZMlBqLcFrjEfvPPt/MIbHnOv6x2yOrj2Sn1KOmy/tkdjdNXjZoNOXk7VFMo9U3 QCNntRLKL98EGT4AeFB6NjfafWvn6KZnAVIXevb/3UUMgJE3+kSsa6ZX4DeNivrE5Kh5 Y7zYdRzOW6j8jxuP52DuDT0USGOxThXkH/fw5TlguPlld6kYR39wjo8kXgarKLH+h9D0 NRLQ== X-Gm-Message-State: APjAAAUmKa2pK8pYM779goNTWeRTc+7K3vnnWfecjvASBT92vKC+dd+2 dyY4qIFPkPIOeWX4dGvjhg== X-Received: by 2002:a9d:5a0b:: with SMTP id v11mr4410792oth.274.1572036219985; Fri, 25 Oct 2019 13:43:39 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id s6sm1056766otr.5.2019.10.25.13.43.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 13:43:39 -0700 (PDT) Date: Fri, 25 Oct 2019 15:43:38 -0500 From: Rob Herring To: Srinivas Kandagatla Cc: broonie@kernel.org, linus.walleij@linaro.org, lee.jones@linaro.org, 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 Subject: Re: [PATCH v2 01/11] ASoC: dt-bindings: add dt bindings for WCD9340/WCD9341 audio codec Message-ID: <20191025204338.GA25892@bogus> References: <20191018001849.27205-1-srinivas.kandagatla@linaro.org> <20191018001849.27205-2-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191018001849.27205-2-srinivas.kandagatla@linaro.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 18, 2019 at 01:18:39AM +0100, Srinivas Kandagatla wrote: > 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 phandle or... > + maxItems: 1 array? Needs a type if a phandle. > + > + 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: The standard unit is '-microvolt' > + description: Voltage betwee 1800mv-2850mv for micbias1 output typo... Sounds like constraints. > + allOf: > + - $ref: /schemas/types.yaml#/definitions/uint32 With standard units, you can drop the type. > + > + 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. s/there/their/ > + > + 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 >