Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757927AbbLCPF4 (ORCPT ); Thu, 3 Dec 2015 10:05:56 -0500 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:59338 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756495AbbLCPFy (ORCPT ); Thu, 3 Dec 2015 10:05:54 -0500 Date: Thu, 3 Dec 2015 15:05:28 +0000 From: Mark Brown To: Simon Arlott Cc: devicetree@vger.kernel.org, Liam Girdwood , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , linux-kernel@vger.kernel.org, Florian Fainelli , Jonas Gorski Message-ID: <20151203150528.GG5727@sirena.org.uk> References: <565A18DD.60108@simon.arlott.org.uk> <20151130121043.GX1929@sirena.org.uk> <565CB1CF.5040306@simon.arlott.org.uk> <20151201221615.GY1929@sirena.org.uk> <20151202125325.GI1929@sirena.org.uk> <565F53FC.5080309@simon.arlott.org.uk> <20151203000631.GM1929@sirena.org.uk> <565FF9E9.1090503@simon.arlott.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="APlYHCtpeOhspHkB" Content-Disposition: inline In-Reply-To: <565FF9E9.1090503@simon.arlott.org.uk> X-Cookie: revolutionary, adj.: User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: 94.175.94.161 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: [PATCH 1/2] regulator: Add brcm,bcm63xx-regulator device tree binding X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mezzanine.sirena.org.uk) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2530 Lines: 64 --APlYHCtpeOhspHkB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Dec 03, 2015 at 08:14:33AM +0000, Simon Arlott wrote: > On 03/12/15 00:06, Mark Brown wrote: > > this it should know at least something about how to control the device > > from the compatible string. If you're making a generic driver it should > > not make reference to specific devices. > Will you accept a generic driver for a simple enable regulator device on > a regmap? What should its compatible string be? Perhaps. I really don't like putting the entire driver into DT, it's not a pattern I want to encourage. > > There could be one if it would help, but we do normally manage to do > > this without - look at how other regulator drivers work. > Several of them have a fixed list of supported regulator names in the Yes, that's the way this is handled. > driver. The regulator names for this device are meaningless to the > driver because all of the regulators look the same. They don't have a > known or controllable voltage and can only be turned on or off. Nonsense. The names are useful to identify which supply is being referred to. Having voltage control is irrelevant to identifying regulators. > Any table mapping regulator names to bits in the register would be > different for each SoC making the list of regulator names in the device > tree redundant. If they're not listed in the device tree then I can't > use them as a phandle for other devices. The list of regulator nodes in device tree is not redundant, it is as you say used to connect things together. The question is where to put the control data for those regulators (in this case the enable time and the switch). --APlYHCtpeOhspHkB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJWYFo3AAoJECTWi3JdVIfQijIH/1n755cm/y74LcXgNmrb0Ga7 XQkNKOrJHeCcJsPSEYqZOL2mLVHwGE7Hq7Is67lAvMG11FfTEYDNvMEqfvUuLA/h NUjloATTroeViGDZVs3N+NfU2ybZnsReyr51EnDTpenFJUid9+16Iyd0U5QCaAEp OWf+FaMz0/sP4Jqe7HJYmZrrjhbQT6XzVqtq4eVY/fK7wvGW3D5yfUVcRN7oSi72 hwi5sPAFPVFmZvvJxIhdUzx09qDpENLJ6xQfAAAvNRr3KcYMAPCLt+XpgNiHEF6G 9+r69hJJNUAoWnXw6PBye4Of55+8T1AWHoF3Xtxnipn/WE3b2WDYVZGA2cJ6BNY= =Z69S -----END PGP SIGNATURE----- --APlYHCtpeOhspHkB-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/