Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5520355imm; Mon, 23 Jul 2018 00:49:23 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfoI8K8dFDM5aVCn1bZxf5Evnhm1HJQ5F7JYca+y7zqFRkDmWQmsfDi6MLXOHSs6mePVPi5 X-Received: by 2002:a62:3b03:: with SMTP id i3-v6mr12139407pfa.197.1532332163708; Mon, 23 Jul 2018 00:49:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532332163; cv=none; d=google.com; s=arc-20160816; b=zZYZfedTd5gHqBL/6eqJaBLFFT6I0JnsAqqc5/eRagTAtrfwPMlfFIvMx9LuNJz1YB G7ayQEDSWcEx0SPSycEi510CME9c3lgxI6cnOyVig7IXbIMkuhoRYy8MEXWu+ClfG2RI LGEfjkvSTvqqCVKllIbov4hh6W1YEBYFAlIEE+hwP8F2YJIyfDucSZe49ajrYcICkyKx MN4UAj6lZmvIuxzb7r1cseBlQouKqax2upNkOGA4x7CPZfTLvqeXAc5PPGJsG/lClfis 67PEh4fcevwZCEomeYZQuQI1dxkhSC4x5pUrJ2uG7Y38k/gjmE3Nau5cA3cstXF39T3W 8bMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=+7xxebbc/zZ+6UH870RPT/6hwX7pkNdN4blXkFtT4BQ=; b=qGGxtR5GA+LmJuGanbeegKPXsPKln7x1tBMA8gt9VqZvSnqX+EiLjibY74/LkFxR/3 ua+LSHsB1TMGY2ZFM9QHRmnnrEASFe/YpnZ17lAwLfrdRm9GTUyUO0ep1C1CIoY934Z1 d8XWCpFPYZA6X5PjRKlzKy/MwaCf6BG0aHVN7Iue5iW3s3//4fFBtW4hb3gLJtJtXNBO /RYGPNI8WjTENgGqfVFdylq8VsQwROcqQEhMC824AxoDdy4AcLtwcqaGi5TmJK96R0Zi 8dVEI6AUz3ELCzfAtGRJ2IPGCSchutGU+421KfvRwHcYDGEePSJWb6do0SgSWk+teTwm yvOg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d11-v6si8030819pgh.564.2018.07.23.00.49.09; Mon, 23 Jul 2018 00:49:23 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388048AbeGWIrz (ORCPT + 99 others); Mon, 23 Jul 2018 04:47:55 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:58161 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387991AbeGWIrz (ORCPT ); Mon, 23 Jul 2018 04:47:55 -0400 Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fhVZT-0007un-Mf; Mon, 23 Jul 2018 09:47:55 +0200 Received: from mfe by dude.hi.pengutronix.de with local (Exim 4.91) (envelope-from ) id 1fhVZS-0007lc-J1; Mon, 23 Jul 2018 09:47:54 +0200 From: Marco Felsch To: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org Cc: fabio.estevam@nxp.com, devicetree@vger.kernel.org, kernel@pengutronix.de, Anson.Huang@nxp.com, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/2] dt-bindings: pfuze100: add optional disable switch-regulators binding Date: Mon, 23 Jul 2018 09:47:46 +0200 Message-Id: <20180723074747.9328-2-m.felsch@pengutronix.de> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180723074747.9328-1-m.felsch@pengutronix.de> References: <20180723074747.9328-1-m.felsch@pengutronix.de> X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This binding is used to keep the backward compatibility with the current dtb's [1]. The binding informs the driver that the unused switch regulators can be disabled. If it is not specified, the driver doesn't disable the switch regulators. [1] https://patchwork.kernel.org/patch/10490381/ Signed-off-by: Marco Felsch --- Changes in v3: - rename dt binding, add -sw suffix - fix description Changes in V2: - add more information about the binding - rename binding and add vendor prefix Documentation/devicetree/bindings/regulator/pfuze100.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/pfuze100.txt b/Documentation/devicetree/bindings/regulator/pfuze100.txt index 672c939045ff..c7610718adff 100644 --- a/Documentation/devicetree/bindings/regulator/pfuze100.txt +++ b/Documentation/devicetree/bindings/regulator/pfuze100.txt @@ -4,6 +4,15 @@ Required properties: - compatible: "fsl,pfuze100", "fsl,pfuze200", "fsl,pfuze3000", "fsl,pfuze3001" - reg: I2C slave address +Optional properties: +- fsl,pfuze-support-disable-sw: Boolean, if present disable all unused switch + regulators to save power consumption. Attention, ensure that all important + regulators (e.g. DDR ref, DDR supply) has set the "regulator-always-on" + property. If not present, the switched regualtors are always on and can't be + disabled. This binding is a workaround to keep backward compatibility with + old dtb's which rely on the fact that the switched regulators are always on + and don't mark them explicit as "regulator-always-on". + Required child node: - regulators: This is the list of child nodes that specify the regulator initialization data for defined regulators. Please refer to below doc -- 2.18.0