Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3754115ybg; Mon, 28 Oct 2019 18:48:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqymUQGoU3ar0TLeaaYZ4c/L6JhPEV4NM9cN3BCoLI4duVyq+rQlRpu6BzeNxyA/Qbz8VaSj X-Received: by 2002:a50:b6cb:: with SMTP id f11mr22986245ede.299.1572313733957; Mon, 28 Oct 2019 18:48:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572313733; cv=none; d=google.com; s=arc-20160816; b=Q1D3K4rcHvz3UyegdugKCkrR6ESOM/97h9mZWWd3NCfJdQigO+2khX+jmWJAISk/Wo WkGS66fuCLT3p/rs251Y4pZOT5KCvEsXRAnhZ5BN8P3mnQLmL3+4xRvAp1MzJFrP57a3 HFq1hr/N6a+A4hwcC+5yY/RzNgfL5CrwbmvcoiBXdoaZc9HHTa+wzIB6lBqVSry1RgmJ oN2p5/GOUQdxU6hIw4KoPxaGIe8YD8Het2Jg1Cfo25vrnvJHoVos3Z7jL2wxjrd0cqL7 mWKpD3WlgUs+8PFyZbIKRKMEdojBPgVEP/ZLbnMcHQoTGAL2kLeXm03rcODwk5R+BZIJ In5Q== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=w/WLt7O2taIP8YM7ktvX+R/TNl8ElnwnfMYK27iQOaI=; b=SVDs2edzXBx2jK7kXx3d4Q4icJXXoVzS0F9xhYBBePERyr+sSBtFnrthTdUsCp3Er3 8skz0zqdDzrsH30GM6avNKaU794H3gaWykiRy0OJ1t840UobupnWVAsL5RUt30wQCo7s rCPdW+vgSfxQtBQ6AVSltgGzV5JERS7m7vi8cmE0jUOSqT4TAuCl+jnMn1qWMk1pOhfc LxY79/Ov59WUa9rYykpvZIcMnwIYybOXuFF/gcgI/0C1ghgVH313E9D8rDKZz3ExQP39 l050pO1zEVory1K5WHaDGpGLZEyMYbi/J8vqVTpYxDtsGBoz7RZ75SqxCn051QTmQ/PY gi6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KztUAi13; 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 j18si9384584eda.278.2019.10.28.18.48.30; Mon, 28 Oct 2019 18:48:53 -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=KztUAi13; 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 S2389157AbfJ1Mkr (ORCPT + 99 others); Mon, 28 Oct 2019 08:40:47 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:52571 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728199AbfJ1Mkr (ORCPT ); Mon, 28 Oct 2019 08:40:47 -0400 Received: by mail-wm1-f68.google.com with SMTP id p21so9288113wmg.2 for ; Mon, 28 Oct 2019 05:40:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=w/WLt7O2taIP8YM7ktvX+R/TNl8ElnwnfMYK27iQOaI=; b=KztUAi13eLRxuTdBVRwh7Ha/+XqKvFTVZ7r97D5Dcn4OevqhKWCHl5VqQAcFcWPPz5 gRWtBZn7ZtZo9GqySCYa75GMSvfkr8pVj7Sk8XLmnzpCRgGU/6ldH1Ld9miosbcfymoL iSHcyrDdLOW1eiDY7QIRwDy8Qag4soGDfQcrvA7p0ieaAd913vRGJ76VUyt6U6LnKvyn HW7aPzXto6UBTxD06JYTFN/ESAsbHhAMhbmTN6gLC5bWShWAl57tdoTJAbP6YTDQi+BM cMb1ytfnw0y60iLw0aUCqagyLjzXkFyHlbsM53OeHqwDEFqS8PsziTYdhshNW9FtJ+q0 LTWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=w/WLt7O2taIP8YM7ktvX+R/TNl8ElnwnfMYK27iQOaI=; b=I5AkI0ZURLRMcawQLmvrAsUrHuEfGs0oPCZEtbTes80L4VW6he8BRy7+RLigfaFrHJ 7u/3sG+ffg/h3EX1jq1MZiVfwwyX1a63sJWNMBPhmfzp1Z9v4hX1qzhjH4wKaOGm6dKR hFnuYfwVD3HUz14lMGdqKeod6rhGjmzHqX7FjU7oxxNm0ruanF/or+/EYufU0Ya9EA8t KgWMbEK/8Ir2uISVGVormkzZ4XKja7XQQ5Ctv3R8o+EX+kVpTB18GdmUKTcU05NBNt3v QHqURf9U/u3EgmSOGIDjYcOzJV41A44Tu5hVW+V/qkwMlaTbUYbZJBV3/h7QqAb1GhNG glQg== X-Gm-Message-State: APjAAAUhVZSkY3S/FweSoHSm9fHv/LTOJISmx0h+yaZgTcxZNkRrfvk9 5zdNyBuJonAw4YpdrdYAPhgKfQ== X-Received: by 2002:a05:600c:22c4:: with SMTP id 4mr5720906wmg.177.1572266444055; Mon, 28 Oct 2019 05:40:44 -0700 (PDT) Received: from [192.168.86.34] (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.googlemail.com with ESMTPSA id f204sm15333062wmf.32.2019.10.28.05.40.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Oct 2019 05:40:43 -0700 (PDT) Subject: Re: [PATCH v2 01/11] ASoC: dt-bindings: add dt bindings for WCD9340/WCD9341 audio codec To: Rob Herring 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 References: <20191018001849.27205-1-srinivas.kandagatla@linaro.org> <20191018001849.27205-2-srinivas.kandagatla@linaro.org> <20191025204338.GA25892@bogus> From: Srinivas Kandagatla Message-ID: <90b2d83b-f2b2-3a5d-4deb-589f4b48b208@linaro.org> Date: Mon, 28 Oct 2019 12:40:42 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20191025204338.GA25892@bogus> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks Rob for the review. On 25/10/2019 21:43, Rob Herring wrote: > 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... > Its Phandle. something like this is okay? slim-ifc-dev: $ref: '/schemas/types.yaml#/definitions/phandle-array' description: SLIMBus Interface device phandle >> + 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... > Yep, will fix this and also move to standard unit microvolt > 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/ will fix this in next version! thanks, srini