blob: 21f68a9c2df156f9072f1196ebb92b7ce067e668 [file] [log] [blame]
Mauro Carvalho Chehab9e591722020-08-18 16:58:57 +02001# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/spmi/hisilicon,hisi-spmi-controller.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: HiSilicon SPMI controller
8
9maintainers:
10 - Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
11
12description: |
13 The HiSilicon SPMI BUS controller is found on some Kirin-based designs.
14 It is a MIPI System Power Management (SPMI) controller.
15
16 The PMIC part is provided by
Mauro Carvalho Chehabe6627a52020-08-26 11:32:12 +020017 drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml.
Mauro Carvalho Chehab9e591722020-08-18 16:58:57 +020018
19properties:
20 $nodename:
21 pattern: "spmi@[0-9a-f]"
22
23 compatible:
24 const: hisilicon,kirin970-spmi-controller
25
26 reg:
27 maxItems: 1
28
Mauro Carvalho Chehab596e7632021-01-21 08:18:03 +010029 "#address-cells":
30 const: 2
31
32 "#size-cells":
33 const: 0
34
Mauro Carvalho Chehab9e591722020-08-18 16:58:57 +020035 spmi-channel:
36 description: |
37 number of the Kirin 970 SPMI channel where the SPMI devices are connected.
38
39required:
Mauro Carvalho Chehab596e7632021-01-21 08:18:03 +010040 - compatible
41 - reg
42 - spmi-channel
43 - "#address-cells"
44 - "#size-cells"
Mauro Carvalho Chehab9e591722020-08-18 16:58:57 +020045
46patternProperties:
47 "^pmic@[0-9a-f]$":
48 description: |
49 PMIC properties, which are specific to the used SPMI PMIC device(s).
50 When used in combination with HiSilicon 6421v600, the properties
51 are documented at
Mauro Carvalho Chehabe6627a52020-08-26 11:32:12 +020052 drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml.
Mauro Carvalho Chehab9e591722020-08-18 16:58:57 +020053
Mauro Carvalho Chehab596e7632021-01-21 08:18:03 +010054additionalProperties: false
55
Mauro Carvalho Chehab9e591722020-08-18 16:58:57 +020056examples:
57 - |
58 bus {
59 #address-cells = <2>;
60 #size-cells = <2>;
61
62 spmi: spmi@fff24000 {
63 compatible = "hisilicon,kirin970-spmi-controller";
Mauro Carvalho Chehab596e7632021-01-21 08:18:03 +010064 #address-cells = <2>;
65 #size-cells = <0>;
Mauro Carvalho Chehab9e591722020-08-18 16:58:57 +020066 status = "ok";
67 reg = <0x0 0xfff24000 0x0 0x1000>;
68 spmi-channel = <2>;
69
70 pmic@0 {
Mauro Carvalho Chehab596e7632021-01-21 08:18:03 +010071 reg = <0 0>;
Mauro Carvalho Chehab9e591722020-08-18 16:58:57 +020072 /* pmic properties */
73 };
74 };
75 };