Merge tag 'fsnotify_for_v5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / drivers / staging / hikey9xx / hisilicon,hisi-spmi-controller.yaml
1 # 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
7 title: HiSilicon SPMI controller
8
9 maintainers:
10   - Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
11
12 description: |
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
17   drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml.
18
19 properties:
20   $nodename:
21     pattern: "spmi@[0-9a-f]"
22
23   compatible:
24     const: hisilicon,kirin970-spmi-controller
25
26   reg:
27     maxItems: 1
28
29   spmi-channel:
30     description: |
31       number of the Kirin 970 SPMI channel where the SPMI devices are connected.
32
33 required:
34  - compatible
35  - reg
36  - spmi-channel
37
38 patternProperties:
39   "^pmic@[0-9a-f]$":
40     description: |
41       PMIC properties, which are specific to the used SPMI PMIC device(s).
42       When used in combination with HiSilicon 6421v600, the properties
43       are documented at
44       drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml.
45
46 examples:
47   - |
48     bus {
49       #address-cells = <2>;
50       #size-cells = <2>;
51
52       spmi: spmi@fff24000 {
53         compatible = "hisilicon,kirin970-spmi-controller";
54         status = "ok";
55         reg = <0x0 0xfff24000 0x0 0x1000>;
56         spmi-channel = <2>;
57
58         pmic@0 {
59           /* pmic properties */
60         };
61       };
62     };