From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754910AbbCEMTr (ORCPT ); Thu, 5 Mar 2015 07:19:47 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:49731 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750910AbbCEMTq (ORCPT ); Thu, 5 Mar 2015 07:19:46 -0500 Message-ID: <54F849AE.6040104@i2se.com> Date: Thu, 05 Mar 2015 13:18:54 +0100 From: Stefan Wahren User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Peter Chen , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org CC: broonie@kernel.org, lgirdwood@gmail.com Subject: Re: parent/child hierarchy for regulator References: <20150305103534.GA19600@shlinux2> In-Reply-To: <20150305103534.GA19600@shlinux2> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:EKOTkhNpEwQg1dCgAmt7xDhg9FQYFep5WoJ0bXDlU1L+Rc5MqLp H+u9bpo79J9W1/+7yK415xUa6VNpThXSmkcFWjhVz5JZAm5FsfYaqb/0Fbx78oBfPcRqukN BL6cw6srUHFR6lIlO1dBmJ+QGTgJYhaQ/Wp70ZjL2eubmwXe3UO72pD3N6VTQHKdKY9hVrc AZPnNCAbssFh2bte3si0A== X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Peter, Am 05.03.2015 um 11:35 schrieb Peter Chen: > Hi lists, > > Any good ways at code/dts to show parent/child hierarchy for regulator? > > 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 > fixed regulators, currently, if regulator swbst is disabled, the > gpio regulator has no way to know, and cause the vbus voltage is wrong. > > Thanks in advance. > i don't have an answer to your question, but do you think of i.MX28 platform? Regards Stefan