Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2944347imm; Thu, 24 May 2018 19:36:19 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpDi3L9bbXLauVdxQtycxs7JVBPd1VhCysqop6Nmws1kKk+ckTQYIUK7RPahMPP8slJXSCj X-Received: by 2002:a17:902:224:: with SMTP id 33-v6mr566578plc.309.1527215779757; Thu, 24 May 2018 19:36:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527215779; cv=none; d=google.com; s=arc-20160816; b=AUNmMSGaalJH2N5tPBtpe97boKjApXbr+8e18uEphk0X1ZSlTddlObQLEcze2bCn4l 4iTW7TyaRFJvp/ypGdFbL5WM3ad9FaqEfxmI+M07TFzs85j+DzkAqQVPr5O3Us3zXmYo ELRzJCUIqLD03FBj/kBgHiYiiWcQQNgAiOk8pb6ZRz2sr+c9RIeWiCuis1YN7Xpudvj8 FlWS+uG/wXkIkwDdBwWNtaREQgBmH3gZwjX3Qv1GOLL2rZsfSMmoQczRz94iru3RjLPS yiDABAYMEkqw+KukPMl6dQztoBwp5xrMBjIFdn9+APF50Vsyq1vHYi6u8/oYfsJjoZdT xNyg== 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:arc-authentication-results; bh=OnSqJlx+WbH6KXkw93ObGCU0qHlGWImDz05TCAx5TuM=; b=fw8fLSLmCnliyCyQOEapiBFlVarso8M3S4OEHje6oTaqlyui+zqPa5x/aGmNhDAQv+ 9mJprIc6YKIuVhe3jh++hlmadZyK/pMDWejb8CS3FdnBUMH3HqMQRnbyIOO4Ab9XH6aE sh7KHUmhw15vBCgcUc57oTOK26tnqYsxa7Ji8jYL5Ai10sOQVLg9+j0PhAl9QEM8RvTT 2DELkc032gEuW9arxP7Sk/vBYiQlERUkJ9G461YGSDxsXoE07rxG2shRM/2R84jPZF2H TLFG0TpSpPhj2ThF9OL+Q61+kD2e9NGqsPKmBf+pjhEeRlifJtxLLilpD4fdcmgbOJIe c19A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=Q+ikHHp2; 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 z20-v6si509201pfl.209.2018.05.24.19.36.05; Thu, 24 May 2018 19:36:19 -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=Q+ikHHp2; 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 S1032238AbeEXR53 (ORCPT + 99 others); Thu, 24 May 2018 13:57:29 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:40100 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030352AbeEXR5Z (ORCPT ); Thu, 24 May 2018 13:57:25 -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=OnSqJlx+WbH6KXkw93ObGCU0qHlGWImDz05TCAx5TuM=; b=Q+ikHHp2ASQofyDBwSZStqZzf l28hMfO8tlCYLE/dbCD4yT2RPVTVNVN2/wNSx6asSTt8C942sPKiPQZzZ1Ovc6ftTow63/ERGWTir 1O9RN/PqtIw+L4PzrgtpgvEmUzoscRAiXHy+LT/c671zlilKG/biAtfeQgie+xIHPqggo=; 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 1fLuUM-0006IJ-3e; Thu, 24 May 2018 17:57:22 +0000 Received: from broonie by debutante with local (Exim 4.91) (envelope-from ) id 1fLuUL-0002p3-Iv; Thu, 24 May 2018 18:57:21 +0100 Date: Thu, 24 May 2018 18:57:21 +0100 From: Mark Brown To: "Vaittinen, Matti" Cc: "mturquette@baylibre.com" , "sboyd@kernel.org" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "lee.jones@linaro.org" , "lgirdwood@gmail.com" , "mazziesaccount@gmail.com" , "linux-clk@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Mutanen, Mikko" , "Haikola, Heikki" Subject: Re: [PATCH 4/9] regulator: bd71837: Devicetree bindings for BD71837 regulators Message-ID: <20180524175721.GB4828@sirena.org.uk> References: <20180524055752.GE4249@localhost.localdomain> <20180524140118.GS4828@sirena.org.uk> <042F8805D2046347BB8420BEAE397A4016C06B47@WILL-MAIL002.REu.RohmEu.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WxezjuMNsgvRf6mf" Content-Disposition: inline In-Reply-To: <042F8805D2046347BB8420BEAE397A4016C06B47@WILL-MAIL002.REu.RohmEu.com> X-Cookie: Excellent day to have a rotten day. User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --WxezjuMNsgvRf6mf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 24, 2018 at 05:30:57PM +0000, Vaittinen, Matti wrote: > > > On Thu, May 24, 2018 at 08:57:52AM +0300, Matti Vaittinen wrote: > > > > > +Required properties: > > > + - compatible: should be "rohm,bd71837-pmic". > > > + - regulator-name: should be "buck1", ..., "buck8" and "ldo1", ..., = "ldo7" > > > > The MFD is for a single device, there should be no need for compatibles > > on subfunctions. >=20 > I will check this. I must admit I am not sure what is the de-facto mechan= ism > for assigning the correct device-tree nodes to sub devices if compatibles > are not used? I think I saw device-tree node name being used for regulato= rs You can look at the regulators node within the parent device, you know that in Linux the parent device will be the MFD. Having a compatible string within the device makes no difference here. There's quite a few in tree examples of this. > Also, another thing I was wondering is how supply regulators should be > handled? In this case the LDO5 is supplied by BUCK6 and LDO6 by > BUCK7.=20 > From generic regulator bindings > /Documentation/devicetree/bindings/regulator/regulator.txt > I found statement: > > - -supply: phandle to the parent supply/regulator node None of that stuff uses compatible strings, just handle it as covered in the bindings. --WxezjuMNsgvRf6mf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlsG/QAACgkQJNaLcl1U h9AHrwf+I5QHGPl/Ix4blMQJui270VI4vajg2PzTVHSlND62fWGf2+K6hzxJuRIX 0k4++LcNMX6Nxdww+O/TnXrnQKrHq/wtnihAnnXv3oOttOqMVIkFeV4k1cfl2SGV isvpM+6HA8ac0SqXMZLxyo42ETc04gEcSk9O5UZ+D09d9zVKUfh615qcM/oR6NTm ZFeDvuGad5rHqGxHgTJI/kNpCU1/x5ScJKzIDOm6c3QoWiDloZrYMsuXhz5LvEIW rUAB97nrVAubeC0Zgb7W2BuMRzI4/eU8iXeLbIyExC+JLisBjXH1GULAg3WQ0g8R l/7n1VK64rUqO/0EP2zMzC/0/chzmQ== =gwWb -----END PGP SIGNATURE----- --WxezjuMNsgvRf6mf--