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: 141884 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp764510ljj; Fri, 13 Jul 2018 05:50:54 -0700 (PDT) X-Google-Smtp-Source: AAOMgpezSfb0K6D9+V37D/FMQ/KLM3WjZmiS/6UkhH0D+gaVmGBIiDBWSTWgtGcSG5NTYox6kIu7 X-Received: by 2002:a62:5dd7:: with SMTP id n84-v6mr7046793pfj.68.1531486254762; Fri, 13 Jul 2018 05:50:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531486254; cv=none; d=google.com; s=arc-20160816; b=umBc2NrZ4EFmxXHPQJF2kjsH+NE4uYxg8WclrGnk+pI/9LtzPSXkCFowXjDmNP6P7A 71+g8T1E3kcXkI4AmvHXe4no7P/a6EEa67mgM8uPnApUcJnG1r6uWTfOca/0hrfzcHKH 8Om7PkwyLyT3X6zIwZQOHL6I3htxT4tF90TKPBlJ38pBEGc6kBeyPRfvvkqZpMp3O/+b bsTi6HwLMgGtM+LKNISlN2GzD31T6gfvDDtIGVWjnGruWzw6ihwV7QL5v2eGw2nJblUG feeHZYw62qSp7qUHqEmFz9ghPRdGQfDZEwSMcr1vcjklzSZgOmh9NDD6oSD+ztVQuc5N 4rJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=0/O/QzpvEbTCUwnA7IVGQZzKoegMixT19m9IgtOsXbo=; b=gAz60YiOB/IqiMpx0hbERXDmTBplOo4Uwqirgz8ggiXeRhlGxxmj+y87ZFyjT51FSl 8tGnP4GE9G6QXbjT6s2wxFlF3NVM2eAo7L3Ban/WqP9aN3G/7tF+1o68EbzvGfwnQiGH QEF3fnz/XpPHP++AuEQVYgdpQ0bMDpV21SKvJD+IQm8aej87E4i36K67xW6HZxxpq9+r 3uLIQokLtJhXPmHUTYNWAFGSZy2ep8Ztl4Re5BHDjc2arJI4djfzbTLOfMIWETED0hAh sQv+jhP+hVwXoMoLuvMgchDqnNXx5T0dSFCYvYuIQX2Kb9yh1iLDrdjMzZXLyIYHfv4z dpQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=CRpjD5IQ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p4-v6si5192883pgp.299.2018.07.13.05.50.54; Fri, 13 Jul 2018 05:50:54 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=CRpjD5IQ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731202AbeGMNFW (ORCPT + 31 others); Fri, 13 Jul 2018 09:05:22 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:53720 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729974AbeGMNFW (ORCPT ); Fri, 13 Jul 2018 09:05:22 -0400 Received: by mail-wm0-f65.google.com with SMTP id s9-v6so1395935wmh.3 for ; Fri, 13 Jul 2018 05:50:50 -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=bdL1WYpbOzPEfpS2OBL38LUWQAsrmO+6zTGuNShe9sdDMyh5YbxvlJOXobhLlBhzOw uM6Yi6a1e7l1guY7BL/M3Cz8ItdPFgnhb2OGB2AySVdYRdfbnhm+7OR+ZaKfKiPbtapR 0AEF/Z0etJ/fN4UR5stL+Y3g71pk8IK4mSbTiYsSOrt4HpE7tb/1FydRu29FfKfeS5cg jlpVc/Up45VI0fBAn0Nm2dE4BCZ8cqCOVrGFYGuiBP+QtuPGTQ/nydDXS+aOmcnZ4+pU L7yc1zOgwRpzh56Pi80oWDCvx84AvqFxDyXtZEyBSvfR/k31G6q+5bc6PPWi3A2DgBYN uBCA== X-Gm-Message-State: AOUpUlERQQahbgJFNWzVd2PehDscsPVwG9DMTycWyiKYBU4TT6g5jYB0 UqOIyfpxzpnZUQMdbAv9DeoX6Q== 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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 -- 2.14.4 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"; +};