Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1070782rwb; Wed, 26 Jul 2023 07:12:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlFs0rqjJhlhk3pq+pcyfMdOfOsJqa67xE6uYXy+3z9PVTyPNV/x6FTHuIiQC9S86O0pp2zW X-Received: by 2002:a05:6358:91c:b0:139:71af:ed6d with SMTP id r28-20020a056358091c00b0013971afed6dmr2012089rwi.11.1690380758695; Wed, 26 Jul 2023 07:12:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690380758; cv=none; d=google.com; s=arc-20160816; b=HsShDQq9fwVk3OLdruKcZ8UIvsWDbKcoLw1pG5yWX1zrRNbBg9KerVAYT78dOl9SK7 eIwLhicITx3UdprFL0ryCj3Bq8CgHROg76XSr+lfPJD0rfau/zv7zfXRH8phuj5VaZ6A pwKipP/OPkej0FpNjHvp+4dlFLFX5+1n6Pyp9aSiKqizYu94jhnNlxumBIitdHJZ+iet Ku6CRgz0uLoTeVC8EU7uieKuGXPfMyejSOZAEptKgf01HprG35a+JlqK59+w4Tjuh9AK TGa6kdBednkNu6mNUv/Iry//sHKHYw5KTuzSKjkJvrpDdnEH7iEf3PR5A6cEnCiE31TY J3LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=9AYYCUrpATtZiOCbuCqefusH02Z0DyO2Uf0N/ZOzbow=; fh=cicUBV6tneAGLPclrFSQFOYHexrp0R/BXT3zOVxZtBM=; b=I/I7D3XD6fgiGpbnvLMyTWR577+wL789fynDsw4/Ln7dHAyxMBwj0Xl2ELVBqJGjCB 3lbsfeEJlb6JmQbSii+ADhNuka9G7dfRD9Byjcjb07hyeZEQP5/VOBrWp6yQXm3JDOBF RNV4y6Jvt5tVAHIJsmSCirKy3/yJSp0i82rj7rSF7uwhH23igOmZOxz9OjRQQGrbDc1q TEtYtHB3nwaEyUHej1XJYQz/7UGggfHuyLygoV0QmN+GWnivtNbI6G7Fv6lbQXAzXLpJ llOFzOimCHbtmFXjE4HISWHTFIgBZblgyRvV1Dn8JVXpadnVFe0LZpltyq6x7k0iaYJO m6qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=VQ1uGrM8; 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 h23-20020a656397000000b0055c1fb5a4a9si12801793pgv.661.2023.07.26.07.12.24; Wed, 26 Jul 2023 07:12:38 -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=VQ1uGrM8; 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 S233717AbjGZNpn (ORCPT + 99 others); Wed, 26 Jul 2023 09:45:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230310AbjGZNpl (ORCPT ); Wed, 26 Jul 2023 09:45:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDC5FA2; Wed, 26 Jul 2023 06:45:39 -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 849F961AB8; Wed, 26 Jul 2023 13:45:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E05A5C433CD; Wed, 26 Jul 2023 13:45:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690379138; bh=FOQK4XupUueLaNuwpuP0faSyRRZ9Ava/fzIG0kPjV6s=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=VQ1uGrM8ufwEpC/UFWp8UzjNmqbvFqIsLch0zqvicmfaxseB037IDLW7WoNqO32cu kg+Fhg8k4ilIfkc3JNyAWklI7ymMQjIXcURrst1dTdy6TIyqbwtPZcEaOrWk+/JY0/ 6XxCF4rVeYnmq7ozKou5MEmI4fVZe42/Gb/CJ2HeJqGs//iuGL9CF8HT+SkQNH80uM mlXwqFkXiDJKkvO6Z4jWQvX2LI3JUXrOAGI3Ji1nNGxUqXWxW9Xn6+hUaE4k6BvCUb hHNNqlR4O5BvW6Q+WdZglqJxYzONVdwAwqXrxTDTGzmfBel5S2+R6SxXX8y0S/IjMe cei8RgORE71QQ== Received: by mail-lj1-f181.google.com with SMTP id 38308e7fff4ca-2b93fba1f62so99636431fa.1; Wed, 26 Jul 2023 06:45:38 -0700 (PDT) X-Gm-Message-State: ABy/qLacKGHI7dsLoTjbyyN3vh70sW3F/E+HmM8vvaVECFvF3iX3ToE0 wpPuX8FbuCmOtRxz0Ste3cNcZxHuH43WzYLsbg== X-Received: by 2002:a2e:3c09:0:b0:2b6:e625:ba55 with SMTP id j9-20020a2e3c09000000b002b6e625ba55mr1536023lja.41.1690379136685; Wed, 26 Jul 2023 06:45:36 -0700 (PDT) MIME-Version: 1.0 References: <20230724223057.1208122-1-quic_eberman@quicinc.com> <20230724223057.1208122-4-quic_eberman@quicinc.com> <20230724232328.GA1101352-robh@kernel.org> <0e72a1a0-611c-9667-866e-a4a1f67f10f6@quicinc.com> In-Reply-To: <0e72a1a0-611c-9667-866e-a4a1f67f10f6@quicinc.com> From: Rob Herring Date: Wed, 26 Jul 2023 07:45:24 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 3/4] dt-bindings: power: reset: Document arm,psci-vendor-reset 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Tue, Jul 25, 2023 at 12:01=E2=80=AFPM Elliot Berman wrote: > > > > On 7/24/2023 4:23 PM, Rob Herring wrote: > > 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-ve= ndor-reset.yaml b/Documentation/devicetree/bindings/power/reset/arm,psci-ve= ndor-reset.yaml > >> new file mode 100644 > >> index 000000000000..18b0b8c167a1 > >> --- /dev/null > >> +++ b/Documentation/devicetree/bindings/power/reset/arm,psci-vendor-re= set.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 descri= bes > >> + 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 =3D "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. > > > > I could also place the reboot-mode functionality straight into > drivers/firwmare/psci/? I thought that might be more controversial than > separate driver, but maybe not? > > Mark/Loreno, do you have any concerns to add the reboot-mode driver > functionality directly in drivers/firmware/psci/psci.c? I'm talking about the binding. Why are you talking about driver design? They are independent. Rob