From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753045AbbCFClG (ORCPT ); Thu, 5 Mar 2015 21:41:06 -0500 Received: from mail-bn1on0132.outbound.protection.outlook.com ([157.56.110.132]:61424 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751347AbbCFClD (ORCPT ); Thu, 5 Mar 2015 21:41:03 -0500 X-Greylist: delayed 157372 seconds by postgrey-1.27 at vger.kernel.org; Thu, 05 Mar 2015 21:41:02 EST Date: Fri, 6 Mar 2015 10:40:45 +0800 From: Peter Chen To: Stefan Wahren CC: , , , Subject: Re: parent/child hierarchy for regulator Message-ID: <20150306024043.GA12879@shlinux2> References: <20150305103534.GA19600@shlinux2> <54F849AE.6040104@i2se.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <54F849AE.6040104@i2se.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-EOPAttributedMessage: 0 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=peter.chen@freescale.com; gmail.com; dkim=none (message not signed) header.d=none; X-Forefront-Antispam-Report: CIP:192.88.158.2;CTRY:US;IPV:NLI;EFV:NLI;BMV:0;SFV:NSPM;SFS:(10019020)(6009001)(339900001)(189002)(199003)(24454002)(51874003)(51704005)(106466001)(46406003)(33716001)(110136001)(54356999)(104016003)(97756001)(33656002)(92566002)(46102003)(87936001)(85426001)(50986999)(77096005)(86362001)(76176999)(105606002)(77156002)(83506001)(47776003)(62966003)(23726002)(6806004)(2950100001)(50466002);DIR:OUT;SFP:1102;SCL:1;SRVR:BN1PR0301MB0626;H:az84smr01.freescale.net;FPR:;SPF:Fail;MLV:sfv;MX:1;A:1;LANG:en; X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN1PR0301MB0626;UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN1PR0301MB0706; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(5001007);SRVR:BN1PR0301MB0626;BCL:0;PCL:0;RULEID:;SRVR:BN1PR0301MB0626; X-Forefront-PRVS: 05079D8470 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Mar 2015 02:40:58.5221 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d;Ip=[192.88.158.2] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR0301MB0626 X-OriginatorOrg: freescale.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 05, 2015 at 01:18:54PM +0100, Stefan Wahren wrote: > 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? > No, many Freescale i.mx6 SDB boards need to consider this problem. -- Best Regards, Peter Chen