Received: by 10.223.176.5 with SMTP id f5csp4037959wra; Tue, 30 Jan 2018 00:54:11 -0800 (PST) X-Google-Smtp-Source: AH8x2249sKYvtWxTC4LS08BvxmZOv7eGHbUPNDHp1OKU/S+PDbn6ORlm0sM712ongCFNrHIQ6Ruo X-Received: by 2002:a17:902:8b8a:: with SMTP id ay10-v6mr24151332plb.156.1517302451785; Tue, 30 Jan 2018 00:54:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517302451; cv=none; d=google.com; s=arc-20160816; b=Yxw6cDkJA/1DTpAkvnn3A6BM5p1aQ2j61MwYm8OzLWeGRUszlKN/DD5m6WNz2eKwCA wSGenyp7HvFl8t2yHRuAu2qFvHnSf4jLBa/bpdK5PXpbgbSmI+07uLDDriKIuYuP+No1 Oq2d/D7K6M2JYIgogKqK3hgkUpeiJZBNHi+uJfAM/nIxCw6NN1PGuh1c1AnKfd1paBKZ b0m7qJpl5Hsi4daz5HJSo1EME6rUJogxtp5la0abLh15qNaYFiEUSf9Cru82l/0GHcXM 06pxyPqiNbcnNwMvAg4Q3dwee6IgkeGt1uqe0AgX3qY9CBuMbljfuVvYUqMncd97Z/fg mPsg== 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:arc-authentication-results; bh=FBcqk7J+Zgup6EBvac/+i4QhG7HWrlD1fXOnzlChqYc=; b=fKdirpA3bvdGOe9nD7eIF5LBoucRhi1Z0n/Kd+9GViRZ8QrhKNnzv0hDWrUuFj6kux c1kFAwfCPDY3t2zfCCn3KBzvoQE3ceDZB0/qevOeLeB8/AdZzY919Ps26OQ+xc7Hg435 RsSEtHg4jGBawc3J7lN6SAIkgoIfAWsE2cfCiarF8MUCs73HKxja3TGgH+uOVUVFNF33 Vz7hVIlBPZyaZjuYyetEOdt7+hlvyOymKCtQ3/DKhdSlZ4sMHsCTmte53O7sGDApMAMj khID5yt5oqpc8w2cx7VjgoSSR3dzotTmhif1OjjcKt5nyRiNl0Mub4jK4WaH7YQeKYqq VgSQ== ARC-Authentication-Results: i=1; mx.google.com; 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 y24-v6si1123658pll.777.2018.01.30.00.53.57; Tue, 30 Jan 2018 00:54:11 -0800 (PST) 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; 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 S1751759AbeA3IxT (ORCPT + 99 others); Tue, 30 Jan 2018 03:53:19 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:47349 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751273AbeA3IxQ (ORCPT ); Tue, 30 Jan 2018 03:53:16 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id BE6C5801B2; Tue, 30 Jan 2018 09:53:14 +0100 (CET) Date: Tue, 30 Jan 2018 09:53:14 +0100 From: Pavel Machek To: Ladislav Michl Cc: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, perex@perex.cz, tiwai@suse.com, bhumirks@gmail.com, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, pali.rohar@gmail.com, sre@kernel.org, linux-arm-kernel , linux-omap@vger.kernel.org, tony@atomide.com, khilman@kernel.org, aaro.koskinen@iki.fi, ivo.g.dimitrov.75@gmail.com, patrikbachan@gmail.com, serge@hallyn.com, abcloriens@gmail.com, clayton@craftyguy.net, martijn@brixit.nl, sakari.ailus@linux.intel.com, Filip =?utf-8?Q?Matijevi=C4=87?= Subject: Re: [PATCH] sound/tlv320dac33: Add device tree support Message-ID: <20180130085314.GA4585@amd> References: <20180129230539.GA18280@amd> <20180129232031.GA7695@lenoch> <20180129233301.GA18104@amd> <20180130083446.GA13498@lenoch> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="a8Wt8u1KmwUX3Y2C" Content-Disposition: inline In-Reply-To: <20180130083446.GA13498@lenoch> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue 2018-01-30 09:34:46, Ladislav Michl wrote: > On Tue, Jan 30, 2018 at 12:33:01AM +0100, Pavel Machek wrote: > > On Tue 2018-01-30 00:20:31, Ladislav Michl wrote: > > > On Tue, Jan 30, 2018 at 12:05:39AM +0100, Pavel Machek wrote: > > > >=20 > > > > This adds device tree support to tlv320dac33.c. > > > >=20 > > > > Signed-off-by: Pavel Machek > > > >=20 > > > > diff --git a/Documentation/devicetree/bindings/sound/tlv320dac33.tx= t b/Documentation/devicetree/bindings/sound/tlv320dac33.txt > > > > new file mode 100644 > > > > index 0000000..6cbd311 > > > > --- /dev/null > > > > +++ b/Documentation/devicetree/bindings/sound/tlv320dac33.txt > > > > @@ -0,0 +1,32 @@ > > > > +Texas Instruments - tlv320dac33 Codec module > > > > + > > > > +The tlv320dac33 serial control bus communicates through I2C protoc= ols. > > > > + > > > > +Required properties: > > > > + > > > > +- compatible - "ti,tlv320dac33" > > > > +- reg - I2C slave address > > > > + > > > > +Optional properties: > > > > + > > > > +- power-gpios - gpio pin to power the device, active high > > >=20 > > > While driver used gpio in platform data, isn't it more likely > > > regulator which powers device? > >=20 > > power-gpios =3D <&gpio2 28 0>; /* gpio_60 */ > >=20 > > Looks like GPIO to me -- example is from Nokia N9. So this appears to > > be correct. >=20 > Device datasheet doesn't list any pin which looks like "power-gpio" > http://www.ti.com/lit/ds/symlink/tlv320dac32.pdf > Unfortunately I do not know much about N9, but was able to find Nokia 5610 > scheme to get clue how could be tlv320dac33 hardwired (see page 2): > http://mastermobile.spb.ru/service/nokia_5610_rm-242_service_schematics.p= df > Here AVDD is powered by LP3985 voltage regulator which is enabled using > VEN pin which might be connected to gpio. Or there could be completely > different voltage regulator with different controls. And since Linux > already has voltage regulator class, lets not limit ourselves to gpio > pins. Well, notice I'm converting existing driver to device tree. And that one already has GPIO dependency. It is possible that more work needs to be done there, but that should not be a reason to delay this. Feel free to help. Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --a8Wt8u1KmwUX3Y2C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlpwMnoACgkQMOfwapXb+vIKPwCdG8H/ZWOTQRjFZjbnChEVSYks 82YAoIXPhu/in6U7iXC9VjAC/JRVGBOe =ne5K -----END PGP SIGNATURE----- --a8Wt8u1KmwUX3Y2C--