Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1078135rdb; Wed, 24 Jan 2024 04:24:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IHODnEqcGQIgTbMEoBCi6NSiaJQ0yHUs5aVKa4E/NbVlkmG87BwvJf6dlHHmbDrVvbZBHwR X-Received: by 2002:a05:6a21:339d:b0:19c:52be:e1e0 with SMTP id yy29-20020a056a21339d00b0019c52bee1e0mr1042911pzb.8.1706099063567; Wed, 24 Jan 2024 04:24:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706099063; cv=pass; d=google.com; s=arc-20160816; b=z9dSz596/SX6mF2G8iEr/92QxbIjxks42VIaNJbpmOeCPjEa4dPDfxGLNdc8lfwP+Q 5t29bYctfoHqdK1lXRpPofBWSGxSemR50BP9bh8q7fV+vMHm+WqVnJEEr7miFKYcLYMA /LSX6MJ9q8Ia7YWg4PXPK+z2j+7mhID9npIrF7bjWKBlh0/LHI2XGfkYU2X3hs3tpvuw ifr0E8tR8HDLmqlypwVyHf/3JPmJNXdP0uQ3sZFD6PdDGs4c4rpO1hoWbrXvOQ4oD3Cj vIFLIKV8NVAGmnR66rICAZyeM0/3TK5xWX+HbtT/jZHkgmNmSdccqqNH48tcGyWCBdOH uAAQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=RBwaCYD7CRbsyI7NnjUYJby8Sj8vv+cwyZQQG8Ui5dI=; fh=cTOyeHIiotxFveWD397Up69SLR8Dqpy9YboYIfW0A00=; b=plO/B5NPnbDuZur6tex/8JeFnvIaeFFUhOfo/vqp5gpHyx07oV+C/qSKjuHHMzP8Rl ksnKEz2YhQ5XxEx1qFGDSvmjmiI/20+WBFqc3WvnFwn4MOBcP6RhFIhiudMAPNkCk4ec i3ReAAo1/TwfRdGZWXyJze2ICrLORKbJs/a/8jTQklHHfhKm0V7biEMbbxiXzZolNgXd +BKaVseJnMZSoDC8LTyEFZUo5qDebwot4N5nIFsEpqtGAO2id6nwhaXqCt6c8U40GOFj BXIISb2MQXfx6pPJIYQMAgRPR7+LfpfprqJfrpOUFEvnTrwAeQpHilI+YBgCCYawboNd 320A== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-36968-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36968-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h6-20020a656386000000b005cd90b47495si11428300pgv.264.2024.01.24.04.24.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 04:24:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36968-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-36968-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36968-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C0562286D1E for ; Wed, 24 Jan 2024 12:23:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 776BE657B5; Wed, 24 Jan 2024 12:22:31 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F03C462A1F for ; Wed, 24 Jan 2024 12:22:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706098950; cv=none; b=q4rV3zz2nF15tve0Rh7anDjJPcHsS+E1cvfTz8P+pTqp8b4s3cPL3Ac4u7o4GOT58Fa72XXAkjKy0uMCM10KmsKTnQd63qWEDQR2WRH9u/zwk7CyAHc50+g+krnKG5WIRO0zban1WbbwDQnJn1l41J/0gA5qS1pCa2pfIbJea1Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706098950; c=relaxed/simple; bh=IQtFllAeAbEnjjWov46KcbIiLiSA2S5/+KtiKXOriws=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=BzuG+u73XLla4Zkxt7uF60mEz2/J3Nzrxnqk0T5fMpURCCHdJPEH0eRFeiSiYtPn5FqP41K/BIIPzhsVnv6OCJo7JyEBb1dEr7BdnleAWPQ+u3rVP6nCS7KjEovEOEw/lh34vEKXjsUjMQofyTcT0Iuez/30eDiL1S1NuREN6pk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rScGd-0007o6-1B; Wed, 24 Jan 2024 13:22:07 +0100 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rScGb-0023Zc-Vt; Wed, 24 Jan 2024 13:22:05 +0100 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rScGb-003414-2x; Wed, 24 Jan 2024 13:22:05 +0100 From: Oleksij Rempel To: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla Cc: Oleksij Rempel , kernel@pengutronix.de, linux-kernel@vger.kernel.org, Liam Girdwood , Mark Brown , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, =?UTF-8?q?S=C3=B8ren=20Andersen?= Subject: [PATCH v2 2/8] dt-bindings: power: reset: add generic PSCRR binding trackers Date: Wed, 24 Jan 2024 13:21:58 +0100 Message-Id: <20240124122204.730370-3-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240124122204.730370-1-o.rempel@pengutronix.de> References: <20240124122204.730370-1-o.rempel@pengutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Add binding for Power State Change Reason Recording (PSCRR) subsystem Signed-off-by: Oleksij Rempel --- .../bindings/power/reset/pscrr.yaml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/reset/pscrr.yaml diff --git a/Documentation/devicetree/bindings/power/reset/pscrr.yaml b/Documentation/devicetree/bindings/power/reset/pscrr.yaml new file mode 100644 index 000000000000..c8738b4930fe --- /dev/null +++ b/Documentation/devicetree/bindings/power/reset/pscrr.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/reset/pscrr.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Power State Change Reason (PSCR) + +maintainers: + - Oleksij Rempel + +description: Binding for devices responsible to store reasons for power state + changes such as reboot and power-off. Reasons like unknown, under voltage, + and over temperature are captured for diagnostic or automatic recovery + purposes. + +properties: + pscr-under-voltage: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Value to indicate an under-voltage condition of a system critical + regulator as the reason for the power state change. + + pscr-over-current: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Value to indicate an over-current condition of a system ctitical regulator + as the reason for the power state change. + + pscr-regulator-failure: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Value to indicate an unknown, system ctitical regulator related failure + as the reason for the power state change. + + pscr-over-temperature: + $ref: /schemas/types.yaml#/definitions/uint32 + description: | + Value to indicate a system critical over-temperature condition as the + reason for the power state change. + +additionalProperties: true + +... -- 2.39.2