1842b4aecSRob Herring# SPDX-License-Identifier: GPL-2.0-only 2842b4aecSRob Herring%YAML 1.2 3842b4aecSRob Herring--- 4842b4aecSRob Herring$id: http://devicetree.org/schemas/gpu/arm,mali-bifrost.yaml# 5842b4aecSRob Herring$schema: http://devicetree.org/meta-schemas/core.yaml# 6842b4aecSRob Herring 7842b4aecSRob Herringtitle: ARM Mali Bifrost GPU 8842b4aecSRob Herring 9842b4aecSRob Herringmaintainers: 10842b4aecSRob Herring - Rob Herring <robh@kernel.org> 11842b4aecSRob Herring 12842b4aecSRob Herringproperties: 13842b4aecSRob Herring $nodename: 14842b4aecSRob Herring pattern: '^gpu@[a-f0-9]+$' 15842b4aecSRob Herring 16842b4aecSRob Herring compatible: 17842b4aecSRob Herring items: 18842b4aecSRob Herring - enum: 19842b4aecSRob Herring - amlogic,meson-g12a-mali 200211b71cSAndreas Färber - realtek,rtd1619-mali 21ad848dd5SHeiko Stuebner - rockchip,px30-mali 22842b4aecSRob Herring - const: arm,mali-bifrost # Mali Bifrost GPU model/revision is fully discoverable 23842b4aecSRob Herring 24842b4aecSRob Herring reg: 25842b4aecSRob Herring maxItems: 1 26842b4aecSRob Herring 27842b4aecSRob Herring interrupts: 28842b4aecSRob Herring items: 29842b4aecSRob Herring - description: Job interrupt 30842b4aecSRob Herring - description: MMU interrupt 31842b4aecSRob Herring - description: GPU interrupt 32842b4aecSRob Herring 33842b4aecSRob Herring interrupt-names: 34842b4aecSRob Herring items: 35842b4aecSRob Herring - const: job 36842b4aecSRob Herring - const: mmu 37842b4aecSRob Herring - const: gpu 38842b4aecSRob Herring 39842b4aecSRob Herring clocks: 40842b4aecSRob Herring maxItems: 1 41842b4aecSRob Herring 42f3dde260SRob Herring mali-supply: true 43842b4aecSRob Herring 44842b4aecSRob Herring operating-points-v2: true 45842b4aecSRob Herring 460d9a302dSRob Herring resets: 470d9a302dSRob Herring maxItems: 2 480d9a302dSRob Herring 49842b4aecSRob Herringrequired: 50842b4aecSRob Herring - compatible 51842b4aecSRob Herring - reg 52842b4aecSRob Herring - interrupts 53842b4aecSRob Herring - interrupt-names 54842b4aecSRob Herring - clocks 55842b4aecSRob Herring 56*7f464532SRob HerringadditionalProperties: false 57*7f464532SRob Herring 58842b4aecSRob HerringallOf: 59842b4aecSRob Herring - if: 60842b4aecSRob Herring properties: 61842b4aecSRob Herring compatible: 62842b4aecSRob Herring contains: 63842b4aecSRob Herring const: amlogic,meson-g12a-mali 64842b4aecSRob Herring then: 65842b4aecSRob Herring required: 66842b4aecSRob Herring - resets 67842b4aecSRob Herring 68842b4aecSRob Herringexamples: 69842b4aecSRob Herring - | 70842b4aecSRob Herring #include <dt-bindings/interrupt-controller/irq.h> 71842b4aecSRob Herring #include <dt-bindings/interrupt-controller/arm-gic.h> 72842b4aecSRob Herring 73842b4aecSRob Herring gpu@ffe40000 { 74842b4aecSRob Herring compatible = "amlogic,meson-g12a-mali", "arm,mali-bifrost"; 75842b4aecSRob Herring reg = <0xffe40000 0x10000>; 76842b4aecSRob Herring interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>, 77842b4aecSRob Herring <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>, 78842b4aecSRob Herring <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>; 79842b4aecSRob Herring interrupt-names = "job", "mmu", "gpu"; 80842b4aecSRob Herring clocks = <&clk 1>; 81842b4aecSRob Herring mali-supply = <&vdd_gpu>; 82842b4aecSRob Herring operating-points-v2 = <&gpu_opp_table>; 83842b4aecSRob Herring resets = <&reset 0>, <&reset 1>; 84842b4aecSRob Herring }; 85842b4aecSRob Herring 86842b4aecSRob Herring gpu_opp_table: opp_table0 { 87842b4aecSRob Herring compatible = "operating-points-v2"; 88842b4aecSRob Herring 8951a21e0eSRob Herring opp-533000000 { 90842b4aecSRob Herring opp-hz = /bits/ 64 <533000000>; 91842b4aecSRob Herring opp-microvolt = <1250000>; 92842b4aecSRob Herring }; 9351a21e0eSRob Herring opp-450000000 { 94842b4aecSRob Herring opp-hz = /bits/ 64 <450000000>; 95842b4aecSRob Herring opp-microvolt = <1150000>; 96842b4aecSRob Herring }; 9751a21e0eSRob Herring opp-400000000 { 98842b4aecSRob Herring opp-hz = /bits/ 64 <400000000>; 99842b4aecSRob Herring opp-microvolt = <1125000>; 100842b4aecSRob Herring }; 10151a21e0eSRob Herring opp-350000000 { 102842b4aecSRob Herring opp-hz = /bits/ 64 <350000000>; 103842b4aecSRob Herring opp-microvolt = <1075000>; 104842b4aecSRob Herring }; 10551a21e0eSRob Herring opp-266000000 { 106842b4aecSRob Herring opp-hz = /bits/ 64 <266000000>; 107842b4aecSRob Herring opp-microvolt = <1025000>; 108842b4aecSRob Herring }; 10951a21e0eSRob Herring opp-160000000 { 110842b4aecSRob Herring opp-hz = /bits/ 64 <160000000>; 111842b4aecSRob Herring opp-microvolt = <925000>; 112842b4aecSRob Herring }; 11351a21e0eSRob Herring opp-100000000 { 114842b4aecSRob Herring opp-hz = /bits/ 64 <100000000>; 115842b4aecSRob Herring opp-microvolt = <912500>; 116842b4aecSRob Herring }; 117842b4aecSRob Herring }; 118842b4aecSRob Herring 119842b4aecSRob Herring... 120