Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp750199imm; Fri, 13 Jul 2018 05:51:23 -0700 (PDT) X-Google-Smtp-Source: AAOMgpexsalcqZRhmaqxonw01FHl1UgCdSMVIdEIy4jtgJV3+RSv/jvkvo3j7dyvVwpxpONCLrd/ X-Received: by 2002:a62:a3d1:: with SMTP id q78-v6mr6944139pfl.5.1531486283356; Fri, 13 Jul 2018 05:51:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531486283; cv=none; d=google.com; s=arc-20160816; b=SzEWlKXGcSAbm29/yXGkuzLSE/yI6QmcSS3PZe0XTapmnDx3PGtbrw59UnWouhcstg LiWjnD7whJB7KfdvO8Zlln3nIamDVnC1jNMb/PK5OgGJS6bjHnK/fey5/eSJiU/2CZ+6 rEiOO/RhUIc+obgMuQndsx+hTlFpd/Y3n0t3hv2Xvw2gmpOUoyUH56PhI0cfvvXyGZJM I9CwiLtfI7UI4oWXmYbCzFLMapFCg/v9zer+3iJ7Vdl/BYIoGppBIAKgSDiUMoVj+Ndd cbYNUyuretsx4aqBOmkugCDpMPmYHR+uSjKhqioV1KLNHs96UZHTqnm0Q7tu+dghlieM acnA== 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=qDnzpsd+S66YDEZWb6Z4AP8WYPLdwAbQ4w/OpqYDhRM=; b=zD0Fc8Sm7YsLuLBM1dO2mCiCeBKaOtl1rIvgNyQBB3i+/vf98dAWRxWtr+vOqsy/j8 DLjL+ILUCUtlrh0YVdTTPQXn8PRUr233NqpUqxPPhuomuPppRH9bqKZJJEDJ68qXOGyX gXYK/20edDFluPYeRQPW6juJhYPho8xN+gIZ6u0hmPaSSEW5czIwW3KLVX4kiM5cHwD2 z2CyEL0n018JWCL8mlcTKDL8bQftn2GhMZ0B9gNNf7t+qc3M+ZrlAXJwfcQSweiMwikc N4TL0AihUUptNKXp9ScyrK5CaNwRYLweQphm7OZDBFD/I04Dmwy680XFzOSgV8ked+zK P4YA== 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 l71-v6si6187880pfb.69.2018.07.13.05.51.08; Fri, 13 Jul 2018 05:51: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 S1729773AbeGMNEt (ORCPT + 99 others); Fri, 13 Jul 2018 09:04:49 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:34305 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729634AbeGMNEt (ORCPT ); Fri, 13 Jul 2018 09:04:49 -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 1fdxWW-0003eO-4X; Fri, 13 Jul 2018 14:50:12 +0200 Received: from mfe by dude.hi.pengutronix.de with local (Exim 4.91) (envelope-from ) id 1fdxWV-0007n2-NW; Fri, 13 Jul 2018 14:50:11 +0200 From: Marco Felsch To: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: fabio.estevam@nxp.com, Anson.Huang@nxp.com, kernel@pengutronix.de, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/3] dt-bindings: pfuze100: add optional disable switch-regulators binding Date: Fri, 13 Jul 2018 14:50:01 +0200 Message-Id: <20180713125002.24331-2-m.felsch@pengutronix.de> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180713125002.24331-1-m.felsch@pengutronix.de> References: <20180713125002.24331-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 V2: - add more information about the binding - rename binding and add vendor prefix .../devicetree/bindings/regulator/pfuze100.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/pfuze100.txt b/Documentation/devicetree/bindings/regulator/pfuze100.txt index 672c939045ff..2c46b8d368db 100644 --- a/Documentation/devicetree/bindings/regulator/pfuze100.txt +++ b/Documentation/devicetree/bindings/regulator/pfuze100.txt @@ -4,6 +4,17 @@ Required properties: - compatible: "fsl,pfuze100", "fsl,pfuze200", "fsl,pfuze3000", "fsl,pfuze3001" - reg: I2C slave address +Optional properties: +- fsl,pfuze-support-disable: Boolean, if present disable all unused switch + regulators to save power consumption. Attention, till 4.18 these regulators + were always on without specifying "regulator-always-on". So be sure to mark + import regulators as "regulator-always-on" (e.g. DDR ref, DDR supply). 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". On new dtbs this property should + always be present. + 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