From 9f689086863dfae693551a68fc9dc426bca5727e Mon Sep 17 00:00:00 2001 From: Alif Zakuan Yuslaimi Date: Thu, 12 Jun 2025 01:08:00 -0700 Subject: arch: arm: agilex5: Enable power manager for Agilex5 Agilex5 FSBL is required to disable the power of unused peripheral SRAM blocks to reduce power consumption. Introducing a new power manager driver for Agilex5 which will be called as part of Agilex5 SPL initialization process. This driver will read the peripheral handoff data obtained from the bitstream and will power off the specified peripheral's SRAM from the handoff data values. Signed-off-by: Alif Zakuan Yuslaimi Reviewed-by: Tien Fong Chee --- .../power/altr,pmgr-agilex5.yaml | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 doc/device-tree-bindings/power/altr,pmgr-agilex5.yaml (limited to 'doc/device-tree-bindings') diff --git a/doc/device-tree-bindings/power/altr,pmgr-agilex5.yaml b/doc/device-tree-bindings/power/altr,pmgr-agilex5.yaml new file mode 100644 index 00000000000..af7aeaa922c --- /dev/null +++ b/doc/device-tree-bindings/power/altr,pmgr-agilex5.yaml @@ -0,0 +1,39 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/power/altr,pmgr-agilex5.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Altera Agilex5 Power Manager + +maintainers: + - name: Alif Zakuan Yuslaimi + email: alif.zakuan.yuslaimi@altera.com + +description: | + This controller will read the peripheral handoff data obtained from the + bitstream and will power gate the specified peripheral's SRAM from the + handoff data values to reduce power consumption. + +properties: + compatible: + const: "altr,pmgr-agilex5" + + reg: + maxItems: 1 + + bootph-all: true + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + pwrmgr: pwrmgr@10d14000 { + compatible = "altr,pmgr-agilex5"; + reg = <0x10d14000 0x100>; + bootph-all; + }; -- cgit v1.2.3