1# 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
24  clocks: {}
25  clock-names: {}
26  iommus: {}
27  power-domains: {}
28
29if:
30  properties:
31    compatible:
32      contains:
33        const: samsung,exynos5420-scaler
34
35then:
36  properties:
37    clocks:
38      items:
39        - description: mscl clock
40
41    clock-names:
42      items:
43        - const: mscl
44
45else:
46  properties:
47    clocks:
48      items:
49        - description: pclk clock
50        - description: aclk clock
51        - description: aclk_xiu clock
52
53    clock-names:
54      items:
55        - const: pclk
56        - const: aclk
57        - const: aclk_xiu
58
59required:
60  - compatible
61  - reg
62  - interrupts
63  - clocks
64  - clock-names
65
66additionalProperties: false
67
68examples:
69  - |
70    #include <dt-bindings/clock/exynos5420.h>
71    #include <dt-bindings/interrupt-controller/arm-gic.h>
72
73    scaler@12800000 {
74        compatible = "samsung,exynos5420-scaler";
75        reg = <0x12800000 0x1294>;
76        interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH>;
77        clocks = <&clock CLK_MSCL0>;
78        clock-names = "mscl";
79    };
80
81...
82