ARM Mali Bifrost GPU
Schema identifier ($id): "http://devicetree.org/schemas/gpu/arm,mali-bifrost.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Rob Herring <robh@kernel.org>"
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^gpu@[a-f0-9]+$"
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"allwinner,sun50i-h616-mali","amlogic,meson-g12a-mali","mediatek,mt8183-mali","mediatek,mt8183b-mali","mediatek,mt8186-mali","mediatek,mt8365-mali","realtek,rtd1619-mali","renesas,r9a07g044-mali","renesas,r9a07g054-mali","renesas,r9a09g047-mali","renesas,r9a09g056-mali","renesas,r9a09g057-mali","rockchip,px30-mali","rockchip,rk3562-mali","rockchip,rk3568-mali","rockchip,rk3576-mali"Item 2
Exact value (
const):"arm,mali-bifrost"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"mediatek,mt8192-mali"Item 3
Exact value (
const):"arm,mali-valhall-jm"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"allwinner,sun55i-a523-mali","mediatek,mt8188-mali","mediatek,mt8192-mali","mediatek,mt8370-mali"Item 2
Exact value (
const):"arm,mali-valhall-jm"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 3
Array item rules (items) #
Item 1
Job interrupt
Item 2
MMU interrupt
Item 3
GPU interrupt
Item 4
Event interrupt
interrupt-names — required here #
Minimum number of items (minItems): 3
Array item rules (items) #
Item 1
Exact value (
const):"job"
Item 2
Exact value (
const):"mmu"
Item 3
Exact value (
const):"gpu"
Item 4
Exact value (
const):"event"
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
clock-names — not listed as required here #
true — No constraints added by this property rule.
mali-supply — not listed as required here #
true — No constraints added by this property rule.
sram-supply — not listed as required here #
true — No constraints added by this property rule.
operating-points-v2 — not listed as required here #
true — No constraints added by this property rule.
power-domains — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 5
power-domain-names — not listed as required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 5
resets — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
reset-names — not listed as required here #
true — No constraints added by this property rule.
#cooling-cells — not listed as required here #
Exact value (const): 2
dynamic-power-coefficient — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
A u32 value that represents the running time dynamic power coefficient in units of uW/MHz/V^2. The coefficient can either be calculated from power measurements or derived by analysis. The dynamic power consumption of the GPU is proportional to the square of the Voltage (V) and the clock frequency (f). The coefficient is used to calculate the dynamic power as below - Pdyn = dynamic-power-coefficient * V^2 * f where voltage is in V, frequency is in MHz.
dma-coherent — not listed as required here #
true — No constraints added by this property rule.
nvmem-cell-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"speed-bin"
nvmem-cells — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"amlogic,meson-g12a-mali"When the condition matches (
then) #Properties and child nodes (
properties)
power-domains— not listed as required hereMaximum number of items (
maxItems):1
power-domain-names— not listed as required here
false— Not permitted by this property rule.
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"renesas,r9a07g044-mali","renesas,r9a07g054-mali","renesas,r9a09g047-mali","renesas,r9a09g056-mali","renesas,r9a09g057-mali"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):4
interrupt-names— not listed as required hereMinimum number of items (
minItems):4
clocks— not listed as required hereMinimum number of items (
minItems):3
clock-names— required hereArray item rules (
items)Item 1
Exact value (
const):"gpu"Item 2
Exact value (
const):"bus"Item 3
Exact value (
const):"bus_ace"
power-domains— required hereMaximum number of items (
maxItems):1
power-domain-names— not listed as required here
false— Not permitted by this property rule.
resets— required hereMinimum number of items (
minItems):3
reset-names— required hereArray item rules (
items)Item 1
Exact value (
const):"rst"Item 2
Exact value (
const):"axi_rst"Item 3
Exact value (
const):"ace_rst"Required in this object (
required):"clock-names","power-domains","resets","reset-names"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"mediatek,mt8183-mali"When the condition matches (
then) #Properties and child nodes (
properties)
power-domains— required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):3
power-domain-names— required hereArray item rules (
items)Item 1
Exact value (
const):"core0"Item 2
Exact value (
const):"core1"Item 3
Exact value (
const):"core2"Required in this object (
required):"sram-supply","power-domains","power-domain-names"When the condition does not match (
else) #Properties and child nodes (
properties)
sram-supply— not listed as required here
false— Not permitted by this property rule.
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"mediatek,mt8183b-mali","mediatek,mt8188-mali"When the condition matches (
then) #Properties and child nodes (
properties)
power-domains— required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):3
power-domain-names— required hereArray item rules (
items)Item 1
Exact value (
const):"core0"Item 2
Exact value (
const):"core1"Item 3
Exact value (
const):"core2"Required in this object (
required):"power-domains","power-domain-names"
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"mediatek,mt8186-mali","mediatek,mt8370-mali"When the condition matches (
then) #Properties and child nodes (
properties)
power-domains— required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
power-domain-names— required hereArray item rules (
items)Item 1
Exact value (
const):"core0"Item 2
Exact value (
const):"core1"Required in this object (
required):"power-domains","power-domain-names"
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"mediatek,mt8192-mali"When the condition matches (
then) #Properties and child nodes (
properties)
power-domains— required hereMinimum number of items (
minItems):5
power-domain-names— required hereArray item rules (
items)Item 1
Exact value (
const):"core0"Item 2
Exact value (
const):"core1"Item 3
Exact value (
const):"core2"Item 4
Exact value (
const):"core3"Item 5
Exact value (
const):"core4"Required in this object (
required):"power-domains","power-domain-names"
Rule 7 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"rockchip,rk3568-mali"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):2
clock-names— required hereArray item rules (
items)Item 1
Exact value (
const):"gpu"Item 2
Exact value (
const):"bus"
power-domains— not listed as required hereMaximum number of items (
maxItems):1
power-domain-names— not listed as required here
false— Not permitted by this property rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
gpu@ffe40000 {
compatible = "amlogic,meson-g12a-mali", "arm,mali-bifrost";
reg = <0xffe40000 0x10000>;
interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "job", "mmu", "gpu";
clocks = <&clk 1>;
mali-supply = <&vdd_gpu>;
operating-points-v2 = <&gpu_opp_table>;
resets = <&reset 0>, <&reset 1>;
};
gpu_opp_table: opp-table {
compatible = "operating-points-v2";
opp-533000000 {
opp-hz = /bits/ 64 <533000000>;
opp-microvolt = <1250000>;
};
opp-450000000 {
opp-hz = /bits/ 64 <450000000>;
opp-microvolt = <1150000>;
};
opp-400000000 {
opp-hz = /bits/ 64 <400000000>;
opp-microvolt = <1125000>;
};
opp-350000000 {
opp-hz = /bits/ 64 <350000000>;
opp-microvolt = <1075000>;
};
opp-266000000 {
opp-hz = /bits/ 64 <266000000>;
opp-microvolt = <1025000>;
};
opp-160000000 {
opp-hz = /bits/ 64 <160000000>;
opp-microvolt = <925000>;
};
opp-100000000 {
opp-hz = /bits/ 64 <100000000>;
opp-microvolt = <912500>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only
Line 36: Mali Bifrost GPU model/revision is fully discoverable
Line 41: Mali Valhall GPU model/revision is fully discoverable
Line 48: Mali Valhall GPU model/revision is fully discoverable