Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp1146168rdb; Fri, 19 Jan 2024 09:28:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IHx4000v72div4koSWOLfXT6srMQm5WTVFIzTsIkJequRDrKlD43nesPll9Tw4mkYNS7psx X-Received: by 2002:a17:90a:e38c:b0:290:2b80:a38b with SMTP id b12-20020a17090ae38c00b002902b80a38bmr83646pjz.84.1705685330265; Fri, 19 Jan 2024 09:28:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705685330; cv=pass; d=google.com; s=arc-20160816; b=fAZsiAohgK0u49yOfwVMYFbQ8YSuh+N6lR27JTiHUOqGBa0FPQgn7G+iiaPlE+q33p S24yyiyc5d8H2hGSm1auvJBi1Hx6TJi60r9ZjU7UZUkgJCjxIBOqvEj4l9PvjBZcjoDU n83k+snD3W6qlYepV+NzKVxgYeYjMCt0Y0pL2+uyzdmZZ1KyYxaon7DoB2tzGJlSVbR1 dOaLuT7aZCIKRXRXHcoB1ca7LnHhWb/cAAU54jaSk0FU3GR7yUc8sv+ANadzMvk3/cCM FObQnkDafAA+x0+UU1TTfL2YPcLYeK+OLqaEQ2qDs9LmLi02SZBLCY42J+zLkevL2GM7 +vxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EzYDcw3Kx27HCM08zh24K9Go559WtBLbcxsSqyYMHpM=; fh=h5C0rW6skx6AjTZyGJh9EXrM6DYrG7/H0MXltVhbcXo=; b=WRM8deQ4lQXzRkUw5/3z6Y6Ak0DHY+zAf/UsIXlaydx8wK6NUaSBpHRCfZdHTa3npL kS9ONL7Wk0qPItS31D34NLpHG30q9G1s3VCyZvNfhMWMtAT809HXkVqrGWAagAi0FsIH doXNkEfv/5YkLWBQLgjbSvCn79n0PumFookjic6fvitJoAKz8E5Oc126u3HxBEu3c/Kc i88CTlC0S92XgMjyAcgZtggxt1GHT61YlRxqnw3n0Mz8DVssyLvnyjdWsZNU+rAa61yg KfqE3VHJOKEIKV6rkkg0FXODVOhAj7ZzAAuhvxo0hvrsaCeei8mP3uLLcxqn/JrwK2oK 5zUA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kGVPO4Qo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-31424-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31424-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 p8-20020a17090a348800b0028cca22ee0asi3753675pjb.143.2024.01.19.09.28.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 09:28:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31424-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kGVPO4Qo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-31424-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31424-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 D3107288052 for ; Fri, 19 Jan 2024 17:28:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2497A55E73; Fri, 19 Jan 2024 17:28:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kGVPO4Qo" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 46A6A54F9B; Fri, 19 Jan 2024 17:28:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705685321; cv=none; b=bYseRPpLCQ4B8cixNtvHt3P6RzEIxpi7YEsNEL8awyUryw8gHoWtHr6A0i7VllxEIbPxw7w/D2Hxj/MHrAJJZklwzb03xdlDSK/++5h+tPqF1Y1/mzgQ8U1XIXUXWhykTiuH8DwYs6MFXwRbfttQOO4sDWQoWBC6dCWHWJ4QJgk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705685321; c=relaxed/simple; bh=GQWTWoBKpbNB7G5ergb/SE1apkAwlCoyhbciiQBtTM8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rx4vUbNZiV6QQMZQfqR6Q39vy1Fn0Z1aXi4wQpHBXyPG960FBQ6idsdhqIkx3HHCE45hILrCSu38PcLCKEI5oBaS6jUnzESJ8l935//pxACdYkDOzvtuBAn5ewDDxx4htv53AMuP87PiARYrWT7rmRMHYoThmc5+vP4ShfisBxQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kGVPO4Qo; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 90C6FC433C7; Fri, 19 Jan 2024 17:28:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705685320; bh=GQWTWoBKpbNB7G5ergb/SE1apkAwlCoyhbciiQBtTM8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kGVPO4QohMMi/GdXUPeCxL0gOWkmV4hXLQHUVzUDP7NoETtmUpr2vhg4XeVJvsADF afXMVdGusiFhV3wd53hIuoqeHdsX0Z8L8qsL7OSFIIjZ7xy9lkWWBHNfl+q/u7yevD W4VNGadiwuBykwAwydjc86Ypa/EVkaJ59VeSPGk8iHOB5/zsSM297y4/gtc4U0LTPO NhkLAni4miUC7/nKrvOd9pnHmM6QasYvcklWwak/Iyrey1Th3bEwZtHS25yAxzzwAU /MlSKNio1inEo/FCcQ46Qb9idoMb6Uwq1yXnAa33qRUnQfHUsNVSlpzBM2yb7b/yBa gAoIxEa2rRwgw== Date: Fri, 19 Jan 2024 11:28:38 -0600 From: Rob Herring To: Oleksij Rempel Cc: Sebastian Reichel , Krzysztof Kozlowski , Conor Dooley , Srinivas Kandagatla , 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, =?iso-8859-1?Q?S=F8ren?= Andersen Subject: Re: [RFC PATCH v1 1/7] dt-bindings: power: reset: add generic PSCR binding trackers Message-ID: <20240119172838.GA460212-robh@kernel.org> References: <20240119132521.3609945-1-o.rempel@pengutronix.de> <20240119132521.3609945-2-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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240119132521.3609945-2-o.rempel@pengutronix.de> On Fri, Jan 19, 2024 at 02:25:15PM +0100, Oleksij Rempel wrote: > Add binding for Power State Change Reason (PSCR) subsystem Why? How is this different from the reboot reason binding? > > 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 responsible > + 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]+))?$" Drop. This could be used in any random device. > + > + pscr-unknown: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: Value to indicate an unknown reason for the power state change. What's an undocumented value? It would be unknown too, so just drop this property. > + > + 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 >