Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp3816586rwo; Mon, 24 Jul 2023 17:48:06 -0700 (PDT) X-Google-Smtp-Source: APBJJlF+RmNcFatINi+1+rwriyY5hnBSQla+qk7mgGTkPulaj9w0uftrF/i2W1ajMF4veFRurCjP X-Received: by 2002:a17:906:5a4e:b0:982:30e3:ddcb with SMTP id my14-20020a1709065a4e00b0098230e3ddcbmr11669365ejc.65.1690246086027; Mon, 24 Jul 2023 17:48:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690246086; cv=none; d=google.com; s=arc-20160816; b=IL35Fm3Iv3VHA4BpkfIR5i4MQLasEPlnhUXpgx00hrXQfIAdDkptykCEewpq9GTw4K fzDdrJ6KFQ0SIcUUkEDlB4b/lOdbIuqJxsSJceLIQ7XaOtZs9qwxTrWC5J8oowIPpavc 6w8GuhfKDgQEgY7qbHkaJKfC2c7bDrjgo08ESOd2MBiPT5W9hnHQLPG/hONylX+wAlaD hcspGR/IYbrA8r8C4zyzSlQVW4irle8M15YDDb7/Di9o7fiqi+daTVMGZkm0IpPZtjiO 1jWMRQiBhCLLuld1JqVMWYtmqG7Sli1hyRMRrCRDTmLV7Z6xKyaVFpqRJrpTVM26zndY 527Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=S72nnHrZ6DnkNLdYWaLcW29ZKGwcL3wsBYjzxbd/Q+Q=; fh=cicUBV6tneAGLPclrFSQFOYHexrp0R/BXT3zOVxZtBM=; b=1EPVCFw08eT5LLTvjteayv8zuX8y6I8nOteBSNJqH50kehekKQITQekEPVEqhTWjgU tfs3Ly9mjEkeNdYCzdYBcYhZ/se2OZdP8LtlwUFu9CmJ53gewffd+2sp6Lx+6u7Vf/YJ aM+/sb/D45bE+ySr5+FK7gCEyLedq+fk5Cx+kFDzKyft5XI7bBK9C+B1tZEySwEKOCU1 GHibvtO1DJzdFdm7FtsKq1QdHRgP/Afxpuz8id4MGSutCJ7DDPFYUC4f/MdPnvtVpyoQ UzbGqUtsdjBx1QBvLlwknX+NooCKXxbuDo6ng2wobdqLraBiQXCWMccONjEIrZZk2VBj qxXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nJc8ruOz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sb27-20020a170906eddb00b0098eeb136963si6577578ejb.172.2023.07.24.17.47.41; Mon, 24 Jul 2023 17:48:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nJc8ruOz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230430AbjGXXXe (ORCPT + 99 others); Mon, 24 Jul 2023 19:23:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjGXXXd (ORCPT ); Mon, 24 Jul 2023 19:23:33 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28E69E78; Mon, 24 Jul 2023 16:23:32 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8E84961464; Mon, 24 Jul 2023 23:23:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73206C433C8; Mon, 24 Jul 2023 23:23:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690241010; bh=w+olyalJrA2gi25MoSVwqGzWtB2JIt1pQxhluX5W+Yw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nJc8ruOzyTk4j/2MU65pdXVSBNePXOjfJn1GAqDAjq5sbiE0IyPpKKA3joaKxm8xw 2QFh18yk2eZA+SFagsz/5dbmVRZ5AfxNblF+eoSnRn99ayhJXlMQ8AsP/TBySyIcHH +iNTF+ypyENR1dXI2Zs1M206yEQx7xVapAbVznq5kMlLO+TGmjF2clTs9i5rcnCYn6 OLvNuo0hu/aJ5gz1BKme3Hfs48jBnDrPKgMrxAjdh0uVLgPDqIvuwUxZVWU0XFe+a/ diMktUHpPOPOs9ixdVT4QdRqHhqO+A8bHogIooFxoWDuOThVVPM5DzmJ90G+xpC7I+ AyjzLXxz7ikZA== Received: (nullmailer pid 1109815 invoked by uid 1000); Mon, 24 Jul 2023 23:23:28 -0000 Date: Mon, 24 Jul 2023 17:23:28 -0600 From: Rob Herring To: Elliot Berman Cc: Mark Rutland , Lorenzo Pieralisi , Sebastian Reichel , Krzysztof Kozlowski , Conor Dooley , linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, kernel@quicinc.com, Satya Durga Srinivasu Prabhala , Melody Olvera , Prasad Sodagudi Subject: Re: [RFC PATCH 3/4] dt-bindings: power: reset: Document arm,psci-vendor-reset Message-ID: <20230724232328.GA1101352-robh@kernel.org> References: <20230724223057.1208122-1-quic_eberman@quicinc.com> <20230724223057.1208122-4-quic_eberman@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230724223057.1208122-4-quic_eberman@quicinc.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 24, 2023 at 03:30:53PM -0700, Elliot Berman wrote: > Add devicetree bindings for using PSCI SYSTEM_RESET2 with vendor reset types. > > Signed-off-by: Elliot Berman > --- > .../power/reset/arm,psci-vendor-reset.yaml | 35 +++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 36 insertions(+) > create mode 100644 Documentation/devicetree/bindings/power/reset/arm,psci-vendor-reset.yaml > > diff --git a/Documentation/devicetree/bindings/power/reset/arm,psci-vendor-reset.yaml b/Documentation/devicetree/bindings/power/reset/arm,psci-vendor-reset.yaml > new file mode 100644 > index 000000000000..18b0b8c167a1 > --- /dev/null > +++ b/Documentation/devicetree/bindings/power/reset/arm,psci-vendor-reset.yaml > @@ -0,0 +1,35 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +# Copyright 2023 Qualcomm Innovation Center, Inc. All Rights Reserved. > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/power/reset/arm,psci-vendor-reset.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: PSCI SYSTEM_RESET2 Vendor Resets > + > +maintainers: > + - Elliot Berman > + > +description: | > + PSCI SYSTEM_RESET2 supports vendor-defined reset types. This describes > + the conversion of reboot modes to the reset types. > + > +properties: > + compatible: > + const: arm,psci-vendor-reset > + > +allOf: > + - $ref: reboot-mode.yaml# > + > +additionalProperties: false > + > +examples: > + - | > + firmware { > + psci-vendor-resets { > + compatible = "arm,psci-vendor-reset"; We already have a node for PSCI, we don't need a second one. You can have a separate driver without a separate node. > + reboot-normal = <0x100>; Wouldn't 'normal' be the normal PSCI reset? > + reboot-bootloader = <0x101>; > + reboot-fastboot = <0x102>; > + }; > + }; > diff --git a/MAINTAINERS b/MAINTAINERS > index d516295978a4..2da4c5f1917b 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -16982,6 +16982,7 @@ M: Mark Rutland > M: Lorenzo Pieralisi > L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) > S: Maintained > +F: Documentation/devicetree/bindings/power/reset/arm,psci-vendor-reset.yaml > F: drivers/firmware/psci/ > F: include/linux/psci.h > F: include/uapi/linux/psci.h > -- > 2.41.0 >