Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4872709ybi; Tue, 30 Jul 2019 09:35:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1YPTTFgWrcGA83FduYy4U3tAWdmq9U5n+FlMEf/icEXpybCIibk1DXW/UyVqtxFEHPpAN X-Received: by 2002:a62:e815:: with SMTP id c21mr44395536pfi.244.1564504539098; Tue, 30 Jul 2019 09:35:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564504539; cv=none; d=google.com; s=arc-20160816; b=db9EfJMavNL5Pdk5Gtwo9+h8Pp8j7uDZb+0zR+nu9EGwheDBT+yHVtSE9hPWy6c2v3 UU+7Mn6kLyIROfEihLqlFkMKk9+F7qPZKFwy/rJpch/Jor0IVzYtO9A9hsctXAuj8ysK sDgo9pZWlV3SRxz8LM7wT8kHfI+itX1U1z3XwA+jL4/Dad1jOE2lh2EqU0f/4gYBGW0C EY/UDZxge9gUP+Uiwdt+ib3drJkYeXQ6zCK7rqHOkpDQNW8CuWjm+M79SVM7co1RfC7Y dO9vLa6sWyfFl/94Yb63+ZvDYY3279Jv21KGmsWTP8u6b3YpyqUry6Na1cMWNT0BItgP 8cEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bnSwB9Iwevew2RMS+oCUNWcQXcWmO0icV8safm3Y+7k=; b=nvUygjDhbZ54dBy0T4Vzioo0W3fO8L+TAoeA1yzP8ama8LYF1+JwhkQpjpfz00ekXy dxxnWu/EV7+6AG0NkWlN1PWGsW8G8L9dxzj//2B+7+ik7tuj2RL3chxLgisz4I3if8L6 c0+ARMh4CJqz3aNNJ33XPlRflkOWtyttflUeOFMIIxVYcexnG3q2F55CGkWnYlB9Fsk3 z0OXw9xVzTbqV2youqZDHIU4ZnFfXCN4H8MFJFBM0bNP701XuhkXdwE4WA2IxzDgOJWP Rd/NDf71w9+sP79aqIk+vqXnJmXgyLa3Ue2zbq5Hpu4/MKNuM2IjGfiGvJM0i/tVQNsw pKcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=ABK7ohS2; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k190si29976716pgd.212.2019.07.30.09.35.23; Tue, 30 Jul 2019 09:35:39 -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=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=ABK7ohS2; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731459AbfG3OeM (ORCPT + 99 others); Tue, 30 Jul 2019 10:34:12 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:41072 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728743AbfG3OeM (ORCPT ); Tue, 30 Jul 2019 10:34:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=bnSwB9Iwevew2RMS+oCUNWcQXcWmO0icV8safm3Y+7k=; b=ABK7ohS20te6PnMvyuuZd28/i TAkwBE7yPSt13/jqJ6SNPDPP3lgrEmoMtDV9UHHsHPJhOh1xvle6oaupTJMQ05802ahdVKb2UB8+K YY0hfF+0oCFnz5IWGYJ+cIgCRN6hWP67y7J2CEy2IxvLOelH9ssjwuEUH8Vt7YJAZz2Q4=; Received: from ypsilon.sirena.org.uk ([2001:470:1f1d:6b5::7]) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hsTC9-0007ku-23; Tue, 30 Jul 2019 14:33:41 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id 093CD2742CB5; Tue, 30 Jul 2019 15:33:39 +0100 (BST) Date: Tue, 30 Jul 2019 15:33:39 +0100 From: Mark Brown To: Thomas Preston Cc: Marco Felsch , Charles Keepax , Mark Rutland , devicetree@vger.kernel.org, alsa-devel@alsa-project.org, Rob Duncan , Kuninori Morimoto , Kirill Marinushkin , linux-kernel@vger.kernel.org, Takashi Iwai , Liam Girdwood , Annaliese McDermond , Paul Cercueil , Vinod Koul , Rob Herring , Srinivas Kandagatla , Nate Case , Cheng-Yi Chiang , Patrick Glaser , Jerome Brunet Subject: Re: [alsa-devel] [PATCH v2 1/3] dt-bindings: ASoC: Add TDA7802 amplifier Message-ID: <20190730143339.GH4264@sirena.org.uk> References: <20190730120937.16271-1-thomas.preston@codethink.co.uk> <20190730120937.16271-2-thomas.preston@codethink.co.uk> <20190730122748.GF54126@ediswmail.ad.cirrus.com> <20190730131209.rdv2kdlrpfeouh66@pengutronix.de> <16a99e45-fd5a-2878-acf9-63518f9ca527@codethink.co.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+QwZB9vYiNIzNXIj" Content-Disposition: inline In-Reply-To: <16a99e45-fd5a-2878-acf9-63518f9ca527@codethink.co.uk> X-Cookie: Times approximate. User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --+QwZB9vYiNIzNXIj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jul 30, 2019 at 03:12:21PM +0100, Thomas Preston wrote: > On 30/07/2019 14:12, Marco Felsch wrote: > >>> +- compatible : "st,tda7802" > >>> +- reg : the I2C address of the device > >>> +- enable-supply : a regulator spec for the PLLen pin > > Shouldn't that be a pin called 'pllen-gpios'? IMHO I would not use a > > regulator for that. > Hi Marco, > We have multiple amplifiers hooked up in a chain, and all the PLLens > are connected to one GPIO. So we need to use a regulator so that > i2c-TDA7802:00 doesn't turn off the PLLen which i2c-TDA7802:01 still > requires. > This is why we use a regulator. Is there GPIO support for this? If it's a GPIO not a regulator then it should be a GPIO not a regulator in the device tree. The device tree describes the hardware. There was some work on helping share GPIOs in the GPIO framework to accomodate GPIOs for regulator enables, you should be able to do something similar to what the regulator framework does. --+QwZB9vYiNIzNXIj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl1AVUMACgkQJNaLcl1U h9Cu4Qf+OOSeubUr69q1X65qxycxElWJauRAa8zN5ZCS6Corf1z/+hgxkei5GI7D p242D+7O5/QHuGlsws3pHfiD3BUJbV+/D05v8DDX1GOEf54+8wv+dnX/1AZKtYzS IU/5aki3+oYGj76dQKpAhuTJFnJGGmkMg+O5SWXocr3KZO5P740PKZG0+wVX+yQp OdZbJOEfztfQ8AfQQ4vtSjun2grcmxeEyxPo7LiL+iNs2ifAOZW6TWNIl7Y/Xftg UNGdYVAtOL9s9G364+UmdAbLbQtKDtLLnotRd98S8NGElOoOGoLss6/pwrW2BHd4 CgdgNotIdcr1q2Me8acJM2d8pxjKWA== =aDlD -----END PGP SIGNATURE----- --+QwZB9vYiNIzNXIj--