]> git.dujemihanovic.xyz Git - u-boot.git/commit
gpio: turris_omnia_mcu: Add support for system power off via sysreset
authorMarek Behún <kabel@kernel.org>
Thu, 4 Apr 2024 07:51:03 +0000 (09:51 +0200)
committerStefan Roese <sr@denx.de>
Thu, 4 Apr 2024 08:45:27 +0000 (10:45 +0200)
commita5505de01d384cc9e283705092830683494a8505
treef00ff38e06888743d684c9c6d163bd24dd553985
parent68e09ae19eb6bd0214ecf89d3037b4172173ecdf
gpio: turris_omnia_mcu: Add support for system power off via sysreset

Add support for system power off via UCLASS_SYSRESET. Newer versions of
Turris Omnia MCU firmware can power off the board (MCU will disable
almost all voltage regulators and go into low power mode).

Move the MCU driver into drivers/misc and register it under UCLASS_MISC.
The sysreset and gpio device are bound as child devices of the MCU device.

Signed-off-by: Marek Behún <kabel@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
configs/turris_omnia_defconfig
drivers/gpio/Kconfig
drivers/gpio/Makefile
drivers/misc/Kconfig
drivers/misc/Makefile
drivers/misc/turris_omnia_mcu.c [moved from drivers/gpio/turris_omnia_mcu.c with 60% similarity]