xref: /linux/Documentation/devicetree/bindings/gpu/img,powervr-rogue.yaml (revision 4b660dbd9ee2059850fd30e0df420ca7a38a1856)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2# Copyright (c) 2023 Imagination Technologies Ltd.
3%YAML 1.2
4---
5$id: http://devicetree.org/schemas/gpu/img,powervr-rogue.yaml#
6$schema: http://devicetree.org/meta-schemas/core.yaml#
7
8title: Imagination Technologies PowerVR and IMG Rogue GPUs
9
10maintainers:
11  - Frank Binns <frank.binns@imgtec.com>
12
13properties:
14  compatible:
15    items:
16      - enum:
17          - ti,am62-gpu
18      - const: img,img-axe # IMG AXE GPU model/revision is fully discoverable
19
20  reg:
21    maxItems: 1
22
23  clocks:
24    minItems: 1
25    maxItems: 3
26
27  clock-names:
28    items:
29      - const: core
30      - const: mem
31      - const: sys
32    minItems: 1
33
34  interrupts:
35    maxItems: 1
36
37  power-domains:
38    maxItems: 1
39
40required:
41  - compatible
42  - reg
43  - clocks
44  - clock-names
45  - interrupts
46
47additionalProperties: false
48
49allOf:
50  - if:
51      properties:
52        compatible:
53          contains:
54            const: ti,am62-gpu
55    then:
56      properties:
57        clocks:
58          maxItems: 1
59
60examples:
61  - |
62    #include <dt-bindings/interrupt-controller/irq.h>
63    #include <dt-bindings/interrupt-controller/arm-gic.h>
64    #include <dt-bindings/soc/ti,sci_pm_domain.h>
65
66    gpu@fd00000 {
67        compatible = "ti,am62-gpu", "img,img-axe";
68        reg = <0x0fd00000 0x20000>;
69        clocks = <&k3_clks 187 0>;
70        clock-names = "core";
71        interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
72        power-domains = <&k3_pds 187 TI_SCI_PD_EXCLUSIVE>;
73    };
74