diff options
author | Krzysztof Kozlowski <krzk@kernel.org> | 2019-09-20 18:25:59 +0200 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2019-10-01 07:12:41 -0500 |
commit | cd392f15ccfda0c0eecc609617100a4e98d836cf (patch) | |
tree | 388c1e3658863d56ef16118cfb411fc1cec349b0 /Documentation/devicetree/bindings/arm/samsung/sysreg.yaml | |
parent | dt-bindings: irqchip: renesas-irqc: convert bindings to json-schema (diff) | |
download | linux-dev-cd392f15ccfda0c0eecc609617100a4e98d836cf.tar.xz linux-dev-cd392f15ccfda0c0eecc609617100a4e98d836cf.zip |
dt-bindings: arm: samsung: Convert Exynos System Registers bindings to json-schema
Convert Samsung Exynos System Registers (SYSREG) bindings to DT schema
format using json-schema.
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/arm/samsung/sysreg.yaml')
-rw-r--r-- | Documentation/devicetree/bindings/arm/samsung/sysreg.yaml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/arm/samsung/sysreg.yaml b/Documentation/devicetree/bindings/arm/samsung/sysreg.yaml new file mode 100644 index 000000000000..3b7811804cb4 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/samsung/sysreg.yaml @@ -0,0 +1,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>; + }; |