Debian Codegraph @

Documentation/devicetree/bindings/gpu/img,powervr-rogue.yaml

raw
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
8 title: Imagination Technologies PowerVR and IMG Rogue GPUs
9
10 maintainers:
11 - Frank Binns <[email protected]>
12
13 properties:
14 compatible:
15 oneOf:
16 - items:
17 - enum:
18 - renesas,r8a7796-gpu
19 - renesas,r8a77961-gpu
20 - const: img,img-gx6250
21 - const: img,img-rogue
22 - items:
23 - enum:
24 - renesas,r8a77965-gpu
25 - renesas,r8a779a0-gpu
26 - const: img,img-ge7800
27 - const: img,img-rogue
28 - items:
29 - enum:
30 - ti,am62-gpu
31 - const: img,img-axe-1-16m
32 # This deprecated element must be kept around to allow old kernels to
33 # work with newer dts.
34 - const: img,img-axe
35 - const: img,img-rogue
36 - items:
37 - enum:
38 - thead,th1520-gpu
39 - const: img,img-bxm-4-64
40 - const: img,img-rogue
41 - items:
42 - enum:
43 - ti,am62p-gpu
44 - ti,j721s2-gpu
45 - const: img,img-bxs-4-64
46 - const: img,img-rogue
47
48 # This legacy combination of compatible strings was introduced early on
49 # before the more specific GPU identifiers were used.
50 - items:
51 - enum:
52 - ti,am62-gpu
53 - const: img,img-axe
54 deprecated: true
55
56 reg:
57 maxItems: 1
58
59 clocks:
60 minItems: 1
61 maxItems: 3
62
63 clock-names:
64 items:
65 - const: core
66 - const: mem
67 - const: sys
68 minItems: 1
69
70 interrupts:
71 maxItems: 1
72
73 power-domains:
74 minItems: 1
75 maxItems: 2
76
77 power-domain-names:
78 items:
79 - const: a
80 - const: b
81 minItems: 1
82
83 dma-coherent: true
84
85 resets:
86 maxItems: 1
87
88 required:
89 - compatible
90 - reg
91 - clocks
92 - clock-names
93 - interrupts
94
95 additionalProperties: false
96
97 allOf:
98 - if:
99 properties:
100 compatible:
101 contains:
102 enum:
103 - ti,am62-gpu
104 - ti,am62p-gpu
105 - ti,j721s2-gpu
106 then:
107 properties:
108 clocks:
109 maxItems: 1
110
111 - if:
112 properties:
113 compatible:
114 contains:
115 enum:
116 - img,img-ge7800
117 - img,img-gx6250
118 - thead,th1520-gpu
119 then:
120 properties:
121 clocks:
122 minItems: 3
123 clock-names:
124 minItems: 3
125
126 - if:
127 properties:
128 compatible:
129 contains:
130 const: img,img-axe-1-16m
131 then:
132 properties:
133 power-domains:
134 maxItems: 1
135 power-domain-names:
136 maxItems: 1
137 required:
138 - power-domains
139 - power-domain-names
140
141 - if:
142 properties:
143 compatible:
144 contains:
145 enum:
146 - img,img-bxs-4-64
147 - img,img-ge7800
148 - img,img-gx6250
149 then:
150 properties:
151 power-domains:
152 minItems: 2
153 power-domain-names:
154 minItems: 2
155 required:
156 - power-domains
157 - power-domain-names
158
159 - if:
160 properties:
161 compatible:
162 contains:
163 const: thead,th1520-gpu
164 then:
165 properties:
166 power-domains:
167 items:
168 - description: The single, unified power domain for the GPU on the
169 TH1520 SoC, integrating all internal IP power domains.
170 power-domain-names: false
171 required:
172 - power-domains
173
174 examples:
175 - |
176 #include <dt-bindings/interrupt-controller/irq.h>
177 #include <dt-bindings/interrupt-controller/arm-gic.h>
178 #include <dt-bindings/soc/ti,sci_pm_domain.h>
179
180 gpu@fd00000 {
181 compatible = "ti,am62-gpu", "img,img-axe-1-16m", "img,img-axe",
182 "img,img-rogue";
183 reg = <0x0fd00000 0x20000>;
184 clocks = <&k3_clks 187 0>;
185 clock-names = "core";
186 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
187 power-domains = <&k3_pds 187 TI_SCI_PD_EXCLUSIVE>;
188 power-domain-names = "a";
189 };