MediaTek MFlexGraphics Power and Frequency Controller
Schema identifier ($id): "http://devicetree.org/schemas/power/mediatek,mt8196-gpufreq.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nicolas Frattaroli <nicolas.frattaroli@collabora.com>"
A special-purpose embedded MCU to control power and frequency of GPU devices using MediaTek Flexible Graphics integration hardware.
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^power-controller@[a-f0-9]+$"
compatible — required here #
Allowed values (enum): "mediatek,mt8196-gpufreq"
reg — required here #
Array item rules (items) #
Item 1
GPR memory area
Item 2
RPC memory area
Item 3
SoC variant ID register
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"gpr"
Item 2
Exact value (
const):"rpc"
Item 3
Exact value (
const):"hw-revision"
clocks — required here #
Array item rules (items) #
Item 1
main clock of the embedded controller (EB)
Item 2
core PLL
Item 3
stack 0 PLL
Item 4
stack 1 PLL
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"eb"
Item 2
Exact value (
const):"core"
Item 3
Exact value (
const):"stack0"
Item 4
Exact value (
const):"stack1"
mboxes — required here #
Array item rules (items) #
Item 1
FastDVFS events
Item 2
frequency control
Item 3
sleep control
Item 4
timer control
Item 5
frequency hopping control
Item 6
hardware voter control
Item 7
FastDVFS control
mbox-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"fast-dvfs-event"
Item 2
Exact value (
const):"gpufreq"
Item 3
Exact value (
const):"sleep"
Item 4
Exact value (
const):"timer"
Item 5
Exact value (
const):"fhctl"
Item 6
Exact value (
const):"ccf"
Item 7
Exact value (
const):"fast-dvfs"
memory-region — required here #
Array item rules (items) #
Item 1
phandle to the GPUEB shared memory
#clock-cells — required here #
Exact value (const): 1
#power-domain-cells — required here #
Exact value (const): 0
Required in this object (required): "compatible", "reg", "reg-names", "clocks", "clock-names", "mboxes", "mbox-names", "memory-region", "#clock-cells", "#power-domain-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/mediatek,mt8196-clock.h>
power-controller@4b09fd00 {
compatible = "mediatek,mt8196-gpufreq";
reg = <0x4b09fd00 0x80>,
<0x4b800000 0x1000>,
<0x4b860128 0x4>;
reg-names = "gpr", "rpc", "hw-revision";
clocks = <&topckgen CLK_TOP_MFG_EB>,
<&mfgpll CLK_MFG_AO_MFGPLL>,
<&mfgpll_sc0 CLK_MFGSC0_AO_MFGPLL_SC0>,
<&mfgpll_sc1 CLK_MFGSC1_AO_MFGPLL_SC1>;
clock-names = "eb", "core", "stack0", "stack1";
mboxes = <&gpueb_mbox 0>, <&gpueb_mbox 1>, <&gpueb_mbox 2>,
<&gpueb_mbox 3>, <&gpueb_mbox 4>, <&gpueb_mbox 5>,
<&gpueb_mbox 7>;
mbox-names = "fast-dvfs-event", "gpufreq", "sleep", "timer", "fhctl",
"ccf", "fast-dvfs";
memory-region = <&gpueb_shared_memory>;
#clock-cells = <1>;
#power-domain-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause