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