blob: 132aaa49597b6b62e8cf72a0c73426edc4f63cf7 [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001# 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
Tom Rini93743d22024-04-01 09:08:13 -040025 clocks:
26 minItems: 1
27 maxItems: 2
Tom Rini53633a82024-02-29 12:33:36 -050028
Tom Rini93743d22024-04-01 09:08:13 -040029 clock-names:
30 minItems: 1
31 maxItems: 2
Tom Rini53633a82024-02-29 12:33:36 -050032
Tom Rini93743d22024-04-01 09:08:13 -040033 iommus:
34 minItems: 1
35 maxItems: 2
Tom Rini53633a82024-02-29 12:33:36 -050036
Tom Rini93743d22024-04-01 09:08:13 -040037 power-domains:
38 maxItems: 1
Tom Rini53633a82024-02-29 12:33:36 -050039
40required:
41 - compatible
42 - reg
43 - interrupts
44 - clocks
45 - clock-names
46
Tom Rini93743d22024-04-01 09:08:13 -040047allOf:
48 - if:
49 properties:
50 compatible:
51 contains:
52 const: samsung,exynos5250-g2d
53
54 then:
55 properties:
56 clocks:
57 items:
58 - description: fimg2d clock
59 clock-names:
60 items:
61 - const: fimg2d
62
63 else:
64 properties:
65 clocks:
66 items:
67 - description: sclk_fimg2d clock
68 - description: fimg2d clock
69 clock-names:
70 items:
71 - const: sclk_fimg2d
72 - const: fimg2d
73
Tom Rini53633a82024-02-29 12:33:36 -050074additionalProperties: false
75
76examples:
77 - |
78 g2d@12800000 {
79 compatible = "samsung,s5pv210-g2d";
80 reg = <0x12800000 0x1000>;
81 interrupts = <0 89 0>;
82 clocks = <&clock 177>, <&clock 277>;
83 clock-names = "sclk_fimg2d", "fimg2d";
84 };
85
86...