lkml.org 
[lkml]   [2020]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 09/10] dt-bindings: arm: hisilicon: add missing properties into sysctrl.yaml
Date
Add properties: #address-cells, #size-cells and ranges. Due to the
Hisilicon system controller node may contains child nodes, change the
value of "additionalProperties" from "false" to "type: object". The
examples have also been updated.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
---
.../bindings/arm/hisilicon/controller/sysctrl.yaml | 25 +++++++++++++++++++---
1 file changed, 22 insertions(+), 3 deletions(-)

diff --git a/Documentation/devicetree/bindings/arm/hisilicon/controller/sysctrl.yaml b/Documentation/devicetree/bindings/arm/hisilicon/controller/sysctrl.yaml
index 449140f89ddbc3b..a27b79694e9883f 100644
--- a/Documentation/devicetree/bindings/arm/hisilicon/controller/sysctrl.yaml
+++ b/Documentation/devicetree/bindings/arm/hisilicon/controller/sysctrl.yaml
@@ -71,21 +71,40 @@ properties:
'#clock-cells':
const: 1

+ '#address-cells':
+ const: 1
+
+ '#size-cells':
+ const: 1
+
+ ranges: true
+
required:
- compatible
- reg

-additionalProperties: false
+additionalProperties:
+ type: object

examples:
- |
/* Hisilicon system controller */
- system-controller@fc802000 {
+ system-controller@802000 {
compatible = "hisilicon,sysctrl", "syscon";
- reg = <0xfc802000 0x1000>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges = <0 0x802000 0x1000>;
+ reg = <0x802000 0x1000>;
+
smp-offset = <0x31c>;
resume-offset = <0x308>;
reboot-offset = <0x4>;
+
+ clock: clock@0 {
+ compatible = "hisilicon,hi3620-clock";
+ reg = <0 0x10000>;
+ #clock-cells = <1>;
+ };
};

/* HiP01 system controller */
--
1.8.3

\
 
 \ /
  Last update: 2020-10-10 12:22    [W:0.125 / U:0.376 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site