aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/hikey9xx/hisilicon,hisi-spmi-controller.yaml
blob: f2a56fa4e78e8a53b5b0880651900f78ffe45df8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# SPDX-License-Identifier: GPL-2.0
%YAML 1.2
---
$id: http://devicetree.org/schemas/spmi/hisilicon,hisi-spmi-controller.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: HiSilicon SPMI controller

maintainers:
  - Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

description: |
  The HiSilicon SPMI BUS controller is found on some Kirin-based designs.
  It is a MIPI System Power Management (SPMI) controller.

  The PMIC part is provided by
  drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml.

properties:
  $nodename:
    pattern: "spmi@[0-9a-f]"

  compatible:
    const: hisilicon,kirin970-spmi-controller

  reg:
    maxItems: 1

  spmi-channel:
    description: |
      number of the Kirin 970 SPMI channel where the SPMI devices are connected.

required:
 - compatible
 - reg
 - spmi-channel

patternProperties:
  "^pmic@[0-9a-f]$":
    description: |
      PMIC properties, which are specific to the used SPMI PMIC device(s).
      When used in combination with HiSilicon 6421v600, the properties
      are documented at
      drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml.

examples:
  - |
    bus {
      #address-cells = <2>;
      #size-cells = <2>;

      spmi: spmi@fff24000 {
        compatible = "hisilicon,kirin970-spmi-controller";
        status = "ok";
        reg = <0x0 0xfff24000 0x0 0x1000>;
        spmi-channel = <2>;

        pmic@0 {
          /* pmic properties */
        };
      };
    };