Commit 596e7636 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Greg Kroah-Hartman

staging: hikey9xx: hisilicon, hisi-spmi-controller.yaml fix bindings

Fix a few warnings produced by make dt_binding_check.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/fca7260e7c61f073ae376ab23f58856ba5a87a7a.1611212783.git.mchehab+huawei@kernel.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 93e3ef23
...@@ -26,6 +26,12 @@ properties: ...@@ -26,6 +26,12 @@ properties:
reg: reg:
maxItems: 1 maxItems: 1
"#address-cells":
const: 2
"#size-cells":
const: 0
spmi-channel: spmi-channel:
description: | description: |
number of the Kirin 970 SPMI channel where the SPMI devices are connected. number of the Kirin 970 SPMI channel where the SPMI devices are connected.
...@@ -34,6 +40,8 @@ required: ...@@ -34,6 +40,8 @@ required:
- compatible - compatible
- reg - reg
- spmi-channel - spmi-channel
- "#address-cells"
- "#size-cells"
patternProperties: patternProperties:
"^pmic@[0-9a-f]$": "^pmic@[0-9a-f]$":
...@@ -43,6 +51,8 @@ patternProperties: ...@@ -43,6 +51,8 @@ patternProperties:
are documented at are documented at
drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml. drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml.
additionalProperties: false
examples: examples:
- | - |
bus { bus {
...@@ -51,11 +61,14 @@ examples: ...@@ -51,11 +61,14 @@ examples:
spmi: spmi@fff24000 { spmi: spmi@fff24000 {
compatible = "hisilicon,kirin970-spmi-controller"; compatible = "hisilicon,kirin970-spmi-controller";
#address-cells = <2>;
#size-cells = <0>;
status = "ok"; status = "ok";
reg = <0x0 0xfff24000 0x0 0x1000>; reg = <0x0 0xfff24000 0x0 0x1000>;
spmi-channel = <2>; spmi-channel = <2>;
pmic@0 { pmic@0 {
reg = <0 0>;
/* pmic properties */ /* pmic properties */
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment