From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755110AbbCEKgF (ORCPT ); Thu, 5 Mar 2015 05:36:05 -0500 Received: from mail-bl2on0116.outbound.protection.outlook.com ([65.55.169.116]:46737 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755073AbbCEKgA (ORCPT ); Thu, 5 Mar 2015 05:36:00 -0500 Date: Thu, 5 Mar 2015 18:35:36 +0800 From: Peter Chen To: , CC: , Subject: parent/child hierarchy for regulator Message-ID: <20150305103534.GA19600@shlinux2> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline 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; kernel.org; 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)(199003)(189002)(97756001)(23726002)(47776003)(33716001)(6806004)(83506001)(86362001)(104016003)(50466002)(46406003)(33656002)(85426001)(77096005)(92566002)(62966003)(77156002)(50986999)(106466001)(46102003)(229853001)(54356999)(87936001)(105606002)(2101003);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR03MB1439;H:az84smr01.freescale.net;FPR:;SPF:Fail;MLV:sfv;A:1;MX:1;LANG:en; X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1439; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5001007)(5005006);SRVR:CY1PR03MB1439;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1439; X-Forefront-PRVS: 05066DEDBB X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Mar 2015 10:35:50.8739 (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: CY1PR03MB1439 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Best Regards, Peter Chen