Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: power: Convert Samsung Exynos Power Domain bindings to json-schema

Convert Samsung Exynos Soc Power Domain bindings to DT schema format using
json-schema.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Rob Herring
abb4805e 5279a3d8

+68 -47
+1 -1
Documentation/devicetree/bindings/iommu/samsung,sysmmu.yaml
··· 69 69 description: | 70 70 Required if the System MMU is needed to gate its power. 71 71 Please refer to the following document: 72 - Documentation/devicetree/bindings/power/pd-samsung.txt 72 + Documentation/devicetree/bindings/power/pd-samsung.yaml 73 73 maxItems: 1 74 74 75 75 required:
-45
Documentation/devicetree/bindings/power/pd-samsung.txt
··· 1 - * Samsung Exynos Power Domains 2 - 3 - Exynos processors include support for multiple power domains which are used 4 - to gate power to one or more peripherals on the processor. 5 - 6 - Required Properties: 7 - - compatible: should be one of the following. 8 - * samsung,exynos4210-pd - for exynos4210 type power domain. 9 - * samsung,exynos5433-pd - for exynos5433 type power domain. 10 - - reg: physical base address of the controller and length of memory mapped 11 - region. 12 - - #power-domain-cells: number of cells in power domain specifier; 13 - must be 0. 14 - 15 - Optional Properties: 16 - - label: Human readable string with domain name. Will be visible in userspace 17 - to let user to distinguish between multiple domains in SoC. 18 - - power-domains: phandle pointing to the parent power domain, for more details 19 - see Documentation/devicetree/bindings/power/power_domain.txt 20 - 21 - Deprecated Properties: 22 - - clocks 23 - - clock-names 24 - 25 - Node of a device using power domains must have a power-domains property 26 - defined with a phandle to respective power domain. 27 - 28 - Example: 29 - 30 - lcd0: power-domain-lcd0 { 31 - compatible = "samsung,exynos4210-pd"; 32 - reg = <0x10023C00 0x10>; 33 - #power-domain-cells = <0>; 34 - label = "LCD0"; 35 - }; 36 - 37 - mfc_pd: power-domain@10044060 { 38 - compatible = "samsung,exynos4210-pd"; 39 - reg = <0x10044060 0x20>; 40 - #power-domain-cells = <0>; 41 - label = "MFC"; 42 - }; 43 - 44 - See Documentation/devicetree/bindings/power/power_domain.txt for description 45 - of consumer-side bindings.
+66
Documentation/devicetree/bindings/power/pd-samsung.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/power/pd-samsung.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Samsung Exynos SoC Power Domains 8 + 9 + maintainers: 10 + - Krzysztof Kozlowski <krzk@kernel.org> 11 + 12 + description: |+ 13 + Exynos processors include support for multiple power domains which are used 14 + to gate power to one or more peripherals on the processor. 15 + 16 + allOf: 17 + - $ref: power-domain.yaml# 18 + 19 + properties: 20 + compatible: 21 + enum: 22 + - samsung,exynos4210-pd 23 + - samsung,exynos5433-pd 24 + 25 + reg: 26 + maxItems: 1 27 + 28 + clocks: 29 + deprecated: true 30 + maxItems: 1 31 + 32 + clock-names: 33 + deprecated: true 34 + maxItems: 1 35 + 36 + label: 37 + description: 38 + Human readable string with domain name. Will be visible in userspace 39 + to let user to distinguish between multiple domains in SoC. 40 + 41 + "#power-domain-cells": 42 + const: 0 43 + 44 + power-domains: 45 + maxItems: 1 46 + 47 + required: 48 + - compatible 49 + - "#power-domain-cells" 50 + - reg 51 + 52 + examples: 53 + - | 54 + lcd0_pd: power-domain@10023c80 { 55 + compatible = "samsung,exynos4210-pd"; 56 + reg = <0x10023c80 0x20>; 57 + #power-domain-cells = <0>; 58 + label = "LCD0"; 59 + }; 60 + 61 + mfc_pd: power-domain@10044060 { 62 + compatible = "samsung,exynos4210-pd"; 63 + reg = <0x10044060 0x20>; 64 + #power-domain-cells = <0>; 65 + label = "MFC"; 66 + };
+1 -1
MAINTAINERS
··· 2235 2235 F: include/linux/soc/samsung/ 2236 2236 F: Documentation/arm/samsung/ 2237 2237 F: Documentation/devicetree/bindings/arm/samsung/ 2238 - F: Documentation/devicetree/bindings/power/pd-samsung.txt 2238 + F: Documentation/devicetree/bindings/power/pd-samsung.yaml 2239 2239 N: exynos 2240 2240 2241 2241 ARM/SAMSUNG MOBILE MACHINE SUPPORT