arm64: dts: qcom: sc8280xp: Add PS_HOLD restart
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Thu, 7 Mar 2024 20:25:56 +0000 (21:25 +0100)
committerBjorn Andersson <andersson@kernel.org>
Mon, 18 Mar 2024 01:27:06 +0000 (20:27 -0500)
Killing the platform with a single write and no firmware involvement is
pretty cool, add support for it.

Note that due to restart notifier priority settings, PSCI reset will
be used instead, unless:

a) PSCI is not exposed by the firmware (e.g. because the fw was replaced)
or
b) PSCI restart fails for some reason

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20240307-topic-8280_nodes-v1-3-4eba20e08902@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/sc8280xp.dtsi

index eb19ae4e486f3efc0ff398855d29ff97e182f00d..93f5c02b06da2b7c5583190d983e53e9907f9bb1 100644 (file)
                        #thermal-sensor-cells = <1>;
                };
 
+               restart@c264000 {
+                       compatible = "qcom,pshold";
+                       reg = <0 0x0c264000 0 0x4>;
+               };
+
                tsens1: thermal-sensor@c265000 {
                        compatible = "qcom,sc8280xp-tsens", "qcom,tsens-v2";
                        reg = <0 0x0c265000 0 0x1ff>, /* TM */