dt-bindings: firmware: thead,th1520: Add support for firmware node
authorMichal Wilczynski <m.wilczynski@samsung.com>
Tue, 11 Mar 2025 17:18:56 +0000 (18:18 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 13 Mar 2025 13:41:29 +0000 (14:41 +0100)
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>
Acked-by: Drew Fustini <drew@pdp7.com>
Link: https://lore.kernel.org/r/20250311171900.1549916-2-m.wilczynski@samsung.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Documentation/devicetree/bindings/firmware/thead,th1520-aon.yaml [new file with mode: 0644]
MAINTAINERS

diff --git a/Documentation/devicetree/bindings/firmware/thead,th1520-aon.yaml b/Documentation/devicetree/bindings/firmware/thead,th1520-aon.yaml
new file mode 100644 (file)
index 0000000..bbc1832
--- /dev/null
@@ -0,0 +1,53 @@
+# 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
+
+  "#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>;
+    };
index fd1859bcf45e99b5eaf5b5d45ffb0db50d1dae7a..23954dce96f5a391c1d82fd27a1ec79163b313e6 100644 (file)
@@ -20420,6 +20420,7 @@ L:      linux-riscv@lists.infradead.org
 S:     Maintained
 T:     git https://github.com/pdp7/linux.git
 F:     Documentation/devicetree/bindings/clock/thead,th1520-clk-ap.yaml
+F:     Documentation/devicetree/bindings/firmware/thead,th1520-aon.yaml
 F:     Documentation/devicetree/bindings/mailbox/thead,th1520-mbox.yaml
 F:     Documentation/devicetree/bindings/net/thead,th1520-gmac.yaml
 F:     Documentation/devicetree/bindings/pinctrl/thead,th1520-pinctrl.yaml