Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4313946rwd; Sat, 17 Jun 2023 11:04:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4O+3CgSEel1W1ry50aWHCk1F8O0ZaLE+ey1zg2OyucFMCEpMJmaXKBS5FuxBas2/lIhRhC X-Received: by 2002:a92:c6c4:0:b0:341:c983:295 with SMTP id v4-20020a92c6c4000000b00341c9830295mr2488833ilm.21.1687025040021; Sat, 17 Jun 2023 11:04:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687025039; cv=none; d=google.com; s=arc-20160816; b=G8yvULL6Ktj80eREbMQX1cexR1VSCxnG9znRkqcXyDRxTNpJBdCUNN5dWcdXtDD33+ PEhZnETC3JVXoCG2InzfR2Fl4a5H4vdHev6gXj26sUUN9j7J+pSW2dcE5/8z6lpQUyV2 nQu+t1UhJYgpH90qz2y33QaJrDFixjGGJBaETiBk9dmnjrcR2HyZ93TkHhVLZls0VtZ+ xervVtfjjptKPhg6OfxCna9yiAJKpPcJSJJDSsMU7rq67wFF+Qls/SdhjfycIubIXluj t4i6ZoP3CrFGwhkcIupOMsAbF0/4XGOfuotrHy8WO3BnBKv04EOR8oZOmszH4vGxjklm IHJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=nkq5WF2vSuGI3PfJXffZ9cAI3TYmMYCyc3Ra6Z1Ve6o=; b=M74mc1yl3EoZwnZrRkxRPpjgnev7PBCTLSW3xXkmNJIE00mxoox8+fKS0yf5yhJw+o V9Zn4MhQq5O4njUMTfK0K+kcPXQbCzMP1pHWZLF8dc+IBI+Za2xOcmXQP+mF8heH18FQ PAN90vphvL+8E6qiVm5Pu3HPVpsHfhk4WHvhHhfd0yunONP8VEVUiFAlGHS/b0LcSTcm dToHZEtjio31yJokJXj3d3pu2Ta0Srq8W1cLd/7fbj06Dy0VixuhqncBH/VELbS+52DR eaY0t/cIpMm2xiHCh1ZmlFB7jFUO07ZAEoH+PCUrx9i/6SVFpf3jz/A9uKpp4+yhF09/ qoEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Gk6cX/rJ"; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp14-20020a17090b190e00b0025bf0c44970si4217219pjb.8.2023.06.17.11.03.22; Sat, 17 Jun 2023 11:03:59 -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=@kernel.org header.s=k20201202 header.b="Gk6cX/rJ"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233321AbjFQRho (ORCPT + 99 others); Sat, 17 Jun 2023 13:37:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229745AbjFQRhm (ORCPT ); Sat, 17 Jun 2023 13:37:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36AF8CF; Sat, 17 Jun 2023 10:37:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B5F5D60C36; Sat, 17 Jun 2023 17:37:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6103EC433C0; Sat, 17 Jun 2023 17:37:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687023460; bh=yjWqLCRuNvNrNClVvawWz5iSG0BNNGOBbd1yVAVgv2E=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Gk6cX/rJ1Ri3cwZfCCTHAHjNyKUq1gbgys78oMyIELRnFGfeyX9pcMC1ImDIksVoD 1K2QvyGUdwHS6OK9VUKdSsgnwJZTEiv3Wa/QFyEUf1CnA3J0curCqLE0EV13fbM+6S DDiO4qh6Ju9GoQ/8wbSd3yECsiSzgnrBmhukBE6AjqlYOEJRYQiLTqkxWKL7XdKPEF 2KwZlk6NEZdbjc+o0vhvVIIVQTGX6lY4yfQJBh5XWQ/6B5jzyVtJ86vtBjo97nQXIj 8KsLWD0oHiZxX+3f26gIMXOfzmdYTpkjIUQLy7FzWwbD42m2Mznh9fIUMMw9DgSVJG hSgpQYQsnHTRw== Date: Sat, 17 Jun 2023 18:37:31 +0100 From: Jonathan Cameron To: Herve Codina Cc: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lars-Peter Clausen , Jaroslav Kysela , Takashi Iwai , Kuninori Morimoto , Andy Shevchenko , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Christophe Leroy , Thomas Petazzoni Subject: Re: [PATCH v5 01/13] ASoC: dt-bindings: Add audio-iio-aux Message-ID: <20230617183731.31e9b3c4@jic23-huawei> In-Reply-To: <20230615152631.224529-2-herve.codina@bootlin.com> References: <20230615152631.224529-1-herve.codina@bootlin.com> <20230615152631.224529-2-herve.codina@bootlin.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 Thu, 15 Jun 2023 17:26:19 +0200 Herve Codina wrote: > Industrial I/O devices can be present in the audio path. > These devices needs to be viewed as audio components in order to be > fully integrated in the audio path. > > audio-iio-aux allows to consider these Industrial I/O devices as > auxliary audio devices. > > Signed-off-by: Herve Codina LGTM Reviewed-by: Jonathan Cameron > --- > .../bindings/sound/audio-iio-aux.yaml | 64 +++++++++++++++++++ > 1 file changed, 64 insertions(+) > create mode 100644 Documentation/devicetree/bindings/sound/audio-iio-aux.yaml > > diff --git a/Documentation/devicetree/bindings/sound/audio-iio-aux.yaml b/Documentation/devicetree/bindings/sound/audio-iio-aux.yaml > new file mode 100644 > index 000000000000..d3cc1ea4a175 > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/audio-iio-aux.yaml > @@ -0,0 +1,64 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/sound/audio-iio-aux.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Audio IIO auxiliary > + > +maintainers: > + - Herve Codina > + > +description: > + Auxiliary device based on Industrial I/O device channels > + > +allOf: > + - $ref: dai-common.yaml# > + > +properties: > + compatible: > + const: audio-iio-aux > + > + io-channels: > + description: > + Industrial I/O device channels used > + > + io-channel-names: > + description: > + Industrial I/O channel names related to io-channels. > + These names are used to provides sound controls, widgets and routes names. > + > + snd-control-invert-range: > + $ref: /schemas/types.yaml#/definitions/uint32-array > + description: | > + A list of 0/1 flags defining whether or not the related channel is > + inverted > + items: > + enum: [0, 1] > + default: 0 > + description: | > + Invert the sound control value compared to the IIO channel raw value. > + - 1: The related sound control value is inverted meaning that the > + minimum sound control value correspond to the maximum IIO channel > + raw value and the maximum sound control value correspond to the > + minimum IIO channel raw value. > + - 0: The related sound control value is not inverted meaning that the > + minimum (resp maximum) sound control value correspond to the > + minimum (resp maximum) IIO channel raw value. > + > +required: > + - compatible > + - io-channels > + - io-channel-names > + > +unevaluatedProperties: false > + > +examples: > + - | > + iio-aux { > + compatible = "audio-iio-aux"; > + io-channels = <&iio 0>, <&iio 1>, <&iio 2>, <&iio 3>; > + io-channel-names = "CH0", "CH1", "CH2", "CH3"; > + /* Invert CH1 and CH2 */ > + snd-control-invert-range = <0 1 1 0>; > + };