1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/gpu/brcm,bcm-v3d.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Broadcom V3D GPU Bindings
8
9maintainers:
10  - Eric Anholt <eric@anholt.net>
11  - Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
12
13properties:
14  $nodename:
15    pattern: '^gpu@[a-f0-9]+$'
16
17  compatible:
18    enum:
19      - brcm,2711-v3d
20      - brcm,7268-v3d
21      - brcm,7278-v3d
22
23  reg:
24    items:
25      - description: hub register (required)
26      - description: core0 register (required)
27      - description: GCA cache controller register (if GCA controller present)
28      - description: bridge register (if no external reset controller)
29    minItems: 2
30
31  reg-names:
32    items:
33      - const: hub
34      - const: core0
35      - enum: [ bridge, gca ]
36      - enum: [ bridge, gca ]
37    minItems: 2
38
39  interrupts:
40    items:
41      - description: hub interrupt (required)
42      - description: core interrupts (if it doesn't share the hub's interrupt)
43    minItems: 1
44
45  clocks:
46    maxItems: 1
47
48  resets:
49    maxItems: 1
50
51  power-domains:
52    maxItems: 1
53
54required:
55  - compatible
56  - reg
57  - reg-names
58  - interrupts
59
60additionalProperties: false
61
62examples:
63  - |
64    gpu@f1200000 {
65      compatible = "brcm,7268-v3d";
66      reg = <0xf1200000 0x4000>,
67            <0xf1208000 0x4000>,
68            <0xf1204000 0x100>,
69            <0xf1204100 0x100>;
70      reg-names = "hub", "core0", "bridge", "gca";
71      interrupts = <0 78 4>,
72                   <0 77 4>;
73    };
74
75...
76