提交 45bca188 编写于 作者: M Mauro Carvalho Chehab 提交者: Greg Kroah-Hartman

staging: hisilicon,hisi-spmi-controller.yaml cleanup schema

Remove some properties already defined at SPMI bus, and
place the type for the spmi-channel.
Signed-off-by: NMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/4e4a80d3a1b84a354d3c40be374a1689ae6c0fb1.1616695231.git.mchehab+huawei@kernel.orgSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 a6463cc5
...@@ -16,7 +16,11 @@ description: | ...@@ -16,7 +16,11 @@ description: |
The PMIC part is provided by The PMIC part is provided by
drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml. drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml.
allOf:
- $ref: spmi.yaml#
properties: properties:
$nodename: $nodename:
pattern: "spmi@[0-9a-f]" pattern: "spmi@[0-9a-f]"
...@@ -26,13 +30,8 @@ properties: ...@@ -26,13 +30,8 @@ properties:
reg: reg:
maxItems: 1 maxItems: 1
"#address-cells":
const: 2
"#size-cells":
const: 0
spmi-channel: spmi-channel:
$ref: /schemas/types.yaml#/definitions/uint32
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.
...@@ -40,18 +39,16 @@ required: ...@@ -40,18 +39,16 @@ required:
- compatible - compatible
- reg - reg
- spmi-channel - spmi-channel
- "#address-cells"
- "#size-cells"
patternProperties: patternProperties:
"^pmic@[0-9a-f]$": "@[0-9a-f]$":
description: | description: |
PMIC properties, which are specific to the used SPMI PMIC device(s). PMIC properties, which are specific to the used SPMI PMIC device(s).
When used in combination with HiSilicon 6421v600, the properties When used in combination with HiSilicon 6421v600, the properties
are documented at are documented at
drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml. drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml.
additionalProperties: false unevaluatedProperties: false
examples: examples:
- | - |
...@@ -63,7 +60,6 @@ examples: ...@@ -63,7 +60,6 @@ examples:
compatible = "hisilicon,kirin970-spmi-controller"; compatible = "hisilicon,kirin970-spmi-controller";
#address-cells = <2>; #address-cells = <2>;
#size-cells = <0>; #size-cells = <0>;
status = "ok";
reg = <0x0 0xfff24000 0x0 0x1000>; reg = <0x0 0xfff24000 0x0 0x1000>;
spmi-channel = <2>; spmi-channel = <2>;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册