summaryrefslogtreecommitdiffstats
path: root/dts/Bindings/arm/samsung/sysreg.yaml
blob: 3b7811804cb413d533c4158938bebf58b39e73ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# SPDX-License-Identifier: GPL-2.0
%YAML 1.2
---
$id: http://devicetree.org/schemas/arm/samsung/sysreg.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Samsung S5P/Exynos SoC series System Registers (SYSREG)

maintainers:
  - Krzysztof Kozlowski <krzk@kernel.org>

# Custom select to avoid matching all nodes with 'syscon'
select:
  properties:
    compatible:
      contains:
        enum:
          - samsung,exynos4-sysreg
          - samsung,exynos5-sysreg
  required:
    - compatible

properties:
  compatible:
    allOf:
      - items:
          - enum:
              - samsung,exynos4-sysreg
              - samsung,exynos5-sysreg
          - const: syscon

  reg:
    maxItems: 1

examples:
  - |
    syscon@10010000 {
        compatible = "samsung,exynos4-sysreg", "syscon";
        reg = <0x10010000 0x400>;
    };

    syscon@10050000 {
        compatible = "samsung,exynos5-sysreg", "syscon";
        reg = <0x10050000 0x5000>;
    };