Path: blob/master/Documentation/devicetree/bindings/gpu/arm,mali-midgard.yaml
29282 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-t86055- items:56- enum:57- samsung,exynos8890-mali58- const: arm,mali-t8805960reg:61maxItems: 16263interrupts:64items:65- description: Job interrupt66- description: MMU interrupt67- description: GPU interrupt6869interrupt-names:70items:71- const: job72- const: mmu73- const: gpu7475clocks:76minItems: 177maxItems: 27879clock-names:80minItems: 181items:82- const: core83- const: bus8485mali-supply: true86opp-table:87type: object8889power-domains:90maxItems: 19192resets:93minItems: 194maxItems: 29596operating-points-v2: true9798"#cooling-cells":99const: 2100101dma-coherent: true102103dynamic-power-coefficient:104$ref: /schemas/types.yaml#/definitions/uint32105description:106A u32 value that represents the running time dynamic107power coefficient in units of uW/MHz/V^2. The108coefficient can either be calculated from power109measurements or derived by analysis.110111The dynamic power consumption of the GPU is112proportional to the square of the Voltage (V) and113the clock frequency (f). The coefficient is used to114calculate the dynamic power as below -115116Pdyn = dynamic-power-coefficient * V^2 * f117118where voltage is in V, frequency is in MHz.119120required:121- compatible122- reg123- interrupts124- interrupt-names125- clocks126127additionalProperties: false128129allOf:130- if:131properties:132compatible:133contains:134const: allwinner,sun50i-h6-mali135then:136properties:137clocks:138minItems: 2139required:140- clock-names141- resets142- if:143properties:144compatible:145contains:146const: amlogic,meson-gxm-mali147then:148properties:149resets:150minItems: 2151required:152- resets153154examples:155- |156#include <dt-bindings/interrupt-controller/irq.h>157#include <dt-bindings/interrupt-controller/arm-gic.h>158159gpu@ffa30000 {160compatible = "rockchip,rk3288-mali", "arm,mali-t760";161reg = <0xffa30000 0x10000>;162interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,163<GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,164<GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;165interrupt-names = "job", "mmu", "gpu";166clocks = <&cru 0>;167mali-supply = <&vdd_gpu>;168operating-points-v2 = <&gpu_opp_table>;169power-domains = <&power 0>;170#cooling-cells = <2>;171};172173gpu_opp_table: opp-table {174compatible = "operating-points-v2";175176opp-533000000 {177opp-hz = /bits/ 64 <533000000>;178opp-microvolt = <1250000>;179};180opp-450000000 {181opp-hz = /bits/ 64 <450000000>;182opp-microvolt = <1150000>;183};184opp-400000000 {185opp-hz = /bits/ 64 <400000000>;186opp-microvolt = <1125000>;187};188opp-350000000 {189opp-hz = /bits/ 64 <350000000>;190opp-microvolt = <1075000>;191};192opp-266000000 {193opp-hz = /bits/ 64 <266000000>;194opp-microvolt = <1025000>;195};196opp-160000000 {197opp-hz = /bits/ 64 <160000000>;198opp-microvolt = <925000>;199};200opp-100000000 {201opp-hz = /bits/ 64 <100000000>;202opp-microvolt = <912500>;203};204};205206...207208209