From patchwork Wed Nov 21 05:17:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 1000924 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=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Dy0jdkr8"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 4309q55Ztnz9s7T for ; Wed, 21 Nov 2018 16:19:13 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726778AbeKUPwH (ORCPT ); Wed, 21 Nov 2018 10:52:07 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:45406 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726039AbeKUPwH (ORCPT ); Wed, 21 Nov 2018 10:52:07 -0500 Received: by mail-pl1-f195.google.com with SMTP id a14so3703976plm.12 for ; Tue, 20 Nov 2018 21:19:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=U/ecxyYo0n6CY8YI1T4/ulV+E6vBNhkLtS8DxQ0JX6c=; b=Dy0jdkr8MAzUdtto46ala2E02OgirWXI0l7jUDbXMVK6EFeoxvufEu2LZ57PYEGOdQ zF/wQvNwoHsw3iSkjOb2ZM0ZKybYh+X6aNYqgXYKpQtPJpxTenJgnTsnUZfT7iOtfHoM +bLw4JliDR+xGGTgn2Gtysdyog6fzUGXzNMo2j9XKPOHlOd8cZCM0KLJKvR67ew2iUE6 +KsovaHA3m0msTIXndoIzgMjf1jT/u4J0wrOFRD6zJlE36tYIXAW62vtjQG+6aVb+rh3 DVb/hqYhgoEE9TSV8HpnO4lVlj/bDQcmIF8qGP6HySlzyDpM78a5D3D5D9ZaVPJMZLBK m/sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=U/ecxyYo0n6CY8YI1T4/ulV+E6vBNhkLtS8DxQ0JX6c=; b=ezM2ZjauX+wdk3YqQDR44+4ocpwR6e06vanTf2QsfPVyQi/VsHNYBJETacMA3VG4oF 1Bd4kE5Bqrri1ZmTtgnj1VYzt4pwXd6v258gG1GWILXLmtqQiPnWJ5Zxs8XuwYfLkWNi pgq/rs3e7AzBeXSoSczfP/9i+OkHY/MdMjC/f+a/cwd4RnKN4LACPk01rSWB0pEmpYL4 7xHbUVr2w2NxxnXzyGBlaXT3MtbZuw/qIMXiDfp89YLU1riGOPsECEy3MWVcUOhcr1ID wnUGGtZow1sntE9N81CN7nPLU+LSRkv1hw5Dxq7H+F9IE6/FLLMu/e9Y7WTewnIok1ew Q8Qw== X-Gm-Message-State: AA+aEWbV9DCCKnh6qXzcnbvYD3Jjz+LW4O+w1rNQL8p5i6ORY8pk93M4 hJQg5ZbAw8LFcYnQuuyFqrQ= X-Google-Smtp-Source: AFSGD/XqspXnA00ZIO7oFNcCcH1UDIjx2c8aknPxXI3Fcon/UxtsfVXa8lWZAt4Cq5/X8z9ncROVkg== X-Received: by 2002:a63:8441:: with SMTP id k62mr4630698pgd.392.1542777552000; Tue, 20 Nov 2018 21:19:12 -0800 (PST) Received: from anarsoul-thinkpad.lan (216-71-193-140.dyn.novuscom.net. [216.71.193.140]) by smtp.gmail.com with ESMTPSA id v70sm8293074pfa.152.2018.11.20.21.19.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 21:19:11 -0800 (PST) From: Vasily Khoruzhick To: Liam Girdwood , Mark Brown , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Jaroslav Kysela , Takashi Iwai , Vasily Khoruzhick , Jerome Brunet , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v8 1/7] ASoC: dt-bindings: add regulator property to simple amplifier Date: Tue, 20 Nov 2018 21:17:46 -0800 Message-Id: <20181121051752.18387-2-anarsoul@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181121051752.18387-1-anarsoul@gmail.com> References: <20181121051752.18387-1-anarsoul@gmail.com> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Amplifier may have associated regulator, so add a property for it. Signed-off-by: Vasily Khoruzhick --- Documentation/devicetree/bindings/sound/simple-amplifier.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/simple-amplifier.txt b/Documentation/devicetree/bindings/sound/simple-amplifier.txt index 8647edae7af0..7182ac4f1e65 100644 --- a/Documentation/devicetree/bindings/sound/simple-amplifier.txt +++ b/Documentation/devicetree/bindings/sound/simple-amplifier.txt @@ -4,9 +4,14 @@ Required properties: - compatible : "dioo,dio2125" or "simple-audio-amplifier" - enable-gpios : the gpio connected to the enable pin of the simple amplifier +Optional properties: +- VCC-supply : power supply for the device, as covered + in Documentation/devicetree/bindings/regulator/regulator.txt + Example: amp: analog-amplifier { compatible = "simple-audio-amplifier"; + VCC-supply = <®ulator>; enable-gpios = <&gpio GPIOH_3 0>; }; From patchwork Wed Nov 21 05:17:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 1000925 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=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="cC/uelyK"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 4309q7260Yz9s4s for ; Wed, 21 Nov 2018 16:19:15 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726793AbeKUPwJ (ORCPT ); Wed, 21 Nov 2018 10:52:09 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:38417 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726039AbeKUPwJ (ORCPT ); Wed, 21 Nov 2018 10:52:09 -0500 Received: by mail-pl1-f195.google.com with SMTP id e5so3718236plb.5 for ; Tue, 20 Nov 2018 21:19:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=Yh79UqJpw6ISsU9NtgOEkuFRJJaDLzVAgqQuvg1cXIs=; b=cC/uelyKrhhgMJzOUw5pAQvXPPevpGpJqa7ofg9ZtVqZEmpnUfpDaKqquI8fMO2frl I4H0G6kbQkZK19x4TGMTd0X9W/X/pj2b0IcRTQGBzCfcEaBEZW4HK14npclI62ffBfqY /rVS0rgCWKi7hBfXKGLfgGG8SkzPJgz5R91zE/3FVpz7o0roZ8AuA8C0oS21bvd3xgQJ 4lu/J9tBQ9hO9gPYJbHK8/QWFzXuwx7lrlQCZVnUrlLv3F0zZh99UdtBXDy7U5UiVW7R ijAT/lJRsSgF/RVfZdAaZh7ap9en9QXR8WgI+5VAagMBxt5HEKZt6yNagnzwJtFF/+6l x9Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Yh79UqJpw6ISsU9NtgOEkuFRJJaDLzVAgqQuvg1cXIs=; b=oD1tZjmGMCcb2k7Jxye4NOraFmFPnVT1PQVrHTBXJri8tyO6KB+JyWY8u47nPeM5EU dKkzxsH9mywkef8yteX4GBO6O9DBX5o1x68+OS4B4royRdwpI/d/A7dbokt0vFWY0NC/ z8n8bVV/Su9OJ8tdxNynvtskCHLZ/8qmS8vCrDvHnH2qMZB+syhtdH0ZVkXd+asGKSSz 2dOKOiPnMwbf8cvimUTCeYJ1Ui5tDTSJAsIrcpXD59ITP/BEnb3uVGSmVGGr5cfBu/tB tHuyHdw3OqlOmCX6gqQXNfHyiFPpeoAgEXauuWDW4UuzACgqMCRbThjJr8AKXnH0guCD 6VDg== X-Gm-Message-State: AA+aEWZHy6XE8Uzkr2VQi4epL4bycBTetvql56jbZIZQxFtqXCzrfyOh XuQyqqJ8DPJLrm3vPSwbfJQ= X-Google-Smtp-Source: AFSGD/WtBOIzt3zUHN3uLirFzXyzR1TO4kW4arIHZwTcyQz9bciMQYDeFIncAhfdlu19lGEYoRUF5A== X-Received: by 2002:a17:902:e01:: with SMTP id 1-v6mr5119259plw.251.1542777553756; Tue, 20 Nov 2018 21:19:13 -0800 (PST) Received: from anarsoul-thinkpad.lan (216-71-193-140.dyn.novuscom.net. [216.71.193.140]) by smtp.gmail.com with ESMTPSA id v70sm8293074pfa.152.2018.11.20.21.19.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Nov 2018 21:19:13 -0800 (PST) From: Vasily Khoruzhick To: Liam Girdwood , Mark Brown , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Jaroslav Kysela , Takashi Iwai , Vasily Khoruzhick , Jerome Brunet , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v8 3/7] ASoC: dt-bindings: make enable-gpio optional for simple amplifier Date: Tue, 20 Nov 2018 21:17:48 -0800 Message-Id: <20181121051752.18387-4-anarsoul@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181121051752.18387-1-anarsoul@gmail.com> References: <20181121051752.18387-1-anarsoul@gmail.com> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Amplifier may have no enable GPIO, so make this property optional Signed-off-by: Vasily Khoruzhick Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/sound/simple-amplifier.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/sound/simple-amplifier.txt b/Documentation/devicetree/bindings/sound/simple-amplifier.txt index 7182ac4f1e65..b1b097cc9b68 100644 --- a/Documentation/devicetree/bindings/sound/simple-amplifier.txt +++ b/Documentation/devicetree/bindings/sound/simple-amplifier.txt @@ -2,9 +2,9 @@ Simple Amplifier Audio Driver Required properties: - compatible : "dioo,dio2125" or "simple-audio-amplifier" -- enable-gpios : the gpio connected to the enable pin of the simple amplifier Optional properties: +- enable-gpios : the gpio connected to the enable pin of the simple amplifier - VCC-supply : power supply for the device, as covered in Documentation/devicetree/bindings/regulator/regulator.txt