From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755391AbbCEMWv (ORCPT ); Thu, 5 Mar 2015 07:22:51 -0500 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:51005 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752402AbbCEMWu (ORCPT ); Thu, 5 Mar 2015 07:22:50 -0500 Date: Thu, 5 Mar 2015 12:22:34 +0000 From: Mark Brown To: Peter Chen Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, lgirdwood@gmail.com Message-ID: <20150305122234.GL21293@sirena.org.uk> References: <20150305103534.GA19600@shlinux2> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="olAtk6TWdfMWIbNy" Content-Disposition: inline In-Reply-To: <20150305103534.GA19600@shlinux2> X-Cookie: My LESLIE GORE record is BROKEN ... User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: 94.175.94.161 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: parent/child hierarchy for regulator 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 --olAtk6TWdfMWIbNy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 05, 2015 at 06:35:36PM +0800, Peter Chen wrote: > Any good ways at code/dts to show parent/child hierarchy for regulator? There's plenty of examples in mainline... > The related regulators at my platforms like below: > PMIC (SWB 5v) --> Switch Chip (GPIO Regulator) --> USB VBUS > PMIC has one 5V regulator (eg, swbst at pfuse), and it is the input > for USB power switch chip, and there are two gpios at this switch > chip to control if 5V is output or not, we register these two gpios as=20 > fixed regulators, currently, if regulator swbst is disabled, the > gpio regulator has no way to know, and cause the vbus voltage is wrong. Can you please clarify why you're registering two fixed voltage regulators for the switch chip and how you're doing that? The picture above looks like you should just have a single regulator there and nothing should care if the either regulator is enabled when querying the parent for its voltage. --olAtk6TWdfMWIbNy Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJU+EqJAAoJECTWi3JdVIfQbUoH+wWOFrqQlzIoi23KCU58TTd+ yz+QecsGqJN6yrz4PWlHYOmzY5ZRWYc551uNijn1CaO+797OrUoTIFAQo6QPSX1W QrLqAcgIqjShR6pDQcVYEH/nlH8MpfRqeSWgoUbLCyIw1bq15GtEctRE2ZM1VPZ1 36qIRSEW5084v+GO0T7YntQM+kBJBCvfil28pxtg34Yst1p01y4IZQqU3L1YWAzV uHhE/kjonbWfHLHUgX36W1hSPKRscqCZpcxGIzf7r15+9aVbotbjMnzJ+j18SbJ8 LyRgaTBtwlNX+aRg29yOgWd4dJlEc7+mC8z3+kJQmvOjbAdPMeCji0DauVqCXSU= =Zt+w -----END PGP SIGNATURE----- --olAtk6TWdfMWIbNy--