Path: blob/main/sys/contrib/device-tree/Bindings/gpu/arm,mali-midgard.yaml
48376 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- rockchip,rk3399-mali50- const: arm,mali-t8605152# "arm,mali-t830"53# "arm,mali-t880"5455reg:56maxItems: 15758interrupts:59items:60- description: Job interrupt61- description: MMU interrupt62- description: GPU interrupt6364interrupt-names:65items:66- const: job67- const: mmu68- const: gpu6970clocks:71minItems: 172maxItems: 27374clock-names:75minItems: 176items:77- const: core78- const: bus7980mali-supply: true81opp-table:82type: object8384power-domains:85maxItems: 18687resets:88minItems: 189maxItems: 29091operating-points-v2: true9293"#cooling-cells":94const: 29596dma-coherent: true9798dynamic-power-coefficient:99$ref: /schemas/types.yaml#/definitions/uint32100description:101A u32 value that represents the running time dynamic102power coefficient in units of uW/MHz/V^2. The103coefficient can either be calculated from power104measurements or derived by analysis.105106The dynamic power consumption of the GPU is107proportional to the square of the Voltage (V) and108the clock frequency (f). The coefficient is used to109calculate the dynamic power as below -110111Pdyn = dynamic-power-coefficient * V^2 * f112113where voltage is in V, frequency is in MHz.114115required:116- compatible117- reg118- interrupts119- interrupt-names120- clocks121122additionalProperties: false123124allOf:125- if:126properties:127compatible:128contains:129const: allwinner,sun50i-h6-mali130then:131properties:132clocks:133minItems: 2134required:135- clock-names136- resets137- if:138properties:139compatible:140contains:141const: amlogic,meson-gxm-mali142then:143properties:144resets:145minItems: 2146required:147- resets148149examples:150- |151#include <dt-bindings/interrupt-controller/irq.h>152#include <dt-bindings/interrupt-controller/arm-gic.h>153154gpu@ffa30000 {155compatible = "rockchip,rk3288-mali", "arm,mali-t760";156reg = <0xffa30000 0x10000>;157interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,158<GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,159<GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;160interrupt-names = "job", "mmu", "gpu";161clocks = <&cru 0>;162mali-supply = <&vdd_gpu>;163operating-points-v2 = <&gpu_opp_table>;164power-domains = <&power 0>;165#cooling-cells = <2>;166};167168gpu_opp_table: opp-table {169compatible = "operating-points-v2";170171opp-533000000 {172opp-hz = /bits/ 64 <533000000>;173opp-microvolt = <1250000>;174};175opp-450000000 {176opp-hz = /bits/ 64 <450000000>;177opp-microvolt = <1150000>;178};179opp-400000000 {180opp-hz = /bits/ 64 <400000000>;181opp-microvolt = <1125000>;182};183opp-350000000 {184opp-hz = /bits/ 64 <350000000>;185opp-microvolt = <1075000>;186};187opp-266000000 {188opp-hz = /bits/ 64 <266000000>;189opp-microvolt = <1025000>;190};191opp-160000000 {192opp-hz = /bits/ 64 <160000000>;193opp-microvolt = <925000>;194};195opp-100000000 {196opp-hz = /bits/ 64 <100000000>;197opp-microvolt = <912500>;198};199};200201...202203204