Path: blob/master/Documentation/devicetree/bindings/gpu/arm,mali-midgard.yaml
26307 views
# SPDX-License-Identifier: GPL-2.0-only1%YAML 1.22---3$id: http://devicetree.org/schemas/gpu/arm,mali-midgard.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: ARM Mali Midgard GPU78maintainers:9- Rob Herring <robh@kernel.org>1011properties:12$nodename:13pattern: '^gpu@[a-f0-9]+$'14compatible:15oneOf:16- items:17- enum:18- samsung,exynos5250-mali19- const: arm,mali-t60420- items:21- enum:22- samsung,exynos5420-mali23- const: arm,mali-t62824- items:25- enum:26- allwinner,sun50i-h6-mali27- const: arm,mali-t72028- items:29- enum:30- amlogic,meson-gxm-mali31- realtek,rtd1295-mali32- const: arm,mali-t82033- items:34- enum:35- arm,juno-mali36- const: arm,mali-t62437- items:38- enum:39- rockchip,rk3288-mali40- samsung,exynos5433-mali41- const: arm,mali-t76042- items:43- enum:44- samsung,exynos7-mali45- const: samsung,exynos5433-mali46- const: arm,mali-t76047- items:48- enum:49- samsung,exynos7870-mali50- const: arm,mali-t83051- items:52- enum:53- rockchip,rk3399-mali54- const: arm,mali-t8605556# "arm,mali-t880"5758reg:59maxItems: 16061interrupts:62items:63- description: Job interrupt64- description: MMU interrupt65- description: GPU interrupt6667interrupt-names:68items:69- const: job70- const: mmu71- const: gpu7273clocks:74minItems: 175maxItems: 27677clock-names:78minItems: 179items:80- const: core81- const: bus8283mali-supply: true84opp-table:85type: object8687power-domains:88maxItems: 18990resets:91minItems: 192maxItems: 29394operating-points-v2: true9596"#cooling-cells":97const: 29899dma-coherent: true100101dynamic-power-coefficient:102$ref: /schemas/types.yaml#/definitions/uint32103description:104A u32 value that represents the running time dynamic105power coefficient in units of uW/MHz/V^2. The106coefficient can either be calculated from power107measurements or derived by analysis.108109The dynamic power consumption of the GPU is110proportional to the square of the Voltage (V) and111the clock frequency (f). The coefficient is used to112calculate the dynamic power as below -113114Pdyn = dynamic-power-coefficient * V^2 * f115116where voltage is in V, frequency is in MHz.117118required:119- compatible120- reg121- interrupts122- interrupt-names123- clocks124125additionalProperties: false126127allOf:128- if:129properties:130compatible:131contains:132const: allwinner,sun50i-h6-mali133then:134properties:135clocks:136minItems: 2137required:138- clock-names139- resets140- if:141properties:142compatible:143contains:144const: amlogic,meson-gxm-mali145then:146properties:147resets:148minItems: 2149required:150- resets151152examples:153- |154#include <dt-bindings/interrupt-controller/irq.h>155#include <dt-bindings/interrupt-controller/arm-gic.h>156157gpu@ffa30000 {158compatible = "rockchip,rk3288-mali", "arm,mali-t760";159reg = <0xffa30000 0x10000>;160interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,161<GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,162<GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;163interrupt-names = "job", "mmu", "gpu";164clocks = <&cru 0>;165mali-supply = <&vdd_gpu>;166operating-points-v2 = <&gpu_opp_table>;167power-domains = <&power 0>;168#cooling-cells = <2>;169};170171gpu_opp_table: opp-table {172compatible = "operating-points-v2";173174opp-533000000 {175opp-hz = /bits/ 64 <533000000>;176opp-microvolt = <1250000>;177};178opp-450000000 {179opp-hz = /bits/ 64 <450000000>;180opp-microvolt = <1150000>;181};182opp-400000000 {183opp-hz = /bits/ 64 <400000000>;184opp-microvolt = <1125000>;185};186opp-350000000 {187opp-hz = /bits/ 64 <350000000>;188opp-microvolt = <1075000>;189};190opp-266000000 {191opp-hz = /bits/ 64 <266000000>;192opp-microvolt = <1025000>;193};194opp-160000000 {195opp-hz = /bits/ 64 <160000000>;196opp-microvolt = <925000>;197};198opp-100000000 {199opp-hz = /bits/ 64 <100000000>;200opp-microvolt = <912500>;201};202};203204...205206207