From c38b4f2590f28078bf3a811d160b5f9b64e54ca8 Mon Sep 17 00:00:00 2001
From: gitbot <gitbot@garz-fricke.com>
Date: Fri, 18 Nov 2022 10:33:55 +0000
Subject: [PATCH] Integrate linux-imx-kuk/dual-espresso_custom-poweroff

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/65760c5910a6a58496383bc1015f67a2841a5c8b

dts:dual-espresso: Add custom poweroff routine

The power off routine monitors the PW_FAIL24V# signal. If the 24V
are active or become active again while the system is in the custom
power off routine, a restart is triggered.

BCS 746-001083

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/858faf2ec3f99037c77f4200526b2e643a7ae393

drivers:psci: Add possibility to skip the assignment of pm_power_off

Since we need a custom poweroff routine for the dual-espresso project,
pm_power_off must be assigned to a special function. pm_power_off is
assigned to psci_sys_poweroff by default. Added a devicetree property
that allows to skip the assignment of pm_power_off to avoid a potential
race condition.

BCS 746-001083

--

Commit: https://git.seco.com/seco-ne/kernel/linux-imx-kuk/-/commit/f005841e4ef047b2ee2ec0abf378cb18d400c9a6

drivers:power: Add a custom poweroff module for dual-espresso

The module monitors a gpio state and calls the kernel restart
handler when the gpio has a specific state. This done by assigning a
the monitor routine to the pm_power_off function pointer. In this way,
the monitoring starts as the last step of a shutdown -P call.
Devicetree properties:
* init-delay-ms: Set an initial delay until the monitoring is started
* monitor-delay-ms: Poll delay of the gpio

BCS 746-001083
---
 SRCREV.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/SRCREV.conf b/SRCREV.conf
index 8b80b04c..d8f57f46 100644
--- a/SRCREV.conf
+++ b/SRCREV.conf
@@ -8,7 +8,7 @@ SRCREV:pn-seco-show-demo = "3efa98e1e01af6e4610bfd07b90d8fbbb7ea3ca4"
 SRCREV:pn-libmdb = "9e057c125429a7720956d3067fcda0d6e66d09db"
 SRCREV:pn-linux-guf = "0142c5bc8f2c1e94e674bfeb3b2cc6a9fe818761"
 SRCREV:pn-linux-seconorth = "36f64724f1bb68be8e806f7a17f2641226385c22"
-SRCREV:pn-linux-imx = "d97971d2143b819c133a382064fd73ebdb834c62"
+SRCREV:pn-linux-imx = "65760c5910a6a58496383bc1015f67a2841a5c8b"
 SRCREV:pn-linux-imx-kuk = "0258f07c61364958e3307da11a388e72baffb03a"
 SRCREV:pn-touchcal-conv = "e02e43816208456e770df9f4891e37cd4afa73e2"
 SRCREV:pn-u-boot-imx = "ceeeaeb5a6be1e7828e623cc1b8a9b0b0d37a55b"
-- 
GitLab