From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 AF6053806D2 for ; Mon, 3 Aug 2026 14:21:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785766897; cv=none; b=PiROhFzPh45Nigb69LuAbOMzEMrBqamd62O7/ZrcsrvngLeJEZ/MWyfN2GPVQZJkYE/rXhmntEBTaMEV06NlNn9oJjAMMh94OqB/wNfxJpItRquBvsSwxObQayZbHun7t+qsK1X/jcRL86nwnUD2eFyCtoCOUZpDnZTTFeFnEfQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785766897; c=relaxed/simple; bh=xxVLiq26aREFwmOzoSKDuEH5j4IUCHnzg0NLhiqqzC4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=uVqjD6NqnzISTBu6hrr6dq/r1f882NZxYb8mvafKFIIsjNAC86ly+HUzAyioXsMrHaD5rmRb3lFzUTSLYsn1agfv7PnLVvYHxM9dEkOHiHnkdpGlvsNojpYDBZabmrApMWG2MyI2UtTUcOb9IkYt5T90xgd0nWyG57m9NzOZjXM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=ldsu9lv+; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=buF63Jbg; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="ldsu9lv+"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="buF63Jbg" Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 673EBtoM636316 for ; Mon, 3 Aug 2026 14:21:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= PdObhLmEiO4/ihNrGJ7V+rN3FSXGswWQoclVhlDfKmQ=; b=ldsu9lv+B9cFgVQm CGZAe5mke5nONmvdusNdpnNtCCICcx+WU7F9n8DBFt4tT0lCDVrUhHsyTCAjVHD5 GbDiALptzCutqbkSc1si8C89mrD7pdirGp3pmOd3INW3Ra6cSEgYbCVc0UjvRS78 vBXnRwTG7P37/G1di34v1C3sHQS+VLz+3G8EIb0WMBo49pFaMjbDgc8H9Ji6nD96 wpNvH/bPVkc86E5K8V21E+YzzxcTfpAo4NXuJL6ODj22eV6388cjHDbdCufCj2gq UY9SI4RjoH38k+VqZ5mZWz05nIMiM9ucbrph+10lhljx6QNK9XnJlO26dDn0KWP6 Fn9ffQ== Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ftp4r1umu-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 03 Aug 2026 14:21:34 +0000 (GMT) Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-cb6dd278512so2325187a12.3 for ; Mon, 03 Aug 2026 07:21:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1785766891; x=1786371691; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=PdObhLmEiO4/ihNrGJ7V+rN3FSXGswWQoclVhlDfKmQ=; b=buF63JbgkYJDia55P3e3KDE8X/6KYPODYz3gh68X+5a/i5Jl9AwBMwZYgv0CM7JTBh L12Ej9Qa6/3jIAsXXYTL7aufCxs+rN31v27q6ctx36nRYSAR553xLPRVt2v32MSBnPvu Az/lmHmutc8dpY4q7+EK3jOYKOgRmjZF3t/LxM9NFPC+xrrkm/uYVkVbK+yGVE54kJQK j3HlorJ57TCEhQoLz8bVWA0/NI0NzeoFSrgQrTbd/lbHS86Lu2HqGLj7YeTGMifd01IU 9XId6gJQz1sTuBK8RuTwqgPnKPtRcIQiVbDD5Ksfxyx+COG6G59tGdqrF0aSmvxIVJnZ 8mqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785766891; x=1786371691; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=PdObhLmEiO4/ihNrGJ7V+rN3FSXGswWQoclVhlDfKmQ=; b=EfmOgotIBbG+HfEre23We7mWYDL+Aj9eAaeT60ZZtFTG/rLt6X6lsMd7BxhBWFbwGi YuhzpKcPaxP9ACLxEqZiyx9iEl7qI6+GLUwXkYvTM0sLVxVlArA6Bmzw4oBlifQZ6tlW zIRCy2GLPaRBzdvRdGXdCT0GUtlFvGluatJeB97VxgfyslaC8gaQxNTfcBTedavHdFa/ 0jUlTzffskBCcpp2Lysm2nVnq2IZ9PU83ghGdcRsJdjhKQy4MxlGqx9I+cgczAYENVzu rW8QhFHl/JorPDvy19xn+9qE8CcdzfHeUdafwV9qZCOktDmYvzyndE88QQU09iie+V4w WYPg== X-Forwarded-Encrypted: i=1; AHgh+RqR33XenCGsKKp8sSB4SgO+OlmdiON/4038x96qqmmOs3R5b1zcyeD0t4OZZ4KcgY2oLhyC/b6RuexF@vger.kernel.org X-Gm-Message-State: AOJu0YyvDpoXh5cKLm4vWYmC/nbflxBLCCkmGEKXsBD4YA8CIlACy7Zb +rOKnRZlG1pThDrZ3SMdphSs/+m3uZudEmgQ4YPTv3egdsyawWyTWon7Ls7YjpQMSc4bAA5drid dyd86jV5ENB7P/UxUNI9X9UOFI2RAc+DfuSO/k8Oh+r4uYxkK8TwRLnGX2M2ZUFn1 X-Gm-Gg: AR+sD13eMaPNJDTRvhldfRkT76qasvEArkOjLppwp1LY3e8NIG8cKXQYYGv0KN/Su6o nofdgEZT3XFytfD173cmmmop2fBcnompEs4AWX8V6n9hGh+UQFZ3sMdDi6+YFapagnOz4zZ5b+i 1DPc1JEoZCF6JYcu794SvZ/bIdiY2wXfSFyILLHBJ566MLSl6Y9yMkzSB6b/bXJJNUyEIFN3NqC VrzstC4LF7DqsaPsQCLsknaS6YpVmTRqaKekVKXH5PVjJFo1RzfkBDGeGq37PTYZZGTdHPdSw6/ xzBrJJIZ1yAqN8FDV/G99sVFcwPfxOvPO0udMmCrzAphwv5MWffpQ6oPx+/KfMXUeZ0CHYVOCqg nYGX4/ZJhiz3jdhALe3/l4Jrc2XRVIENgSw== X-Received: by 2002:a05:6a21:468a:b0:3c4:1c9f:d91 with SMTP id adf61e73a8af0-3c92aa7d0cdmr11448443637.59.1785766891404; Mon, 03 Aug 2026 07:21:31 -0700 (PDT) X-Received: by 2002:a05:6a21:468a:b0:3c4:1c9f:d91 with SMTP id adf61e73a8af0-3c92aa7d0cdmr11448370637.59.1785766890901; Mon, 03 Aug 2026 07:21:30 -0700 (PDT) Received: from [10.218.44.82] ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3153e04491dsm51441432eec.16.2026.08.03.07.21.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Aug 2026 07:21:30 -0700 (PDT) Message-ID: <069a7ef3-7c01-4366-8643-11d791bd0d96@oss.qualcomm.com> Date: Mon, 3 Aug 2026 19:51:17 +0530 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v24 05/12] dt-bindings: arm: Document reboot mode magic To: Rob Herring Cc: Lorenzo Pieralisi , Arnd Bergmann , Bjorn Andersson , Sebastian Reichel , Souvik Chakravarty , Krzysztof Kozlowski , Andy Yan , Matthias Brugger , Mark Rutland , Conor Dooley , Konrad Dybcio , John Stultz , Moritz Fischer , "Rafael J. Wysocki" , Daniel Lezcano , Christian Loehle , Lee Jones , Ulf Hansson , Pavan Kondeti , Bartosz Golaszewski , Sudeep Holla , Florian Fainelli , Krzysztof Kozlowski , Dmitry Baryshkov , Mukesh Ojha , Andre Draszik , Greg Kroah-Hartman , Kathiravan Thirumoorthy , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, mfd@lists.linux.dev, Srinivas Kandagatla References: <20260803-arm-psci-system_reset2-vendor-reboots-v24-0-889281373870@oss.qualcomm.com> <20260803-arm-psci-system_reset2-vendor-reboots-v24-5-889281373870@oss.qualcomm.com> <20260803140222.GA3188037-robh@kernel.org> Content-Language: en-US From: Shivendra Pratap In-Reply-To: <20260803140222.GA3188037-robh@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Authority-Analysis: v=2.4 cv=X9Ri7mTe c=1 sm=1 tr=0 ts=6a70a3ee cx=c_pps a=rz3CxIlbcmazkYymdCej/Q==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=Sv0fKeRqtYgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=EUspDBNiAAAA:8 a=O-cBmbsoh36Jwjk5jm4A:9 a=QEXdDO2ut3YA:10 a=bFCP_H2QrGi7Okbo017w:22 X-Proofpoint-ORIG-GUID: KTOv_Xod-r3LFCz3ZL3Pj6QgkdxbRtrn X-Proofpoint-GUID: KTOv_Xod-r3LFCz3ZL3Pj6QgkdxbRtrn X-Proofpoint-Spam-Info: AW1haW4tMjYwODAzMDEyOSBTYWx0ZWRfX2WmWmJgv/8Fk DxyHZuVnynTUQ0VD8Jmyzk47c+ODEDaX91bXV0/T0vm1eMyubi8s3Koj+vcCjXoh6IwizIqfUgr gKHCvk8E0czqBV5TMWjBEe/8n9Q9bCw= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwODAzMDEyOSBTYWx0ZWRfX9RGmGDhLjZA7 bTiEcnjygx1zO2NB8kH+ZKvCY71tT0lWx0UEtBGA+OtbtiqpoODdxEURGfEkOUjW9JlIk63s8j4 jCxyIn3S2rVJV1Ww+YYZweQ/ATbuaQremGsKrVmRFxw+pl6Iff6/DgHQldIpHMHqRPuHXjw8WrG Ma2bZPD0RKOCv9v1abn08aJMTW6ken1j2G55C0CJowaATYJQzAO9i378cWjXjr8hpAd26hm4qE7 stXBP0OHZcDeOaUGCPbm9XBcUhypbrtqXobwzzNvV4NltH0yf5VjJ15LZokt2YotrI47zQj8Mei Tzmlas/pfwf6RvYb21MRj5i1UgczD9c1pYC5/iPgZhpAewefQ/G+n+LHQPaiIlP0tOOYH6aM3VI 4PEEu4AkMEZJ7PpO6QHe98/B2N1E/ZciOCiSAixyQP0GHPM/Inf0kyT9EnTIJvEZGAf+0mudlJT Nf9xhHA34JKVTTW8HuQ== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-08-03_03,2026-08-03_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 bulkscore=0 malwarescore=0 priorityscore=1501 phishscore=0 adultscore=0 spamscore=0 lowpriorityscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2608030129 On 8/3/2026 7:32 PM, Rob Herring wrote: > On Mon, Aug 03, 2026 at 03:13:36PM +0530, Shivendra Pratap wrote: >> Add bindings to describe vendor-specific reboot modes. Values here >> correspond to valid parameters to vendor-specific reset types in PSCI >> SYSTEM_RESET2 call. >> >> Signed-off-by: Shivendra Pratap >> --- >> Documentation/devicetree/bindings/arm/psci.yaml | 58 +++++++++++++++++++++++++ >> 1 file changed, 58 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/arm/psci.yaml b/Documentation/devicetree/bindings/arm/psci.yaml >> index 6e2e0c551841..7d6a86690a2e 100644 >> --- a/Documentation/devicetree/bindings/arm/psci.yaml >> +++ b/Documentation/devicetree/bindings/arm/psci.yaml >> @@ -98,6 +98,41 @@ properties: >> [1] Kernel documentation - ARM idle states bindings >> Documentation/devicetree/bindings/cpu/idle-states.yaml >> >> + reboot-mode: >> + type: object >> + $ref: /schemas/power/reset/reboot-mode.yaml# >> + unevaluatedProperties: false >> + properties: >> + # "mode-normal" is just SYSTEM_RESET >> + mode-normal: false >> + patternProperties: >> + "^mode-.*$": >> + minItems: 1 >> + maxItems: 3 >> + items: >> + - description: arg1 (vendor-specific SYSTEM_RESET2 reset_type) >> + allOf: > > Don't need allOf here. Ack. > >> + - $ref: /schemas/types.yaml#/definitions/uint32 >> + - minimum: 0x80000000 >> + - description: arg2 (cookie_lo in 2-cell form, cookie_hi in 3-cell form) >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + - description: arg3 (cookie_lo in 3-cell form) >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + description: | >> + Describes a PSCI SYSTEM_RESET2 vendor-specific reset type. The string >> + after "mode-" maps a reboot mode to a vendor-specific reset. > > Blank line if this is a paragraph. Ack. > >> + A vendor-specific reset takes two arguments, a 32-bit reset_type and a >> + 64-bit cookie. The arguments are encoded as up to three 32-bit cells. >> + Each mode property is encoded as mode-xxx = , >> + where: > > blank line Ack. > >> + - arg1 is reset_type and must be >= 0x80000000. >> + - In 2-cell form, arg2 is lower 32 bits of cookie. >> + - In 3-cell form, arg2 is high 32 bits of cookie >> + and arg3 is low 32 bits of cookie. > > Indent the list by 2 more spaces. Ack. > >> + >> + All values should be provided as per the PSCI SYSTEM_RESET2 >> + specification. >> + >> patternProperties: >> "^power-domain-": >> $ref: /schemas/power/power-domain.yaml# >> @@ -137,6 +172,15 @@ allOf: >> required: >> - cpu_off >> - cpu_on >> + - if: >> + not: >> + properties: >> + compatible: >> + contains: >> + const: arm,psci-1.0 > > SYSTEM_RESET2 was introduced in PSCI 1.1... thanks. will update. thanks, Shivendra