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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: arm: hisilicon: convert Hi6220 domain controller bindings to json-schema

Convert the Hisilicon Hi6220 domain controllers binding to DT schema
format using json-schema. All of them are grouped into one yaml file, to
help users understand differences and avoid repeated descriptions.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20200930031712.2365-16-thunder.leizhen@huawei.com
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Zhen Lei and committed by
Rob Herring
12d1f4c3 6b49329a

+68 -54
+68
Documentation/devicetree/bindings/arm/hisilicon/controller/hi6220-domain-ctrl.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/arm/hisilicon/controller/hi6220-domain-ctrl.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Hisilicon Hi6220 domain controller 8 + 9 + maintainers: 10 + - Wei Xu <xuwei5@hisilicon.com> 11 + 12 + description: | 13 + Hisilicon designs some special domain controllers for mobile platform, 14 + such as: the power Always On domain controller, the Media domain 15 + controller(e.g. codec, G3D ...) and the Power Management domain 16 + controller. 17 + 18 + The compatible names of each domain controller are as follows: 19 + Power Always ON domain controller --> hisilicon,hi6220-aoctrl 20 + Media domain controller --> hisilicon,hi6220-mediactrl 21 + Power Management domain controller --> hisilicon,hi6220-pmctrl 22 + 23 + properties: 24 + compatible: 25 + items: 26 + - enum: 27 + - hisilicon,hi6220-aoctrl 28 + - hisilicon,hi6220-mediactrl 29 + - hisilicon,hi6220-pmctrl 30 + - const: syscon 31 + 32 + reg: 33 + maxItems: 1 34 + 35 + '#clock-cells': 36 + const: 1 37 + 38 + '#reset-cells': 39 + const: 1 40 + 41 + required: 42 + - compatible 43 + - reg 44 + - '#clock-cells' 45 + 46 + additionalProperties: false 47 + 48 + examples: 49 + - | 50 + ao_ctrl@f7800000 { 51 + compatible = "hisilicon,hi6220-aoctrl", "syscon"; 52 + reg = <0xf7800000 0x2000>; 53 + #clock-cells = <1>; 54 + #reset-cells = <1>; 55 + }; 56 + 57 + media_ctrl@f4410000 { 58 + compatible = "hisilicon,hi6220-mediactrl", "syscon"; 59 + reg = <0xf4410000 0x1000>; 60 + #clock-cells = <1>; 61 + }; 62 + 63 + pm_ctrl@f7032000 { 64 + compatible = "hisilicon,hi6220-pmctrl", "syscon"; 65 + reg = <0xf7032000 0x1000>; 66 + #clock-cells = <1>; 67 + }; 68 + ...
-18
Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi6220-aoctrl.txt
··· 1 - Hisilicon Hi6220 Power Always ON domain controller 2 - 3 - Required properties: 4 - - compatible : "hisilicon,hi6220-aoctrl" 5 - - reg : Register address and size 6 - - #clock-cells: should be set to 1, many clock registers are defined 7 - under this controller and this property must be present. 8 - 9 - Hisilicon designs this system controller to control the power always 10 - on domain for mobile platform. 11 - 12 - Example: 13 - /*for Hi6220*/ 14 - ao_ctrl: ao_ctrl@f7800000 { 15 - compatible = "hisilicon,hi6220-aoctrl", "syscon"; 16 - reg = <0x0 0xf7800000 0x0 0x2000>; 17 - #clock-cells = <1>; 18 - };
-18
Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi6220-mediactrl.txt
··· 1 - Hisilicon Hi6220 Media domain controller 2 - 3 - Required properties: 4 - - compatible : "hisilicon,hi6220-mediactrl" 5 - - reg : Register address and size 6 - - #clock-cells: should be set to 1, many clock registers are defined 7 - under this controller and this property must be present. 8 - 9 - Hisilicon designs this system controller to control the multimedia 10 - domain(e.g. codec, G3D ...) for mobile platform. 11 - 12 - Example: 13 - /*for Hi6220*/ 14 - media_ctrl: media_ctrl@f4410000 { 15 - compatible = "hisilicon,hi6220-mediactrl", "syscon"; 16 - reg = <0x0 0xf4410000 0x0 0x1000>; 17 - #clock-cells = <1>; 18 - };
-18
Documentation/devicetree/bindings/arm/hisilicon/controller/hisilicon,hi6220-pmctrl.txt
··· 1 - Hisilicon Hi6220 Power Management domain controller 2 - 3 - Required properties: 4 - - compatible : "hisilicon,hi6220-pmctrl" 5 - - reg : Register address and size 6 - - #clock-cells: should be set to 1, some clock registers are define 7 - under this controller and this property must be present. 8 - 9 - Hisilicon designs this system controller to control the power management 10 - domain for mobile platform. 11 - 12 - Example: 13 - /*for Hi6220*/ 14 - pm_ctrl: pm_ctrl@f7032000 { 15 - compatible = "hisilicon,hi6220-pmctrl", "syscon"; 16 - reg = <0x0 0xf7032000 0x0 0x1000>; 17 - #clock-cells = <1>; 18 - };