Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2432390pxu; Mon, 7 Dec 2020 06:33:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJzNoalnnTmzj1Sl1uhGlBbOE8KqkxBrNDetQaEO0RtEkTiv2aJ6ZvWS50IPpx/BWxwYl1aD X-Received: by 2002:a50:8f06:: with SMTP id 6mr19911525edy.39.1607351581616; Mon, 07 Dec 2020 06:33:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607351581; cv=none; d=google.com; s=arc-20160816; b=WrCRX0ljcoSAm452waTsOwsg3YR7udkKe71IZ+oNIEz8zQn4EEHwc332nONlUE/PSo E3FLMKYRTmjxD+Ss2vlU/pqOS+1lDvw9MR3cpjcsyGNArqWXr8pjnX7Eyr0hx6CQzvZJ GKGjYTFT97ugpZl8Jrz49puKfaxdIfVVSaPeRr8N84uFNA3i5DlMrLPd9vCUWcw1uagI CawsU8/X6P1ABIfMIxz7h8hvl7G2QNK2xZNCnJcfeK5UUHqOsVI+Fi3tKRi5SMLttbY0 DPEoQ4ajb8LF/cjFcJUBEBk8H/FTeD3DowhjZ0kypAGMguNIiTVPTWBDg7d8ooGeRkwZ GJcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=9SYLzlFgBXzuvKKzJL8JRRj5vw51OfuroQA/clOun08=; b=Je/AfOLAAYFFLkw8YRNh9zLrtTjTDfED86Cfj3Ti0PTFbbbHt5xlv0qXVVP5HGCgzl lhrkbsn83B7gWw1BNAAceaMqg9LuSA+0Qdf1GNUxST//B2k6uGHDZnXqhDxn92jqZtC/ cLTd9OJt63zX0gsP54KiTvjRq9981AMIhL3afA8rx3KZfG9TjxvqmY+8cPAUv6R8PDX2 fjOTDxnKSsb7iT2Y+YGarMVFbkYKLw66raOtxqD1fVogTUCiyUgjal5YQwYfbAz3072y 9PwxdkAMftTxVvxLWL1XYFPpByOd9gUBLfXA9K48CHVstG2GHAuNqaQtWte35QR+F2p7 LTEw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x101si8220325ede.118.2020.12.07.06.32.33; Mon, 07 Dec 2020 06:33:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727235AbgLGObJ (ORCPT + 99 others); Mon, 7 Dec 2020 09:31:09 -0500 Received: from mo4-p01-ob.smtp.rzone.de ([81.169.146.166]:12471 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726332AbgLGObI (ORCPT ); Mon, 7 Dec 2020 09:31:08 -0500 X-RZG-AUTH: ":O2kGeEG7b/pS1EzgE2y7nF0STYsSLflpbjNKxx7cGrBOdI6BL9pkS3QW19mO7I+/JwRspuzJFZuRzQ==" X-RZG-CLASS-ID: mo00 Received: from aerfugl by smtp.strato.de (RZmta 47.3.4 AUTH) with ESMTPSA id g02087wB7ES9OVc (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Mon, 7 Dec 2020 15:28:09 +0100 (CET) Received: from koltrast.a98shuttle.de ([192.168.1.27] helo=a98shuttle.de) by aerfugl with smtp (Exim 4.89) (envelope-from ) id 1kmHUh-0001TH-CZ; Mon, 07 Dec 2020 15:28:03 +0100 Received: (nullmailer pid 17908 invoked by uid 502); Mon, 07 Dec 2020 14:28:03 -0000 From: Michael Klein To: Sebastian Reichel , Rob Herring , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , Michael Klein Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 2/3] Documentation: DT: binding documentation for regulator-poweroff Date: Mon, 7 Dec 2020 15:27:55 +0100 Message-Id: <20201207142756.17819-3-michael@fossekall.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201207142756.17819-1-michael@fossekall.de> References: <20201128103958.q6glewhhch7vtczr@gilmour> <20201207142756.17819-1-michael@fossekall.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add devicetree binding documentation for regulator-poweroff driver. Signed-off-by: Michael Klein --- .../power/reset/regulator-poweroff.yaml | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/reset/regulator-poweroff.yaml diff --git a/Documentation/devicetree/bindings/power/reset/regulator-poweroff.yaml b/Documentation/devicetree/bindings/power/reset/regulator-poweroff.yaml new file mode 100644 index 000000000000..8c8ce6bb031a --- /dev/null +++ b/Documentation/devicetree/bindings/power/reset/regulator-poweroff.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/reset/regulator-poweroff.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Force-disable power regulators to turn the power off. + +maintainers: + - Michael Klein + +description: | + When the power-off handler is called, one more regulators are disabled + by calling regulator_force_disable(). If the power is still on and the + CPU still running after a 3000ms delay, a WARN_ON(1) is emitted. + +properties: + compatible: + const: "regulator-poweroff" + + regulator-names: + description: + Array of regulator names + $ref: /schemas/types.yaml#/definitions/string-array + + REGULATOR-supply: + description: + For any REGULATOR listed in regulator-names, a phandle + to the corresponding regulator node + $ref: /schemas/types.yaml#/definitions/phandle + + timeout-ms: + description: + Time to wait before asserting a WARN_ON(1). If nothing is + specified, 3000 ms is used. + $ref: /schemas/types.yaml#/definitions/uint32 + +required: + - compatible + - regulator-names + - REGULATOR-supply + +additionalProperties: false + +examples: + - | + regulator-poweroff { + compatible = "regulator-poweroff"; + regulator-names = "vcc1v2", "vcc-dram"; + vcc1v2-supply = <®_vcc1v2>; + vcc-dram-supply = <®_vcc_dram>; + }; +... -- 2.29.2