power: reset: add Toradex Embedded Controller
authorEmanuele Ghidoli <emanuele.ghidoli@toradex.com>
Mon, 14 Apr 2025 17:14:55 +0000 (19:14 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 28 Apr 2025 23:13:10 +0000 (01:13 +0200)
commit18672fe12367ed44df24ff38aa6ac350fac479f7
treebc47b90b9768f5f475db950185c346b5c94d38af
parent1cf87b00a74d3ee3006d825855e0075ddd2eab2f
power: reset: add Toradex Embedded Controller

Toradex SMARC iMX8MP and SMARC iMX95 SoM modules use a small Embedded
Controller (EC) to manage power and reset functions and related SMARC
signals.

This driver implements power-off and reboot handlers, communicating with
the EC via I2C to issue the appropriate power management commands.

During probe, the driver logs the Embedded Controller ID (unique ID for
each SMARC board supported) in hex format along with the firmware version.

Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Link: https://lore.kernel.org/r/20250414171455.155155-3-francesco@dolcini.it
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
MAINTAINERS
drivers/power/reset/Kconfig
drivers/power/reset/Makefile
drivers/power/reset/tdx-ec-poweroff.c [new file with mode: 0644]