1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/soc/samsung/samsung,exynos-sysreg.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Samsung Exynos SoC series System Registers (SYSREG)
8
9maintainers:
10  - Krzysztof Kozlowski <krzk@kernel.org>
11
12properties:
13  compatible:
14    oneOf:
15      - items:
16          - enum:
17              - samsung,exynos3-sysreg
18              - samsung,exynos4-sysreg
19              - samsung,exynos5-sysreg
20              - tesla,fsd-cam-sysreg
21              - tesla,fsd-fsys0-sysreg
22              - tesla,fsd-fsys1-sysreg
23              - tesla,fsd-peric-sysreg
24          - const: syscon
25      - items:
26          - enum:
27              - samsung,exynos5433-cam0-sysreg
28              - samsung,exynos5433-cam1-sysreg
29              - samsung,exynos5433-disp-sysreg
30              - samsung,exynos5433-fsys-sysreg
31          - const: samsung,exynos5433-sysreg
32          - const: syscon
33      - items:
34          - enum:
35              - samsung,exynos5433-sysreg
36              - samsung,exynos850-sysreg
37              - samsung,exynosautov9-sysreg
38          - const: syscon
39        deprecated: true
40      - items:
41          - enum:
42              - samsung,exynos850-cmgp-sysreg
43              - samsung,exynos850-peri-sysreg
44          - const: samsung,exynos850-sysreg
45          - const: syscon
46      - items:
47          - enum:
48              - samsung,exynosautov9-fsys2-sysreg
49              - samsung,exynosautov9-peric0-sysreg
50              - samsung,exynosautov9-peric1-sysreg
51          - const: samsung,exynosautov9-sysreg
52          - const: syscon
53
54  reg:
55    maxItems: 1
56
57  clocks:
58    maxItems: 1
59
60required:
61  - compatible
62  - reg
63
64allOf:
65  - if:
66      properties:
67        compatible:
68          contains:
69            enum:
70              - samsung,exynos850-cmgp-sysreg
71              - samsung,exynos850-peri-sysreg
72              - samsung,exynos850-sysreg
73    then:
74      required:
75        - clocks
76    else:
77      properties:
78        clocks: false
79
80additionalProperties: false
81
82examples:
83  - |
84    system-controller@10010000 {
85        compatible = "samsung,exynos4-sysreg", "syscon";
86        reg = <0x10010000 0x400>;
87    };
88