Path: blob/master/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml
26307 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- realtek,rtd1619-mali25- renesas,r9a07g044-mali26- renesas,r9a07g054-mali27- renesas,r9a09g047-mali28- renesas,r9a09g056-mali29- renesas,r9a09g057-mali30- rockchip,px30-mali31- rockchip,rk3562-mali32- rockchip,rk3568-mali33- rockchip,rk3576-mali34- const: arm,mali-bifrost # Mali Bifrost GPU model/revision is fully discoverable35- items:36- enum:37- mediatek,mt8195-mali38- const: mediatek,mt8192-mali39- const: arm,mali-valhall-jm # Mali Valhall GPU model/revision is fully discoverable40- items:41- enum:42- allwinner,sun55i-a523-mali43- mediatek,mt8188-mali44- mediatek,mt8192-mali45- mediatek,mt8370-mali46- const: arm,mali-valhall-jm # Mali Valhall GPU model/revision is fully discoverable4748reg:49maxItems: 15051interrupts:52minItems: 353items:54- description: Job interrupt55- description: MMU interrupt56- description: GPU interrupt57- description: Event interrupt5859interrupt-names:60minItems: 361items:62- const: job63- const: mmu64- const: gpu65- const: event6667clocks:68minItems: 169maxItems: 37071clock-names: true7273mali-supply: true7475sram-supply: true7677operating-points-v2: true7879power-domains:80minItems: 181maxItems: 58283power-domain-names:84minItems: 285maxItems: 58687resets:88minItems: 189maxItems: 39091reset-names: true9293"#cooling-cells":94const: 29596dynamic-power-coefficient:97$ref: /schemas/types.yaml#/definitions/uint3298description:99A u32 value that represents the running time dynamic100power coefficient in units of uW/MHz/V^2. The101coefficient can either be calculated from power102measurements or derived by analysis.103104The dynamic power consumption of the GPU is105proportional to the square of the Voltage (V) and106the clock frequency (f). The coefficient is used to107calculate the dynamic power as below -108109Pdyn = dynamic-power-coefficient * V^2 * f110111where voltage is in V, frequency is in MHz.112113dma-coherent: true114115nvmem-cell-names:116items:117- const: speed-bin118119nvmem-cells:120maxItems: 1121122required:123- compatible124- reg125- interrupts126- interrupt-names127- clocks128129additionalProperties: false130131allOf:132- if:133properties:134compatible:135contains:136const: amlogic,meson-g12a-mali137then:138properties:139power-domains:140maxItems: 1141power-domain-names: false142required:143- resets144- if:145properties:146compatible:147contains:148enum:149- renesas,r9a07g044-mali150- renesas,r9a07g054-mali151- renesas,r9a09g047-mali152- renesas,r9a09g056-mali153- renesas,r9a09g057-mali154then:155properties:156interrupts:157minItems: 4158interrupt-names:159minItems: 4160clocks:161minItems: 3162clock-names:163items:164- const: gpu165- const: bus166- const: bus_ace167power-domains:168maxItems: 1169power-domain-names: false170resets:171minItems: 3172reset-names:173items:174- const: rst175- const: axi_rst176- const: ace_rst177required:178- clock-names179- power-domains180- resets181- reset-names182- if:183properties:184compatible:185contains:186const: mediatek,mt8183-mali187then:188properties:189power-domains:190minItems: 3191maxItems: 3192power-domain-names:193items:194- const: core0195- const: core1196- const: core2197198required:199- sram-supply200- power-domains201- power-domain-names202else:203properties:204sram-supply: false205- if:206properties:207compatible:208contains:209enum:210- mediatek,mt8183b-mali211- mediatek,mt8188-mali212then:213properties:214power-domains:215minItems: 3216maxItems: 3217power-domain-names:218items:219- const: core0220- const: core1221- const: core2222required:223- power-domains224- power-domain-names225- if:226properties:227compatible:228contains:229enum:230- mediatek,mt8186-mali231- mediatek,mt8370-mali232then:233properties:234power-domains:235minItems: 2236maxItems: 2237power-domain-names:238items:239- const: core0240- const: core1241required:242- power-domains243- power-domain-names244- if:245properties:246compatible:247contains:248const: mediatek,mt8192-mali249then:250properties:251power-domains:252minItems: 5253power-domain-names:254items:255- const: core0256- const: core1257- const: core2258- const: core3259- const: core4260required:261- power-domains262- power-domain-names263- if:264properties:265compatible:266contains:267const: rockchip,rk3568-mali268then:269properties:270clocks:271minItems: 2272clock-names:273items:274- const: gpu275- const: bus276power-domains:277maxItems: 1278power-domain-names: false279required:280- clock-names281282examples:283- |284#include <dt-bindings/interrupt-controller/irq.h>285#include <dt-bindings/interrupt-controller/arm-gic.h>286287gpu@ffe40000 {288compatible = "amlogic,meson-g12a-mali", "arm,mali-bifrost";289reg = <0xffe40000 0x10000>;290interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,291<GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,292<GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>;293interrupt-names = "job", "mmu", "gpu";294clocks = <&clk 1>;295mali-supply = <&vdd_gpu>;296operating-points-v2 = <&gpu_opp_table>;297resets = <&reset 0>, <&reset 1>;298};299300gpu_opp_table: opp-table {301compatible = "operating-points-v2";302303opp-533000000 {304opp-hz = /bits/ 64 <533000000>;305opp-microvolt = <1250000>;306};307opp-450000000 {308opp-hz = /bits/ 64 <450000000>;309opp-microvolt = <1150000>;310};311opp-400000000 {312opp-hz = /bits/ 64 <400000000>;313opp-microvolt = <1125000>;314};315opp-350000000 {316opp-hz = /bits/ 64 <350000000>;317opp-microvolt = <1075000>;318};319opp-266000000 {320opp-hz = /bits/ 64 <266000000>;321opp-microvolt = <1025000>;322};323opp-160000000 {324opp-hz = /bits/ 64 <160000000>;325opp-microvolt = <925000>;326};327opp-100000000 {328opp-hz = /bits/ 64 <100000000>;329opp-microvolt = <912500>;330};331};332333...334335336