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

staging: hisi-spmi-controller: rename spmi-channel property

The spmi-channel is not used on other drivers. So, rename it,
in order to document that this is specific to those devices.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/ed45fc5d84d7b531343ee5d3466ebfac26217da0.1624542940.git.mchehab+huawei@kernel.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 83fb097b
...@@ -290,7 +290,7 @@ static int spmi_controller_probe(struct platform_device *pdev) ...@@ -290,7 +290,7 @@ static int spmi_controller_probe(struct platform_device *pdev)
goto err_put_controller; goto err_put_controller;
} }
ret = of_property_read_u32(pdev->dev.of_node, "spmi-channel", ret = of_property_read_u32(pdev->dev.of_node, "hisilicon,spmi-channel",
&spmi_controller->channel); &spmi_controller->channel);
if (ret) { if (ret) {
dev_err(&pdev->dev, "can not get channel\n"); dev_err(&pdev->dev, "can not get channel\n");
......
...@@ -14,7 +14,7 @@ description: | ...@@ -14,7 +14,7 @@ description: |
It is a MIPI System Power Management (SPMI) controller. It is a MIPI System Power Management (SPMI) controller.
The PMIC part is provided by The PMIC part is provided by
drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml. ./Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml.
allOf: allOf:
- $ref: spmi.yaml# - $ref: spmi.yaml#
...@@ -30,7 +30,7 @@ properties: ...@@ -30,7 +30,7 @@ properties:
reg: reg:
maxItems: 1 maxItems: 1
spmi-channel: hisilicon,spmi-channel:
$ref: /schemas/types.yaml#/definitions/uint32 $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.
...@@ -38,10 +38,12 @@ properties: ...@@ -38,10 +38,12 @@ properties:
required: required:
- compatible - compatible
- reg - reg
- spmi-channel - hisilicon,spmi-channel
patternProperties: patternProperties:
"@[0-9a-f]$": "@[0-9a-f]$":
type: object
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
...@@ -61,7 +63,7 @@ examples: ...@@ -61,7 +63,7 @@ examples:
#address-cells = <2>; #address-cells = <2>;
#size-cells = <0>; #size-cells = <0>;
reg = <0x0 0xfff24000 0x0 0x1000>; reg = <0x0 0xfff24000 0x0 0x1000>;
spmi-channel = <2>; hisilicon,spmi-channel = <2>;
pmic@0 { pmic@0 {
reg = <0 0>; reg = <0 0>;
......
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