Path: blob/master/Documentation/devicetree/bindings/gpu/arm,mali-valhall-csf.yaml
26307 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- rockchip,rk3588-mali21- const: arm,mali-valhall-csf # Mali Valhall GPU model/revision is fully discoverable2223reg:24maxItems: 12526interrupts:27items:28- description: Job interrupt29- description: MMU interrupt30- description: GPU interrupt3132interrupt-names:33items:34- const: job35- const: mmu36- const: gpu3738clocks:39minItems: 140maxItems: 34142clock-names:43minItems: 144items:45- const: core46- const: coregroup47- const: stacks4849mali-supply: true5051operating-points-v2: true52opp-table:53type: object5455power-domains:56minItems: 157maxItems: 55859power-domain-names:60minItems: 161maxItems: 56263sram-supply: true6465"#cooling-cells":66const: 26768dynamic-power-coefficient:69$ref: /schemas/types.yaml#/definitions/uint3270description:71A u32 value that represents the running time dynamic72power coefficient in units of uW/MHz/V^2. The73coefficient can either be calculated from power74measurements or derived by analysis.7576The dynamic power consumption of the GPU is77proportional to the square of the Voltage (V) and78the clock frequency (f). The coefficient is used to79calculate the dynamic power as below -8081Pdyn = dynamic-power-coefficient * V^2 * f8283where voltage is in V, frequency is in MHz.8485dma-coherent: true8687required:88- compatible89- reg90- interrupts91- interrupt-names92- clocks93- mali-supply9495additionalProperties: false9697allOf:98- if:99properties:100compatible:101contains:102const: rockchip,rk3588-mali103then:104properties:105clocks:106minItems: 3107power-domains:108maxItems: 1109power-domain-names: false110111examples:112- |113#include <dt-bindings/clock/rockchip,rk3588-cru.h>114#include <dt-bindings/interrupt-controller/irq.h>115#include <dt-bindings/interrupt-controller/arm-gic.h>116#include <dt-bindings/power/rk3588-power.h>117118gpu: gpu@fb000000 {119compatible = "rockchip,rk3588-mali", "arm,mali-valhall-csf";120reg = <0xfb000000 0x200000>;121interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH 0>,122<GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH 0>,123<GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH 0>;124interrupt-names = "job", "mmu", "gpu";125clock-names = "core", "coregroup", "stacks";126clocks = <&cru CLK_GPU>, <&cru CLK_GPU_COREGROUP>,127<&cru CLK_GPU_STACKS>;128power-domains = <&power RK3588_PD_GPU>;129operating-points-v2 = <&gpu_opp_table>;130mali-supply = <&vdd_gpu_s0>;131sram-supply = <&vdd_gpu_mem_s0>;132133gpu_opp_table: opp-table {134compatible = "operating-points-v2";135opp-300000000 {136opp-hz = /bits/ 64 <300000000>;137opp-microvolt = <675000 675000 850000>;138};139opp-400000000 {140opp-hz = /bits/ 64 <400000000>;141opp-microvolt = <675000 675000 850000>;142};143};144};145146...147148149