最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

linux kernel - How can I integrate a PSHOLD GPIO power-off mechanism on i.MX93 while retaining PSCI functionality? - Stack Overf

programmeradmin2浏览0评论

We are developing a product using the i.MX93 SoC. Our board design requires that a dedicated PSHOLD GPIO pin be toggled to completely cut power during shutdown. We attempted to use the gpio‑poweroff driver in our device tree for this purpose. However, during shutdown, we observed the following error in dmesg:

gpio-poweroff: gpio_poweroff_probe: pm_power_off function already
registered poweroff-gpio: probe of gpio-poweroff failed with error -16

After some investigation, we found that the PSCI driver in our kernel (which is part of the ARM Trusted Firmware integration) is registering its own power‑off handler by executing:

pm_power_off = psci_sys_poweroff;

This PSCI handler is responsible for the standard power‑off sequence (using the ARM PSCI interface) and is occupying the global pm_power_off pointer, thereby preventing gpio‑poweroff from registering and toggling our PSHOLD GPIO.

Our goal is to maintain PSCI functionality for CPU management while also ensuring that the PSHOLD GPIO is toggled to physically cut power.

  • Has anyone successfully integrated a PSHOLD GPIO mechanism on an i.MX93 platform while still retaining PSCI for CPU management?
  • What is the recommended approach—should we modify the secure firmware (or PSCI driver) so that the PSCI SYSTEM_OFF call also toggles our PSHOLD GPIO, or is there another supported method?

Any guidance or experience on integrating this hardware power-off feature on i.MX93 would be greatly appreciated.

Thank you!

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论