Skip to content

[PW_SID:942815] [v8,1/5] dt-bindings: firmware: thead,th1520: Add support for firmware node#170

Closed
linux-riscv-bot wants to merge 5 commits into
workflow__riscv__fixesfrom
pw942815
Closed

[PW_SID:942815] [v8,1/5] dt-bindings: firmware: thead,th1520: Add support for firmware node#170
linux-riscv-bot wants to merge 5 commits into
workflow__riscv__fixesfrom
pw942815

Conversation

@linux-riscv-bot
Copy link
Copy Markdown

PR for series 942815 applied to workflow__riscv__fixes

Name: [v8,1/5] dt-bindings: firmware: thead,th1520: Add support for firmware node
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=942815
Version: 8

Michal Wilczynski added 5 commits March 11, 2025 17:45
The kernel communicates with the E902 core through the mailbox
transport using AON firmware protocol. Add dt-bindings to document it
the dt node.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
The T-Head TH1520 SoC uses an E902 co-processor running Always-On (AON)
firmware to manage power, clock, and other system resources [1]. This
patch introduces a driver implementing the AON firmware protocol,
allowing the Linux kernel to communicate with the firmware via mailbox
channels.  Through an RPC-based interface, the kernel can initiate power
state transitions, update resource configurations, and perform other
AON-related tasks.

