Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4236615rwo; Tue, 25 Jul 2023 02:58:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlHHzMQKjOjg8aujldK+41EvXpD8gHjNNydyzHgxEgys+2kkVLkh/wigyLWlRba5cIcqIfne X-Received: by 2002:a17:906:74d1:b0:992:a31f:f584 with SMTP id z17-20020a17090674d100b00992a31ff584mr13579107ejl.31.1690279138037; Tue, 25 Jul 2023 02:58:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690279138; cv=none; d=google.com; s=arc-20160816; b=fmhI+MmQOCVrRa/+kz+M35uMG99+8qPC4geaTb7QGSbOFx8IOsA92SfUihNsXyGG2/ K3i76m4iQxc3Ujnsml35TCKarDqoXLaMvik9DAggDlFrlDHZmk+jLmrUcJqrMVdqNx+R ukqOSp0p8Bz3QHIn8vY8q8scbJtQoc7xH85lXtG6fVR7aDdR3B2t3zKnUhZW8dVkSrTx gadUGW5Iec51YSqUoUenBOTiK6gjlYwf3DFK3QCpXOopncAi0W3O86T44bzTMmDiNuFp 6PCTNC9LqJksKbbqfuvzz+LGkeo9WTMJ2dve/C4fkzB0y0XApNJ9qTKp0rZtNyTbzrL6 C0Gg== 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=+7rrkjJuBqZ+dK/U917Z4pPyFYVdFap3OBvQjDRjYo4=; fh=KAOsI2vuI/ulEV4YbfpfnyjKGLNa7csGWw0TagSsDJ8=; b=eZD5DMkOAvdDijj43nAmM15rh3qgTO2f9FqAwZ2JjYIE+cyRRxpgvLW2llYHD9hgSV P+UIda/SMkV8G7XIHLO/iN7epegJnaAOG2WWdSt0oxRXyHSbOtYtf0aE2tykbzOtHSxJ VakcvS0K8X9uBSLSG4CBe968S8vLaPTMoNkUdfZnlX/FclXHXcTFx5EHT7OWIgnNceDJ Qpnc42l4AGmgXrqdytNQfImLgbs1Wk+JEFH1kYFOmdfdgszQsVGpfXz4SwzVQk5xu/32 tyqmplFfqmNm+i6r9b8cuN3HyBK7GIGIq1sFh81WjeVtN/+I/X6Jogo0sdGNMKJLq3fL KKoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ZneSAAV6; 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 j22-20020a170906279600b00982a5377650si7551281ejc.247.2023.07.25.02.58.33; Tue, 25 Jul 2023 02:58:58 -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=ZneSAAV6; 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 S232340AbjGYIaY (ORCPT + 99 others); Tue, 25 Jul 2023 04:30:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231948AbjGYIaV (ORCPT ); Tue, 25 Jul 2023 04:30:21 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50FA2E57; Tue, 25 Jul 2023 01:30:20 -0700 (PDT) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36P88bVt010810; Tue, 25 Jul 2023 08:30:06 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=+7rrkjJuBqZ+dK/U917Z4pPyFYVdFap3OBvQjDRjYo4=; b=ZneSAAV6OZV6cUvgo/JI1O70NxBDLz9pbaDFrslTEmxFWHOGjSTobY3lBivJymzV09KI Uu6LlopwjzyFWbyZ8H4rD/7zzvz0UQEMqli4CRu1IRzFRCgMgUCZGcn5khR0xGgDfTIV A8XaTPzjrtFRqEQ01xxd+2/o4K0C6mngKQCbzPBRbANojje/RssiXCFzso8PO/10zet5 MKJWNYEqlqpVBN2aXBJid5ZdxejRFfFWEThyKXyM6BG3paPYbCSA727roohaZYgf/1Gl EcO//S0vj+MyGAaRlWUa4PF9vKj3sLhMKjxoP0p5ydNvf7Z+hAleG0otRSsskFxQtYy5 qg== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3s1v6u9s79-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Jul 2023 08:30:06 +0000 Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 36P8U1ui000442 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 25 Jul 2023 08:30:01 GMT Received: from [10.216.12.191] (10.80.80.8) by nasanex01c.na.qualcomm.com (10.45.79.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Tue, 25 Jul 2023 01:29:56 -0700 Message-ID: <9c989e91-741c-72d7-413c-b727e7d107d7@quicinc.com> Date: Tue, 25 Jul 2023 13:59:46 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [RFC PATCH 3/4] dt-bindings: power: reset: Document arm,psci-vendor-reset Content-Language: en-US To: Elliot Berman , Mark Rutland , Lorenzo Pieralisi , "Sebastian Reichel" , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley CC: , , , , , , "Satya Durga Srinivasu Prabhala" , Melody Olvera , Prasad Sodagudi References: <20230724223057.1208122-1-quic_eberman@quicinc.com> <20230724223057.1208122-4-quic_eberman@quicinc.com> From: Mukesh Ojha In-Reply-To: <20230724223057.1208122-4-quic_eberman@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01c.na.qualcomm.com (10.45.79.139) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: PybqWDFxuBdzp8HvWWPaM3Lt-rZxQzza X-Proofpoint-GUID: PybqWDFxuBdzp8HvWWPaM3Lt-rZxQzza 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-25_04,2023-07-24_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 suspectscore=0 priorityscore=1501 mlxlogscore=999 lowpriorityscore=0 impostorscore=0 mlxscore=0 spamscore=0 adultscore=0 phishscore=0 malwarescore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307250074 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/25/2023 4:00 AM, 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"; > + reboot-normal = <0x100>; > + reboot-bootloader = <0x101>; > + reboot-fastboot = <0x102>; Should it start with mode-* ? -Mukesh > + }; > + }; > 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