xref: /freebsd/sys/contrib/device-tree/Bindings/gpu/brcm,bcm-v3d.yaml (revision 9bc300465e48e19d794d88d0c158a2adb92c7197)
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
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,2712-v3d
21      - brcm,7268-v3d
22      - brcm,7278-v3d
23
24  reg:
25    items:
26      - description: hub register (required)
27      - description: core0 register (required)
28      - description: GCA cache controller register (if GCA controller present)
29      - description: bridge register (if no external reset controller)
30    minItems: 2
31
32  reg-names:
33    items:
34      - const: hub
35      - const: core0
36      - enum: [ bridge, gca ]
37      - enum: [ bridge, gca ]
38    minItems: 2
39
40  interrupts:
41    items:
42      - description: hub interrupt (required)
43      - description: core interrupts (if it doesn't share the hub's interrupt)
44    minItems: 1
45
46  clocks:
47    maxItems: 1
48
49  resets:
50    maxItems: 1
51
52  power-domains:
53    maxItems: 1
54
55required:
56  - compatible
57  - reg
58  - reg-names
59  - interrupts
60
61additionalProperties: false
62
63examples:
64  - |
65    gpu@f1200000 {
66      compatible = "brcm,7268-v3d";
67      reg = <0xf1200000 0x4000>,
68            <0xf1208000 0x4000>,
69            <0xf1204000 0x100>,
70            <0xf1204100 0x100>;
71      reg-names = "hub", "core0", "bridge", "gca";
72      interrupts = <0 78 4>,
73                   <0 77 4>;
74    };
75
76...
77