xref: /freebsd/sys/contrib/device-tree/Bindings/gpu/samsung-g2d.yaml (revision 2e3507c25e42292b45a5482e116d278f5515d04d)
1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/gpu/samsung-g2d.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Samsung SoC 2D Graphics Accelerator
8
9maintainers:
10  - Inki Dae <inki.dae@samsung.com>
11
12properties:
13  compatible:
14    enum:
15      - samsung,s5pv210-g2d    # in S5PV210 & Exynos4210 SoC
16      - samsung,exynos4212-g2d # in Exynos4x12 SoCs
17      - samsung,exynos5250-g2d
18
19  reg:
20    maxItems: 1
21
22  interrupts:
23    maxItems: 1
24
25  clocks: {}
26  clock-names: {}
27  iommus: {}
28  power-domains: {}
29
30if:
31  properties:
32    compatible:
33      contains:
34        const: samsung,exynos5250-g2d
35
36then:
37  properties:
38    clocks:
39      items:
40        - description: fimg2d clock
41    clock-names:
42      items:
43        - const: fimg2d
44
45else:
46  properties:
47    clocks:
48      items:
49        - description: sclk_fimg2d clock
50        - description: fimg2d clock
51    clock-names:
52      items:
53        - const: sclk_fimg2d
54        - const: fimg2d
55
56required:
57  - compatible
58  - reg
59  - interrupts
60  - clocks
61  - clock-names
62
63additionalProperties: false
64
65examples:
66  - |
67    g2d@12800000 {
68        compatible = "samsung,s5pv210-g2d";
69        reg = <0x12800000 0x1000>;
70        interrupts = <0 89 0>;
71        clocks = <&clock 177>, <&clock 277>;
72        clock-names = "sclk_fimg2d", "fimg2d";
73    };
74
75...
76