2021-01-13 20:08:37 +01:00
|
|
|
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
|
|
%YAML 1.2
|
|
|
|
---
|
|
|
|
$id: http://devicetree.org/schemas/gpu/brcm,bcm-v3d.yaml#
|
|
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
|
2022-12-16 17:38:12 +01:00
|
|
|
title: Broadcom V3D GPU
|
2021-01-13 20:08:37 +01:00
|
|
|
|
|
|
|
maintainers:
|
|
|
|
- Eric Anholt <eric@anholt.net>
|
|
|
|
- Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
|
|
|
|
|
|
|
|
properties:
|
|
|
|
$nodename:
|
|
|
|
pattern: '^gpu@[a-f0-9]+$'
|
|
|
|
|
|
|
|
compatible:
|
|
|
|
enum:
|
2022-06-03 10:26:05 +01:00
|
|
|
- brcm,2711-v3d
|
2023-10-31 08:38:58 +01:00
|
|
|
- brcm,2712-v3d
|
2021-01-13 20:08:37 +01:00
|
|
|
- brcm,7268-v3d
|
|
|
|
- brcm,7278-v3d
|
|
|
|
|
|
|
|
reg:
|
|
|
|
minItems: 2
|
2025-03-17 22:01:10 -03:00
|
|
|
maxItems: 4
|
2021-01-13 20:08:37 +01:00
|
|
|
|
|
|
|
reg-names:
|
|
|
|
minItems: 2
|
2025-03-17 22:01:10 -03:00
|
|
|
maxItems: 4
|
2021-01-13 20:08:37 +01:00
|
|
|
|
|
|
|
interrupts:
|
|
|
|
items:
|
|
|
|
- description: hub interrupt (required)
|
|
|
|
- description: core interrupts (if it doesn't share the hub's interrupt)
|
|
|
|
minItems: 1
|
|
|
|
|
|
|
|
clocks:
|
|
|
|
maxItems: 1
|
|
|
|
|
|
|
|
resets:
|
|
|
|
maxItems: 1
|
|
|
|
|
|
|
|
power-domains:
|
|
|
|
maxItems: 1
|
|
|
|
|
|
|
|
required:
|
|
|
|
- compatible
|
|
|
|
- reg
|
|
|
|
- reg-names
|
|
|
|
- interrupts
|
|
|
|
|
2025-03-17 22:01:10 -03:00
|
|
|
allOf:
|
|
|
|
- if:
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
contains:
|
|
|
|
const: brcm,2711-v3d
|
|
|
|
then:
|
|
|
|
properties:
|
|
|
|
reg:
|
|
|
|
items:
|
|
|
|
- description: hub register
|
|
|
|
- description: core0 register
|
|
|
|
reg-names:
|
|
|
|
items:
|
|
|
|
- const: hub
|
|
|
|
- const: core0
|
|
|
|
- if:
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
contains:
|
|
|
|
const: brcm,2712-v3d
|
|
|
|
then:
|
|
|
|
properties:
|
|
|
|
reg:
|
|
|
|
items:
|
|
|
|
- description: hub register
|
|
|
|
- description: core0 register
|
|
|
|
reg-names:
|
|
|
|
items:
|
|
|
|
- const: hub
|
|
|
|
- const: core0
|
|
|
|
- if:
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
contains:
|
|
|
|
const: brcm,7268-v3d
|
|
|
|
then:
|
|
|
|
properties:
|
|
|
|
reg:
|
|
|
|
items:
|
|
|
|
- description: hub register
|
|
|
|
- description: core0 register
|
|
|
|
- description: GCA cache controller register
|
|
|
|
- description: bridge register
|
|
|
|
reg-names:
|
|
|
|
items:
|
|
|
|
- const: hub
|
|
|
|
- const: core0
|
|
|
|
- const: gca
|
|
|
|
- const: bridge
|
|
|
|
- if:
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
contains:
|
|
|
|
const: brcm,7278-v3d
|
|
|
|
then:
|
|
|
|
properties:
|
|
|
|
reg:
|
|
|
|
items:
|
|
|
|
- description: hub register
|
|
|
|
- description: core0 register
|
|
|
|
- description: bridge register
|
|
|
|
reg-names:
|
|
|
|
items:
|
|
|
|
- const: hub
|
|
|
|
- const: core0
|
|
|
|
- const: bridge
|
|
|
|
|
2021-01-13 20:08:37 +01:00
|
|
|
additionalProperties: false
|
|
|
|
|
|
|
|
examples:
|
|
|
|
- |
|
|
|
|
gpu@f1200000 {
|
|
|
|
compatible = "brcm,7268-v3d";
|
|
|
|
reg = <0xf1200000 0x4000>,
|
|
|
|
<0xf1208000 0x4000>,
|
2025-03-17 22:01:10 -03:00
|
|
|
<0xf1204100 0x100>,
|
|
|
|
<0xf1204000 0x100>;
|
|
|
|
reg-names = "hub", "core0", "gca", "bridge";
|
2021-01-13 20:08:37 +01:00
|
|
|
interrupts = <0 78 4>,
|
|
|
|
<0 77 4>;
|
|
|
|
};
|
|
|
|
|
|
|
|
...
|