Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp203510imn; Tue, 2 Aug 2022 23:58:03 -0700 (PDT) X-Google-Smtp-Source: AA6agR7MEW8gTk1tyOaQtFoB1cXd2crPs445G2BGVfc1YvWQJcywQiwdd+UI1XfJ1u3YctUO/Kpm X-Received: by 2002:a17:903:245:b0:16b:9b6d:20bc with SMTP id j5-20020a170903024500b0016b9b6d20bcmr24298041plh.14.1659509883064; Tue, 02 Aug 2022 23:58:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659509883; cv=none; d=google.com; s=arc-20160816; b=X8YUI73GixGs1qF4ziKddo0Gy4qrBBINWvytPCNaD8yMDAkPY69UNiL1EBWrONmy+e PKl4inrO3A4FHVZtUTqzNhCGdLrwi7DzRazRS7oYWfIu2WIq6Pio1l/G0KD5KN71sS28 4KVbem/T15kLMjtHYy66q0Ja2fj1Sr7KydUeKDUjm0ol4W0KrlhbOlHHMgPZR/FfgQ0n gmOqmuYQVADX7ozCDZyTRvYgyPF8no8gNvvNi28s6X7d/C38S/+w5iP074N/iRNtanLO uH6NsXMeXl1CUfDMFfScCsL/gWLc2kcd//4YFFL1QeMlzsXKjaEzh/8n2EIhmqmlE1J1 GGqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=h2xnvN3rkMZcaAStopByq5FB4LTsZ0396BsEMoxv4z4=; b=gpJXY6u+c3dmhczUtMwq961rX9N3rQfpQiIxSjrh1W+qRAO3/cnZfvYYsZXVBitKjB 6c0j4I1FaoU+2U/hRV8Ugn712kp/PO5PJ+ZS4TtU+Vk7Hb+3lkZULyhTpcfFO+H1BW8A QAx/Qe9YhHZeb6imXGAYM4+g9NbLYbsXZokfLXHSkPVP82Cjq3uldtLyey27iMR8iHSI mMQaOREsfzx5VCB7OqHr7bsFj1mRdQk7jbXAdigF5kUFZD65hTsI1on70DAMfVCjqd6w l0YkxqIyt3jLTRTW9mWzFbBxo/CjuPsNDtfAQyjgUdqnDGSbcRdYArPZPmIspNRQLS/Y 0woQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ovnV16wU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j69-20020a638048000000b0041c664f637esi4215318pgd.726.2022.08.02.23.57.48; Tue, 02 Aug 2022 23:58:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ovnV16wU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S236823AbiHCG30 (ORCPT + 99 others); Wed, 3 Aug 2022 02:29:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232999AbiHCG3Y (ORCPT ); Wed, 3 Aug 2022 02:29:24 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C224D3AB2B for ; Tue, 2 Aug 2022 23:29:22 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id t22so25035105lfg.1 for ; Tue, 02 Aug 2022 23:29:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=h2xnvN3rkMZcaAStopByq5FB4LTsZ0396BsEMoxv4z4=; b=ovnV16wU7LJzAaYtctJMZD4GwKkovlVo2PAUjCPHLzzbcPBQ3vfsc/rYVQ3qYyXbs6 4oic7KpRvY672hnjYP0yEarW1MhOUVroEGQWcnNFNkhuMj2XNfrUYDtAIaO5/O5asuNf 5xVAzXgqwzQJtRFAOfcWlBp+KXRPpFWR6Lu0l1EtM+mqzOq2R0fBUfOtyac/zm5VoxJy zt/xnq51popheJe4gkNWo1NmGZUMRkgZqPw8jDQRP10gs+Qt1yX3PkYDF8neNrBQhsBK bvlflAZ4ZTbAo6JL+Td9X+iJBjQLU3Tb1O83fm6oSl9rx/v4xyAGR/13Penrf1Lp2W97 eElw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=h2xnvN3rkMZcaAStopByq5FB4LTsZ0396BsEMoxv4z4=; b=NI2OBwzv6iOcnI5b5YRWjNR+qrxV5j3IRlpGLUTqAuVcSNAZCkbsM7qmhyGQmVPG7n 7WrHh0vJbAC9CRj0sslCTyCW5X36zb4tco4jPVcYx1Z4Sjx1gDjjju8lkSOFB4B9v14w PIWf85WW8VIi0lnKZRWgh9DDBtbgkB+QBgvC8RZzQAkEPdTrhYoWNNPH2rsGaF3BgzA5 QAXCKQkko2AEQP9vcXkiFwASmufyOm55NLMELQlexnXzeUMAZ2ameQF9ekm2jLN0qbdR TjWebd4jVKOSUgbmNsXWZaNTq9Yp8aF5jzvaE+M0gbqHGgzYz0fpumhF7Dju88yGiw2h +ZFA== X-Gm-Message-State: AJIora8Mx3T8nwxGmcDSkjqCpck2Q82IXq2NeiZjWOAl8l9W/NMWd9Gk XKfE987Ve5HY1R/ln9ZoqfPxEg== X-Received: by 2002:a05:6512:2185:b0:482:b4f0:f23 with SMTP id b5-20020a056512218500b00482b4f00f23mr9445294lft.31.1659508161102; Tue, 02 Aug 2022 23:29:21 -0700 (PDT) Received: from [192.168.1.6] ([213.161.169.44]) by smtp.gmail.com with ESMTPSA id m2-20020a056512358200b0048afd0c496fsm898381lfr.156.2022.08.02.23.29.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 Aug 2022 23:29:20 -0700 (PDT) Message-ID: <7effc23b-b61a-9887-3875-d102b8fa270e@linaro.org> Date: Wed, 3 Aug 2022 08:29:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH] dt-bindings: sound: tlv320aic3x: Convert to dtschema Content-Language: en-US To: Jai Luthra , Rob Herring , Krzysztof Kozlowski Cc: Liam Girdwood , Mark Brown , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220802214811.29033-1-j-luthra@ti.com> From: Krzysztof Kozlowski In-Reply-To: <20220802214811.29033-1-j-luthra@ti.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/08/2022 23:48, Jai Luthra wrote: > Convert bindings for TI's TLV320AIC3x audio codecs to dtschema. > > Signed-off-by: Jai Luthra > --- Thank you for your patch. There is something to discuss/improve. > diff --git a/Documentation/devicetree/bindings/sound/tlv320aic3x.yaml b/Documentation/devicetree/bindings/sound/tlv320aic3x.yaml > new file mode 100644 > index 000000000000..6efb1d459543 > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/tlv320aic3x.yaml > @@ -0,0 +1,145 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/sound/tlv320aic3x.yaml# Filename with vendor prefix, so ti,tlv320aic3x.yaml > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Texas Instruments TLV320AIC3x Codec Device Tree Bindings s/Device Tree Bindings// > + > +maintainers: > + - Jai Luthra > + > +properties: > + compatible: > + enum: > + - ti,tlv320aic3x > + - ti,tlv320aic33 > + - ti,tlv320aic3007 > + - ti,tlv320aic3106 > + - ti,tlv320aic3104 > + > + reg: > + maxItems: 1 > + description: i2c slave address Skip description. > + > + reset-gpios: > + maxItems: 1 > + description: > + GPIO specification for the active low RESET input. > + > + ai3x-gpio-func: > + description: AIC3X_GPIO1 & AIC3X_GPIO2 Functionality > + $ref: /schemas/types.yaml#/definitions/uint32 > + minItems: 3 uint32-array. Old bindings say about two items only. Mention any changes to binding in cover letter. > + maxItems: 3 > + You lost gpio-reset property. Also not explained in commit msg. > + ai3x-micbias-vg: > + description: MicBias required voltage. If node is omitted then MicBias is powered down. > + $ref: /schemas/types.yaml#/definitions/uint32 > + oneOf: > + - const: 1 > + description: MICBIAS output is powered to 2.0V. > + - const: 2 > + description: MICBIAS output is powered to 2.5V. > + - const: 3 > + description: MICBIAS output is connected to AVDD. > + > + ai3x-ocmv: > + description: Output Common-Mode Voltage selection. > + $ref: /schemas/types.yaml#/definitions/uint32 > + oneOf: > + - const: 0 > + description: 1.35V > + - const: 1 > + description: 1.5V > + - const: 2 > + description: 1.65V > + - const: 3 > + description: 1.8V > + > + AVDD-supply: > + description: Analog DAC voltage. New properties? > + > + IOVDD-supply: > + description: I/O voltage. > + > + DRVDD-supply: > + description: ADC analog and output driver voltage. > + > + DVDD-supply: > + description: Digital core voltage. > + > + '#sound-dai-cells': > + const: 0 > + > +required: > + - compatible > + - reg > + > +#The pins can be used in referring sound node's audio-routing property. > + > +#CODEC output pins: > + # LLOUT > + # RLOUT > + # MONO_LOUT > + # HPLOUT > + # HPROUT > + # HPLCOM > + # HPRCOM > + > +#CODEC input pins for TLV320AIC3104: > + # MIC2L > + # MIC2R > + # LINE1L > + # LINE1R > + > +#CODEC input pins for other compatible codecs: > + # MIC3L > + # MIC3R > + # LINE1L > + # LINE2L > + # LINE1R > + # LINE2R All this goes to top level description. Best regards, Krzysztof