From nobody Mon Oct 6 21:02:09 2025 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 9357F2D8376 for ; Thu, 17 Jul 2025 12:48:10 +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=1752756493; cv=none; b=fCCeXecmJP1DXk5OFpQH7cWuie2uYECGrQi9m3Cs8z6/s1b5jZGqQ61mBCh0GH6SrSZFp0JcYNt4/YPbqVg2puL9ol9rtSM3sxRkElwWAjMYEMCNZitHg9ggnV6ifCaRPltmL8H4FVTy/u6wuriEo2tUERYFjd91SmD3DuoD4wE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752756493; c=relaxed/simple; bh=TXtx922bW7Cthax35l5eL6qlXJtqJfd163vx/p8QQUw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=E3aSpFP+3m7NZif3tDXKbaGXEh2yeH0Vd7iHYg+3s4Th/zDeFkPZSE31cstytsBPbH7XzXIdtFgXQUpJszPbX0SvtvDxvHelNOw0VHLPriVCT159xTICaFKKMEfsw+kuvyzvLbtPuTDs3Ig/8oTxRmXnZatMTGLBaottGJVruqU= 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=CdWLIJxF; 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="CdWLIJxF" Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 56HCEgN6007306 for ; Thu, 17 Jul 2025 12:48:09 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= dVmI/zpQBLHcmY6/km9+lnVLqKzUs1cGOy2afpNbw1A=; b=CdWLIJxFATwrJk1Z sXz+cK0ikSSAhq9RFKcE2ix+DNfu5lE9tiDOHj6FP0o2zWVzgOsrjm7QY7STDf9a k7v5p7ePBWaIJsTsn+JUXm2Boa+2ANZ6V/jw24Iw3SbPnQyMjieI+ean0HVyUnTq LaU69T9tmxB160H7fslKCnqCIYK6ET93yKHk+fbhmyVy6mSzjPeBkNx1JwsS1jZ4 mO2skWUz0nyjlimMD8qMn71iXqNefDDDPoVEPklV4jJZfYFFTg7gHvt3wH9bWZbr wHVeTd0LXd/RXckF9YiFtyun4hmqMDDhPbZe8aqXDJPJT7dpB9N4AjThaVwiXJyT yhmTdA== Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 47wfca8uq8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 17 Jul 2025 12:48:09 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3121cffd7e8so750157a91.0 for ; Thu, 17 Jul 2025 05:48:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752756488; x=1753361288; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dVmI/zpQBLHcmY6/km9+lnVLqKzUs1cGOy2afpNbw1A=; b=bx5O/e6p1kAtCQY4QRVR1EfwgLgygdtR4PICgUymxm+HDVNwMIOXBIlxTrze8O7xyh gnjMcq9fUsMfqKcwuO5EjdBFK40UUKnWrVGUZKYbHy0cL409PHL3bt2/UsbanIAHP9LQ c452UVk3muMmEtxA2+ktRc/mkRyUDTV7DpnxwRtbbp8pqJIzbBx8t11DXY4HWFJckwdu VdgZGIH8NNDfLDfRPjgnMYSHaiomKfpd+V9U/JDYF9FbLMCBJF9/xzIfpgcfAwg0+oCc hFZw5V5HryfG2zDzd3UIYmxjlPKI6ooCav6fBluAPZQFokO1kfsIvYhq86eevMOUUM6r 2a1Q== X-Forwarded-Encrypted: i=1; AJvYcCXlM+pn+xPpIS9PiEFBT9B+pJMdSaLYOxOcAs/RDWNFFeDZA4/5rS/JxIKlAb2qXmO5m0BU3sC2iBIqzS0=@vger.kernel.org X-Gm-Message-State: AOJu0Yx3vRqUbeDH17mb1RULc8ctYnWNpN7pum2n8jfqnDu7lG1PcgyJ Yuhanw2xotizW+xpoJbUFDi9RQnPpCnVYSRiIN6Ds+atnR1UiJs7k1ZROz2MCmWreTUy0tihsu7 WSWs26jrburMGL9zjFzF9VqWlzUjHoUPGqp8usIt9WNLK1bi9yp85KWEpga4/WJPCKiE= X-Gm-Gg: ASbGncupQADuLQyl8lz4AE2mNob3njW4IqcgIr5710DuwPvPzcovQ597ucRDP2XDBzA w0vCrB0x45JCggQE8vzU6QyUEnYVgSBRKlr1dVB38x45GUdXte7qGtvzJ30rYs5OzJQO/23PAUz jq0BXJPblsA6XftNaC5LDIL/f934zFOQNZA18/KV4SvyyP1xFzltQkh8CMCIyT758nwfAoS+okT U87t8N3WXt/TNkxhqD7rRHDq5jz+JpU54f2QPofty7qXgHorOVTXxiHEz0r6LQIjbX89z/32YSZ gjRxBOPEo4PotjH0eUZwC5uEGgwW37Nukmz7ETVYAxgvPVPKD3v2N1z9DOWrmrO/1my8woe3fuZ 3 X-Received: by 2002:a17:90b:5388:b0:31c:15b4:8e22 with SMTP id 98e67ed59e1d1-31c9f435808mr9114241a91.7.1752756488052; Thu, 17 Jul 2025 05:48:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHkOlSWzDs1uSxp1jQJYtEnS6kEvwG5U6hkqUjcCEAR0EVPDQRcrI9D1cToYjNe3mFQ7HLYKQ== X-Received: by 2002:a17:90b:5388:b0:31c:15b4:8e22 with SMTP id 98e67ed59e1d1-31c9f435808mr9114191a91.7.1752756487531; Thu, 17 Jul 2025 05:48:07 -0700 (PDT) Received: from hu-spratap-hyd.qualcomm.com ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-31caf828a0esm1505283a91.42.2025.07.17.05.47.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Jul 2025 05:48:07 -0700 (PDT) From: Shivendra Pratap Date: Thu, 17 Jul 2025 18:16:49 +0530 Subject: [PATCH v11 3/8] dt-bindings: arm: Document reboot mode magic Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250717-arm-psci-system_reset2-vendor-reboots-v11-3-df3e2b2183c3@oss.qualcomm.com> References: <20250717-arm-psci-system_reset2-vendor-reboots-v11-0-df3e2b2183c3@oss.qualcomm.com> In-Reply-To: <20250717-arm-psci-system_reset2-vendor-reboots-v11-0-df3e2b2183c3@oss.qualcomm.com> To: Bartosz Golaszewski , Bjorn Andersson , Sebastian Reichel , Rob Herring , Sudeep Holla , Souvik Chakravarty , Krzysztof Kozlowski , Conor Dooley , Andy Yan , Mark Rutland , Lorenzo Pieralisi , Arnd Bergmann , Konrad Dybcio , cros-qcom-dts-watchers@chromium.org, Vinod Koul , Catalin Marinas , Will Deacon , Florian Fainelli Cc: Dmitry Baryshkov , Mukesh Ojha , Stephen Boyd , Andre Draszik , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, Elliot Berman , Shivendra Pratap , Srinivas Kandagatla , Elliot Berman X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1752756455; l=2577; i=shivendra.pratap@oss.qualcomm.com; s=20250710; h=from:subject:message-id; bh=Pb0JW5FgpXpfFWALyentRdrGNmebMgVj4WCNzS0Y1bY=; b=BgwZ30iCRhtExbmDA6TGpA/ZoDLVSuir4HWMJR6quDkTJVIhg8rPL/W6Ku9lD9vGEir88pY36 8DCIosdvqopAvydgEHilt2iR7zGvvBaGtQw4OuratuzgNcdD01zNQmc X-Developer-Key: i=shivendra.pratap@oss.qualcomm.com; a=ed25519; pk=CpsuL7yZ8NReDPhGgq6Xn/SRoa59mAvzWOW0QZoo4gw= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNzE3MDExMiBTYWx0ZWRfXwIiSQeUy2UAT H6mlJVqG8TuBHekDfWsl5uhmA4nsQG6uFCvy8xDBDFRj4/Y05Ja/INBS9myAvRfIBgYjGdTw386 cBAead1bii7LvIg/3b8FhbBmb97Mv1tcYva5lvPlhTrYXBo4+zxnWAk4RZoDmbvsDlu5sMcx2Qm 5w00duoRuu/4FP+EE4QgyzRjD1/uMdrCznNEypVJXMM5V1sD5VTTQzhU0hLzt/u0HZk1oPqenFf UtRYOdr0Yl14i7PUDTBOUdYGeTadF4VeUQo0vRGM6ASHBfeUUudZDdEr6JMo2JkfLu8CYguKYHW TlSbT20+FANBsnIZSOy6U5SECQ+9jSRIDVjnxd/GIZAENPaiqu4pk2D2EmVSiyM3ljpdAfOM605 UsfCgK67ge6lBzVO85JZW14HfQkilwfFAYDD2ylxWGdl6cNBslBV2cVZnbAlOcWHaXJceYPQ X-Proofpoint-GUID: W0wO8_zXqNw0q3ka2vWDtZYuWJpv0gLg X-Authority-Analysis: v=2.4 cv=SeX3duRu c=1 sm=1 tr=0 ts=6878f109 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=Wb1JkmetP80A:10 a=EUspDBNiAAAA:8 a=VwQbUJbxAAAA:8 a=UInjrUrXc7y1C1sAkbYA:9 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-ORIG-GUID: W0wO8_zXqNw0q3ka2vWDtZYuWJpv0gLg X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-07-17_01,2025-07-17_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 mlxscore=0 priorityscore=1501 bulkscore=0 phishscore=0 lowpriorityscore=0 mlxlogscore=999 impostorscore=0 clxscore=1015 adultscore=0 suspectscore=0 malwarescore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2507170112 From: Elliot Berman Add bindings to describe vendor-specific reboot modes. Values here correspond to valid parameters to vendor-specific reset types in PSCI SYSTEM_RESET2 call. Reviewed-by: Rob Herring (Arm) Signed-off-by: Elliot Berman Signed-off-by: Shivendra Pratap --- Documentation/devicetree/bindings/arm/psci.yaml | 43 +++++++++++++++++++++= ++++ 1 file changed, 43 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/psci.yaml b/Documentatio= n/devicetree/bindings/arm/psci.yaml index 7360a2849b5bd1e4cbadac533c1a7228573288d4..da3a584c76b48e313a5d4cb7c8e= 0c3a3628fd1bb 100644 --- a/Documentation/devicetree/bindings/arm/psci.yaml +++ b/Documentation/devicetree/bindings/arm/psci.yaml @@ -98,6 +98,27 @@ properties: [1] Kernel documentation - ARM idle states bindings Documentation/devicetree/bindings/cpu/idle-states.yaml =20 + 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: 2 + description: | + Describes a vendor-specific reset type. The string after "mode-" + maps a reboot mode to the parameters in the PSCI SYSTEM_RESET2 c= all. + + Parameters are named mode-xxx =3D , where xxx + is the name of the magic reboot mode, type is the lower 31 bits + of the reset_type, and, optionally, the cookie value. If the coo= kie + is not provided, it is defaulted to zero. + The 31st bit (vendor-resets) will be implicitly set by the drive= r. + patternProperties: "^power-domain-": $ref: /schemas/power/power-domain.yaml# @@ -137,6 +158,15 @@ allOf: required: - cpu_off - cpu_on + - if: + not: + properties: + compatible: + contains: + const: arm,psci-1.0 + then: + properties: + reset-types: false =20 additionalProperties: false =20 @@ -261,4 +291,17 @@ examples: domain-idle-states =3D <&cluster_ret>, <&cluster_pwrdn>; }; }; + + - |+ + + // Case 5: SYSTEM_RESET2 vendor resets + psci { + compatible =3D "arm,psci-1.0"; + method =3D "smc"; + + reboot-mode { + mode-edl =3D <0>; + mode-bootloader =3D <1 2>; + }; + }; ... --=20 2.34.1