From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Porter Subject: Re: [PATCH v2 3/5] regulator: add bcm590xx regulator driver Date: Tue, 11 Mar 2014 11:47:50 -0400 Message-ID: <20140311154750.GI25092@beef> References: <1392765432-9111-1-git-send-email-mporter@linaro.org> <1392765432-9111-4-git-send-email-mporter@linaro.org> <20140219045232.GD2669@sirena.org.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mYCpIKhGyMATD0i+" Return-path: Content-Disposition: inline In-Reply-To: <20140219045232.GD2669@sirena.org.uk> Sender: linux-kernel-owner@vger.kernel.org To: Mark Brown Cc: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Samuel Ortiz , Lee Jones , Liam Girdwood , Christian Daudt , Devicetree List , Linux ARM Kernel List , Linux Kernel Mailing List List-Id: devicetree@vger.kernel.org --mYCpIKhGyMATD0i+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 19, 2014 at 01:52:32PM +0900, Mark Brown wrote: > On Tue, Feb 18, 2014 at 06:17:10PM -0500, Matt Porter wrote: >=20 > > +static struct of_device_id bcm590xx_of_match[] =3D { > > + { .compatible =3D "brcm,bcm59056-regs", }, > > + { } > > +}; >=20 > This looks pretty much OK however I am in general suspicious of MFDs > that have subdevices like this in the DT - it doesn't seem like this is > a reusable device which can appear anywhere else so you're pretty much > just representing the way that Linux splits things up here rather than a > reusable IP that can reasonably have a separate binding. >=20 > If you had a binding which did something like enumerate the individual > IP blocks as individual devices that'd be more interesting, I could see > for example that a different PMIC might have a different set of register > compatible regulator IPs laid out. It looks like that might be doable, > but it's in no way essential. Ok I dropped this for v3 in favor of using mfd_add_device() and having the regulator driver reference the of_node from the parent device. -Matt --mYCpIKhGyMATD0i+ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJTHzAmAAoJEOfTILNwq7R4CF0P/10jxyRa0TDFYBmVuOyl6pPT UCwDr41O1SEWpL4cN67nrExXRUnzcN6p08srS47evulG67A1MqCsT/nhKJ/OqSjx GBQiFAUMzWmsSZRPBpQOoxl1LqP0tPJp8RUopsM5nmgGqqWt4lX4PBBSUNpL7fQP a+GtTJ6sELL1GAnM52hkCmDG/8nPsCgMYn6dizRY1JLPsn0qCadszc8ItGnF6mYg V36vsKpWVxMKU2bnCwMtnX69W+gCf7rhdPtYJwrb3GylV1zyJ8TiOjIW087dJTac MrJX5bu7j80nj2uu51jjDoPj3ZBR/6fn81R/+gdHwN0eYagk+zWvcqE0WSAsx0HM k6u5i5IStuLOPACtwQvs5jDiN2bMXREL90tlbyTg8dAR1EzmXt4sp80F3GoyykbP bNLqjpnN20s7l2fQ1s/Bp5ZurdOb85mZnAb8UGhj4IGtO4GoMb38NXw8tVdGIsM5 cPfj7AZ5zP+s2uRluppuShqglCVVkCt5CLCt+K4h1BsbyAZfYj7AROKVXeejIDyy COkU8uwf15YqNuxIHCRvDk5u86T85pJr6ZFOzH8uh/O1xhtY0gO6SvNhYzvW3E8j Z6sWL3MlPNPpsQo7+G0nx8sZ61vXdEX5gPTYjKQP/kX/M+Px+HnRj9sNMbXqN4H2 29eoYxn/VH/bw3GrG2fS =zJmM -----END PGP SIGNATURE----- --mYCpIKhGyMATD0i+--