1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/arm/samsung/sysreg.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Samsung S5P/Exynos SoC series System Registers (SYSREG)
8
9maintainers:
10  - Krzysztof Kozlowski <krzk@kernel.org>
11
12# Custom select to avoid matching all nodes with 'syscon'
13select:
14  properties:
15    compatible:
16      contains:
17        enum:
18          - samsung,exynos4-sysreg
19          - samsung,exynos5-sysreg
20  required:
21    - compatible
22
23properties:
24  compatible:
25    allOf:
26      - items:
27          - enum:
28              - samsung,exynos4-sysreg
29              - samsung,exynos5-sysreg
30          - const: syscon
31
32  reg:
33    maxItems: 1
34
35examples:
36  - |
37    syscon@10010000 {
38        compatible = "samsung,exynos4-sysreg", "syscon";
39        reg = <0x10010000 0x400>;
40    };
41
42    syscon@10050000 {
43        compatible = "samsung,exynos5-sysreg", "syscon";
44        reg = <0x10050000 0x5000>;
45    };
46