diff options
author | Zhen Lei <thunder.leizhen@huawei.com> | 2020-10-12 14:12:25 +0800 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2020-10-12 13:48:43 -0500 |
commit | 0450d1f9a295646af84455e4e5b745d151ff81e1 (patch) | |
tree | 8416218b7c7484ef7aaa80fceb4af006c6ac8f95 /Documentation/devicetree/bindings/arm/hisilicon | |
parent | 879baf11777cdfa5a04c266c7a987907887c7443 (diff) | |
download | linux-0450d1f9a295646af84455e4e5b745d151ff81e1.tar.bz2 |
dt-bindings: arm: hisilicon: add missing properties into cpuctrl.yaml
Add properties: #address-cells, #size-cells and ranges. Due to the
Hisilicon CPU controller node may contains child nodes, change the value
of "additionalProperties" from "false" to "type: object".
The corresponding examples are also added.
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20201012061225.1597-11-thunder.leizhen@huawei.com
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/arm/hisilicon')
-rw-r--r-- | Documentation/devicetree/bindings/arm/hisilicon/controller/cpuctrl.yaml | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/arm/hisilicon/controller/cpuctrl.yaml b/Documentation/devicetree/bindings/arm/hisilicon/controller/cpuctrl.yaml index f6a314db3a59..528dad4cde3c 100644 --- a/Documentation/devicetree/bindings/arm/hisilicon/controller/cpuctrl.yaml +++ b/Documentation/devicetree/bindings/arm/hisilicon/controller/cpuctrl.yaml @@ -21,9 +21,34 @@ properties: reg: maxItems: 1 + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + + ranges: true + required: - compatible - reg -additionalProperties: false +additionalProperties: + type: object + +examples: + - | + cpuctrl@a22000 { + compatible = "hisilicon,cpuctrl"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0x00a22000 0x2000>; + ranges = <0 0x00a22000 0x2000>; + + clock: clock@0 { + compatible = "hisilicon,hix5hd2-clock"; + reg = <0 0x2000>; + #clock-cells = <1>; + }; + }; ... |