Link: https://openbeagle.org/beaglev-ahead/beaglev-ahead/-/blob/main/docs/TH1520%20System%20User%20Manual.pdf [1]

Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Add power domain ID's for the TH1520 SoC power domains.

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
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 5d4d263 ("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.

Link: https://openbeagle.org/beaglev-ahead/beaglev-ahead/-/blob/main/docs/TH1520%20System%20User%20Manual.pdf [1]

Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
T-Head SoCs feature separate power domains (power islands) for major
components like the GPU, Audio, and NPU. To manage the power states of
these components effectively, the kernel requires generic power domain
support.

This commit enables `CONFIG_PM_GENERIC_DOMAINS` for T-Head SoCs,
allowing the power domain driver for these components to be compiled and
integrated. This ensures proper power management and energy efficiency
on T-Head platforms.

By selecting `PM_GENERIC_DOMAINS`, we provide the necessary framework
for the power domain drivers to function correctly on RISC-V
architecture with T-Head SoCs.

Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com>
Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v8,1/5] dt-bindings: firmware: thead,th1520: Add support for firmware node"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 97.29 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v8,1/5] dt-bindings: firmware: thead,th1520: Add support for firmware node"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 807.97 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v8,1/5] dt-bindings: firmware: thead,th1520: Add support for firmware node"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 961.36 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v8,1/5] dt-bindings: firmware: thead,th1520: Add support for firmware node"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 18.38 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v8,1/5] dt-bindings: firmware: thead,th1520: Add support for firmware node"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 19.47 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v8,1/5] dt-bindings: firmware: thead,th1520: Add support for firmware node"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 1.04 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v8,1/5] dt-bindings: firmware: thead,th1520: Add support for firmware node"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 36.05 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v8,1/5] dt-bindings: firmware: thead,th1520: Add support for firmware node"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v8,1/5] dt-bindings: firmware: thead,th1520: Add support for firmware node"
kdoc
Desc: Detects for kdoc errors
Duration: 1.26 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v8,1/5] dt-bindings: firmware: thead,th1520: Add support for firmware node"
module-param
Desc: Detect module_param changes
Duration: 0.79 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v8,1/5] dt-bindings: firmware: thead,th1520: Add support for firmware node"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.75 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 1: "[v8,1/5] dt-bindings: firmware: thead,th1520: Add support for firmware node"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.29 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[v8,2/5] firmware: thead: Add AON firmware protocol driver"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 97.10 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[v8,2/5] firmware: thead: Add AON firmware protocol driver"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 856.00 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[v8,2/5] firmware: thead: Add AON firmware protocol driver"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1020.73 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[v8,2/5] firmware: thead: Add AON firmware protocol driver"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 18.16 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[v8,2/5] firmware: thead: Add AON firmware protocol driver"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 19.81 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[v8,2/5] firmware: thead: Add AON firmware protocol driver"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 2.03 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[v8,2/5] firmware: thead: Add AON firmware protocol driver"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 36.26 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[v8,2/5] firmware: thead: Add AON firmware protocol driver"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[v8,2/5] firmware: thead: Add AON firmware protocol driver"
kdoc
Desc: Detects for kdoc errors
Duration: 0.94 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[v8,2/5] firmware: thead: Add AON firmware protocol driver"
module-param
Desc: Detect module_param changes
Duration: 0.30 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[v8,2/5] firmware: thead: Add AON firmware protocol driver"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.22 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 2: "[v8,2/5] firmware: thead: Add AON firmware protocol driver"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.28 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 3: "[v8,3/5] dt-bindings: power: Add TH1520 SoC power domains"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 96.73 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 3: "[v8,3/5] dt-bindings: power: Add TH1520 SoC power domains"
kdoc
Desc: Detects for kdoc errors
Duration: 0.94 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 3: "[v8,3/5] dt-bindings: power: Add TH1520 SoC power domains"
module-param
Desc: Detect module_param changes
Duration: 0.33 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 3: "[v8,3/5] dt-bindings: power: Add TH1520 SoC power domains"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 3: "[v8,3/5] dt-bindings: power: Add TH1520 SoC power domains"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.33 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 4: "[v8,4/5] pmdomain: thead: Add power-domain driver for TH1520"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 96.72 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 4: "[v8,4/5] pmdomain: thead: Add power-domain driver for TH1520"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 846.77 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 4: "[v8,4/5] pmdomain: thead: Add power-domain driver for TH1520"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 1027.70 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 4: "[v8,4/5] pmdomain: thead: Add power-domain driver for TH1520"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 18.28 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 4: "[v8,4/5] pmdomain: thead: Add power-domain driver for TH1520"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 19.74 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 4: "[v8,4/5] pmdomain: thead: Add power-domain driver for TH1520"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 2.23 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 4: "[v8,4/5] pmdomain: thead: Add power-domain driver for TH1520"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 36.22 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 4: "[v8,4/5] pmdomain: thead: Add power-domain driver for TH1520"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 4: "[v8,4/5] pmdomain: thead: Add power-domain driver for TH1520"
kdoc
Desc: Detects for kdoc errors
Duration: 0.90 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 4: "[v8,4/5] pmdomain: thead: Add power-domain driver for TH1520"
module-param
Desc: Detect module_param changes
Duration: 0.32 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 4: "[v8,4/5] pmdomain: thead: Add power-domain driver for TH1520"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.22 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 4: "[v8,4/5] pmdomain: thead: Add power-domain driver for TH1520"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.30 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 5: "[v8,5/5] riscv: Enable PM_GENERIC_DOMAINS for T-Head SoCs"
build-rv32-defconfig
Desc: Builds riscv32 defconfig
Duration: 97.01 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 5: "[v8,5/5] riscv: Enable PM_GENERIC_DOMAINS for T-Head SoCs"
build-rv64-clang-allmodconfig
Desc: Builds riscv64 allmodconfig with Clang, and checks for errors and added warnings
Duration: 813.69 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 5: "[v8,5/5] riscv: Enable PM_GENERIC_DOMAINS for T-Head SoCs"
build-rv64-gcc-allmodconfig
Desc: Builds riscv64 allmodconfig with GCC, and checks for errors and added warnings
Duration: 968.60 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 5: "[v8,5/5] riscv: Enable PM_GENERIC_DOMAINS for T-Head SoCs"
build-rv64-nommu-k210-defconfig
Desc: Builds riscv64 defconfig with NOMMU for K210
Duration: 18.44 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 5: "[v8,5/5] riscv: Enable PM_GENERIC_DOMAINS for T-Head SoCs"
build-rv64-nommu-k210-virt
Desc: Builds riscv64 defconfig with NOMMU for the virt platform
Duration: 19.60 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 5: "[v8,5/5] riscv: Enable PM_GENERIC_DOMAINS for T-Head SoCs"
checkpatch
Desc: Runs checkpatch.pl on the patch
Duration: 0.61 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 5: "[v8,5/5] riscv: Enable PM_GENERIC_DOMAINS for T-Head SoCs"
dtb-warn-rv64
Desc: Checks for Device Tree warnings/errors
Duration: 35.57 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 5: "[v8,5/5] riscv: Enable PM_GENERIC_DOMAINS for T-Head SoCs"
header-inline
Desc: Detects static functions without inline keyword in header files
Duration: 0.23 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 5: "[v8,5/5] riscv: Enable PM_GENERIC_DOMAINS for T-Head SoCs"
kdoc
Desc: Detects for kdoc errors
Duration: 0.84 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 5: "[v8,5/5] riscv: Enable PM_GENERIC_DOMAINS for T-Head SoCs"
module-param
Desc: Detect module_param changes
Duration: 0.24 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 5: "[v8,5/5] riscv: Enable PM_GENERIC_DOMAINS for T-Head SoCs"
verify-fixes
Desc: Verifies that the Fixes: tags exist
Duration: 0.22 seconds
Result: PASS

@linux-riscv-bot
Copy link
Copy Markdown
Author

Patch 5: "[v8,5/5] riscv: Enable PM_GENERIC_DOMAINS for T-Head SoCs"
verify-signedoff
Desc: Verifies that Signed-off-by: tags are correct
Duration: 0.28 seconds
Result: PASS

@linux-riscv-bot linux-riscv-bot deleted the pw942815 branch March 19, 2025 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant