blob: 9fb530e65d0e8bb2993dd0bdfb5e9e4afeb80035 [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-scaler.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Samsung Exynos SoC Image Scaler
8
9maintainers:
10 - Inki Dae <inki.dae@samsung.com>
11
12properties:
13 compatible:
14 enum:
15 - samsung,exynos5420-scaler
16 - samsung,exynos5433-scaler
17
18 reg:
19 maxItems: 1
20
21 interrupts:
22 maxItems: 1
23
Tom Rini93743d22024-04-01 09:08:13 -040024 clocks:
25 minItems: 1
26 maxItems: 3
Tom Rini53633a82024-02-29 12:33:36 -050027
Tom Rini93743d22024-04-01 09:08:13 -040028 clock-names:
29 minItems: 1
30 maxItems: 3
Tom Rini53633a82024-02-29 12:33:36 -050031
Tom Rini93743d22024-04-01 09:08:13 -040032 iommus:
33 minItems: 1
34 maxItems: 2
Tom Rini53633a82024-02-29 12:33:36 -050035
Tom Rini93743d22024-04-01 09:08:13 -040036 power-domains:
37 maxItems: 1
Tom Rini53633a82024-02-29 12:33:36 -050038
39required:
40 - compatible
41 - reg
42 - interrupts
43 - clocks
44 - clock-names
45
Tom Rini93743d22024-04-01 09:08:13 -040046allOf:
47 - if:
48 properties:
49 compatible:
50 contains:
51 const: samsung,exynos5420-scaler
52
53 then:
54 properties:
55 clocks:
56 items:
57 - description: mscl clock
58 clock-names:
59 items:
60 - const: mscl
61 iommus:
62 minItems: 2
63
64 else:
65 properties:
66 clocks:
67 items:
68 - description: pclk clock
69 - description: aclk clock
70 - description: aclk_xiu clock
71 clock-names:
72 items:
73 - const: pclk
74 - const: aclk
75 - const: aclk_xiu
76 iommus:
77 maxItems: 1
78
Tom Rini53633a82024-02-29 12:33:36 -050079additionalProperties: false
80
81examples:
82 - |
83 #include <dt-bindings/clock/exynos5420.h>
84 #include <dt-bindings/interrupt-controller/arm-gic.h>
85
86 scaler@12800000 {
87 compatible = "samsung,exynos5420-scaler";
88 reg = <0x12800000 0x1294>;
89 interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH>;
90 clocks = <&clock CLK_MSCL0>;
91 clock-names = "mscl";
92 };
93
94...