From patchwork Thu Nov 30 12:33:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 120170 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp607813qgn; Thu, 30 Nov 2017 04:34:11 -0800 (PST) X-Google-Smtp-Source: AGs4zMZyHbNmGegueb6PX4uxJyryPz+ldM5ESpqISjkXkoL1pWyoedbf3mj4C7+zNQycOYX85v02 X-Received: by 10.28.134.130 with SMTP id i124mr506636wmd.10.1512045251605; Thu, 30 Nov 2017 04:34:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512045251; cv=none; d=google.com; s=arc-20160816; b=XuTRhmCJmJmiDOj9u5vMklC3RHqBKNziAgybhtdXICatcM+LSsrvbCgGlXwnnj5uev MFNknRn0nTmJDO+cBhwPgJo9CORkSdBv1nXoARFQ6/AiYO16GE309jT3JMd8j957aHrz NyA/VhawicvK2VUYKphak/HQynfwgk1fED5/v8rPyd1xmr5b4qkpT7MGk1RnQ0Mz2Fom 4C8iYqd9347Ul8bXjr6ZhNaS1V9c+19ITkCu61Hq8GF2cFqvLHQTYL+7eTeS5BqNrb+1 lmQfrWleycP7hSZrpKZKyCUqspkBI+dcWCtN9Jj7hhHnFYIOXb2BkMnkTuHjkb2g1qUY +27Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:date:message-id:in-reply-to:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=6dh+WEJojysy09EspSSYE0EuDMClUzlcs6U7k5NHbl8=; b=UfY/7ZeDs6mqSh6gDhNTZ07IbxcUjQJGkj0L8fQboLUohUS3cH67pNKp+D/8bSO6qM 3Mn7ehTODrYR2NLpZsYhqVfNPCvjbagKiGX8GaYroOTxVHTMpt4PDfGPhgy2p5P3g3V3 jwfU6XGOPqldPG3zSesnmcweZ7ao4L9Ubw9BC2+3d+uIuZ7IjJIekr6XkLB0jgXcFkTq DBwW9sdsHr6CTdmpGRTr8IWYrF3z69jg5CNrMY6Sb6K9DPflEUm1lUGZ38ilQeyPG8iY C5jC/iY6smmHq829aXN9f3jIcLspjwN1WY3pryIZC/QOob+PLoEeUz4OSc//Th3D21l5 vUzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=G6z0Y93S; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id a138si17149203wma.5.2017.11.30.04.34.11; Thu, 30 Nov 2017 04:34:11 -0800 (PST) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=G6z0Y93S; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 04D3A267AD8; Thu, 30 Nov 2017 13:33:33 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 15D60267AD8; Thu, 30 Nov 2017 13:33:32 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=disabled version=3.4.0 Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk [172.104.155.198]) by alsa0.perex.cz (Postfix) with ESMTP id D3E15267AC9 for ; Thu, 30 Nov 2017 13:33:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=UfE35jI+ySF1sDXQ/0Wg6usCZDOd+UnUDh94lmCDMn0=; b=G6z0Y93SrPf2 jMYXn2pTacfSf2fP3ih0+W5qXeidtjk8mGoAamrPYGgOZUWTS9srVVkd2awGkN7bkSqhJxPHKjj7w IG5R1SNAqu6zhvnUvbf34iEyTBJ+C+5K8lBnosYZ5GMyPXT+BNpPUXhytl3suOzgkA6cLcNfry0i/ gmWeQ=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1eKO1f-0003GX-Sz; Thu, 30 Nov 2017 12:33:11 +0000 Received: from broonie by debutante with local (Exim 4.89) (envelope-from ) id 1eKO1f-0000bm-FW; Thu, 30 Nov 2017 12:33:11 +0000 From: Mark Brown To: Andrew F. Davis In-Reply-To: <20171129171359.29382-3-afd@ti.com> Message-Id: Date: Thu, 30 Nov 2017 12:33:11 +0000 Cc: Mark Rutland , devicetree@vger.kernel.org, alsa-devel@alsa-project.org, Sascha Hauer , Tony Lindgren , Liam Girdwood , Rob Herring , linux-kernel@vger.kernel.org, Mark Brown , =?utf-8?q?Beno=C3=AEt_Cousson?= , "Andrew F . Davis" , Shawn Guo Subject: [alsa-devel] Applied "ASoC: tlv320aic3x: Rename property for reset GPIO" to the asoc tree X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org The patch ASoC: tlv320aic3x: Rename property for reset GPIO has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark >From 943293232ca45988ba0aa693b51025c58e1189ca Mon Sep 17 00:00:00 2001 From: "Andrew F. Davis" Date: Wed, 29 Nov 2017 11:13:53 -0600 Subject: [PATCH] ASoC: tlv320aic3x: Rename property for reset GPIO The property used to specify a GPIO intended for reset is "reset-gpios", but this binding uses "gpio-reset". It is not compatible with newer methods used to fetch GPIO pins and to prevent the spread of this error to other bindings let's rename to be more standard. We also standardize the pin as active-low, different device trees have marked the GPIO different ways, luckily the driver currently uses the low-level GPIO set function which does not respect the active-low flag, but future changes may change this. This is an active-low reset, mark it as such. Lastly, add an example of use for this property. [Rewrote title & first paragraph for clarity & accuracy -- broonie] Signed-off-by: Andrew F. Davis Signed-off-by: Mark Brown --- Documentation/devicetree/bindings/sound/tlv320aic3x.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) -- 2.15.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/Documentation/devicetree/bindings/sound/tlv320aic3x.txt b/Documentation/devicetree/bindings/sound/tlv320aic3x.txt index ba5b45c483f5..9796c4639262 100644 --- a/Documentation/devicetree/bindings/sound/tlv320aic3x.txt +++ b/Documentation/devicetree/bindings/sound/tlv320aic3x.txt @@ -17,7 +17,7 @@ Required properties: Optional properties: -- gpio-reset - gpio pin number used for codec reset +- reset-gpios - GPIO specification for the active low RESET input. - ai3x-gpio-func - - AIC3X_GPIO1 & AIC3X_GPIO2 Functionality - Not supported on tlv320aic3104 - ai3x-micbias-vg - MicBias Voltage required. @@ -34,6 +34,10 @@ Optional properties: - AVDD-supply, IOVDD-supply, DRVDD-supply, DVDD-supply : power supplies for the device as covered in Documentation/devicetree/bindings/regulator/regulator.txt +Deprecated properties: + +- gpio-reset - gpio pin number used for codec reset + CODEC output pins: * LLOUT * RLOUT @@ -61,10 +65,14 @@ The pins can be used in referring sound node's audio-routing property. Example: +#include + tlv320aic3x: tlv320aic3x@1b { compatible = "ti,tlv320aic3x"; reg = <0x1b>; + reset-gpios = <&gpio1 17 GPIO_ACTIVE_LOW>; + AVDD-supply = <®ulator>; IOVDD-supply = <®ulator>; DRVDD-supply = <®ulator>;