1 # SPDX-License-Identifier: GPL-2.0-only
4 $id: http://devicetree.org/schemas/gpu/arm,mali-bifrost.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: ARM Mali Bifrost GPU
10 - Rob Herring <robh@kernel.org>
14 pattern: '^gpu@[a-f0-9]+$'
19 - amlogic,meson-g12a-mali
20 - mediatek,mt8183-mali
21 - realtek,rtd1619-mali
23 - const: arm,mali-bifrost # Mali Bifrost GPU model/revision is fully discoverable
30 - description: Job interrupt
31 - description: MMU interrupt
32 - description: GPU interrupt
47 operating-points-v2: true
59 dynamic-power-coefficient:
60 $ref: '/schemas/types.yaml#/definitions/uint32'
62 A u32 value that represents the running time dynamic
63 power coefficient in units of uW/MHz/V^2. The
64 coefficient can either be calculated from power
65 measurements or derived by analysis.
67 The dynamic power consumption of the GPU is
68 proportional to the square of the Voltage (V) and
69 the clock frequency (f). The coefficient is used to
70 calculate the dynamic power as below -
72 Pdyn = dynamic-power-coefficient * V^2 * f
74 where voltage is in V, frequency is in MHz.
85 additionalProperties: false
92 const: amlogic,meson-g12a-mali
100 const: mediatek,mt8183-mali
123 #include <dt-bindings/interrupt-controller/irq.h>
124 #include <dt-bindings/interrupt-controller/arm-gic.h>
127 compatible = "amlogic,meson-g12a-mali", "arm,mali-bifrost";
128 reg = <0xffe40000 0x10000>;
129 interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
130 <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,
131 <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>;
132 interrupt-names = "job", "mmu", "gpu";
134 mali-supply = <&vdd_gpu>;
135 operating-points-v2 = <&gpu_opp_table>;
136 resets = <&reset 0>, <&reset 1>;
139 gpu_opp_table: opp_table0 {
140 compatible = "operating-points-v2";
143 opp-hz = /bits/ 64 <533000000>;
144 opp-microvolt = <1250000>;
147 opp-hz = /bits/ 64 <450000000>;
148 opp-microvolt = <1150000>;
151 opp-hz = /bits/ 64 <400000000>;
152 opp-microvolt = <1125000>;
155 opp-hz = /bits/ 64 <350000000>;
156 opp-microvolt = <1075000>;
159 opp-hz = /bits/ 64 <266000000>;
160 opp-microvolt = <1025000>;
163 opp-hz = /bits/ 64 <160000000>;
164 opp-microvolt = <925000>;
167 opp-hz = /bits/ 64 <100000000>;
168 opp-microvolt = <912500>;