]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pmdomain: thead: Add power-domain driver for TH1520
authorMichal Wilczynski <m.wilczynski@samsung.com>
Tue, 11 Mar 2025 17:18:59 +0000 (18:18 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 13 Mar 2025 13:42:06 +0000 (14:42 +0100)
commitdc9a897dbb03dfd46c3bd2ce69e42e378bd12ca0
tree4ed52e8d25b21d4234113fd1cd9c853a893e69ce
parent0c54b63d247a9d72d0875c1d845b9e8a1d320e79
pmdomain: thead: Add power-domain driver for TH1520

The T-Head TH1520 SoC contains multiple power islands that can be
programmatically turned on and off using the AON (Always-On) protocol
and a hardware mailbox [1]. The relevant mailbox driver has already been
merged into the mainline kernel in commit 5d4d263e1c6b ("mailbox:
Introduce support for T-head TH1520 Mailbox driver");

Introduce a power-domain driver for the TH1520 SoC, which is using AON
firmware protocol to communicate with E902 core through the hardware
mailbox. This way it can send power on/off commands to the E902 core.

The interaction with AUDIO power island e.g trying to turn it OFF proved
to crash the firmware running on the E902 core. Introduce the workaround
to disable interacting with the power island.

[1]
Link: https://openbeagle.org/beaglev-ahead/beaglev-ahead/-/blob/main/docs/TH1520%20System%20User%20Manual.pdf
Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com>
Acked-by: Drew Fustini <drew@pdp7.com>
Link: https://lore.kernel.org/r/20250311171900.1549916-5-m.wilczynski@samsung.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
MAINTAINERS
drivers/pmdomain/Kconfig
drivers/pmdomain/Makefile
drivers/pmdomain/thead/Kconfig [new file with mode: 0644]
drivers/pmdomain/thead/Makefile [new file with mode: 0644]
drivers/pmdomain/thead/th1520-pm-domains.c [new file with mode: 0644]