mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-29 11:42:36 +00:00

Extend the TH1520 AON to describe the GPU clkgen reset line, required for proper GPU clock and reset sequencing. The T-HEAD TH1520 GPU requires coordinated management of two clocks (core and sys) and two resets (GPU core reset and GPU clkgen reset). Only the clkgen reset is exposed at the AON level, to support SoC specific initialization handled through a dedicated auxiliary power sequencing driver. The GPU core reset remains described in the GPU device node, as from the GPU driver's perspective, there is only a single reset line [1]. This follows upstream maintainers' recommendations [2] to abstract SoC specific details into the PM domain layer rather than exposing them to drivers directly. Link: https://lore.kernel.org/all/816db99d-7088-4c1a-af03-b9a825ac09dc@imgtec.com/ - [1] Link: https://lore.kernel.org/all/38d9650fc11a674c8b689d6bab937acf@kernel.org/ - [2] Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Drew Fustini <drew@pdp7.com> Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Michal Wilczynski <m.wilczynski@samsung.com> Link: https://lore.kernel.org/r/20250623-apr_14_for_sending-v6-2-6583ce0f6c25@samsung.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
61 lines
1.5 KiB
YAML
61 lines
1.5 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/firmware/thead,th1520-aon.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: T-HEAD TH1520 AON (Always-On) Firmware
|
|
|
|
description: |
|
|
The Always-On (AON) subsystem in the TH1520 SoC is responsible for managing
|
|
low-power states, system wakeup events, and power management tasks. It is
|
|
designed to operate independently in a dedicated power domain, allowing it to
|
|
remain functional even during the SoC's deep sleep states.
|
|
|
|
At the heart of the AON subsystem is the E902, a low-power core that executes
|
|
firmware responsible for coordinating tasks such as power domain control,
|
|
clock management, and system wakeup signaling. Communication between the main
|
|
SoC and the AON subsystem is handled through a mailbox interface, which
|
|
enables message-based interactions with the AON firmware.
|
|
|
|
maintainers:
|
|
- Michal Wilczynski <m.wilczynski@samsung.com>
|
|
|
|
properties:
|
|
compatible:
|
|
const: thead,th1520-aon
|
|
|
|
mboxes:
|
|
maxItems: 1
|
|
|
|
mbox-names:
|
|
items:
|
|
- const: aon
|
|
|
|
resets:
|
|
maxItems: 1
|
|
|
|
reset-names:
|
|
items:
|
|
- const: gpu-clkgen
|
|
|
|
"#power-domain-cells":
|
|
const: 1
|
|
|
|
required:
|
|
- compatible
|
|
- mboxes
|
|
- mbox-names
|
|
- "#power-domain-cells"
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
aon: aon {
|
|
compatible = "thead,th1520-aon";
|
|
mboxes = <&mbox_910t 1>;
|
|
mbox-names = "aon";
|
|
#power-domain-cells = <1>;
|
|
};
|