Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1319157rwb; Wed, 26 Jul 2023 10:36:03 -0700 (PDT) X-Google-Smtp-Source: APBJJlHOt9n6vdxZycujZj3nLT8QGKXmE3Hd3/UxoPhTed22EwjzBywscWt/wTP99JQ0UUIXQ6Dm X-Received: by 2002:a05:6358:6383:b0:129:c9c0:ca64 with SMTP id k3-20020a056358638300b00129c9c0ca64mr2402574rwh.15.1690392963688; Wed, 26 Jul 2023 10:36:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690392963; cv=none; d=google.com; s=arc-20160816; b=slHske88MzzX4m5zBYHV6acTxtcCt/85LYzswI7S6TmNFys8qap8usWHF9/oGD2+Do 0qv2xKxXg8CQGupxsgMC5Cxp4c8YAZTZizAdHZ9hF6nCE56y9RUAnPGgdtXJcaLRtUAm t+Ne3arEH/tMvWZxn7YUENQLCaKEkqXdZETpC/HI0NYxJGc9XEdK0lR6f0AU0WuVZS5n zM2PSUPeUEXT1ZFEo0OdaUuZRT/As5uKnA8a0DAlPux9Dy1VZEGyOm+iVnBUy+J8yOv5 hrx3bstN1RIqFjeKu+IATBGfzwGUG4DahAf5Ejg7h+hJxeghotytDaWn789w+fb2A3nP x7Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=5KZiOW1XU4bwOICJyswhFDaw7amgTZ5yGRX8/IBveEY=; fh=mej8TeKouM8ABmWFKooYXm1tY4LD+EywSLd9F73+nWQ=; b=og+b5HwXeJpe7D42WJ6lQ8UK4eRdATmC5JzAQ7XEvSezhq5oZ2urya/qEyAqX5LVAT h50lEduFhi2Dxa6oIJCrekpk5b2R62BLQsIL0inQ5pVPCa5NaT6ClW33X+zY98GLRXxy Wp4n+3QtLiYRycQabKm+khdyxoTcUGhLFSotMPf48afZGRWcVCA2qXrYVHeXqPaoWoTq 33Q+0ERZrjfQua7RQ7yg+f5/nRzr7FZFcNOa6bgD9zFhmQJDt+dgwoKjGltDPbWgVmdU fU2FO2L/9XDhRTMUmV3y/SaVtDr7RpoR+3CRrk2hxwEko2iHF67ChYsqxPglreG45rE3 W5sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=i2ONY31Z; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k190-20020a6384c7000000b0056384f1b5e3si2126770pgd.184.2023.07.26.10.35.51; Wed, 26 Jul 2023 10:36:03 -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=@quicinc.com header.s=qcppdkim1 header.b=i2ONY31Z; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232236AbjGZRTO (ORCPT + 99 others); Wed, 26 Jul 2023 13:19:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232177AbjGZRTM (ORCPT ); Wed, 26 Jul 2023 13:19:12 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDC061BEF; Wed, 26 Jul 2023 10:19:09 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36QEvO8G020366; Wed, 26 Jul 2023 17:18:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=5KZiOW1XU4bwOICJyswhFDaw7amgTZ5yGRX8/IBveEY=; b=i2ONY31ZLqtORvyOIx6zV+fmuvNW8uzRyzyNns/kx1bIMcUfYHb/xPVt5ZXwaHd+4+te 13LrrqzVPrz6hJf2w3zctDB/D7XmMVwDoQW5d3mCm/vVy1yKpbQzjOgiWlBcJ3tY4/yi HtW2THgc9/fdjT/noUMZGYtXRdIID6fhV87PVMskjyfOl+jE3FjHXw8/piTRZvgSDgCT ORGQiLHPLcr598SfYQgkRrsWe57dlEDNbIQHitHSGx07ZMYMKi+mPOv7za17EUIH5aPJ eydqAJOY6E2yk3s2DTfy+dcDDhpDQfVSFvnwuTZxDTqpBqZCnOBE5+ijvOsR73di3wVW xA== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3s2v4thj3p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 26 Jul 2023 17:18:58 +0000 Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36QHIvOD031013 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 26 Jul 2023 17:18:57 GMT Received: from [10.71.109.50] (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Wed, 26 Jul 2023 10:18:56 -0700 Message-ID: Date: Wed, 26 Jul 2023 10:18:56 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [RFC PATCH 3/4] dt-bindings: power: reset: Document arm,psci-vendor-reset Content-Language: en-US To: Rob Herring CC: Mark Rutland , Lorenzo Pieralisi , Sebastian Reichel , "Krzysztof Kozlowski" , Conor Dooley , , , , , , , Satya Durga Srinivasu Prabhala , Melody Olvera , "Prasad Sodagudi" 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> From: Elliot Berman In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: QHOwOPLLr8KK9aUM57QeelC0PEWmH4jq X-Proofpoint-GUID: QHOwOPLLr8KK9aUM57QeelC0PEWmH4jq X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-26_08,2023-07-26_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 priorityscore=1501 mlxscore=0 bulkscore=0 impostorscore=0 spamscore=0 lowpriorityscore=0 mlxlogscore=999 malwarescore=0 adultscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307260154 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 7/26/2023 6:45 AM, Rob Herring wrote: > On Tue, Jul 25, 2023 at 12:01 PM 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-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. >>> >> >> 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. Apologies, I agree to make it part of the same node. I believe it requires some changes to PSCI driver to create/bind the vendor restart device. I wanted to see how Mark and Lorenzo wanted to incorporate the vendor resets into PSCI driver: maybe I don't even create a device/driver and simply incorporate the changes into PSCI driver directly.