From patchwork Fri Jul 13 12:50:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 943543 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="CRpjD5IQ"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41Rt2v5s0Qz9ryt for ; Fri, 13 Jul 2018 22:51:03 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730595AbeGMNFe (ORCPT ); Fri, 13 Jul 2018 09:05:34 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:52905 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729963AbeGMNFW (ORCPT ); Fri, 13 Jul 2018 09:05:22 -0400 Received: by mail-wm0-f68.google.com with SMTP id o11-v6so2788280wmh.2 for ; Fri, 13 Jul 2018 05:50:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0/O/QzpvEbTCUwnA7IVGQZzKoegMixT19m9IgtOsXbo=; b=CRpjD5IQIgQeMNEFbBAb8aJFDduT1DrI2+VtxQnh8AM863q0O+5Y9zqPZFYc8sZc8H oQwfoHSlc0BQiuHqIjcS3353bk+hNauCTGE5v894N57/btRg/cTA/s886pBCOzczcus2 /OScr5twc5jnVCdeGJPF+AHHZav2lnGBCX0IS103qsxrg6Gk7JlpahIoHgYg7WLoho3q ffG0JAkheVpigAMZUHtD1kruV6Qe93UcEadygEKNLpvIWrWMIZRv8wmuKDotgT/fZfvC 1LC77wYVWmSJ5mldnxrok1+OSYM6Ul/fR7vyMJjqU9k8SBc7GGuBrh9QhOK9BMJ+iOK5 f20w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0/O/QzpvEbTCUwnA7IVGQZzKoegMixT19m9IgtOsXbo=; b=OcKiPcBk+2dy8Jnht2Qopdg1vrx8vftx/65CJZ0qpqoiM74xeIZNNNb5Rb19gUYXDP 8BsjhsdBsYvVaTQIVKqM/Umg0IV6fAvsQaeluFqVd7FW7efFOt7e8MYyKiJw4ZePjZ0m mC+Sx3WkPDfvenX09lIfLqiQEkOjMKRfeasnE2h1bNabJEJ/h5K4+Qcvt7BObKrxDjfu Abs7RfLY6pSA8E5OFXmq2zVsbU1FTtIIs7lMd4WvuNQzkIoMg64NHnP4cCZio+rmQ1b3 HXuBlN8P3A3sr7ZmR5Rv7KdimUhbRIpiQQNZWBhYZPO4tvOAC2ZqsW93S7HPk5UDnBA3 c1BQ== X-Gm-Message-State: AOUpUlGKmGLqqSUugihJSYsD0OWa9vrr0G0FslBkoontffrzx1QXaUkC mjOrLEIAg/LrGO41TNPEmvS+cg== X-Google-Smtp-Source: AAOMgpdZ8/o9HNiwHhuAEm5UBveg8+MZLI33sapLTWVH9rdfTyCJTuzH8+tQCSioYY35qBfJTtWXBA== X-Received: by 2002:a1c:c241:: with SMTP id s62-v6mr4073238wmf.146.1531486249399; Fri, 13 Jul 2018 05:50:49 -0700 (PDT) Received: from boomer.baylibre.local ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id f76-v6sm8541524wme.30.2018.07.13.05.50.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Jul 2018 05:50:48 -0700 (PDT) From: Jerome Brunet To: Mark Brown , Liam Girdwood Cc: Jerome Brunet , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] ASoC: add DT documentation for the sound-name-prefix property Date: Fri, 13 Jul 2018 14:50:42 +0200 Message-Id: <20180713125043.13242-2-jbrunet@baylibre.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180713125043.13242-1-jbrunet@baylibre.com> References: <20180713125043.13242-1-jbrunet@baylibre.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Signed-off-by: Jerome Brunet --- .../devicetree/bindings/sound/name-prefix.txt | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/name-prefix.txt diff --git a/Documentation/devicetree/bindings/sound/name-prefix.txt b/Documentation/devicetree/bindings/sound/name-prefix.txt new file mode 100644 index 000000000000..645775908657 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/name-prefix.txt @@ -0,0 +1,24 @@ +Name prefix: + +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 the name prefix property to prepend the +name of their sinks/sources with the provided string. + +Optional name prefix property: +- sound-name-prefix : string using as prefix for the sink/source names of + the component. + +Example: Two instances of the same component. + +amp0: analog-amplifier@0 { + compatible = "simple-audio-amplifier"; + enable-gpios = <&gpio GPIOH_3 0>; + sound-name-prefix = "FRONT"; +}; + +amp1: analog-amplifier@1 { + compatible = "simple-audio-amplifier"; + enable-gpios = <&gpio GPIOH_4 0>; + sound-name-prefix = "BACK"; +};