Path: blob/master/Documentation/devicetree/bindings/gpu/arm,mali-valhall-csf.yaml
53029 views
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause1%YAML 1.22---3$id: http://devicetree.org/schemas/gpu/arm,mali-valhall-csf.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: ARM Mali Valhall GPU78maintainers:9- Liviu Dudau <liviu.dudau@arm.com>10- Boris Brezillon <boris.brezillon@collabora.com>1112properties:13$nodename:14pattern: '^gpu@[a-f0-9]+$'1516compatible:17oneOf:18- items:19- enum:20- mediatek,mt8196-mali21- nxp,imx95-mali # G31022- rockchip,rk3588-mali23- const: arm,mali-valhall-csf # Mali Valhall GPU model/revision is fully discoverable2425reg:26maxItems: 12728interrupts:29items:30- description: Job interrupt31- description: MMU interrupt32- description: GPU interrupt3334interrupt-names:35items:36- const: job37- const: mmu38- const: gpu3940clocks:41minItems: 142maxItems: 34344clock-names:45minItems: 146items:47- const: core48- enum:49- coregroup50- stacks51- const: stacks5253nvmem-cells:54items:55- description: bitmask of functional shader cores5657nvmem-cell-names:58items:59- const: shader-present6061mali-supply: true6263operating-points-v2: true64opp-table:65type: object6667power-domains:68minItems: 169maxItems: 57071power-domain-names:72minItems: 173maxItems: 57475sram-supply: true7677"#cooling-cells":78const: 27980dynamic-power-coefficient:81$ref: /schemas/types.yaml#/definitions/uint3282description:83A u32 value that represents the running time dynamic84power coefficient in units of uW/MHz/V^2. The85coefficient can either be calculated from power86measurements or derived by analysis.8788The dynamic power consumption of the GPU is89proportional to the square of the Voltage (V) and90the clock frequency (f). The coefficient is used to91calculate the dynamic power as below -9293Pdyn = dynamic-power-coefficient * V^2 * f9495where voltage is in V, frequency is in MHz.9697dma-coherent: true9899required:100- compatible101- reg102- interrupts103- interrupt-names104- clocks105106additionalProperties: false107108allOf:109- if:110properties:111compatible:112contains:113const: rockchip,rk3588-mali114then:115properties:116clocks:117minItems: 3118nvmem-cells: false119nvmem-cell-names: false120power-domains:121maxItems: 1122power-domain-names: false123required:124- mali-supply125- if:126properties:127compatible:128contains:129const: mediatek,mt8196-mali130then:131properties:132mali-supply: false133sram-supply: false134operating-points-v2: false135power-domains:136maxItems: 1137power-domain-names: false138clocks:139maxItems: 2140clock-names:141items:142- const: core143- const: stacks144required:145- nvmem-cells146- nvmem-cell-names147- power-domains148149examples:150- |151#include <dt-bindings/clock/rockchip,rk3588-cru.h>152#include <dt-bindings/interrupt-controller/irq.h>153#include <dt-bindings/interrupt-controller/arm-gic.h>154#include <dt-bindings/power/rk3588-power.h>155156gpu: gpu@fb000000 {157compatible = "rockchip,rk3588-mali", "arm,mali-valhall-csf";158reg = <0xfb000000 0x200000>;159interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH 0>,160<GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH 0>,161<GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH 0>;162interrupt-names = "job", "mmu", "gpu";163clock-names = "core", "coregroup", "stacks";164clocks = <&cru CLK_GPU>, <&cru CLK_GPU_COREGROUP>,165<&cru CLK_GPU_STACKS>;166power-domains = <&power RK3588_PD_GPU>;167operating-points-v2 = <&gpu_opp_table>;168mali-supply = <&vdd_gpu_s0>;169sram-supply = <&vdd_gpu_mem_s0>;170171gpu_opp_table: opp-table {172compatible = "operating-points-v2";173opp-300000000 {174opp-hz = /bits/ 64 <300000000>;175opp-microvolt = <675000 675000 850000>;176};177opp-400000000 {178opp-hz = /bits/ 64 <400000000>;179opp-microvolt = <675000 675000 850000>;180};181};182};183- |184gpu@48000000 {185compatible = "mediatek,mt8196-mali", "arm,mali-valhall-csf";186reg = <0x48000000 0x480000>;187clocks = <&gpufreq 0>, <&gpufreq 1>;188clock-names = "core", "stacks";189interrupts = <GIC_SPI 606 IRQ_TYPE_LEVEL_HIGH 0>,190<GIC_SPI 605 IRQ_TYPE_LEVEL_HIGH 0>,191<GIC_SPI 604 IRQ_TYPE_LEVEL_HIGH 0>;192interrupt-names = "job", "mmu", "gpu";193nvmem-cells = <&shader_present>;194nvmem-cell-names = "shader-present";195power-domains = <&gpufreq>;196};197198...199200201