Path: blob/master/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml
52411 views
# SPDX-License-Identifier: GPL-2.0-only1%YAML 1.22---3$id: http://devicetree.org/schemas/gpu/arm,mali-bifrost.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: ARM Mali Bifrost GPU78maintainers:9- Rob Herring <robh@kernel.org>1011properties:12$nodename:13pattern: '^gpu@[a-f0-9]+$'1415compatible:16oneOf:17- items:18- enum:19- allwinner,sun50i-h616-mali20- amlogic,meson-g12a-mali21- mediatek,mt8183-mali22- mediatek,mt8183b-mali23- mediatek,mt8186-mali24- mediatek,mt8365-mali25- realtek,rtd1619-mali26- renesas,r9a07g044-mali27- renesas,r9a07g054-mali28- renesas,r9a09g047-mali29- renesas,r9a09g056-mali30- renesas,r9a09g057-mali31- rockchip,px30-mali32- rockchip,rk3562-mali33- rockchip,rk3568-mali34- rockchip,rk3576-mali35- const: arm,mali-bifrost # Mali Bifrost GPU model/revision is fully discoverable36- items:37- enum:38- mediatek,mt8195-mali39- const: mediatek,mt8192-mali40- const: arm,mali-valhall-jm # Mali Valhall GPU model/revision is fully discoverable41- items:42- enum:43- allwinner,sun55i-a523-mali44- mediatek,mt8188-mali45- mediatek,mt8192-mali46- mediatek,mt8370-mali47- const: arm,mali-valhall-jm # Mali Valhall GPU model/revision is fully discoverable4849reg:50maxItems: 15152interrupts:53minItems: 354items:55- description: Job interrupt56- description: MMU interrupt57- description: GPU interrupt58- description: Event interrupt5960interrupt-names:61minItems: 362items:63- const: job64- const: mmu65- const: gpu66- const: event6768clocks:69minItems: 170maxItems: 37172clock-names: true7374mali-supply: true7576sram-supply: true7778operating-points-v2: true7980power-domains:81minItems: 182maxItems: 58384power-domain-names:85minItems: 286maxItems: 58788resets:89minItems: 190maxItems: 39192reset-names: true9394"#cooling-cells":95const: 29697dynamic-power-coefficient:98$ref: /schemas/types.yaml#/definitions/uint3299description:100A u32 value that represents the running time dynamic101power coefficient in units of uW/MHz/V^2. The102coefficient can either be calculated from power103measurements or derived by analysis.104105The dynamic power consumption of the GPU is106proportional to the square of the Voltage (V) and107the clock frequency (f). The coefficient is used to108calculate the dynamic power as below -109110Pdyn = dynamic-power-coefficient * V^2 * f111112where voltage is in V, frequency is in MHz.113114dma-coherent: true115116nvmem-cell-names:117items:118- const: speed-bin119120nvmem-cells:121maxItems: 1122123required:124- compatible125- reg126- interrupts127- interrupt-names128- clocks129130additionalProperties: false131132allOf:133- if:134properties:135compatible:136contains:137const: amlogic,meson-g12a-mali138then:139properties:140power-domains:141maxItems: 1142power-domain-names: false143required:144- resets145- if:146properties:147compatible:148contains:149enum:150- renesas,r9a07g044-mali151- renesas,r9a07g054-mali152- renesas,r9a09g047-mali153- renesas,r9a09g056-mali154- renesas,r9a09g057-mali155then:156properties:157interrupts:158minItems: 4159interrupt-names:160minItems: 4161clocks:162minItems: 3163clock-names:164items:165- const: gpu166- const: bus167- const: bus_ace168power-domains:169maxItems: 1170power-domain-names: false171resets:172minItems: 3173reset-names:174items:175- const: rst176- const: axi_rst177- const: ace_rst178required:179- clock-names180- power-domains181- resets182- reset-names183- if:184properties:185compatible:186contains:187const: mediatek,mt8183-mali188then:189properties:190power-domains:191minItems: 3192maxItems: 3193power-domain-names:194items:195- const: core0196- const: core1197- const: core2198199required:200- sram-supply201- power-domains202- power-domain-names203else:204properties:205sram-supply: false206- if:207properties:208compatible:209contains:210enum:211- mediatek,mt8183b-mali212- mediatek,mt8188-mali213then:214properties:215power-domains:216minItems: 3217maxItems: 3218power-domain-names:219items:220- const: core0221- const: core1222- const: core2223required:224- power-domains225- power-domain-names226- if:227properties:228compatible:229contains:230enum:231- mediatek,mt8186-mali232- mediatek,mt8370-mali233then:234properties:235power-domains:236minItems: 2237maxItems: 2238power-domain-names:239items:240- const: core0241- const: core1242required:243- power-domains244- power-domain-names245- if:246properties:247compatible:248contains:249const: mediatek,mt8192-mali250then:251properties:252power-domains:253minItems: 5254power-domain-names:255items:256- const: core0257- const: core1258- const: core2259- const: core3260- const: core4261required:262- power-domains263- power-domain-names264- if:265properties:266compatible:267contains:268const: rockchip,rk3568-mali269then:270properties:271clocks:272minItems: 2273clock-names:274items:275- const: gpu276- const: bus277power-domains:278maxItems: 1279power-domain-names: false280required:281- clock-names282283examples:284- |285#include <dt-bindings/interrupt-controller/irq.h>286#include <dt-bindings/interrupt-controller/arm-gic.h>287288gpu@ffe40000 {289compatible = "amlogic,meson-g12a-mali", "arm,mali-bifrost";290reg = <0xffe40000 0x10000>;291interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,292<GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,293<GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>;294interrupt-names = "job", "mmu", "gpu";295clocks = <&clk 1>;296mali-supply = <&vdd_gpu>;297operating-points-v2 = <&gpu_opp_table>;298resets = <&reset 0>, <&reset 1>;299};300301gpu_opp_table: opp-table {302compatible = "operating-points-v2";303304opp-533000000 {305opp-hz = /bits/ 64 <533000000>;306opp-microvolt = <1250000>;307};308opp-450000000 {309opp-hz = /bits/ 64 <450000000>;310opp-microvolt = <1150000>;311};312opp-400000000 {313opp-hz = /bits/ 64 <400000000>;314opp-microvolt = <1125000>;315};316opp-350000000 {317opp-hz = /bits/ 64 <350000000>;318opp-microvolt = <1075000>;319};320opp-266000000 {321opp-hz = /bits/ 64 <266000000>;322opp-microvolt = <1025000>;323};324opp-160000000 {325opp-hz = /bits/ 64 <160000000>;326opp-microvolt = <925000>;327};328opp-100000000 {329opp-hz = /bits/ 64 <100000000>;330opp-microvolt = <912500>;331};332};333334...335336337