Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1000012rdb; Fri, 19 Jan 2024 05:26:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IHlp6LRCcLtuERJ16nnOX97GmZi9eRJVDEFRCUELhf7vLUh40eKEfr9ZTnhbSFsccGNsQN7 X-Received: by 2002:a19:e009:0:b0:50f:166e:fb20 with SMTP id x9-20020a19e009000000b0050f166efb20mr624939lfg.70.1705670795702; Fri, 19 Jan 2024 05:26:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705670795; cv=pass; d=google.com; s=arc-20160816; b=YsHKteog+7a6K06VglZsLYA33Dhs0BNX2tIZ41o2t3y5F2fpBf4kHmct5C8OHruWN0 yw3Fo3oi0zE4ehtePugMlN0k1DlKeoCXMEzJQktowTtoaQVWL42IFc7OGytnoWmCeR3p X8IxORmSeuufQnlsT6KvYKYMffHpcUWkHsWR0OoAYnRMHGABp1HixuSE7t8sNEKF6KWW 2lp6scOWJO70RQWgfn0TkF8e6Zf6BB23VEen+ZVOsqx/5D0DQR+S5oJuWHQmYzAoVgGL 98Wj/lVNq5AE9hLHHSLoW2VQESZ5VEB3cLT55tzmkl3ayoVxC8JzsKKOGCWF/bYMy4Z8 mM+g== 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=InHvgr21h03llMcgfIF7fiUIZSWBRWtcfuwNhwAmb1I=; fh=cTOyeHIiotxFveWD397Up69SLR8Dqpy9YboYIfW0A00=; b=wQQ2mrsODArznLclQxhjlXuRTsbu0xmo5K0oqhGPs6/6eydK3DM8dAy9rjiMrkM7WU mZP+PsNE60SRDqPdGcy7KM+1M6jUbyARX2juH6UPVwf/UVgOOUV0rkoQc1NWknN8+nAh 82ujOtotnYr+RWZoTGfjjyjZJom6sw+GwRlxVn4fyta6q2GxyoPZnCs2qQQ1k1o6GBta CAAsJQ3KyDqfsn+WNsgw/iV4q/pWo4pPyeQDGpPFVGAUbJZ34mwWwSlVfqgtdAfSF69V jydSiWi43eINY1vV6DiRAiUaZCxx7U5IUFhSgxXPYkB6zTQ5KqBMOa98Do/Rme0vEsJE 6hGw== 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-31194-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31194-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dz22-20020a0564021d5600b0055949f6cbd8si5073501edb.586.2024.01.19.05.26.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 05:26:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31194-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-31194-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31194-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 735F81F21178 for ; Fri, 19 Jan 2024 13:26:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5CB9754656; Fri, 19 Jan 2024 13:25:42 +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 5ED5352F84 for ; Fri, 19 Jan 2024 13:25:40 +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=1705670741; cv=none; b=R2hsy0npZf63+0FsS0IGrUWUvQikDc4nZK4RzFZnSbalQguqhqlvRiCDqoIIpp3T8GiSilx7us6zHVzCk8galCUgMLXLDZLhOGz9UE0ddky6Ef3M+DjsboK7aq/k5VDd6Aet7syG+38awALOkVJuNZ7U8MUuXxeIhJK3iU1NtoI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705670741; c=relaxed/simple; bh=yxObVGl9FlHXCDPkT1CCVeqiUamoD375a9LA8yEV5Ro=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=a9DLdsz6BhznjQXqXn9kmtFH5howJg3pW17jLbxLpn3bn4Nns41AOHgBt8oFDjL2ruvISzmk87IKkxetpz0mYkFtthMxr4n/zG/CeYWYu2scDmEK0SU7TL3q87rO9x47COUaA/A/M8TmOQsGCg/xmb7nSZHJpGLNkbaEM47jPgg= 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 1rQos7-00074F-C2; Fri, 19 Jan 2024 14:25:23 +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 1rQos6-000viG-4z; Fri, 19 Jan 2024 14:25:22 +0100 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rQos6-00F97h-0G; Fri, 19 Jan 2024 14:25:22 +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: [RFC PATCH v1 1/7] dt-bindings: power: reset: add generic PSCR binding trackers Date: Fri, 19 Jan 2024 14:25:15 +0100 Message-Id: <20240119132521.3609945-2-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240119132521.3609945-1-o.rempel@pengutronix.de> References: <20240119132521.3609945-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 (PSCR) subsystem Signed-off-by: Oleksij Rempel --- .../devicetree/bindings/power/reset/pscr.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/reset/pscr.yaml diff --git a/Documentation/devicetree/bindings/power/reset/pscr.yaml b/Documentation/devicetree/bindings/power/reset/pscr.yaml new file mode 100644 index 000000000000..1ce973f3473c --- /dev/null +++ b/Documentation/devicetree/bindings/power/reset/pscr.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/state-change/pscr.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Power State Change Reason (PSCR) + +maintainers: + - Oleksij Rempel + +description: Binding for devices responsable 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: + $nodename: + pattern: "^pscr(@.*|-([0-9]|[1-9][0-9]+))?$" + + pscr-unknown: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Value to indicate an unknown reason for the power state change. + + 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 unknow, 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