Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp700246pxb; Thu, 2 Sep 2021 12:59:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSYB1fNDuQNCODT5lZHd5AooZwov1XF+D1w7RE9SC+dg9cR4ztIKxZPfcFJhy+8ksg1n0g X-Received: by 2002:a17:907:76e5:: with SMTP id kg5mr5793869ejc.474.1630612780498; Thu, 02 Sep 2021 12:59:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630612780; cv=none; d=google.com; s=arc-20160816; b=kZE/XmUFzGvLadl/M9yMRYsASszyfD1TrUN+8bNu7N7w0SDBIjYe6ZHwJ3tN84Ni8V iWGO33HO7eEJkty8PlKSncQrFG79tWhrpR2x27GY++EHNhl/kr1ux+MWtA0zuc+N4Qi8 9YHTwZuMGejcXCHfb5UK6qjzqvPp4cbqLvZ+dk7KmKjBgCuHuWjcgrj75jTywQ6jWgFY Hslf+woz0b54z8hjr42AaT3PtXGGKPhXXcTtcd47UBObY6Deu6JVsImZBpXHl16ojLxO csNFYUe2pgJrL4Hc3De4bngwS2XEdB27ExNzE8XoM7mHYBHWjSCWwY+94DvHFK9XBiBa wiqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date:subject :cc:to:from:user-agent:references:dkim-signature; bh=a67C6dNL5nIJT92Nus3ptLY8+mQH3bjCFrhDFLwmJFM=; b=Y0U+/+1vNcul6Npx7yzBChAp80pi9M4qaVUAhvB7eyiIpOZK95Ih9U5NpK0yEIBM0C 2bnRRNPgAopniURokUzGZrrlL1+uhLwjcgQrQNGkn7NIfxsvVi373eG9Lr+c6l2bKKL/ tNXet9Wo9PyTiCWzGYcAbUAIz4DZz2AKItdRe//yOkfpO7cDHJH8fRUien6uNIh6NFr9 L1CeT5tLdfdv+TWDbUkNe+37cwzzgIBhx2lGADheNEgoMM6JJGWcvoE3Xj6PixCQvLDL hek0XXaBwWDSrLqYJZbH+yZLSCKKH5DjNGkAHQ3eD7s0UTy3RjAhNMc8IG4bysGjtlBy 8zDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=oSqbiZE3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ds17si804769ejc.371.2021.09.02.12.59.17; Thu, 02 Sep 2021 12:59:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=oSqbiZE3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344716AbhIBMvZ (ORCPT + 99 others); Thu, 2 Sep 2021 08:51:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234290AbhIBMvW (ORCPT ); Thu, 2 Sep 2021 08:51:22 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B185CC061575 for ; Thu, 2 Sep 2021 05:50:23 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id l7-20020a1c2507000000b002e6be5d86b3so1281493wml.3 for ; Thu, 02 Sep 2021 05:50:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=a67C6dNL5nIJT92Nus3ptLY8+mQH3bjCFrhDFLwmJFM=; b=oSqbiZE3H987kD4hq6o9Ds4oDd3rs+cX4AFxRA6Ef6dJ8+NceyxkAikOSVSziB+BjE bunyHly9lgp52gmixcJFwTO+qIhQwz+mO5cB70pOD/wE/qSr4jQsEwviDcn29O3ZRbGm 2smfKt0cLilFMBrhxz9oLoBT9Vf+T/W2Q75wTVKQbZbDjvCkdCKJnQH5Ys4+7AVVSNoY qkGXeuuHloTvVyfmtruFOxY7d7s1qx8iPFbYIitgZdO6la4enQhKVkcSHd+s6l8G4p+i 5YliV3McHq4EwYehkeoh6Q/2sdAJtCyNfOSG/Wt95LvbeIXPPDy0piWpYHJGc3SRdTxv r1bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version; bh=a67C6dNL5nIJT92Nus3ptLY8+mQH3bjCFrhDFLwmJFM=; b=TwunNOsXb+/I7gzpBzJ3JWWbraqTIrPPOlXPLJQ6HwMPHQG3QB+0fpkPS1d0tdjIQ+ hAg1MBt0sQOgT8Ew4OuTI4QTuRbk3/YWrk7vF0+3vdu/xGJ4rUkw6at21uIVjYzjTMtY EnkTUlNlZAd9wZ723GGkBShZRUOfb57j16A8kCfy1yNPUcHpQWBIHSi23yzrwm/wgOu6 HCDiCACz8b4KYa6YeXdheymxpKW9yV9km7WAxBItijHLbQJkiQn6qxRo+Hc370Ghmb4e XXxGs8PshvSgui16xiJUz/TfHJJSlyyCq5L/INlgZQ+FU40sYXW2M/lwq6pTvBUnF/B3 N4gA== X-Gm-Message-State: AOAM530sik6Z9atDj1HbZp2MEPNicBAdWNK9HefhaKi5D2IdoBkRcTP7 toet9zMXB5dg3/L0BBEZvfJ/lw== X-Received: by 2002:a1c:98d8:: with SMTP id a207mr2918351wme.16.1630587022216; Thu, 02 Sep 2021 05:50:22 -0700 (PDT) Received: from localhost (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id q17sm1728988wrr.91.2021.09.02.05.50.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Sep 2021 05:50:21 -0700 (PDT) References: <1630562033-13231-1-git-send-email-spujar@nvidia.com> <1630562033-13231-2-git-send-email-spujar@nvidia.com> User-agent: mu4e 1.6.5; emacs 27.1 From: Jerome Brunet To: Sameer Pujar , broonie@kernel.org, lgirdwood@gmail.com, robh+dt@kernel.org, thierry.reding@gmail.com Cc: jonathanh@nvidia.com, stephan@gerhold.net, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org Subject: Re: [PATCH v2 1/3] ASoC: Add json-schema documentation for sound-name-prefix Date: Thu, 02 Sep 2021 14:47:27 +0200 In-reply-to: <1630562033-13231-2-git-send-email-spujar@nvidia.com> Message-ID: <1jpmtr5egi.fsf@starbuckisacylon.baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 02 Sep 2021 at 11:23, Sameer Pujar wrote: > The 'sound-name-prefix' is used to prepend suitable strings to a > component widgets or controls. This is helpful when there are > multiple instances of the same component. Add relevant json-schema > and is inspired from sound-name-prefix.txt documentation. > > Signed-off-by: Sameer Pujar > Cc: Jerome Brunet > Cc: Rob Herring > --- > .../devicetree/bindings/sound/name-prefix.yaml | 35 ++++++++++++++++++++++ > 1 file changed, 35 insertions(+) > create mode 100644 Documentation/devicetree/bindings/sound/name-prefix.yaml > > diff --git a/Documentation/devicetree/bindings/sound/name-prefix.yaml b/Documentation/devicetree/bindings/sound/name-prefix.yaml > new file mode 100644 > index 00000000..b58cc9e > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/name-prefix.yaml > @@ -0,0 +1,35 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/sound/name-prefix.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Component sound name prefix > + > +maintainers: > + - Jerome Brunet Since this file is referenced using "AllOf", am I going to be listed as maintainer of all the drivers using the property below ? I'm not sure I want that ... :P Maybe it would be better to drop the above ? > + > +properties: > + sound-name-prefix: > + $ref: /schemas/types.yaml#/definitions/string > + description: | > + Card implementing the routing property define the connection between > + audio components as list of string pair. Component using the same > + sink/source names may use this property to prepend the name of their > + sinks/sources with the provided string. > + > +additionalProperties: true > + > +examples: > + - | > + analog-amplifier@0 { > + compatible = "simple-audio-amplifier"; > + sound-name-prefix = "FRONT"; > + }; > + > + analog-amplifier@1 { > + compatible = "simple-audio-amplifier"; > + sound-name-prefix = "BACK"; > + }; > + > +...